]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
*** empty log message ***
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
e552509b 614GOC_FOR_BUILD
81ecdfbb
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
911e63d0 624target_configdirs
81ecdfbb 625configdirs
81ecdfbb 626build_configdirs
81ecdfbb
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
4074d5f2
RW
634target_configargs
635host_configargs
636build_configargs
96655cc4 637BUILD_CONFIG
81ecdfbb
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
700d40ca 643extra_host_libiberty_configure_flags
81ecdfbb
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
81ecdfbb 648poststage1_ldflags
143754cd 649poststage1_libs
81ecdfbb
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
8e957354
PB
674AWK
675SED
81ecdfbb
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
744enable_libada
745enable_libssp
746enable_build_with_cxx
747with_mpc
748with_mpc_include
749with_mpc_lib
750with_mpfr_dir
751with_mpfr
752with_mpfr_include
753with_mpfr_lib
754with_gmp_dir
755with_gmp
756with_gmp_include
757with_gmp_lib
758with_host_libstdcxx
759with_stage1_ldflags
760with_stage1_libs
81ecdfbb 761with_boot_libs
143754cd 762with_boot_ldflags
81ecdfbb
RW
763with_ppl
764with_ppl_include
765with_ppl_lib
766enable_ppl_version_check
767with_cloog
768with_cloog_include
769with_cloog_lib
e552509b 770enable_cloog_backend
81ecdfbb 771enable_cloog_version_check
700d40ca 772enable_lto
81ecdfbb
RW
773enable_stage1_languages
774enable_objc_gc
775with_build_sysroot
776with_debug_prefix_map
777enable_bootstrap
96655cc4 778with_build_config
81ecdfbb
RW
779enable_serial_configure
780with_build_time_tools
781enable_maintainer_mode
782enable_stage1_checking
783enable_werror
81ecdfbb
RW
784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CXX
794CXXFLAGS
795CCC
4074d5f2
RW
796build_configargs
797host_configargs
798target_configargs
81ecdfbb
RW
799AR
800AS
801DLLTOOL
802LD
803LIPO
804NM
805RANLIB
806STRIP
807WINDRES
808WINDMC
809OBJCOPY
810OBJDUMP
811CC_FOR_TARGET
812CXX_FOR_TARGET
813GCC_FOR_TARGET
814GCJ_FOR_TARGET
815GFORTRAN_FOR_TARGET
e552509b 816GOC_FOR_TARGET
81ecdfbb
RW
817AR_FOR_TARGET
818AS_FOR_TARGET
819DLLTOOL_FOR_TARGET
820LD_FOR_TARGET
821LIPO_FOR_TARGET
822NM_FOR_TARGET
823OBJDUMP_FOR_TARGET
824RANLIB_FOR_TARGET
825STRIP_FOR_TARGET
826WINDRES_FOR_TARGET
827WINDMC_FOR_TARGET'
828
a0da8069
NN
829
830# Initialize some variables set by options.
c6b750e1
DJ
831ac_init_help=
832ac_init_version=false
81ecdfbb
RW
833ac_unrecognized_opts=
834ac_unrecognized_sep=
a0da8069
NN
835# The variables have the same names as the options, with
836# dashes changed to underlines.
c6b750e1 837cache_file=/dev/null
a0da8069 838exec_prefix=NONE
a0da8069 839no_create=
a0da8069
NN
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
a0da8069
NN
848verbose=
849x_includes=NONE
850x_libraries=NONE
c6b750e1
DJ
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 857# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
a0da8069
NN
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
a0da8069
NN
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
81ecdfbb
RW
868docdir='${datarootdir}/doc/${PACKAGE}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
252b5132 877
a0da8069 878ac_prev=
81ecdfbb 879ac_dashdash=
a0da8069
NN
880for ac_option
881do
a0da8069
NN
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
81ecdfbb 884 eval $ac_prev=\$ac_option
a0da8069
NN
885 ac_prev=
886 continue
887 fi
252b5132 888
81ecdfbb
RW
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
a0da8069
NN
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
81ecdfbb
RW
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
a0da8069
NN
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 903 bindir=$ac_optarg ;;
a0da8069
NN
904
905 -build | --build | --buil | --bui | --bu)
c6b750e1 906 ac_prev=build_alias ;;
a0da8069 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 908 build_alias=$ac_optarg ;;
a0da8069
NN
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
a0da8069 919
81ecdfbb 920 -datadir | --datadir | --datadi | --datad)
a0da8069 921 ac_prev=datadir ;;
81ecdfbb 922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 923 datadir=$ac_optarg ;;
a0da8069 924
81ecdfbb
RW
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
a0da8069 932 -disable-* | --disable-*)
81ecdfbb 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 934 # Reject names that are not valid shell variable names.
81ecdfbb
RW
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
a0da8069
NN
957
958 -enable-* | --enable-*)
81ecdfbb 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 960 # Reject names that are not valid shell variable names.
81ecdfbb
RW
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
a0da8069 971 esac
81ecdfbb 972 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
c6b750e1 981 exec_prefix=$ac_optarg ;;
a0da8069
NN
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
c6b750e1
DJ
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
a0da8069
NN
993
994 -host | --host | --hos | --ho)
c6b750e1 995 ac_prev=host_alias ;;
a0da8069 996 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 997 host_alias=$ac_optarg ;;
a0da8069 998
81ecdfbb
RW
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
a0da8069
NN
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1010 includedir=$ac_optarg ;;
a0da8069
NN
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1015 infodir=$ac_optarg ;;
a0da8069
NN
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1020 libdir=$ac_optarg ;;
a0da8069
NN
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1027 libexecdir=$ac_optarg ;;
a0da8069 1028
81ecdfbb
RW
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
a0da8069 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1035 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1039 localstatedir=$ac_optarg ;;
a0da8069
NN
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1044 mandir=$ac_optarg ;;
a0da8069
NN
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1051 | --no-cr | --no-c | -n)
a0da8069
NN
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1065 oldincludedir=$ac_optarg ;;
a0da8069
NN
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1070 prefix=$ac_optarg ;;
a0da8069
NN
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1077 program_prefix=$ac_optarg ;;
a0da8069
NN
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1084 program_suffix=$ac_optarg ;;
a0da8069
NN
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1101 program_transform_name=$ac_optarg ;;
a0da8069 1102
81ecdfbb
RW
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
a0da8069
NN
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
c6b750e1 1121 sbindir=$ac_optarg ;;
a0da8069
NN
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
c6b750e1 1132 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
c6b750e1 1137 site=$ac_optarg ;;
a0da8069
NN
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1142 srcdir=$ac_optarg ;;
a0da8069
NN
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1149 sysconfdir=$ac_optarg ;;
a0da8069
NN
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1152 ac_prev=target_alias ;;
a0da8069 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1154 target_alias=$ac_optarg ;;
a0da8069
NN
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
c6b750e1
DJ
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
a0da8069
NN
1161
1162 -with-* | --with-*)
81ecdfbb 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
a0da8069 1175 esac
81ecdfbb 1176 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1177
1178 -without-* | --without-*)
81ecdfbb 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1180 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
a0da8069
NN
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1203 x_includes=$ac_optarg ;;
a0da8069
NN
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1210 x_libraries=$ac_optarg ;;
a0da8069 1211
81ecdfbb
RW
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information."
a0da8069
NN
1214 ;;
1215
c6b750e1
DJ
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1224 export $ac_envvar ;;
1225
a0da8069 1226 *)
c6b750e1 1227 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1232 ;;
1233
1234 esac
1235done
1236
1237if test -n "$ac_prev"; then
c6b750e1 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1239 as_fn_error "missing argument to $ac_option"
a0da8069 1240fi
a0da8069 1241
81ecdfbb
RW
1242if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1247 esac
81ecdfbb 1248fi
a0da8069 1249
81ecdfbb
RW
1250# Check all directory arguments for consistency.
1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
a0da8069 1255do
81ecdfbb
RW
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
c6b750e1 1264 case $ac_val in
81ecdfbb
RW
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1267 esac
81ecdfbb 1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1269done
1270
c6b750e1
DJ
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
376a0e54 1277
c6b750e1
DJ
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
81ecdfbb 1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
a0da8069 1293
a0da8069 1294
81ecdfbb
RW
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1301
1302
a0da8069
NN
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
81ecdfbb
RW
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
a0da8069 1330 srcdir=$ac_confdir
81ecdfbb 1331 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
81ecdfbb
RW
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
6d0cd39e
AM
1355case $srcdir in
1356 *" "*)
1357 as_fn_error "path to source, $srcdir, contains spaces"
1358 ;;
1359esac
9cc8ae67
PB
1360ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1361
81ecdfbb
RW
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
c6b750e1
DJ
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures this package to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
c6b750e1
DJ
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1398 [$ac_default_prefix]
c6b750e1 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1400 [PREFIX]
c6b750e1
DJ
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
81ecdfbb
RW
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1429_ACEOF
1430
1431 cat <<\_ACEOF
1432
1433Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442_ACEOF
a0da8069 1443fi
a0da8069 1444
c6b750e1
DJ
1445if test -n "$ac_init_help"; then
1446
1447 cat <<\_ACEOF
1448
1449Optional Features:
81ecdfbb 1450 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
e6de499b 1453 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
521ec477
DD
1454 --enable-libada build libada directory
1455 --enable-libssp build libssp directory
e8a5fa9c 1456 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f 1457 --disable-ppl-version-check disable check for PPL version
ceca0218
PB
1458 --enable-cloog-backend[=BACKEND]
1459 set the CLooG BACKEND used to either isl, ppl or
1460 ppl-legacy (default)
e552509b
ILT
1461 --disable-cloog-version-check
1462 disable check for CLooG version
700d40ca 1463 --enable-lto enable link time optimization support
521ec477 1464 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1465 stage1. Mostly useful for compiler development.
521ec477
DD
1466 --enable-objc-gc enable use of Boehm's garbage collector with the
1467 GNU Objective-C runtime
1468 --enable-bootstrap enable bootstrapping [yes if native build]
1469 --enable-serial-[{host,target,build}-]configure
1470 force sequential configuration of
c6b750e1 1471 sub-packages for the host, target or build
521ec477 1472 machine, or all sub-packages
c6b750e1
DJ
1473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
521ec477
DD
1475 --enable-stage1-checking[=all] choose additional checking for stage1
1476 of the compiler
c6b750e1
DJ
1477 --enable-werror enable -Werror in bootstrap stage2 and later
1478
1479Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1483 --with-mpc=PATH specify prefix directory for installed MPC package.
1484 Equivalent to --with-mpc-include=PATH/include
1485 plus --with-mpc-lib=PATH/lib
1486 --with-mpc-include=PATH
1487 specify directory for installed MPC include files
1488 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1489 --with-mpfr-dir=PATH this option has been REMOVED
1490 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1491 Equivalent to --with-mpfr-include=PATH/include
1492 plus --with-mpfr-lib=PATH/lib
1493 --with-mpfr-include=PATH
521ec477
DD
1494 specify directory for installed MPFR include files
1495 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1496 --with-gmp-dir=PATH this option has been REMOVED
1497 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1498 Equivalent to --with-gmp-include=PATH/include
1499 plus --with-gmp-lib=PATH/lib
521ec477
DD
1500 --with-gmp-include=PATH specify directory for installed GMP include files
1501 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1502 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1503 when linking with PPL
e8a5fa9c
RW
1504 --with-stage1-ldflags=FLAGS Linker flags for stage1
1505 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1506 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1507 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1508 --with-ppl=PATH Specify prefix directory for the installed PPL package
1509 Equivalent to --with-ppl-include=PATH/include
1510 plus --with-ppl-lib=PATH/lib
1511 --with-ppl-include=PATH Specify directory for installed PPL include files
1512 --with-ppl-lib=PATH Specify the directory for the installed PPL library
e552509b
ILT
1513 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1514 package. Equivalent to
1515 --with-cloog-include=PATH/include plus
1516 --with-cloog-lib=PATH/lib
1517 --with-cloog-include=PATH
1518 Specify directory for installed CLooG include files
1519 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1520 library
521ec477 1521 --with-build-sysroot=SYSROOT
c6b750e1 1522 use sysroot as the system root during the build
8a6ee3ab
JM
1523 --with-debug-prefix-map='A=B C=D ...'
1524 map A to B, C to D ... in debug information
96655cc4
AO
1525--with-build-config='NAME NAME2...'
1526 Use config/NAME.mk build configuration
521ec477 1527 --with-build-time-tools=PATH
c6b750e1 1528 use given path to find target tools during the build
c6b750e1
DJ
1529
1530Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
81ecdfbb
RW
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
4074d5f2
RW
1540 build_configargs
1541 additional configure arguments for build directories
1542 host_configargs
1543 additional configure arguments for host directories
1544 target_configargs
1545 additional configure arguments for target directories
9a819804
AO
1546 AR AR for the host
1547 AS AS for the host
1548 DLLTOOL DLLTOOL for the host
1549 LD LD for the host
1550 LIPO LIPO for the host
1551 NM NM for the host
1552 RANLIB RANLIB for the host
1553 STRIP STRIP for the host
1554 WINDRES WINDRES for the host
0c24b341 1555 WINDMC WINDMC for the host
9a819804
AO
1556 OBJCOPY OBJCOPY for the host
1557 OBJDUMP OBJDUMP for the host
1558 CC_FOR_TARGET
1559 CC for the target
1560 CXX_FOR_TARGET
1561 CXX for the target
1562 GCC_FOR_TARGET
1563 GCC for the target
1564 GCJ_FOR_TARGET
1565 GCJ for the target
1566 GFORTRAN_FOR_TARGET
1567 GFORTRAN for the target
e552509b
ILT
1568 GOC_FOR_TARGET
1569 GOC for the target
9a819804
AO
1570 AR_FOR_TARGET
1571 AR for the target
1572 AS_FOR_TARGET
1573 AS for the target
1574 DLLTOOL_FOR_TARGET
1575 DLLTOOL for the target
1576 LD_FOR_TARGET
1577 LD for the target
1578 LIPO_FOR_TARGET
1579 LIPO for the target
1580 NM_FOR_TARGET
1581 NM for the target
1582 OBJDUMP_FOR_TARGET
1583 OBJDUMP for the target
1584 RANLIB_FOR_TARGET
1585 RANLIB for the target
1586 STRIP_FOR_TARGET
1587 STRIP for the target
1588 WINDRES_FOR_TARGET
1589 WINDRES for the target
0c24b341
NC
1590 WINDMC_FOR_TARGET
1591 WINDMC for the target
c6b750e1
DJ
1592
1593Use these variables to override the choices made by `configure' or to help
1594it to find libraries and programs with nonstandard names/locations.
1595
81ecdfbb 1596Report bugs to the package provider.
c6b750e1 1597_ACEOF
81ecdfbb 1598ac_status=$?
c6b750e1
DJ
1599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
c6b750e1 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
c6b750e1
DJ
1607 ac_builddir=.
1608
81ecdfbb
RW
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1624
1625case $srcdir in
81ecdfbb 1626 .) # We are building in place.
c6b750e1 1627 ac_srcdir=.
81ecdfbb
RW
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1631 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1638esac
81ecdfbb
RW
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1649 else
81ecdfbb
RW
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1653 done
1654fi
1655
81ecdfbb 1656test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1657if $ac_init_version; then
1658 cat <<\_ACEOF
81ecdfbb
RW
1659configure
1660generated by GNU Autoconf 2.64
c6b750e1 1661
81ecdfbb 1662Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
81ecdfbb 1666 exit
c6b750e1 1667fi
81ecdfbb
RW
1668
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
1672
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709} # ac_fn_c_try_compile
1710
1711# ac_fn_cxx_try_compile LINENO
1712# ----------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_cxx_try_compile ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_cxx_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1746
1747} # ac_fn_cxx_try_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793} # ac_fn_c_try_link
1794cat >config.log <<_ACEOF
c6b750e1
DJ
1795This file contains any messages produced by compilers while
1796running configure, to aid debugging if configure makes a mistake.
1797
1798It was created by $as_me, which was
81ecdfbb 1799generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1800
1801 $ $0 $@
1802
1803_ACEOF
81ecdfbb 1804exec 5>>config.log
c6b750e1
DJ
1805{
1806cat <<_ASUNAME
1807## --------- ##
1808## Platform. ##
1809## --------- ##
1810
1811hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816
1817/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1819
1820/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1823/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1824/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827
1828_ASUNAME
1829
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1835 $as_echo "PATH: $as_dir"
1836 done
1837IFS=$as_save_IFS
c6b750e1
DJ
1838
1839} >&5
1840
1841cat >&5 <<_ACEOF
1842
1843
1844## ----------- ##
1845## Core tests. ##
1846## ----------- ##
1847
1848_ACEOF
1849
1850
1851# Keep a trace of the command line.
1852# Strip out --no-create and --no-recursion so they do not pile up.
1853# Strip out --silent because we don't want to record it for future runs.
1854# Also quote any args containing shell meta-characters.
1855# Make two passes to allow for proper duplicate-argument suppression.
1856ac_configure_args=
1857ac_configure_args0=
1858ac_configure_args1=
c6b750e1
DJ
1859ac_must_keep_next=false
1860for ac_pass in 1 2
1861do
1862 for ac_arg
1863 do
1864 case $ac_arg in
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1868 continue ;;
81ecdfbb
RW
1869 *\'*)
1870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1871 esac
1872 case $ac_pass in
81ecdfbb 1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1874 2)
81ecdfbb 1875 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1878 else
1879 case $ac_arg in
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886 esac
1887 ;;
1888 -* ) ac_must_keep_next=true ;;
1889 esac
1890 fi
81ecdfbb 1891 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1892 ;;
1893 esac
1894 done
1895done
81ecdfbb
RW
1896{ ac_configure_args0=; unset ac_configure_args0;}
1897{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1898
1899# When interrupted or exit'd, cleanup temporary files, and complete
1900# config.log. We remove comments because anyway the quotes in there
1901# would cause problems or look ugly.
81ecdfbb
RW
1902# WARNING: Use '\'' to represent an apostrophe within the trap.
1903# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1904trap 'exit_status=$?
1905 # Save into config.log some information that might help in debugging.
1906 {
1907 echo
1908
1909 cat <<\_ASBOX
1910## ---------------- ##
1911## Cache variables. ##
1912## ---------------- ##
1913_ASBOX
1914 echo
1915 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1916(
1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in #(
1920 *${as_nl}*)
1921 case $ac_var in #(
1922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 esac
1925 case $ac_var in #(
1926 _ | IFS | as_nl) ;; #(
1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928 *) { eval $ac_var=; unset $ac_var;} ;;
1929 esac ;;
1930 esac
1931 done
c6b750e1 1932 (set) 2>&1 |
81ecdfbb
RW
1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934 *${as_nl}ac_space=\ *)
c6b750e1 1935 sed -n \
81ecdfbb
RW
1936 "s/'\''/'\''\\\\'\'''\''/g;
1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 ;; #(
c6b750e1 1939 *)
81ecdfbb 1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1941 ;;
81ecdfbb
RW
1942 esac |
1943 sort
1944)
c6b750e1
DJ
1945 echo
1946
1947 cat <<\_ASBOX
1948## ----------------- ##
1949## Output variables. ##
1950## ----------------- ##
1951_ASBOX
1952 echo
1953 for ac_var in $ac_subst_vars
1954 do
81ecdfbb
RW
1955 eval ac_val=\$$ac_var
1956 case $ac_val in
1957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 esac
1959 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1960 done | sort
1961 echo
1962
1963 if test -n "$ac_subst_files"; then
1964 cat <<\_ASBOX
81ecdfbb
RW
1965## ------------------- ##
1966## File substitutions. ##
1967## ------------------- ##
c6b750e1
DJ
1968_ASBOX
1969 echo
1970 for ac_var in $ac_subst_files
1971 do
81ecdfbb
RW
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1977 done | sort
1978 echo
1979 fi
1980
1981 if test -s confdefs.h; then
1982 cat <<\_ASBOX
1983## ----------- ##
1984## confdefs.h. ##
1985## ----------- ##
1986_ASBOX
1987 echo
81ecdfbb 1988 cat confdefs.h
c6b750e1
DJ
1989 echo
1990 fi
1991 test "$ac_signal" != 0 &&
81ecdfbb
RW
1992 $as_echo "$as_me: caught signal $ac_signal"
1993 $as_echo "$as_me: exit $exit_status"
c6b750e1 1994 } >&5
81ecdfbb
RW
1995 rm -f core *.core core.conftest.* &&
1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1997 exit $exit_status
81ecdfbb 1998' 0
c6b750e1 1999for ac_signal in 1 2 13 15; do
81ecdfbb 2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2001done
2002ac_signal=0
2003
2004# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2005rm -f -r conftest* confdefs.h
2006
2007$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2008
2009# Predefined preprocessor variables.
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_NAME "$PACKAGE_NAME"
2013_ACEOF
2014
c6b750e1
DJ
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017_ACEOF
2018
c6b750e1
DJ
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_VERSION "$PACKAGE_VERSION"
2021_ACEOF
2022
c6b750e1
DJ
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_STRING "$PACKAGE_STRING"
2025_ACEOF
2026
c6b750e1
DJ
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029_ACEOF
2030
81ecdfbb
RW
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_URL "$PACKAGE_URL"
2033_ACEOF
2034
c6b750e1
DJ
2035
2036# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2037# Prefer an explicitly selected file to automatically selected ones.
2038ac_site_file1=NONE
2039ac_site_file2=NONE
2040if test -n "$CONFIG_SITE"; then
2041 ac_site_file1=$CONFIG_SITE
2042elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2048fi
81ecdfbb
RW
2049for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050do
2051 test "x$ac_site_file" = xNONE && continue
a0da8069 2052 if test -r "$ac_site_file"; then
81ecdfbb
RW
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2055 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2056 . "$ac_site_file"
2057 fi
2058done
2059
2060if test -r "$cache_file"; then
c6b750e1
DJ
2061 # Some versions of bash will fail to source /dev/null (special
2062 # files actually), so we avoid doing that.
2063 if test -f "$cache_file"; then
81ecdfbb
RW
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2066 case $cache_file in
81ecdfbb
RW
2067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068 *) . "./$cache_file";;
c6b750e1
DJ
2069 esac
2070 fi
a0da8069 2071else
81ecdfbb
RW
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2074 >$cache_file
2075fi
2076
2077# Check that the precious variables saved in the cache have kept the same
2078# value.
2079ac_cache_corrupted=false
81ecdfbb 2080for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2081 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2083 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2085 case $ac_old_set,$ac_new_set in
2086 set,)
81ecdfbb
RW
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2089 ac_cache_corrupted=: ;;
2090 ,set)
81ecdfbb
RW
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2093 ac_cache_corrupted=: ;;
2094 ,);;
2095 *)
2096 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2097 # differences in whitespace do not lead to failure.
2098 ac_old_val_w=`echo x $ac_old_val`
2099 ac_new_val_w=`echo x $ac_new_val`
2100 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103 ac_cache_corrupted=:
2104 else
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107 eval $ac_var=\$ac_old_val
2108 fi
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2110$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2112$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2113 fi;;
2114 esac
2115 # Pass precious variables to config.status.
2116 if test "$ac_new_set" = set; then
2117 case $ac_new_val in
81ecdfbb 2118 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2119 *) ac_arg=$ac_var=$ac_new_val ;;
2120 esac
2121 case " $ac_configure_args " in
2122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2123 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2124 esac
2125 fi
2126done
2127if $ac_cache_corrupted; then
81ecdfbb
RW
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2133fi
81ecdfbb
RW
2134## -------------------- ##
2135## Main body of script. ##
2136## -------------------- ##
a0da8069
NN
2137
2138ac_ext=c
a0da8069 2139ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
2144
2145
2146
c6b750e1
DJ
2147
2148
34a0f3cf 2149
c6b750e1 2150
5b553f7e
RW
2151
2152progname=$0
2153# if PWD already has a value, it is probably wrong.
2154if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2155
2156# Export original configure arguments for use by sub-configures.
2157# Quote arguments with shell meta charatcers.
2158TOPLEVEL_CONFIGURE_ARGUMENTS=
2159set -- "$progname" "$@"
2160for ac_arg
2161do
2162 case "$ac_arg" in
2163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2165 # if the argument is of the form -foo=baz, quote the baz part only
2166 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2167 *) ;;
2168 esac
2169 # Add the quoted argument to the list.
2170 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2171done
2172if test "$silent" = yes; then
2173 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2174fi
2175# Remove the initial space we just introduced and, as these will be
2176# expanded by make, quote '$'.
2177TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2178
c6b750e1
DJ
2179
2180# Find the build, host, and target systems.
a0da8069 2181ac_aux_dir=
81ecdfbb
RW
2182for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183 for ac_t in install-sh install.sh shtool; do
2184 if test -f "$ac_dir/$ac_t"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/$ac_t -c"
2187 break 2
2188 fi
2189 done
a0da8069
NN
2190done
2191if test -z "$ac_aux_dir"; then
81ecdfbb 2192 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2193fi
81ecdfbb
RW
2194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202
a0da8069 2203
c6b750e1 2204# Make sure we can run config.sub.
81ecdfbb
RW
2205$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2206 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2207
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2209$as_echo_n "checking build system type... " >&6; }
2210if test "${ac_cv_build+set}" = set; then :
2211 $as_echo_n "(cached) " >&6
2212else
2213 ac_build_alias=$build_alias
2214test "x$ac_build_alias" = x &&
2215 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2216test "x$ac_build_alias" = x &&
2217 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2218ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2219 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2220
2221fi
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2223$as_echo "$ac_cv_build" >&6; }
2224case $ac_cv_build in
2225*-*-*) ;;
2226*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2227esac
c6b750e1 2228build=$ac_cv_build
81ecdfbb
RW
2229ac_save_IFS=$IFS; IFS='-'
2230set x $ac_cv_build
2231shift
2232build_cpu=$1
2233build_vendor=$2
2234shift; shift
2235# Remember, the first character of IFS is used to create $*,
2236# except with old shells:
2237build_os=$*
2238IFS=$ac_save_IFS
2239case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2240
a0da8069 2241
c6b750e1
DJ
2242 case ${build_alias} in
2243 "") build_noncanonical=${build} ;;
2244 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2245esac
2246
2247
cac3d6c4 2248
c6b750e1
DJ
2249 case ${host_alias} in
2250 "") host_noncanonical=${build_noncanonical} ;;
2251 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2252esac
2253
cac3d6c4 2254
c6b750e1
DJ
2255
2256 case ${target_alias} in
2257 "") target_noncanonical=${host_noncanonical} ;;
2258 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2259esac
2260
cac3d6c4 2261
c6b750e1
DJ
2262
2263
2264test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
c6b750e1 2267 program_transform_name=s,y,y,
cac3d6c4 2268
81ecdfbb
RW
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2270$as_echo_n "checking host system type... " >&6; }
2271if test "${ac_cv_host+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
cac3d6c4 2273else
81ecdfbb
RW
2274 if test "x$host_alias" = x; then
2275 ac_cv_host=$ac_cv_build
2276else
2277 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2278 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2279fi
c6b750e1
DJ
2280
2281fi
81ecdfbb
RW
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2283$as_echo "$ac_cv_host" >&6; }
2284case $ac_cv_host in
2285*-*-*) ;;
2286*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2287esac
c6b750e1 2288host=$ac_cv_host
81ecdfbb
RW
2289ac_save_IFS=$IFS; IFS='-'
2290set x $ac_cv_host
2291shift
2292host_cpu=$1
2293host_vendor=$2
2294shift; shift
2295# Remember, the first character of IFS is used to create $*,
2296# except with old shells:
2297host_os=$*
2298IFS=$ac_save_IFS
2299case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2300
2301
81ecdfbb
RW
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2303$as_echo_n "checking target system type... " >&6; }
2304if test "${ac_cv_target+set}" = set; then :
2305 $as_echo_n "(cached) " >&6
c6b750e1 2306else
81ecdfbb
RW
2307 if test "x$target_alias" = x; then
2308 ac_cv_target=$ac_cv_host
2309else
2310 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2312fi
c6b750e1 2313
cac3d6c4 2314fi
81ecdfbb
RW
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2316$as_echo "$ac_cv_target" >&6; }
2317case $ac_cv_target in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2320esac
c6b750e1 2321target=$ac_cv_target
81ecdfbb
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_target
2324shift
2325target_cpu=$1
2326target_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330target_os=$*
2331IFS=$ac_save_IFS
2332case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2333
2334
2335# The aliases save the names the user supplied, while $host etc.
2336# will get canonicalized.
2337test -n "$target_alias" &&
2338 test "$program_prefix$program_suffix$program_transform_name" = \
2339 NONENONEs,x,x, &&
2340 program_prefix=${target_alias}-
81ecdfbb 2341
a0da8069 2342test "$program_prefix" != NONE &&
81ecdfbb 2343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2344# Use a double $ so make ignores it.
2345test "$program_suffix" != NONE &&
81ecdfbb
RW
2346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2347# Double any \ or $.
c6b750e1 2348# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2349ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2351
a0da8069
NN
2352
2353
e5c3f801
NN
2354# Get 'install' or 'install-sh' and its variants.
2355# Find a good install program. We prefer a C program (faster),
2356# so one script is as good as another. But avoid the broken or
2357# incompatible versions:
2358# SysV /etc/install, /usr/sbin/install
2359# SunOS /usr/etc/install
2360# IRIX /sbin/install
2361# AIX /bin/install
c6b750e1 2362# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2366# OS/2's system install, which has a completely different semantic
e5c3f801 2367# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2368# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2371if test -z "$INSTALL"; then
81ecdfbb
RW
2372if test "${ac_cv_path_install+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2374else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2380 # Account for people who put trailing slashes in PATH elements.
2381case $as_dir/ in #((
2382 ./ | .// | /[cC]/* | \
c6b750e1 2383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2384 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2385 /usr/ucb/* ) ;;
2386 *)
2387 # OSF1 and SCO ODT 3.0 have their own names for install.
2388 # Don't use installbsd from OSF since it installs stuff as root
2389 # by default.
2390 for ac_prog in ginstall scoinst install; do
2391 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2392 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2393 if test $ac_prog = install &&
c6b750e1 2394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2395 # AIX install. It has an incompatible calling convention.
2396 :
c6b750e1
DJ
2397 elif test $ac_prog = install &&
2398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # program-specific install script used by HP pwplus--don't use.
2400 :
e5c3f801 2401 else
58c85be7
RW
2402 rm -rf conftest.one conftest.two conftest.dir
2403 echo one > conftest.one
2404 echo two > conftest.two
2405 mkdir conftest.dir
2406 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407 test -s conftest.one && test -s conftest.two &&
2408 test -s conftest.dir/conftest.one &&
2409 test -s conftest.dir/conftest.two
2410 then
2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 break 3
2413 fi
e5c3f801
NN
2414 fi
2415 fi
2416 done
c6b750e1
DJ
2417 done
2418 ;;
2419esac
81ecdfbb
RW
2420
2421 done
2422IFS=$as_save_IFS
c6b750e1 2423
58c85be7 2424rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2425
2426fi
2427 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2428 INSTALL=$ac_cv_path_install
e5c3f801 2429 else
58c85be7
RW
2430 # As a last resort, use the slow shell script. Don't cache a
2431 # value for INSTALL within a source directory, because that will
e5c3f801 2432 # break other packages using the cache if that directory is
58c85be7 2433 # removed, or if the value is a relative name.
c6b750e1 2434 INSTALL=$ac_install_sh
e5c3f801
NN
2435 fi
2436fi
81ecdfbb
RW
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2439
2440# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441# It thinks the first close brace ends the variable substitution.
2442test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2443
c6b750e1 2444test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2445
2446test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447
81ecdfbb
RW
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2449$as_echo_n "checking whether ln works... " >&6; }
2450if test "${acx_cv_prog_LN+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
656fdd47
PB
2452else
2453 rm -f conftestdata_t
2454echo >conftestdata_f
2455if ln conftestdata_f conftestdata_t 2>/dev/null
2456then
2457 acx_cv_prog_LN=ln
2458else
2459 acx_cv_prog_LN=no
2460fi
2461rm -f conftestdata_f conftestdata_t
2462
2463fi
2464if test $acx_cv_prog_LN = no; then
2465 LN="cp"
81ecdfbb
RW
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2467$as_echo "no, using $LN" >&6; }
656fdd47
PB
2468else
2469 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471$as_echo "yes" >&6; }
656fdd47
PB
2472fi
2473
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2475$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2476LN_S=$as_ln_s
2477if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479$as_echo "yes" >&6; }
cac3d6c4 2480else
81ecdfbb
RW
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2482$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2483fi
2484
8e957354
PB
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2486$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2487if test "${ac_cv_path_SED+set}" = set; then :
2488 $as_echo_n "(cached) " >&6
2489else
2490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2491 for ac_i in 1 2 3 4 5 6 7; do
2492 ac_script="$ac_script$as_nl$ac_script"
2493 done
2494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2495 { ac_script=; unset ac_script;}
2496 if test -z "$SED"; then
2497 ac_path_SED_found=false
2498 # Loop through the user's path and test for each of PROGNAME-LIST
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_prog in sed gsed; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2508# Check for GNU ac_path_SED and select it if it is found.
2509 # Check for GNU $ac_path_SED
2510case `"$ac_path_SED" --version 2>&1` in
2511*GNU*)
2512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2513*)
2514 ac_count=0
2515 $as_echo_n 0123456789 >"conftest.in"
2516 while :
2517 do
2518 cat "conftest.in" "conftest.in" >"conftest.tmp"
2519 mv "conftest.tmp" "conftest.in"
2520 cp "conftest.in" "conftest.nl"
2521 $as_echo '' >> "conftest.nl"
2522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2524 as_fn_arith $ac_count + 1 && ac_count=$as_val
2525 if test $ac_count -gt ${ac_path_SED_max-0}; then
2526 # Best one so far, save it but keep looking for a better one
2527 ac_cv_path_SED="$ac_path_SED"
2528 ac_path_SED_max=$ac_count
2529 fi
2530 # 10*(2^10) chars as input seems more than enough
2531 test $ac_count -gt 10 && break
2532 done
2533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2534esac
2535
2536 $ac_path_SED_found && break 3
2537 done
2538 done
2539 done
2540IFS=$as_save_IFS
2541 if test -z "$ac_cv_path_SED"; then
2542 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2543 fi
2544else
2545 ac_cv_path_SED=$SED
2546fi
2547
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2550$as_echo "$ac_cv_path_SED" >&6; }
2551 SED="$ac_cv_path_SED"
2552 rm -f conftest.sed
2553
2554for ac_prog in gawk mawk nawk awk
2555do
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557set dummy $ac_prog; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if test "${ac_cv_prog_AWK+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562else
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578 done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583AWK=$ac_cv_prog_AWK
2584if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586$as_echo "$AWK" >&6; }
2587else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593 test -n "$AWK" && break
2594done
2595
e5c3f801 2596
252b5132 2597### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2598### If we are on Windows, search for the shell. This will permit people
2599### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2600### without also having to set CONFIG_SHELL. This code will work when
2601### using bash, which sets OSTYPE.
2602case "${OSTYPE}" in
2603*win32*)
a0da8069
NN
2604 if test x${CONFIG_SHELL} = x ; then
2605 if test ! -f /bin/sh ; then
2606 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2607 CONFIG_SHELL=${SHELL}
2608 export CONFIG_SHELL
2609 else
2610 for prog in sh sh.exe bash bash.exe; do
2611 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2612 for dir in $PATH; do
2613 test -z "$dir" && dir=.
2614 if test -f $dir/$prog; then
2615 CONFIG_SHELL=$dir/$prog
2616 export CONFIG_SHELL
2617 break
2618 fi
2619 done
2620 IFS="$save_ifs"
2621 test -n "${CONFIG_SHELL}" && break
2622 done
2623 fi
2624 fi
2625 fi
2626 ;;
2627esac
2628
2629config_shell=${CONFIG_SHELL-/bin/sh}
2630
a0da8069 2631moveifchange=${srcdir}/move-if-change
252b5132 2632
0fdbe983
DJ
2633srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2634
2635# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2636# a relative path.
2637if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2638 INSTALL="${srcpwd}/install-sh -c"
2639fi
2640
a0da8069
NN
2641# Set srcdir to "." if that's what it is.
2642# This is important for multilib support.
2643pwd=`${PWDCMD-pwd}`
a0da8069
NN
2644if test "${pwd}" = "${srcpwd}" ; then
2645 srcdir=.
252b5132
RH
2646fi
2647
a0da8069 2648topsrcdir=$srcpwd
252b5132 2649
a0da8069 2650extra_host_args=
afefada0 2651
a0da8069
NN
2652### To add a new directory to the tree, first choose whether it is a target
2653### or a host dependent tool. Then put it into the appropriate list
2654### (library or tools, host or target), doing a dependency sort.
252b5132 2655
c6b750e1 2656# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2657# configdirs, or target_configdirs; see the serialization section below.
252b5132 2658
c6b750e1
DJ
2659# Dependency sorting is only needed when *configuration* must be done in
2660# a particular order. In all cases a dependency should be specified in
a0da8069 2661# the Makefile, whether or not it's implicitly specified here.
252b5132 2662
a0da8069
NN
2663# Double entries in build_configdirs, configdirs, or target_configdirs may
2664# cause circular dependencies and break everything horribly.
252b5132 2665
6a9cf61e
PB
2666# these library is used by various programs built for the build
2667# environment
2668#
2669build_libs="build-libiberty"
2670
2671# these tools are built for the build environment
ee025550 2672build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2673
a0da8069
NN
2674# these libraries are used by various programs built for the host environment
2675#
1f53ca9a 2676host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2677
a0da8069
NN
2678# these tools are built for the host environment
2679# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2680# know that we are building the simulator.
2681# binutils, gas and ld appear in that order because it makes sense to run
2682# "make check" in that particular order.
e6de499b 2683# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2684host_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"
a0da8069
NN
2685
2686# libgcj represents the runtime libraries only used by gcj.
2687libgcj="target-libffi \
a0da8069
NN
2688 target-zlib \
2689 target-qthreads \
2690 target-libjava"
2691
2692# these libraries are built for the target environment, and are built after
2693# the host libraries and the host tools (which may be a cross compiler)
2694#
b1299c4e
DJ
2695target_libraries="target-libgcc \
2696 target-libiberty \
a0da8069
NN
2697 target-libgloss \
2698 target-newlib \
cff87f51 2699 target-libgomp \
b9459e83 2700 target-libstdc++-v3 \
4b1cb4fe 2701 target-libmudflap \
bb780410 2702 target-libssp \
e552509b 2703 target-libquadmath \
4b1cb4fe 2704 target-libgfortran \
4f0ef2d8 2705 target-boehm-gc \
83326456 2706 ${libgcj} \
a2592b1b 2707 target-libobjc \
e552509b
ILT
2708 target-libada \
2709 target-libgo"
a0da8069 2710
9c14acb8
NN
2711# these tools are built using the target libraries, and are intended to
2712# run only in the target environment
a0da8069 2713#
9c14acb8 2714# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2715# list belongs in this list. those programs are also very likely
2716# candidates for the "native_only" list which follows
2717#
a3dd767d 2718target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2719
a0da8069 2720################################################################################
252b5132 2721
a0da8069
NN
2722## All tools belong in one of the four categories, and are assigned above
2723## We assign ${configdirs} this way to remove all embedded newlines. This
2724## is important because configure will choke if they ever get through.
2725## ${configdirs} is directories we build using the host tools.
2726## ${target_configdirs} is directories we build using the target tools.
a0da8069 2727configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2728target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2729build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2730
9cc8ae67
PB
2731
2732
a0da8069 2733################################################################################
252b5132 2734
a0da8069 2735srcname="gnu development package"
252b5132 2736
a0da8069
NN
2737# This gets set non-empty for some net releases of packages.
2738appdirs=""
252b5132 2739
a0da8069
NN
2740# Define is_cross_compiler to save on calls to 'test'.
2741is_cross_compiler=
2742if test x"${host}" = x"${target}" ; then
2743 is_cross_compiler=no
252b5132 2744else
a0da8069 2745 is_cross_compiler=yes
c6b750e1 2746fi
252b5132 2747
9175bfc0 2748# Find the build and target subdir names.
dd12c3a8 2749
66a79c16
DJ
2750# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751# have matching libraries, they should use host libraries: Makefile.tpl
2752# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753# However, they still use the build modules, because the corresponding
2754# host modules (e.g. bison) are only built for the host when bootstrap
2755# finishes. So:
2756# - build_subdir is where we find build modules, and never changes.
2757# - build_libsubdir is where we find build libraries, and can be overridden.
2758
2759# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2760build_subdir="build-${build_noncanonical}"
c6b750e1 2761
81ecdfbb
RW
2762# Check whether --with-build-libsubdir was given.
2763if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2765else
2766 build_libsubdir="$build_subdir"
81ecdfbb
RW
2767fi
2768
b00612cc
PB
2769# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773else
2774 host_subdir=.
2775fi
dd12c3a8
NN
2776# No prefix.
2777target_subdir=${target_noncanonical}
c6b750e1 2778
2fd0b40b
RW
2779# Be sure to cover against remnants of an in-tree build.
2780if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2781 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2782Use a pristine source tree when building in a separate tree" "$LINENO" 5
2783fi
252b5132 2784
a0da8069
NN
2785# Skipdirs are removed silently.
2786skipdirs=
2787# Noconfigdirs are removed loudly.
2788noconfigdirs=""
252b5132 2789
a0da8069
NN
2790use_gnu_ld=
2791# Make sure we don't let GNU ld be added if we didn't want it.
2792if test x$with_gnu_ld = xno ; then
2793 use_gnu_ld=no
93f9b408 2794 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2795fi
2796
a0da8069
NN
2797use_gnu_as=
2798# Make sure we don't let GNU as be added if we didn't want it.
2799if test x$with_gnu_as = xno ; then
2800 use_gnu_as=no
2801 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2802fi
2803
700d40ca
ILT
2804use_included_zlib=
2805# Make sure we don't let ZLIB be added if we didn't want it.
2806if test x$with_system_zlib = xyes ; then
2807 use_included_zlib=no
2808 noconfigdirs="$noconfigdirs zlib"
2809fi
2810
c6b750e1 2811# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2812# it's not even worth trying to configure, much less build, that tool.
252b5132 2813
a0da8069
NN
2814case ${with_x} in
2815 yes | "") ;; # the default value for this tree is that X11 is available
2816 no)
675c6968 2817 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2818 # We won't be able to build gdbtk without X.
c6b750e1 2819 enable_gdbtk=no
a0da8069
NN
2820 ;;
2821 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2822esac
252b5132 2823
a0da8069 2824# Some tools are only suitable for building in a "native" situation.
c6b750e1 2825# Remove these if host!=target.
701628f5 2826native_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"
252b5132 2827
a0da8069
NN
2828# Similarly, some are only suitable for cross toolchains.
2829# Remove these if host=target.
2830cross_only="target-libgloss target-newlib target-opcodes"
2831
2832case $is_cross_compiler in
2833 no) skipdirs="${skipdirs} ${cross_only}" ;;
2834 yes) skipdirs="${skipdirs} ${native_only}" ;;
2835esac
252b5132 2836
a0da8069
NN
2837# If both --with-headers and --with-libs are specified, default to
2838# --without-newlib.
32be62b5
RS
2839if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2841 if test x"${with_newlib}" = x ; then
2842 with_newlib=no
2843 fi
252b5132
RH
2844fi
2845
a0da8069
NN
2846# Recognize --with-newlib/--without-newlib.
2847case ${with_newlib} in
2848 no) skipdirs="${skipdirs} target-newlib" ;;
2849 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2850esac
252b5132 2851
93f9b408 2852# Handle --enable-gold.
e6de499b
NC
2853# --enable-gold Build only gold
2854# --disable-gold [default] Build only ld
2855# --enable-gold=both Build both gold and ld, ld is default
2856# --enable-gold=both/ld Same
2857# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
93f9b408 2858
81ecdfbb
RW
2859# Check whether --enable-gold was given.
2860if test "${enable_gold+set}" = set; then :
2861 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2862else
2863 ENABLE_GOLD=no
81ecdfbb
RW
2864fi
2865
e6de499b
NC
2866 case "${ENABLE_GOLD}" in
2867 yes|both|both/gold|both/ld)
2868 # Check for ELF target.
2869 is_elf=no
2870 case "${target}" in
2871 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2872 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2873 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2874 case "${target}" in
2875 *-*-linux*aout* | *-*-linux*oldld*)
2876 ;;
2877 *)
2878 is_elf=yes
2879 ;;
2880 esac
2881 esac
2882
2883 if test "$is_elf" = "yes"; then
2884 # Check for target supported by gold.
93f9b408 2885 case "${target}" in
e6de499b
NC
2886 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887 case "${ENABLE_GOLD}" in
2888 both*)
2889 configdirs="$configdirs gold"
2890 ;;
2891 *)
3cac54d2 2892 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
e6de499b
NC
2893 ;;
2894 esac
2895 ENABLE_GOLD=yes
93f9b408
ILT
2896 ;;
2897 esac
e6de499b
NC
2898 fi
2899 ;;
2900 no)
2901 ;;
2902 *)
2903 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2904 ;;
93f9b408
ILT
2905 esac
2906
a0da8069 2907# Configure extra directories which are host specific
252b5132 2908
a0da8069
NN
2909case "${host}" in
2910 *-cygwin*)
2911 configdirs="$configdirs libtermcap" ;;
2912esac
252b5132 2913
59f7ec45
HPN
2914# A target can indicate whether a language isn't supported for some reason.
2915# Only spaces may be used in this macro; not newlines or tabs.
2916unsupported_languages=
2917
c6b750e1 2918# Remove more programs from consideration, based on the host or
a0da8069
NN
2919# target this usually means that a port of the program doesn't
2920# exist yet.
252b5132 2921
a0da8069
NN
2922case "${host}" in
2923 hppa*64*-*-*)
2924 noconfigdirs="$noconfigdirs byacc"
2925 ;;
ec11bdc6 2926 i[3456789]86-*-vsta)
675c6968 2927 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2928 ;;
ec11bdc6 2929 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2930 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2931 ;;
2d1e8239
NC
2932 x86_64-*-mingw*)
2933 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2934 ;;
ec11bdc6 2935 i[3456789]86-*-mingw32*)
675c6968 2936 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2937 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2938 ;;
ec11bdc6 2939 i[3456789]86-*-beos*)
675c6968 2940 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2941 ;;
a0da8069 2942 *-*-cygwin*)
a92834c8 2943 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2944 ;;
2945 *-*-netbsd*)
a92834c8 2946 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2947 ;;
2948 ppc*-*-pe)
675c6968 2949 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2950 ;;
2951 powerpc-*-beos*)
675c6968 2952 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2953 ;;
a0da8069 2954esac
252b5132 2955
4b1cb4fe 2956
81ecdfbb
RW
2957# Check whether --enable-libada was given.
2958if test "${enable_libada+set}" = set; then :
2959 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2960else
2961 ENABLE_LIBADA=yes
81ecdfbb
RW
2962fi
2963
a2592b1b 2964if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2965 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2966fi
2967
81ecdfbb
RW
2968# Check whether --enable-libssp was given.
2969if test "${enable_libssp+set}" = set; then :
2970 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2971else
2972 ENABLE_LIBSSP=yes
81ecdfbb
RW
2973fi
2974
5f128533 2975
a0da8069
NN
2976# Save it here so that, even in case of --enable-libgcj, if the Java
2977# front-end isn't enabled, we still get libgcj disabled.
2978libgcj_saved=$libgcj
2979case $enable_libgcj in
2980yes)
2981 # If we reset it here, it won't get added to noconfigdirs in the
2982 # target-specific build rules, so it will be forcibly enabled
2983 # (unless the Java language itself isn't enabled).
2984 libgcj=
2985 ;;
2986no)
2987 # Make sure we get it printed in the list of not supported target libs.
2988 noconfigdirs="$noconfigdirs ${libgcj}"
2989 ;;
2990esac
252b5132 2991
4b1cb4fe 2992
a6df5a19
PB
2993# Disable libmudflap on some systems.
2994if test x$enable_libmudflap = x ; then
3e707e94 2995 case "${target}" in
29383458 2996 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2997 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2998 ;;
2999 *-*-freebsd*)
3000 # Enable libmudflap by default in FreeBSD.
3001 ;;
3002 *)
3003 # Disable it by default everywhere else.
3004 noconfigdirs="$noconfigdirs target-libmudflap"
3005 ;;
3006 esac
a6df5a19 3007fi
4b1cb4fe 3008
a6df5a19
PB
3009# Disable libgomp on non POSIX hosted systems.
3010if test x$enable_libgomp = x ; then
b3ded179
PB
3011 # Enable libgomp by default on hosted POSIX systems.
3012 case "${target}" in
29383458 3013 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3014 ;;
3015 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3016 ;;
64ce424c 3017 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3018 ;;
3019 *-*-darwin* | *-*-aix*)
3020 ;;
3021 *)
3022 noconfigdirs="$noconfigdirs target-libgomp"
3023 ;;
3024 esac
a6df5a19 3025fi
b3ded179 3026
691bb5a1
DD
3027# Default libgloss CPU subdirectory.
3028libgloss_dir="$target_cpu"
4b1cb4fe 3029
a0da8069
NN
3030case "${target}" in
3031 *-*-chorusos)
54d1c879 3032 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3033 ;;
24741ab2 3034 powerpc-*-darwin*)
9d39db92 3035 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3036 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3037 ;;
85bd1942
TG
3038 i[3456789]86-*-darwin*)
3039 noconfigdirs="$noconfigdirs ld gprof"
3040 noconfigdirs="$noconfigdirs sim target-rda"
3041 ;;
e8a5fa9c 3042 x86_64-*-darwin[912]*)
652dec25
TG
3043 noconfigdirs="$noconfigdirs ld gas gprof"
3044 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3045 ;;
04d1ab34 3046 *-*-darwin*)
d320aacb 3047 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3048 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3049 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3050 ;;
a0da8069 3051 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3053 ;;
de0b4a87 3054 *-*-freebsd*)
4b1cb4fe
DD
3055 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3056 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3057 && test -f /usr/local/include/gmp.h; then
3058 with_gmp=/usr/local
3059 fi
3060
3061 # Skip some stuff that's unsupported on some FreeBSD configurations.
3062 case "${target}" in
3063 i*86-*-*) ;;
3064 alpha*-*-*) ;;
143754cd 3065 x86_64-*-*) ;;
4b1cb4fe 3066 *)
54d1c879 3067 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3068 ;;
3069 esac
3070 ;;
f8a495c8
NC
3071 *-*-kaos*)
3072 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3073 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3074 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3075 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3076 noconfigdirs="$noconfigdirs target-libgloss"
3077 ;;
a0da8069
NN
3078 *-*-netbsd*)
3079 # Skip some stuff on all NetBSD configurations.
3080 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3081
3082 # Skip some stuff that's unsupported on some NetBSD configurations.
3083 case "${target}" in
3084 i*86-*-netbsdelf*) ;;
5b474aa8 3085 arm*-*-netbsdelf*) ;;
a0da8069 3086 *)
54d1c879 3087 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3088 ;;
3089 esac
3090 ;;
2a3124ca 3091 *-*-netware*)
54d1c879 3092 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3093 ;;
3094 *-*-rtems*)
a009f2e7 3095 skipdirs="${skipdirs} target-libiberty"
54d1c879 3096 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3097 ;;
1587117a
EC
3098 # The tpf target doesn't support gdb yet.
3099 *-*-tpf*)
54d1c879 3100 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3101 ;;
c1968181 3102 *-*-uclinux*)
54d1c879 3103 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3104 ;;
a0da8069 3105 *-*-vxworks*)
54d1c879 3106 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3107 ;;
3108 alpha*-dec-osf*)
3109 # ld works, but does not support shared libraries.
3110 # newlib is not 64 bit ready. I'm not sure about fileutils.
3111 # gas doesn't generate exception information.
3112 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3113 ;;
3114 alpha*-*-*vms*)
d594eacc 3115 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3116 ;;
3117 alpha*-*-linux*)
3118 # newlib is not 64 bit ready
3119 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3120 ;;
a0da8069
NN
3121 alpha*-*-*)
3122 # newlib is not 64 bit ready
54d1c879 3123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3124 ;;
4a18bd6b 3125 am33_2.0-*-linux*)
54d1c879 3126 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3127 ;;
a0da8069 3128 sh-*-linux*)
54d1c879 3129 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3130 ;;
a0da8069 3131 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3132 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3133 noconfigdirs="$noconfigdirs target-examples"
3134 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3135 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3136 noconfigdirs="$noconfigdirs expect dejagnu"
3137 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3138 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3139 noconfigdirs="$noconfigdirs target-newlib"
3140 case "${host}" in
3141 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3142 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3143 ;;
3144 esac
691bb5a1 3145 libgloss_dir=wince
a0da8069
NN
3146 ;;
3147 arc-*-*)
54d1c879 3148 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3149 ;;
caeba88f 3150 arm-semi-aof )
caeba88f 3151 ;;
a0da8069 3152 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3153 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3154 libgloss_dir=arm
a0da8069 3155 ;;
11b04d1f 3156 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3157 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3158 libgloss_dir=arm
a0da8069 3159 ;;
bd70a46f 3160 arm*-*-linux-gnueabi)
6d18b86b 3161 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3162 case ${with_newlib} in
3163 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3164 esac
691bb5a1 3165 libgloss_dir=arm
bd70a46f 3166 ;;
df4a6958 3167 arm*-*-symbianelf*)
54d1c879 3168 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3169 libgloss_dir=arm
df4a6958 3170 ;;
a0da8069 3171 arm-*-pe*)
54d1c879 3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3173 ;;
a0da8069 3174 thumb-*-coff)
54d1c879 3175 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3176 ;;
3177 thumb-*-elf)
54d1c879 3178 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3179 ;;
a0da8069 3180 thumb-*-pe)
54d1c879 3181 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3182 ;;
3183 arm-*-riscix*)
54d1c879 3184 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3185 ;;
3186 avr-*-*)
266df637 3187 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3188 ;;
376a0e54 3189 bfin-*-*)
df51e4e1
JZ
3190 unsupported_languages="$unsupported_languages java"
3191 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3192 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3193 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3194 fi
3195 ;;
a0da8069 3196 c4x-*-* | tic4x-*-*)
54d1c879 3197 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3198 ;;
3199 c54x*-*-* | tic54x-*-*)
54d1c879 3200 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3201 ;;
52310858
NC
3202 cr16-*-*)
3203 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3204 ;;
c7e66c6d 3205 cris-*-* | crisv32-*-*)
59f7ec45 3206 unsupported_languages="$unsupported_languages java"
c7e66c6d 3207 case "${target}" in
2faa2958 3208 *-*-aout)
096f7d00 3209 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3210 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3211 *-*-elf)
5e818318 3212 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3213 *-*-linux*)
5e818318 3214 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3215 *)
096f7d00 3216 unsupported_languages="$unsupported_languages fortran"
54d1c879 3217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3218 esac
691bb5a1 3219 libgloss_dir=cris
a0da8069 3220 ;;
3e707e94 3221 crx-*-*)
54d1c879 3222 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3223 ;;
a0da8069 3224 d10v-*-*)
54d1c879 3225 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3226 ;;
3227 d30v-*-*)
54d1c879 3228 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3229 ;;
691bb5a1
DD
3230 ep9312-*-elf | ep9312-*-coff)
3231 libgloss_dir=arm
3232 ;;
a0da8069 3233 fr30-*-elf*)
54d1c879 3234 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3235 ;;
3236 frv-*-*)
54d1c879 3237 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3238 ;;
20135e4c
NC
3239 moxie-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj}"
3241 noconfigdirs="$noconfigdirs gprof"
3242 ;;
a0da8069 3243 h8300*-*-*)
54d1c879 3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3245 ;;
3246 h8500-*-*)
54d1c879 3247 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3248 ;;
caeba88f 3249 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3250 ;;
a0da8069
NN
3251 hppa*64*-*-linux* | parisc*64*-*-linux*)
3252 # In this case, it's because the hppa64-linux target is for
3253 # the kernel only at this point and has no libc, and thus no
3254 # headers, crt*.o, etc., all of which are needed by these.
3255 noconfigdirs="$noconfigdirs target-zlib"
3256 ;;
5dcac624
DA
3257 parisc*-*-linux* | hppa*-*-linux*)
3258 ;;
a0da8069 3259 hppa*-*-*elf* | \
a0da8069
NN
3260 hppa*-*-lites* | \
3261 hppa*-*-openbsd* | \
3262 hppa*64*-*-*)
54d1c879 3263 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3264 ;;
3265 hppa*-hp-hpux11*)
3266 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3267 ;;
691bb5a1
DD
3268 hppa*-*-pro*)
3269 libgloss_dir=pa
3270 ;;
a0da8069
NN
3271 hppa*-*-*)
3272 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3273 # build on HP-UX 10.20.
54d1c879 3274 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3275 ;;
b07c2aad 3276 i960-*-*)
54d1c879 3277 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3278 ;;
a0da8069
NN
3279 ia64*-*-elf*)
3280 # No gdb support yet.
675c6968 3281 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3282 ;;
3283 ia64*-**-hpux*)
3284 # No gdb or ld support yet.
54d1c879 3285 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3286 ;;
19e99079
NC
3287 ia64*-*-*vms*)
3288 # No gdb or ld support yet.
3289 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3290 ;;
caeba88f 3291 i370-*-opened*)
caeba88f 3292 ;;
ec11bdc6 3293 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3294 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3295 libgloss_dir=i386
a0da8069 3296 ;;
ec11bdc6 3297 i[3456789]86-*-linux*)
a0da8069
NN
3298 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3299 # not build java stuff by default.
3300 case "${target}" in
3301 *-*-*libc1*)
54d1c879 3302 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3303 esac
3304
3305 # This section makes it possible to build newlib natively on linux.
3306 # If we are using a cross compiler then don't configure newlib.
3307 if test x${is_cross_compiler} != xno ; then
bba45b8b 3308 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3309 fi
3310 noconfigdirs="$noconfigdirs target-libgloss"
3311 # If we are not using a cross compiler, do configure newlib.
3312 # Note however, that newlib will only be configured in this situation
3313 # if the --with-newlib option has been given, because otherwise
3314 # 'target-newlib' will appear in skipdirs.
3315 ;;
1f53ca9a
AO
3316 i[3456789]86-w64-mingw*)
3317 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3318 ;;
3319 i[3456789]86-*-mingw*)
45055374
CV
3320 target_configdirs="$target_configdirs target-winsup"
3321 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3322 ;;
2d1e8239 3323 x86_64-*-mingw*)
2d1e8239 3324 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3325 ;;
a0da8069
NN
3326 *-*-cygwin*)
3327 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3328 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3329 # always build newlib if winsup directory is present.
45055374 3330 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3331 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3332 elif test -d "$srcdir/newlib"; then
45055374 3333 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3334 fi
c6b750e1 3335 ;;
caeba88f
AL
3336 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3337 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3338 ;;
ec11bdc6 3339 i[3456789]86-*-pe)
54d1c879 3340 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3341 ;;
ec11bdc6 3342 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3343 # The linker does not yet know about weak symbols in COFF,
3344 # and is not configured to handle mixed ELF and COFF.
54d1c879 3345 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3346 ;;
ec11bdc6 3347 i[3456789]86-*-sco*)
54d1c879 3348 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3349 ;;
ec11bdc6 3350 i[3456789]86-*-solaris2*)
a0da8069
NN
3351 noconfigdirs="$noconfigdirs target-libgloss"
3352 ;;
ec11bdc6 3353 i[3456789]86-*-sysv4*)
54d1c879 3354 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3355 ;;
ec11bdc6 3356 i[3456789]86-*-beos*)
54d1c879 3357 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3358 ;;
b59bea8a 3359 i[3456789]86-*-rdos*)
2429c060
PB
3360 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3361 ;;
b07c2aad 3362 m32r-*-*)
54d1c879 3363 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3364 ;;
a0da8069 3365 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3366 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3367 libgloss_dir=m68hc11
a0da8069
NN
3368 ;;
3369 m68k-*-elf*)
54d1c879 3370 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3371 ;;
3372 m68k-*-coff*)
54d1c879 3373 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3374 ;;
691bb5a1
DD
3375 m68*-*-* | fido-*-*)
3376 libgloss_dir=m68k
3377 ;;
a0da8069
NN
3378 mcore-*-pe*)
3379 # The EPOC C++ environment does not support exceptions or rtti,
3380 # and so building libstdc++-v3 tends not to always work.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 mmix-*-*)
59f7ec45 3384 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3385 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3386 ;;
3387 mn10200-*-*)
54d1c879 3388 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3389 ;;
3390 mn10300-*-*)
54d1c879 3391 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3392 ;;
4970f871 3393 mt-*-*)
cdb9b172
AH
3394 noconfigdirs="$noconfigdirs sim"
3395 ;;
a0da8069
NN
3396 powerpc-*-aix*)
3397 # copied from rs6000-*-* entry
e8a5fa9c 3398 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3399 ;;
3400 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3401 target_configdirs="$target_configdirs target-winsup"
54d1c879 3402 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3403 # always build newlib.
3404 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3405 ;;
3406 # This is temporary until we can link against shared libraries
3407 powerpcle-*-solaris*)
54d1c879 3408 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3409 libgloss_dir=rs6000
a0da8069
NN
3410 ;;
3411 powerpc-*-beos*)
54d1c879 3412 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3413 ;;
a0da8069 3414 powerpc-*-eabi)
54d1c879 3415 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3416 libgloss_dir=rs6000
caeba88f
AL
3417 ;;
3418 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3419 libgloss_dir=rs6000
a0da8069 3420 ;;
a0da8069 3421 rs6000-*-lynxos*)
54d1c879 3422 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3423 ;;
3424 rs6000-*-aix*)
e8a5fa9c 3425 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3426 ;;
3427 rs6000-*-*)
54d1c879 3428 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3429 ;;
3430 m68k-apollo-*)
54d1c879 3431 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3432 ;;
25a07265 3433 microblaze*)
29821356 3434 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3435 ;;
5bd8be13
RS
3436 mips*-sde-elf*)
3437 skipdirs="$skipdirs target-libiberty"
3438 noconfigdirs="$noconfigdirs ${libgcj}"
3439 if test x$with_newlib = xyes; then
3440 noconfigdirs="$noconfigdirs gprof"
3441 fi
3442 libgloss_dir=mips
3443 ;;
a0da8069 3444 mips*-*-irix5*)
54d1c879 3445 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3446 ;;
3447 mips*-*-irix6*)
a0da8069
NN
3448 # Linking libjava exceeds command-line length limits on at least
3449 # IRIX 6.2, but not on IRIX 6.5.
3450 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3451 # <oldham@codesourcery.com>
54d1c879 3452 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3453 ;;
a0da8069 3454 mips*-*-bsd*)
54d1c879 3455 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3456 ;;
a0da8069
NN
3457 mips*-*-linux*)
3458 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3459 ;;
3460 mips*-*-*)
54d1c879 3461 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3462 libgloss_dir=mips
a0da8069
NN
3463 ;;
3464 romp-*-*)
54d1c879 3465 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3466 ;;
dbf85af7 3467 sh-*-* | sh64-*-*)
a0da8069 3468 case "${host}" in
ec11bdc6
DD
3469 i[3456789]86-*-vsta) ;; # don't add gprof back in
3470 i[3456789]86-*-go32*) ;; # don't add gprof back in
3471 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3472 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3473 esac
e8a5fa9c
RW
3474 case "${target}" in
3475 sh*-*-elf)
3476 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3477 *)
3478 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3479 esac
a0da8069 3480 ;;
691bb5a1
DD
3481 sparclet-*-aout* | sparc86x-*-*)
3482 libgloss_dir=sparc
3483 ;;
a0da8069 3484 sparc-*-elf*)
54d1c879 3485 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3486 ;;
3487 sparc64-*-elf*)
54d1c879 3488 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3489 libgloss_dir=sparc
a0da8069
NN
3490 ;;
3491 sparclite-*-*)
54d1c879 3492 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3493 libgloss_dir=sparc
a0da8069
NN
3494 ;;
3495 sparc-*-sunos4*)
54d1c879 3496 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3497 if test x${is_cross_compiler} != xno ; then
3498 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3499 else
3500 use_gnu_ld=no
3501 fi
3502 ;;
e3c770b1 3503 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3504 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3505 ;;
a0da8069
NN
3506 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3507 ;;
619a3713
JM
3508 tic6x-*-*)
3509 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3510 ;;
a0da8069 3511 v810-*-*)
54d1c879 3512 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3513 ;;
1cd986c5
NC
3514 v850*-*-*)
3515 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3516 ;;
3517 vax-*-vms)
54d1c879 3518 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3519 ;;
3520 vax-*-*)
54d1c879 3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3522 ;;
8b66833e 3523 xtensa*-*-*)
54d1c879 3524 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3525 ;;
a0da8069 3526 ip2k-*-*)
54d1c879 3527 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3528 ;;
29383458 3529 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 ;;
3532 *-*-lynxos*)
54d1c879 3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3534 ;;
a0da8069 3535 *-*-*)
54d1c879 3536 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3537 ;;
3538esac
252b5132 3539
a0da8069
NN
3540# If we aren't building newlib, then don't build libgloss, since libgloss
3541# depends upon some newlib header files.
3542case "${noconfigdirs}" in
3543 *target-libgloss*) ;;
3544 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3545esac
3546
a0da8069
NN
3547# Work in distributions that contain no compiler tools, like Autoconf.
3548tentative_cc=""
3549host_makefile_frag=/dev/null
3550if test -d ${srcdir}/config ; then
3551case "${host}" in
3552 m68k-hp-hpux*)
3553 # Avoid "too much defining" errors from HPUX compiler.
3554 tentative_cc="cc -Wp,-H256000"
3555 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3556 # If it's HP/UX ar, this should be harmless.
3557 RANLIB="ar ts"
3558 ;;
3559 m68k-apollo-sysv*)
3560 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3561 ;;
3562 m68k-apollo-bsd*)
3563 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3564 # chokes on bfd, the compiler won't let you assign integers to enums, and
3565 # other problems. Defining CC to gcc is a questionable way to say "don't use
3566 # the apollo compiler" (the preferred version of GCC could be called cc,
3567 # or whatever), but I'm not sure leaving CC as cc is any better...
3568 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3569 # Used to have BISON=yacc.
3570 tentative_cc=gcc
3571 ;;
3572 m88k-dg-dgux*)
3573 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3574 ;;
3575 m88k-harris-cxux*)
3576 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3577 tentative_cc="cc -Xa"
3578 host_makefile_frag="config/mh-cxux"
3579 ;;
3580 m88k-motorola-sysv*)
3581 ;;
3582 mips*-dec-ultrix*)
3583 tentative_cc="cc -Wf,-XNg1000"
3584 host_makefile_frag="config/mh-decstation"
3585 ;;
3586 mips*-nec-sysv4*)
3587 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3588 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3589 host_makefile_frag="config/mh-necv4"
3590 ;;
3591 mips*-sgi-irix4*)
3592 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3593 # environment. Also bump switch table size so that cp-parse will
3594 # compile. Bump string length limit so linker builds.
3595 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3596 ;;
3597 mips*-*-sysv4*)
3598 host_makefile_frag="config/mh-sysv4"
3599 ;;
3600 mips*-*-sysv*)
3601 # This is for a MIPS running RISC/os 4.52C.
3602
3603 # This is needed for GDB, but needs to be in the top-level make because
3604 # if a library is compiled with the bsd headers and gets linked with the
3605 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3606 # a different size).
3607 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3608 # known except to select the sysv environment. Could we use /proc instead?
3609 # These "sysv environments" and "bsd environments" often end up being a pain.
3610 #
3611 # This is not part of CFLAGS because perhaps not all C compilers have this
3612 # option.
3613 tentative_cc="cc -systype sysv"
3614 ;;
3615 i370-ibm-opened*)
3616 tentative_cc="c89"
3617 ;;
ec11bdc6 3618 i[3456789]86-*-sysv5*)
a0da8069
NN
3619 host_makefile_frag="config/mh-sysv5"
3620 ;;
ec11bdc6 3621 i[3456789]86-*-dgux*)
a0da8069
NN
3622 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3623 host_makefile_frag="config/mh-dgux386"
3624 ;;
ec11bdc6 3625 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3626 # The MetaWare compiler will generate a copyright message unless you
3627 # turn it off by adding the -Hnocopyr flag.
3628 tentative_cc="cc -Hnocopyr"
3629 ;;
ec11bdc6 3630 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3631 # for an NCR 3000 (i486/SVR4) system.
3632 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3633 # This compiler not only emits obnoxious copyright messages every time
3634 # you run it, but it chokes and dies on a whole bunch of GNU source
3635 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3636 tentative_cc="/usr/ccs/ATT/cc"
3637 host_makefile_frag="config/mh-ncr3000"
3638 ;;
ec11bdc6 3639 i[3456789]86-*-sco3.2v5*)
a0da8069 3640 ;;
ec11bdc6 3641 i[3456789]86-*-sco*)
a0da8069
NN
3642 # The native C compiler botches some simple uses of const. Unfortunately,
3643 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3644 tentative_cc="cc -Dconst="
3645 host_makefile_frag="config/mh-sco"
3646 ;;
ec11bdc6 3647 i[3456789]86-*-udk*)
a0da8069
NN
3648 host_makefile_frag="config/mh-sysv5"
3649 ;;
ec11bdc6 3650 i[3456789]86-*-solaris2*)
a0da8069
NN
3651 host_makefile_frag="config/mh-sysv4"
3652 ;;
ec11bdc6 3653 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3654 host_makefile_frag="config/mh-djgpp"
3655 ;;
3656 *-cygwin*)
e33b51a6 3657
81ecdfbb
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3659$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3660echo a >cygwin-cat-check
1f53ca9a 3661if test `cat cygwin-cat-check` = a ; then
8ade07e9 3662 rm cygwin-cat-check
81ecdfbb
RW
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664$as_echo "yes" >&6; }
e33b51a6 3665else
8ade07e9 3666 rm cygwin-cat-check
81ecdfbb
RW
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3670 Please either mount the build directory in binary mode or run the following
3671 commands before running any configure script:
3672set -o igncr
3673export SHELLOPTS
81ecdfbb 3674 " "$LINENO" 5
e33b51a6 3675fi
e33b51a6 3676
a0da8069
NN
3677 host_makefile_frag="config/mh-cygwin"
3678 ;;
8a1599ab 3679 *-mingw*)
84e7906e 3680 host_makefile_frag="config/mh-mingw"
2d1e8239 3681 ;;
a0da8069
NN
3682 *-interix*)
3683 host_makefile_frag="config/mh-interix"
3684 ;;
3685 vax-*-ultrix2*)
3686 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3687 tentative_cc=gcc
3688 ;;
3689 *-*-solaris2*)
3690 host_makefile_frag="config/mh-solaris"
3691 ;;
3692 m68k-sun-sunos*)
3693 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3694 # without overflowing the jump tables (-J says to use a 32 bit table)
3695 tentative_cc="cc -J"
3696 ;;
da888c87 3697 hppa*-hp-hpux10*)
a0da8069 3698 tentative_cc="cc -Wp,-H256000"
da888c87 3699 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3700 ;;
da888c87
PB
3701 hppa*-hp-hpux* | hppa*-*-hiux*)
3702 tentative_cc="cc -Wp,-H256000"
3703 host_makefile_frag="config/mh-pa"
3704 ;;
3705 hppa*-*)
3706 host_makefile_frag="config/mh-pa"
3707 ;;
3708 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3709 tentative_cc="cc -Wp,-H256000"
3710 ;;
3711 rs6000-*-lynxos*)
3712 # /bin/cc is less than useful for our purposes. Always use GCC
3713 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3714 host_makefile_frag="config/mh-lynxrs6k"
3715 ;;
e552509b
ILT
3716 *-*-darwin*)
3717 host_makefile_frag="config/mh-darwin"
0df3d27f 3718 ;;
f6d183c0
PB
3719 powerpc-*-aix*)
3720 host_makefile_frag="config/mh-ppc-aix"
3721 ;;
3722 rs6000-*-aix*)
3723 host_makefile_frag="config/mh-ppc-aix"
3724 ;;
a0da8069
NN
3725 *-*-lynxos*)
3726 # /bin/cc is less than useful for our purposes. Always use GCC
3727 tentative_cc="/bin/gcc"
3728 ;;
3729 *-*-sysv4*)
3730 host_makefile_frag="config/mh-sysv4"
3731 ;;
fe69863c
DD
3732 # This is placed last to prevent interfering with the cases above.
3733 i[3456789]86-*-*)
3734 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3735 host_makefile_frag="config/mh-x86omitfp"
3736 ;;
a0da8069
NN
3737esac
3738fi
3739
9e07f89d
NN
3740# If we aren't going to be using gcc, see if we can extract a definition
3741# of CC from the fragment.
3742# Actually, use the 'pre-extracted' version above.
3743if test -z "${CC}" && test "${build}" = "${host}" ; then
3744 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3745 found=
3746 for dir in $PATH; do
3747 test -z "$dir" && dir=.
3748 if test -f $dir/gcc; then
3749 found=yes
3750 break
3751 fi
3752 done
3753 IFS="$save_ifs"
3754 if test -z "${found}" && test -n "${tentative_cc}" ; then
3755 CC=$tentative_cc
3756 fi
3757fi
3758
3759if test "${build}" != "${host}" ; then
1576798e
PB
3760 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3761 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3762 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3763 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3764 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3765 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3766 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3767 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3768 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3769 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3770 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3771 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3772 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3773else
3774 AR_FOR_BUILD="\$(AR)"
3775 AS_FOR_BUILD="\$(AS)"
512b7dfb 3776 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3777 CXX_FOR_BUILD="\$(CXX)"
3778 GCJ_FOR_BUILD="\$(GCJ)"
3779 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3780 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3781 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3782 LD_FOR_BUILD="\$(LD)"
3783 NM_FOR_BUILD="\$(NM)"
3784 RANLIB_FOR_BUILD="\$(RANLIB)"
3785 WINDRES_FOR_BUILD="\$(WINDRES)"
3786 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3787fi
3788
3789ac_ext=c
c6b750e1
DJ
3790ac_cpp='$CPP $CPPFLAGS'
3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794if test -n "$ac_tool_prefix"; then
3795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3796set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
3799if test "${ac_cv_prog_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3801else
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3814 break 2
3815 fi
3816done
81ecdfbb
RW
3817 done
3818IFS=$as_save_IFS
c6b750e1
DJ
3819
3820fi
3821fi
3822CC=$ac_cv_prog_CC
3823if test -n "$CC"; then
81ecdfbb
RW
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825$as_echo "$CC" >&6; }
c6b750e1 3826else
81ecdfbb
RW
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
c6b750e1
DJ
3829fi
3830
81ecdfbb 3831
c6b750e1
DJ
3832fi
3833if test -z "$ac_cv_prog_CC"; then
3834 ac_ct_CC=$CC
6a9cf61e 3835 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3836set dummy gcc; ac_word=$2
81ecdfbb
RW
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838$as_echo_n "checking for $ac_word... " >&6; }
3839if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3841else
3842 if test -n "$ac_ct_CC"; then
3843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3852 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3854 break 2
3855 fi
3856done
81ecdfbb
RW
3857 done
3858IFS=$as_save_IFS
c6b750e1
DJ
3859
3860fi
3861fi
3862ac_ct_CC=$ac_cv_prog_ac_ct_CC
3863if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3865$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3866else
81ecdfbb
RW
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
c6b750e1
DJ
3869fi
3870
81ecdfbb
RW
3871 if test "x$ac_ct_CC" = x; then
3872 CC=""
3873 else
3874 case $cross_compiling:$ac_tool_warned in
3875yes:)
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878ac_tool_warned=yes ;;
3879esac
3880 CC=$ac_ct_CC
3881 fi
c6b750e1
DJ
3882else
3883 CC="$ac_cv_prog_CC"
3884fi
3885
3886if test -z "$CC"; then
81ecdfbb
RW
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3889set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891$as_echo_n "checking for $ac_word... " >&6; }
3892if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
9e07f89d
NN
3894else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897else
c6b750e1
DJ
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3905 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3907 break 2
3908 fi
3909done
81ecdfbb
RW
3910 done
3911IFS=$as_save_IFS
c6b750e1 3912
9e07f89d
NN
3913fi
3914fi
c6b750e1 3915CC=$ac_cv_prog_CC
9e07f89d 3916if test -n "$CC"; then
81ecdfbb
RW
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3918$as_echo "$CC" >&6; }
c6b750e1 3919else
81ecdfbb
RW
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921$as_echo "no" >&6; }
c6b750e1
DJ
3922fi
3923
c6b750e1 3924
81ecdfbb 3925 fi
c6b750e1 3926fi
9e07f89d
NN
3927if test -z "$CC"; then
3928 # Extract the first word of "cc", so it can be a program name with args.
3929set dummy cc; ac_word=$2
81ecdfbb
RW
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
3932if test "${ac_cv_prog_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
9e07f89d
NN
3934else
3935 if test -n "$CC"; then
3936 ac_cv_prog_CC="$CC" # Let the user override the test.
3937else
9e07f89d 3938 ac_prog_rejected=no
c6b750e1
DJ
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3947 ac_prog_rejected=yes
3948 continue
3949 fi
3950 ac_cv_prog_CC="cc"
81ecdfbb 3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3952 break 2
3953 fi
3954done
81ecdfbb
RW
3955 done
3956IFS=$as_save_IFS
c6b750e1 3957
9e07f89d
NN
3958if test $ac_prog_rejected = yes; then
3959 # We found a bogon in the path, so make sure we never use it.
3960 set dummy $ac_cv_prog_CC
3961 shift
c6b750e1 3962 if test $# != 0; then
9e07f89d
NN
3963 # We chose a different compiler from the bogus one.
3964 # However, it has the same basename, so the bogon will be chosen
3965 # first if we set CC to just the basename; use the full file name.
3966 shift
c6b750e1 3967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3968 fi
3969fi
3970fi
3971fi
c6b750e1 3972CC=$ac_cv_prog_CC
9e07f89d 3973if test -n "$CC"; then
81ecdfbb
RW
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975$as_echo "$CC" >&6; }
9e07f89d 3976else
81ecdfbb
RW
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
9e07f89d
NN
3979fi
3980
81ecdfbb 3981
c6b750e1
DJ
3982fi
3983if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
81ecdfbb 3985 for ac_prog in cl.exe
c6b750e1
DJ
3986 do
3987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
3991if test "${ac_cv_prog_CC+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
9e07f89d
NN
3993else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996else
c6b750e1
DJ
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4006 break 2
376a0e54 4007 fi
c6b750e1 4008done
81ecdfbb
RW
4009 done
4010IFS=$as_save_IFS
cac3d6c4 4011
c6b750e1
DJ
4012fi
4013fi
4014CC=$ac_cv_prog_CC
4015if test -n "$CC"; then
81ecdfbb
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017$as_echo "$CC" >&6; }
cac3d6c4 4018else
81ecdfbb
RW
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
9e07f89d 4021fi
cac3d6c4 4022
81ecdfbb 4023
c6b750e1
DJ
4024 test -n "$CC" && break
4025 done
cac3d6c4 4026fi
c6b750e1
DJ
4027if test -z "$CC"; then
4028 ac_ct_CC=$CC
81ecdfbb 4029 for ac_prog in cl.exe
c6b750e1
DJ
4030do
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
cac3d6c4 4037else
c6b750e1
DJ
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4040else
c6b750e1
DJ
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4048 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4050 break 2
4051 fi
4052done
81ecdfbb
RW
4053 done
4054IFS=$as_save_IFS
c6b750e1 4055
cac3d6c4
CM
4056fi
4057fi
c6b750e1
DJ
4058ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4062else
81ecdfbb
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
cac3d6c4 4065fi
376a0e54 4066
81ecdfbb 4067
c6b750e1
DJ
4068 test -n "$ac_ct_CC" && break
4069done
4070
81ecdfbb
RW
4071 if test "x$ac_ct_CC" = x; then
4072 CC=""
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4078ac_tool_warned=yes ;;
4079esac
4080 CC=$ac_ct_CC
4081 fi
c6b750e1
DJ
4082fi
4083
4084fi
4085
4086
81ecdfbb
RW
4087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089as_fn_error "no acceptable C compiler found in \$PATH
4090See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4091
4092# Provide some information about the compiler.
81ecdfbb
RW
4093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4094set X $ac_compile
4095ac_compiler=$2
4096for ac_option in --version -v -V -qversion; do
4097 { { ac_try="$ac_compiler $ac_option >&5"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4105 ac_status=$?
81ecdfbb
RW
4106 if test -s conftest.err; then
4107 sed '10a\
4108... rest of stderr output deleted ...
4109 10q' conftest.err >conftest.er1
4110 cat conftest.er1 >&5
4111 rm -f conftest.er1 conftest.err
4112 fi
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115done
c6b750e1 4116
81ecdfbb 4117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4118/* end confdefs.h. */
4119
4120int
4121main ()
4122{
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128ac_clean_files_save=$ac_clean_files
81ecdfbb 4129ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4130# Try to create an executable without -o first, disregard a.out.
4131# It will help us diagnose broken compilers, and finding out an intuition
4132# of exeext.
81ecdfbb
RW
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4134$as_echo_n "checking for C compiler default output file name... " >&6; }
4135ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4136
4137# The possible output files:
4138ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4139
4140ac_rmfiles=
4141for ac_file in $ac_files
4142do
4143 case $ac_file in
4144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4146 esac
4147done
4148rm -f $ac_rmfiles
4149
4150if { { ac_try="$ac_link_default"
4151case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156$as_echo "$ac_try_echo"; } >&5
4157 (eval "$ac_link_default") 2>&5
c6b750e1 4158 ac_status=$?
81ecdfbb
RW
4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160 test $ac_status = 0; }; then :
4161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4163# in a Makefile. We should not override ac_cv_exeext if it was cached,
4164# so that the user can short-circuit this test for compilers unknown to
4165# Autoconf.
4166for ac_file in $ac_files ''
c6b750e1
DJ
4167do
4168 test -f "$ac_file" || continue
4169 case $ac_file in
81ecdfbb 4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4171 ;;
4172 [ab].out )
4173 # We found the default executable, but exeext='' is most
4174 # certainly right.
4175 break;;
4176 *.* )
81ecdfbb
RW
4177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4178 then :; else
4179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4180 fi
4181 # We set ac_cv_exeext here because the later test for it is not
4182 # safe: cross compilers may not add the suffix if given an `-o'
4183 # argument, so we may need to know it at that point already.
4184 # Even if this section looks crufty: it has the advantage of
4185 # actually working.
c6b750e1
DJ
4186 break;;
4187 * )
4188 break;;
4189 esac
4190done
81ecdfbb
RW
4191test "$ac_cv_exeext" = no && ac_cv_exeext=
4192
c6b750e1 4193else
81ecdfbb
RW
4194 ac_file=''
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4197$as_echo "$ac_file" >&6; }
4198if test -z "$ac_file"; then :
4199 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
81ecdfbb
RW
4202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204{ as_fn_set_status 77
4205as_fn_error "C compiler cannot create executables
4206See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4207fi
c6b750e1 4208ac_exeext=$ac_cv_exeext
c6b750e1 4209
81ecdfbb 4210# Check that the compiler produces executables we can run. If not, either
c6b750e1 4211# the compiler is broken, or we cross compile.
81ecdfbb
RW
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4213$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4214# If not cross compiling, check that we can run a simple program.
4215if test "$cross_compiling" != yes; then
4216 if { ac_try='./$ac_file'
81ecdfbb
RW
4217 { { case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222$as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_try") 2>&5
c6b750e1 4224 ac_status=$?
81ecdfbb
RW
4225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; }; then
c6b750e1
DJ
4227 cross_compiling=no
4228 else
4229 if test "$cross_compiling" = maybe; then
4230 cross_compiling=yes
4231 else
81ecdfbb
RW
4232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4234as_fn_error "cannot run C compiled programs.
c6b750e1 4235If you meant to cross compile, use \`--host'.
81ecdfbb 4236See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4237 fi
4238 fi
4239fi
81ecdfbb
RW
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241$as_echo "yes" >&6; }
c6b750e1 4242
81ecdfbb 4243rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4244ac_clean_files=$ac_clean_files_save
81ecdfbb 4245# Check that the compiler produces executables we can run. If not, either
c6b750e1 4246# the compiler is broken, or we cross compile.
81ecdfbb
RW
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4248$as_echo_n "checking whether we are cross compiling... " >&6; }
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4250$as_echo "$cross_compiling" >&6; }
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4253$as_echo_n "checking for suffix of executables... " >&6; }
4254if { { ac_try="$ac_link"
4255case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260$as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_link") 2>&5
c6b750e1 4262 ac_status=$?
81ecdfbb
RW
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }; then :
c6b750e1
DJ
4265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4266# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4267# work properly (i.e., refer to `conftest.exe'), while it won't with
4268# `rm'.
4269for ac_file in conftest.exe conftest conftest.*; do
4270 test -f "$ac_file" || continue
4271 case $ac_file in
81ecdfbb 4272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4274 break;;
4275 * ) break;;
4276 esac
4277done
4278else
81ecdfbb
RW
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281as_fn_error "cannot compute suffix of executables: cannot compile and link
4282See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4283fi
c6b750e1 4284rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4286$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4287
4288rm -f conftest.$ac_ext
4289EXEEXT=$ac_cv_exeext
4290ac_exeext=$EXEEXT
81ecdfbb
RW
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4292$as_echo_n "checking for suffix of object files... " >&6; }
4293if test "${ac_cv_objext+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
c6b750e1 4295else
81ecdfbb 4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4297/* end confdefs.h. */
4298
4299int
4300main ()
4301{
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307rm -f conftest.o conftest.obj
81ecdfbb
RW
4308if { { ac_try="$ac_compile"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314$as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compile") 2>&5
c6b750e1 4316 ac_status=$?
81ecdfbb
RW
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; then :
4319 for ac_file in conftest.o conftest.obj conftest.*; do
4320 test -f "$ac_file" || continue;
c6b750e1 4321 case $ac_file in
81ecdfbb 4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4324 break;;
4325 esac
4326done
cac3d6c4 4327else
81ecdfbb 4328 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
81ecdfbb
RW
4331{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333as_fn_error "cannot compute suffix of object files: cannot compile
4334See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4335fi
c6b750e1
DJ
4336rm -f conftest.$ac_cv_objext conftest.$ac_ext
4337fi
81ecdfbb
RW
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4339$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4340OBJEXT=$ac_cv_objext
4341ac_objext=$OBJEXT
81ecdfbb
RW
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4343$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4344if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
c6b750e1 4346else
81ecdfbb 4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4348/* end confdefs.h. */
4349
4350int
4351main ()
4352{
4353#ifndef __GNUC__
4354 choke me
4355#endif
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
81ecdfbb 4361if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4362 ac_compiler_gnu=yes
4363else
81ecdfbb 4364 ac_compiler_gnu=no
c6b750e1 4365fi
81ecdfbb 4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4367ac_cv_c_compiler_gnu=$ac_compiler_gnu
4368
4369fi
81ecdfbb
RW
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4371$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4372if test $ac_compiler_gnu = yes; then
4373 GCC=yes
4374else
4375 GCC=
4376fi
c6b750e1
DJ
4377ac_test_CFLAGS=${CFLAGS+set}
4378ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4380$as_echo_n "checking whether $CC accepts -g... " >&6; }
4381if test "${ac_cv_prog_cc_g+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4383else
4384 ac_save_c_werror_flag=$ac_c_werror_flag
4385 ac_c_werror_flag=yes
4386 ac_cv_prog_cc_g=no
4387 CFLAGS="-g"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4389/* end confdefs.h. */
4390
4391int
4392main ()
4393{
4394
4395 ;
4396 return 0;
4397}
4398_ACEOF
81ecdfbb 4399if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4400 ac_cv_prog_cc_g=yes
4401else
81ecdfbb
RW
4402 CFLAGS=""
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h. */
4405
4406int
4407main ()
4408{
4409
4410 ;
4411 return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415
4416else
4417 ac_c_werror_flag=$ac_save_c_werror_flag
4418 CFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h. */
cac3d6c4 4421
81ecdfbb
RW
4422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_cv_prog_cc_g=yes
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4434fi
81ecdfbb 4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4436fi
81ecdfbb
RW
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4441$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4442if test "$ac_test_CFLAGS" = set; then
c6b750e1 4443 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4444elif test $ac_cv_prog_cc_g = yes; then
4445 if test "$GCC" = yes; then
4446 CFLAGS="-g -O2"
4447 else
4448 CFLAGS="-g"
4449 fi
4450else
4451 if test "$GCC" = yes; then
4452 CFLAGS="-O2"
4453 else
4454 CFLAGS=
4455 fi
4456fi
81ecdfbb
RW
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4458$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4459if test "${ac_cv_prog_cc_c89+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
c6b750e1 4461else
81ecdfbb 4462 ac_cv_prog_cc_c89=no
c6b750e1 4463ac_save_CC=$CC
81ecdfbb 4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4465/* end confdefs.h. */
4466#include <stdarg.h>
4467#include <stdio.h>
4468#include <sys/types.h>
4469#include <sys/stat.h>
4470/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4471struct buf { int x; };
4472FILE * (*rcsopen) (struct buf *, struct stat *, int);
4473static char *e (p, i)
4474 char **p;
4475 int i;
4476{
4477 return p[i];
4478}
4479static char *f (char * (*g) (char **, int), char **p, ...)
4480{
4481 char *s;
4482 va_list v;
4483 va_start (v,p);
4484 s = g (p, va_arg (v,int));
4485 va_end (v);
4486 return s;
4487}
4488
4489/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4490 function prototypes and stuff, but not '\xHH' hex character constants.
4491 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4492 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4494 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4495 that's true only with -std. */
c6b750e1
DJ
4496int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4497
81ecdfbb
RW
4498/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4499 inside strings and character constants. */
4500#define FOO(x) 'x'
4501int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4502
c6b750e1
DJ
4503int test (int i, double x);
4504struct s1 {int (*f) (int a);};
4505struct s2 {int (*f) (double a);};
4506int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4507int argc;
4508char **argv;
4509int
4510main ()
4511{
4512return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4513 ;
4514 return 0;
4515}
4516_ACEOF
81ecdfbb
RW
4517for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4519do
4520 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4523fi
81ecdfbb
RW
4524rm -f core conftest.err conftest.$ac_objext
4525 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4526done
81ecdfbb 4527rm -f conftest.$ac_ext
c6b750e1
DJ
4528CC=$ac_save_CC
4529
4530fi
81ecdfbb
RW
4531# AC_CACHE_VAL
4532case "x$ac_cv_prog_cc_c89" in
4533 x)
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4535$as_echo "none needed" >&6; } ;;
4536 xno)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538$as_echo "unsupported" >&6; } ;;
c6b750e1 4539 *)
81ecdfbb
RW
4540 CC="$CC $ac_cv_prog_cc_c89"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4542$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4543esac
81ecdfbb 4544if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4545
c6b750e1
DJ
4546fi
4547
c6b750e1
DJ
4548ac_ext=c
4549ac_cpp='$CPP $CPPFLAGS'
4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4553
81ecdfbb 4554ac_ext=cpp
18f6b6ee
PB
4555ac_cpp='$CXXCPP $CPPFLAGS'
4556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4559if test -z "$CXX"; then
4560 if test -n "$CCC"; then
4561 CXX=$CCC
4562 else
4563 if test -n "$ac_tool_prefix"; then
4564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4565 do
4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if test "${ac_cv_prog_CXX+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4572else
4573 if test -n "$CXX"; then
4574 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4585 break 2
4586 fi
4587done
81ecdfbb
RW
4588 done
4589IFS=$as_save_IFS
512b7dfb 4590
18f6b6ee
PB
4591fi
4592fi
4593CXX=$ac_cv_prog_CXX
4594if test -n "$CXX"; then
81ecdfbb
RW
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4596$as_echo "$CXX" >&6; }
18f6b6ee 4597else
81ecdfbb
RW
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
18f6b6ee
PB
4600fi
4601
81ecdfbb 4602
18f6b6ee
PB
4603 test -n "$CXX" && break
4604 done
4605fi
4606if test -z "$CXX"; then
4607 ac_ct_CXX=$CXX
81ecdfbb 4608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4609do
4610 # Extract the first word of "$ac_prog", so it can be a program name with args.
4611set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613$as_echo_n "checking for $ac_word... " >&6; }
4614if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4616else
4617 if test -n "$ac_ct_CXX"; then
4618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4627 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4629 break 2
512b7dfb 4630 fi
18f6b6ee 4631done
81ecdfbb
RW
4632 done
4633IFS=$as_save_IFS
512b7dfb 4634
18f6b6ee
PB
4635fi
4636fi
4637ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4638if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4640$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4641else
81ecdfbb
RW
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
18f6b6ee
PB
4644fi
4645
81ecdfbb 4646
18f6b6ee
PB
4647 test -n "$ac_ct_CXX" && break
4648done
18f6b6ee 4649
81ecdfbb
RW
4650 if test "x$ac_ct_CXX" = x; then
4651 CXX="g++"
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654yes:)
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657ac_tool_warned=yes ;;
4658esac
4659 CXX=$ac_ct_CXX
4660 fi
18f6b6ee
PB
4661fi
4662
81ecdfbb
RW
4663 fi
4664fi
18f6b6ee 4665# Provide some information about the compiler.
81ecdfbb
RW
4666$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4667set X $ac_compile
4668ac_compiler=$2
4669for ac_option in --version -v -V -qversion; do
4670 { { ac_try="$ac_compiler $ac_option >&5"
4671case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674esac
4675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676$as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4678 ac_status=$?
81ecdfbb
RW
4679 if test -s conftest.err; then
4680 sed '10a\
4681... rest of stderr output deleted ...
4682 10q' conftest.err >conftest.er1
4683 cat conftest.er1 >&5
4684 rm -f conftest.er1 conftest.err
4685 fi
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }
4688done
18f6b6ee 4689
81ecdfbb
RW
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4691$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4692if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
18f6b6ee 4694else
81ecdfbb 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4696/* end confdefs.h. */
4697
4698int
4699main ()
4700{
4701#ifndef __GNUC__
4702 choke me
4703#endif
4704
4705 ;
4706 return 0;
4707}
4708_ACEOF
81ecdfbb 4709if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4710 ac_compiler_gnu=yes
4711else
81ecdfbb 4712 ac_compiler_gnu=no
18f6b6ee 4713fi
81ecdfbb 4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4715ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4716
4717fi
81ecdfbb
RW
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4719$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4720if test $ac_compiler_gnu = yes; then
4721 GXX=yes
4722else
4723 GXX=
4724fi
18f6b6ee
PB
4725ac_test_CXXFLAGS=${CXXFLAGS+set}
4726ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4728$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4729if test "${ac_cv_prog_cxx_g+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4733 ac_cxx_werror_flag=yes
4734 ac_cv_prog_cxx_g=no
4735 CXXFLAGS="-g"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4737/* end confdefs.h. */
4738
4739int
4740main ()
4741{
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
81ecdfbb 4747if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4748 ac_cv_prog_cxx_g=yes
4749else
81ecdfbb
RW
4750 CXXFLAGS=""
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4752/* end confdefs.h. */
81ecdfbb 4753
18f6b6ee
PB
4754int
4755main ()
4756{
81ecdfbb 4757
18f6b6ee
PB
4758 ;
4759 return 0;
4760}
4761_ACEOF
81ecdfbb 4762if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4763
81ecdfbb
RW
4764else
4765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4766 CXXFLAGS="-g"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4768/* end confdefs.h. */
81ecdfbb 4769
18f6b6ee
PB
4770int
4771main ()
4772{
81ecdfbb 4773
18f6b6ee
PB
4774 ;
4775 return 0;
4776}
4777_ACEOF
81ecdfbb
RW
4778if ac_fn_cxx_try_compile "$LINENO"; then :
4779 ac_cv_prog_cxx_g=yes
18f6b6ee 4780fi
81ecdfbb
RW
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4789$as_echo "$ac_cv_prog_cxx_g" >&6; }
4790if test "$ac_test_CXXFLAGS" = set; then
4791 CXXFLAGS=$ac_save_CXXFLAGS
4792elif test $ac_cv_prog_cxx_g = yes; then
4793 if test "$GXX" = yes; then
4794 CXXFLAGS="-g -O2"
4795 else
4796 CXXFLAGS="-g"
4797 fi
4798else
4799 if test "$GXX" = yes; then
4800 CXXFLAGS="-O2"
4801 else
4802 CXXFLAGS=
4803 fi
18f6b6ee 4804fi
18f6b6ee
PB
4805ac_ext=c
4806ac_cpp='$CPP $CPPFLAGS'
4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811
4812# We must set the default linker to the linker used by gcc for the correct
4813# operation of libtool. If LD is not defined and we are using gcc, try to
4814# set the LD default to the ld used by gcc.
4815if test -z "$LD"; then
4816 if test "$GCC" = yes; then
4817 case $build in
4818 *-*-mingw*)
4819 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4820 *)
4821 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4822 esac
4823 case $gcc_prog_ld in
4824 # Accept absolute paths.
4825 [\\/]* | [A-Za-z]:[\\/]*)
4826 LD="$gcc_prog_ld" ;;
4827 esac
4828 fi
512b7dfb
PB
4829fi
4830
4831
4832
4833
c6b750e1 4834if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4835 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4836set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
9e07f89d 4841else
512b7dfb
PB
4842 if test -n "$GNATBIND"; then
4843 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4844else
c6b750e1
DJ
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4852 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4854 break 2
4855 fi
4856done
81ecdfbb
RW
4857 done
4858IFS=$as_save_IFS
c6b750e1 4859
9e07f89d
NN
4860fi
4861fi
512b7dfb
PB
4862GNATBIND=$ac_cv_prog_GNATBIND
4863if test -n "$GNATBIND"; then
81ecdfbb
RW
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4865$as_echo "$GNATBIND" >&6; }
9e07f89d 4866else
81ecdfbb
RW
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
9e07f89d
NN
4869fi
4870
81ecdfbb 4871
c6b750e1 4872fi
512b7dfb
PB
4873if test -z "$ac_cv_prog_GNATBIND"; then
4874 ac_ct_GNATBIND=$GNATBIND
4875 # Extract the first word of "gnatbind", so it can be a program name with args.
4876set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878$as_echo_n "checking for $ac_word... " >&6; }
4879if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
9e07f89d 4881else
512b7dfb
PB
4882 if test -n "$ac_ct_GNATBIND"; then
4883 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4884else
c6b750e1
DJ
4885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4892 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4894 break 2
4895 fi
4896done
81ecdfbb
RW
4897 done
4898IFS=$as_save_IFS
c6b750e1 4899
9e07f89d
NN
4900fi
4901fi
512b7dfb
PB
4902ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4903if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4905$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4906else
81ecdfbb
RW
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
9e07f89d
NN
4909fi
4910
81ecdfbb
RW
4911 if test "x$ac_ct_GNATBIND" = x; then
4912 GNATBIND="no"
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915yes:)
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4918ac_tool_warned=yes ;;
4919esac
4920 GNATBIND=$ac_ct_GNATBIND
4921 fi
24ff9987 4922else
512b7dfb 4923 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4924fi
4925
7df2cd5d 4926if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4927 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4928set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
7df2cd5d 4933else
512b7dfb
PB
4934 if test -n "$GNATMAKE"; then
4935 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4944 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4946 break 2
4947 fi
4948done
81ecdfbb
RW
4949 done
4950IFS=$as_save_IFS
7df2cd5d
PB
4951
4952fi
4953fi
512b7dfb
PB
4954GNATMAKE=$ac_cv_prog_GNATMAKE
4955if test -n "$GNATMAKE"; then
81ecdfbb
RW
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4957$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4958else
81ecdfbb
RW
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
7df2cd5d
PB
4961fi
4962
81ecdfbb 4963
7df2cd5d 4964fi
512b7dfb
PB
4965if test -z "$ac_cv_prog_GNATMAKE"; then
4966 ac_ct_GNATMAKE=$GNATMAKE
4967 # Extract the first word of "gnatmake", so it can be a program name with args.
4968set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
4971if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
7df2cd5d 4973else
512b7dfb
PB
4974 if test -n "$ac_ct_GNATMAKE"; then
4975 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4984 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4986 break 2
4987 fi
4988done
81ecdfbb
RW
4989 done
4990IFS=$as_save_IFS
7df2cd5d 4991
7df2cd5d
PB
4992fi
4993fi
512b7dfb
PB
4994ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4995if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4997$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4998else
81ecdfbb
RW
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
7df2cd5d
PB
5001fi
5002
81ecdfbb
RW
5003 if test "x$ac_ct_GNATMAKE" = x; then
5004 GNATMAKE="no"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012 GNATMAKE=$ac_ct_GNATMAKE
5013 fi
7df2cd5d 5014else
512b7dfb 5015 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5016fi
5017
81ecdfbb
RW
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5019$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5020if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
9e07f89d
NN
5022else
5023 cat >conftest.adb <<EOF
5024procedure conftest is begin null; end conftest;
5025EOF
5026acx_cv_cc_gcc_supports_ada=no
5027# There is a bug in old released versions of GCC which causes the
5028# driver to exit successfully when the appropriate language module
5029# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5030# Therefore we must check for the error message as well as an
5031# unsuccessful exit.
b8908782
DD
5032# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5033# given a .adb file, but produce no object file. So we must check
5034# if an object file was really produced to guard against this.
9e07f89d 5035errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5036if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5037 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5038fi
5039rm -f conftest.*
5040fi
81ecdfbb
RW
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5042$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5043
512b7dfb 5044if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5045 have_gnat=yes
5046else
5047 have_gnat=no
5048fi
5049
81ecdfbb
RW
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5051$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5052if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
b8908782
DD
5054else
5055 echo abfoo >t1
5056 echo cdfoo >t2
5057 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5058 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5059 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5060 :
5061 else
5062 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5063 fi
5064 fi
b8908782
DD
5065 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5066 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5067 :
b8908782
DD
5068 else
5069 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5070 fi
5071 fi
5072 rm t1 t2
5073
5074fi
81ecdfbb
RW
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5076$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5077do_compare="$gcc_cv_prog_cmp_skip"
5078
5079
9e07f89d 5080
e8a5fa9c 5081# See if we are building gcc with C++.
81ecdfbb
RW
5082# Check whether --enable-build-with-cxx was given.
5083if test "${enable_build_with_cxx+set}" = set; then :
5084 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5085else
5086 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5087fi
5088
e8a5fa9c 5089
d5f2ee2e
KG
5090# Used for setting $lt_cv_objdir
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5092$as_echo_n "checking for objdir... " >&6; }
5093if test "${lt_cv_objdir+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095else
5096 rm -f .libs 2>/dev/null
5097mkdir .libs 2>/dev/null
5098if test -d .libs; then
5099 lt_cv_objdir=.libs
5100else
5101 # MS-DOS does not allow filenames that begin with a dot.
5102 lt_cv_objdir=_libs
5103fi
5104rmdir .libs 2>/dev/null
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5107$as_echo "$lt_cv_objdir" >&6; }
5108objdir=$lt_cv_objdir
5109
5110
5111
5112
5113
5114cat >>confdefs.h <<_ACEOF
5115#define LT_OBJDIR "$lt_cv_objdir/"
5116_ACEOF
5117
5118
5119
e8a5fa9c 5120# Check for GMP, MPFR and MPC
d9b76ff9 5121gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5122gmpinc=
4b900473 5123have_gmp=no
e8a5fa9c
RW
5124
5125# Specify a location for mpc
5126# check for this first so it ends up on the link line before mpfr.
5127
81ecdfbb
RW
5128# Check whether --with-mpc was given.
5129if test "${with_mpc+set}" = set; then :
5130 withval=$with_mpc;
5131fi
e8a5fa9c 5132
e8a5fa9c 5133
e552509b 5134# Check whether --with-mpc-include was given.
81ecdfbb
RW
5135if test "${with_mpc_include+set}" = set; then :
5136 withval=$with_mpc_include;
5137fi
e8a5fa9c 5138
e8a5fa9c 5139
e552509b 5140# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5141if test "${with_mpc_lib+set}" = set; then :
5142 withval=$with_mpc_lib;
5143fi
e8a5fa9c 5144
e8a5fa9c
RW
5145
5146if test "x$with_mpc" != x; then
d9b76ff9
KG
5147 gmplibs="-L$with_mpc/lib $gmplibs"
5148 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5149fi
5150if test "x$with_mpc_include" != x; then
d9b76ff9 5151 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5152fi
5153if test "x$with_mpc_lib" != x; then
d9b76ff9 5154 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5155fi
5156if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5157 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5158 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5159 # Do not test the mpc version. Assume that it is sufficient, since
5160 # it is in the source tree, and the library has not been built yet
5161 # but it would be included on the link line in the version check below
5162 # hence making the test fail.
d9b76ff9 5163 have_gmp=yes
e8a5fa9c 5164fi
4b900473 5165
11b04d1f
DD
5166# Specify a location for mpfr
5167# check for this first so it ends up on the link line before gmp.
c6b750e1 5168
81ecdfbb
RW
5169# Check whether --with-mpfr-dir was given.
5170if test "${with_mpfr_dir+set}" = set; then :
5171 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5172Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5173fi
5174
11b04d1f
DD
5175
5176
81ecdfbb
RW
5177# Check whether --with-mpfr was given.
5178if test "${with_mpfr+set}" = set; then :
5179 withval=$with_mpfr;
5180fi
c6b750e1 5181
11b04d1f 5182
e552509b 5183# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5184if test "${with_mpfr_include+set}" = set; then :
5185 withval=$with_mpfr_include;
5186fi
c6b750e1 5187
8a0d8a5c 5188
e552509b 5189# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5190if test "${with_mpfr_lib+set}" = set; then :
5191 withval=$with_mpfr_lib;
5192fi
8a0d8a5c 5193
11b04d1f
DD
5194
5195if test "x$with_mpfr" != x; then
5196 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5197 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5198fi
8a0d8a5c 5199if test "x$with_mpfr_include" != x; then
d9b76ff9 5200 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5201fi
5202if test "x$with_mpfr_lib" != x; then
5203 gmplibs="-L$with_mpfr_lib $gmplibs"
5204fi
4b900473 5205if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5206 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5207 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5208 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5209 # Do not test the mpfr version. Assume that it is sufficient, since
5210 # it is in the source tree, and the library has not been built yet
5211 # but it would be included on the link line in the version check below
5212 # hence making the test fail.
5213 have_gmp=yes
5214fi
11b04d1f 5215
4b1cb4fe 5216# Specify a location for gmp
c6b750e1 5217
81ecdfbb
RW
5218# Check whether --with-gmp-dir was given.
5219if test "${with_gmp_dir+set}" = set; then :
5220 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5221Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5222fi
5223
4b1cb4fe
DD
5224
5225
81ecdfbb
RW
5226# Check whether --with-gmp was given.
5227if test "${with_gmp+set}" = set; then :
5228 withval=$with_gmp;
5229fi
c6b750e1 5230
4b1cb4fe 5231
e552509b 5232# Check whether --with-gmp-include was given.
81ecdfbb
RW
5233if test "${with_gmp_include+set}" = set; then :
5234 withval=$with_gmp_include;
5235fi
c6b750e1 5236
8a0d8a5c 5237
e552509b 5238# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5239if test "${with_gmp_lib+set}" = set; then :
5240 withval=$with_gmp_lib;
5241fi
8a0d8a5c
PB
5242
5243
4b1cb4fe 5244
11b04d1f
DD
5245if test "x$with_gmp" != x; then
5246 gmplibs="-L$with_gmp/lib $gmplibs"
5247 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5248fi
8a0d8a5c
PB
5249if test "x$with_gmp_include" != x; then
5250 gmpinc="-I$with_gmp_include $gmpinc"
5251fi
5252if test "x$with_gmp_lib" != x; then
5253 gmplibs="-L$with_gmp_lib $gmplibs"
5254fi
4b900473 5255if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5256 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5257 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5258 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5259 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5260 # Do not test the gmp version. Assume that it is sufficient, since
5261 # it is in the source tree, and the library has not been built yet
5262 # but it would be included on the link line in the version check below
5263 # hence making the test fail.
5264 have_gmp=yes
5265fi
4b1cb4fe 5266
ceb92e78 5267if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5268 have_gmp=yes
5269 saved_CFLAGS="$CFLAGS"
5270 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5271 # Check for the recommended and required versions of GMP.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5273$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5274
5275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5276/* end confdefs.h. */
5277#include "gmp.h"
5278int
5279main ()
5280{
5281
5282 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5283 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5284 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5285 choke me
5286 #endif
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5294/* end confdefs.h. */
a6b5846e 5295#include <gmp.h>
c6b750e1
DJ
5296int
5297main ()
5298{
4b1cb4fe 5299
a6b5846e
KG
5300 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5301 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5302 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5303 choke me
5304 #endif
c6b750e1
DJ
5305
5306 ;
5307 return 0;
5308}
5309_ACEOF
81ecdfbb
RW
5310if ac_fn_c_try_compile "$LINENO"; then :
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312$as_echo "yes" >&6; }
a6b5846e
KG
5313else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5315$as_echo "buggy but acceptable" >&6; }
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5318else
81ecdfbb
RW
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5321fi
81ecdfbb 5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5323
e8a5fa9c 5324 # If we have GMP, check the MPFR version.
4b900473 5325 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5326 # Check for the recommended and required versions of MPFR.
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5328$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5330/* end confdefs.h. */
9b134994 5331#include <gmp.h>
4b900473 5332 #include <mpfr.h>
c6b750e1
DJ
5333int
5334main ()
5335{
9b134994 5336
ef699244 5337 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5338 choke me
5339 #endif
c6b750e1
DJ
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
81ecdfbb
RW
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5347/* end confdefs.h. */
4b1cb4fe 5348#include <gmp.h>
4b900473 5349 #include <mpfr.h>
c6b750e1
DJ
5350int
5351main ()
5352{
9dbaa842 5353
a6b5846e 5354 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5355 choke me
5356 #endif
e8a5fa9c
RW
5357
5358 ;
5359 return 0;
5360}
5361_ACEOF
81ecdfbb
RW
5362if ac_fn_c_try_compile "$LINENO"; then :
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364$as_echo "yes" >&6; }
e8a5fa9c 5365else
81ecdfbb
RW
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5367$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5368fi
81ecdfbb 5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5370else
81ecdfbb
RW
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5373fi
81ecdfbb 5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5375 fi
5376
5377 # Check for the MPC header version.
d9b76ff9 5378 if test x"$have_gmp" = xyes ; then
a6b5846e 5379 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5381$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5383/* end confdefs.h. */
5384#include <mpc.h>
5385int
5386main ()
5387{
5388
a6b5846e
KG
5389 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5390 choke me
5391 #endif
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h. */
5400#include <mpc.h>
5401int
5402main ()
5403{
5404
5405 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5406 choke me
5407 #endif
5408
5409 ;
5410 return 0;
5411}
5412_ACEOF
81ecdfbb
RW
5413if ac_fn_c_try_compile "$LINENO"; then :
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5415$as_echo "yes" >&6; }
a6b5846e
KG
5416else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5418$as_echo "buggy but acceptable" >&6; }
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5421else
81ecdfbb 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5423$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5424fi
81ecdfbb 5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5426 fi
5427
5428 # Now check the MPFR library.
5429 if test x"$have_gmp" = xyes; then
5430 saved_LIBS="$LIBS"
5431 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5433$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5435/* end confdefs.h. */
d9b76ff9 5436#include <mpc.h>
e8a5fa9c
RW
5437int
5438main ()
5439{
5440
5441 mpfr_t n;
5442 mpfr_t x;
d9b76ff9 5443 mpc_t c;
e8a5fa9c
RW
5444 int t;
5445 mpfr_init (n);
5446 mpfr_init (x);
5447 mpfr_atan2 (n, n, x, GMP_RNDN);
5448 mpfr_erfc (n, x, GMP_RNDN);
5449 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5450 mpfr_clear(n);
5451 mpfr_clear(x);
5452 mpc_init2 (c, 53);
5453 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5454 mpc_cosh (c, c, MPC_RNDNN);
5455 mpc_pow (c, c, c, MPC_RNDNN);
5456 mpc_acosh (c, c, MPC_RNDNN);
5457 mpc_clear (c);
c6b750e1
DJ
5458
5459 ;
5460 return 0;
5461}
5462_ACEOF
81ecdfbb
RW
5463if ac_fn_c_try_link "$LINENO"; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465$as_echo "yes" >&6; }
c6b750e1 5466else
81ecdfbb
RW
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5469fi
81ecdfbb
RW
5470rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5472 LIBS="$saved_LIBS"
5473 fi
5474
4b900473 5475 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5476
a6b5846e
KG
5477# The library versions listed in the error message below should match
5478# the HARD-minimums enforced above.
4b900473 5479 if test x$have_gmp != xyes; then
a6b5846e 5480 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5481Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5482their locations. Source code for these libraries can be found at
5483their respective hosting sites as well as at
5484ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5485http://gcc.gnu.org/install/prerequisites.html for additional info. If
5486you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5487make sure that you have installed both the libraries and the header
5488files. They may be located in separate packages." "$LINENO" 5
4b900473 5489 fi
9dbaa842
DD
5490fi
5491
e8a5fa9c
RW
5492# Flags needed for both GMP, MPFR and/or MPC.
5493
5494
5495
4b1cb4fe
DD
5496
5497
5498
29383458
JM
5499# Allow host libstdc++ to be specified for static linking with PPL.
5500
81ecdfbb
RW
5501# Check whether --with-host-libstdcxx was given.
5502if test "${with_host_libstdcxx+set}" = set; then :
5503 withval=$with_host_libstdcxx;
5504fi
29383458 5505
29383458
JM
5506
5507case $with_host_libstdcxx in
5508 no|yes)
81ecdfbb 5509 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5510 ;;
5511esac
e28c595f 5512
e8a5fa9c
RW
5513# Linker flags to use for stage1 or when not boostrapping.
5514
81ecdfbb
RW
5515# Check whether --with-stage1-ldflags was given.
5516if test "${with_stage1_ldflags+set}" = set; then :
5517 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5518 stage1_ldflags=
5519 else
5520 stage1_ldflags=$withval
5521 fi
5522else
5523 stage1_ldflags=
81ecdfbb
RW
5524fi
5525
e8a5fa9c
RW
5526
5527
5528# Libraries to use for stage1 or when not bootstrapping.
5529
81ecdfbb
RW
5530# Check whether --with-stage1-libs was given.
5531if test "${with_stage1_libs+set}" = set; then :
5532 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5533 stage1_libs=
5534 else
5535 stage1_libs=$withval
5536 fi
5537else
5538 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5539fi
5540
e8a5fa9c
RW
5541
5542
e8a5fa9c
RW
5543# Libraries to use for stage2 and later builds. This defaults to the
5544# argument passed to --with-host-libstdcxx.
5545
81ecdfbb
RW
5546# Check whether --with-boot-libs was given.
5547if test "${with_boot_libs+set}" = set; then :
5548 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5549 poststage1_libs=
5550 else
5551 poststage1_libs=$withval
5552 fi
5553else
5554 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5555fi
5556
e8a5fa9c
RW
5557
5558
143754cd
NC
5559# Linker flags to use for stage2 and later builds.
5560
5561# Check whether --with-boot-ldflags was given.
5562if test "${with_boot_ldflags+set}" = set; then :
5563 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5564 poststage1_ldflags=
5565 else
5566 poststage1_ldflags=$withval
5567 fi
5568else
5569 poststage1_ldflags=
5570 # With --enable-build-with-cxx, default to linking libstdc++ and
5571 # libgcc statically. But if the user explicitly specified the
5572 # libraries to use, trust that they are doing what they want.
5573 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5574 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5575 fi
5576fi
5577
5578
5579
e28c595f 5580# Check for PPL
e8a5fa9c 5581ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5582pplinc=
5583
5584
81ecdfbb
RW
5585# Check whether --with-ppl was given.
5586if test "${with_ppl+set}" = set; then :
5587 withval=$with_ppl;
81ecdfbb 5588fi
e28c595f 5589
e28c595f 5590
e552509b 5591# Check whether --with-ppl-include was given.
81ecdfbb
RW
5592if test "${with_ppl_include+set}" = set; then :
5593 withval=$with_ppl_include;
5594fi
5595
e28c595f 5596
e552509b 5597# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5598if test "${with_ppl_lib+set}" = set; then :
5599 withval=$with_ppl_lib;
5600fi
e28c595f 5601
e28c595f 5602
29383458
JM
5603case $with_ppl in
5604 no)
5605 ppllibs=
5606 ;;
1f53ca9a
AO
5607 "" | yes)
5608 ;;
29383458 5609 *)
e8a5fa9c 5610 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5611 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5612 ;;
5613esac
e28c595f
JM
5614if test "x$with_ppl_include" != x; then
5615 pplinc="-I$with_ppl_include $pplinc"
5616fi
5617if test "x$with_ppl_lib" != x; then
e8a5fa9c 5618 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5619fi
5620if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5621 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
1f53ca9a
AO
5622 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5623 enable_ppl_version_check=no
e28c595f
JM
5624fi
5625
81ecdfbb
RW
5626# Check whether --enable-ppl-version-check was given.
5627if test "${enable_ppl_version_check+set}" = set; then :
5628 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5629else
5630 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5631fi
5632
e28c595f 5633
1f53ca9a 5634if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5635 saved_CFLAGS="$CFLAGS"
5636 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5638$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5640/* end confdefs.h. */
5641#include "ppl_c.h"
5642int
5643main ()
5644{
5645
a009f2e7 5646 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5647 choke me
5648 #endif
5649
5650 ;
5651 return 0;
5652}
5653_ACEOF
81ecdfbb
RW
5654if ac_fn_c_try_compile "$LINENO"; then :
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656$as_echo "yes" >&6; }
e28c595f 5657else
81ecdfbb 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5659$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5660fi
81ecdfbb 5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5662 CFLAGS="$saved_CFLAGS"
5663fi
5664
5665# Flags needed for PPL
5666
5667
5668
5669
5670# Check for CLOOG
e552509b 5671
e28c595f
JM
5672
5673
81ecdfbb
RW
5674# Check whether --with-cloog was given.
5675if test "${with_cloog+set}" = set; then :
5676 withval=$with_cloog;
81ecdfbb
RW
5677fi
5678
e28c595f 5679
e552509b 5680# Check whether --with-cloog-include was given.
81ecdfbb
RW
5681if test "${with_cloog_include+set}" = set; then :
5682 withval=$with_cloog_include;
5683fi
e28c595f 5684
e28c595f 5685
e552509b 5686# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5687if test "${with_cloog_lib+set}" = set; then :
5688 withval=$with_cloog_lib;
5689fi
e28c595f 5690
e28c595f 5691
e552509b
ILT
5692 # Check whether --enable-cloog-backend was given.
5693if test "${enable_cloog_backend+set}" = set; then :
5694 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5695 cloog_backend=isl
5696 elif test "x${enableval}" = "xppl"; then
5697 cloog_backend=ppl
5698 else
5699 cloog_backend=ppl-legacy
5700 fi
5701else
5702 cloog_backend=ppl-legacy
5703fi
5704
5705 # Check whether --enable-cloog-version-check was given.
5706if test "${enable_cloog_version_check+set}" = set; then :
5707 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5708else
5709 ENABLE_CLOOG_CHECK=yes
5710fi
5711
5712
5713 # Initialize clooglibs and clooginc.
5714 case $with_cloog in
5715 no)
5716 clooglibs=
5717 clooginc=
5718 ;;
5719 "" | yes)
5720 ;;
5721 *)
5722 clooglibs="-L$with_cloog/lib"
5723 clooginc="-I$with_cloog/include"
5724 ;;
5725 esac
5726 if test "x${with_cloog_include}" != x ; then
5727 clooginc="-I$with_cloog_include"
5728 fi
5729 if test "x${with_cloog_lib}" != x; then
5730 clooglibs="-L$with_cloog_lib"
5731 fi
5732
5733
5734
5735
5736
1f53ca9a
AO
5737if test "x$with_ppl" = "xno"; then
5738 with_cloog=no
5739fi
e552509b
ILT
5740if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5741 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5742 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5743 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5744fi
5745if test "x$with_cloog" != "xno"; then
1f53ca9a 5746
e552509b
ILT
5747
5748
5749 _cloog_saved_CFLAGS=$CFLAGS
5750 _cloog_saved_CPPFLAGS=$CPPFLAGS
5751 _cloog_saved_LDFLAGS=$LDFLAGS
5752 _cloog_saved_LIBS=$LIBS
5753
5754 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5755
5756 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5757 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5758 LDFLAGS="${LDFLAGS} ${clooglibs}"
5759
5760 case $cloog_backend in
5761 "ppl-legacy")
5762 CFLAGS="${CFLAGS} ${pplinc}"
5763 LDFLAGS="${LDFLAGS} ${ppllibs}"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5765$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5766if test "${gcc_cv_cloog_type+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768else
5769 LIBS="-lcloog ${_cloog_saved_LIBS}"
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772#include "cloog/cloog.h"
5773int
5774main ()
5775{
5776#ifndef CLOOG_PPL_BACKEND
5777 choke me
5778 #endif
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784 gcc_cv_cloog_type="PPL Legacy"
5785else
5786 gcc_cv_cloog_type=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
e28c595f 5790fi
e552509b
ILT
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5792$as_echo "$gcc_cv_cloog_type" >&6; }
5793 ;;
5794 "isl")
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5796$as_echo_n "checking for installed CLooG ISL... " >&6; }
5797if test "${gcc_cv_cloog_type+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h. */
5803#include "cloog/cloog.h"
5804int
5805main ()
5806{
5807cloog_version ()
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813 gcc_cv_cloog_type="ISL"
5814else
5815 gcc_cv_cloog_type=no
e28c595f 5816fi
e552509b
ILT
5817rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
e28c595f 5819fi
e552509b
ILT
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5821$as_echo "$gcc_cv_cloog_type" >&6; }
5822 ;;
5823 "ppl")
5824 CFLAGS="${CFLAGS} ${pplinc}"
5825 LDFLAGS="${LDFLAGS} ${ppllibs}"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5827$as_echo_n "checking for installed CLooG PPL... " >&6; }
5828if test "${gcc_cv_cloog_type+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
e28c595f 5830else
e552509b
ILT
5831 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834#include "cloog/cloog.h"
5835 #include "cloog/ppl/cloog.h"
5836int
5837main ()
5838{
5839cloog_version ()
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_link "$LINENO"; then :
5845 gcc_cv_cloog_type="PPL"
5846else
5847 gcc_cv_cloog_type=no
81ecdfbb 5848fi
e552509b
ILT
5849rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5853$as_echo "$gcc_cv_cloog_type" >&6; }
5854 ;;
5855 *)
5856 gcc_cv_cloog_type=""
5857 esac
5858
5859 case $gcc_cv_cloog_type in
5860 "PPL Legacy")
5861 clooginc="${clooginc}"
5862 clooglibs="${clooglibs} -lcloog"
5863 cloog_org=no
5864 ;;
5865 "ISL")
5866 clooginc="${clooginc} ${_cloogorginc}"
5867 clooglibs="${clooglibs} -lcloog-isl"
5868 cloog_org=yes
5869 ;;
5870 "PPL")
5871 clooginc="${clooginc} ${_cloogorginc}"
5872 clooglibs="${clooglibs} -lcloog-ppl"
5873 cloog_org=yes
5874 ;;
5875 *)
5876 clooglibs=
5877 clooginc=
5878 cloog_org=
5879 ;;
5880 esac
81ecdfbb 5881
e552509b
ILT
5882 LIBS=$_cloog_saved_LIBS
5883 CFLAGS=$_cloog_saved_CFLAGS
5884 CPPFLAGS=$_cloog_saved_CPPFLAGS
5885 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5886
e552509b
ILT
5887
5888
5889
5890
5891 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5892 _cloog_saved_CFLAGS=$CFLAGS
5893 _cloog_saved_LDFLAGS=$LDFLAGS
5894
5895 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5896 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5897
5898 if test "${cloog_org}" = yes ; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5900$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5901if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include "cloog/cloog.h"
5907int
5908main ()
5909{
5910#if CLOOG_VERSION_MAJOR != 0 \
5911 || CLOOG_VERSION_MINOR != 14 \
5912 || CLOOG_VERSION_REVISION < 0
5913 choke me
5914 #endif
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920 gcc_cv_cloog_ct_0_14_0=yes
5921else
5922 gcc_cv_cloog_ct_0_14_0=no
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5927$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5928 elif test "${cloog_org}" = no ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5930$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5931if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933else
81ecdfbb 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5935/* end confdefs.h. */
5936#include "cloog/cloog.h"
5937int
5938main ()
5939{
e552509b
ILT
5940#if CLOOG_VERSION_MAJOR != 0 \
5941 || CLOOG_VERSION_MINOR != 15 \
5942 || CLOOG_VERSION_REVISION < 5
5943 choke me
5944 #endif
e28c595f
JM
5945 ;
5946 return 0;
5947}
5948_ACEOF
a009f2e7
RW
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include "cloog/cloog.h"
5953int
5954main ()
5955{
e552509b
ILT
5956#if CLOOG_VERSION_MAJOR != 0 \
5957 || CLOOG_VERSION_MINOR != 15 \
5958 || CLOOG_VERSION_REVISION < 9
5959 choke me
5960 #endif
a009f2e7
RW
5961 ;
5962 return 0;
5963}
5964_ACEOF
81ecdfbb 5965if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5966 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5967else
e552509b 5968 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5971else
e552509b 5972 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5973fi
81ecdfbb 5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5975fi
e552509b
ILT
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5977$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5978 fi
5979
5980 CFLAGS=$_cloog_saved_CFLAGS
5981 LDFLAGS=$_cloog_saved_LDFLAGS
5982 fi
5983
5984
5985
e28c595f 5986
e28c595f
JM
5987
5988
5989
e552509b
ILT
5990 if test "x${with_cloog}" != x \
5991 || test "x${with_cloog_include}" != x \
5992 || test "x${with_cloog_lib}" != x ; then
5993 graphite_requested=yes
5994 else
5995 graphite_requested=no
5996 fi
5997
5998
5999
6000 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6001 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6002 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6003 clooglibs=
6004 clooginc=
6005 fi
6006
6007 if test "${graphite_requested}" = yes \
6008 && test "x${clooglibs}" = x \
6009 && test "x${clooginc}" = x ; then
6010
6011 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6012 fi
6013
6014
6015fi
6016
700d40ca
ILT
6017# Check for LTO support.
6018# Check whether --enable-lto was given.
6019if test "${enable_lto+set}" = set; then :
6020 enableval=$enable_lto; enable_lto=$enableval
6021else
6022 enable_lto=yes; default_enable_lto=yes
6023fi
6024
6025
143754cd 6026
e49e5c92
DK
6027
6028
6029target_elf=no
6030case $target in
6031 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6032 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6033 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6034 target_elf=no
6035 ;;
6036 *)
6037 target_elf=yes
6038 ;;
6039esac
6040
6041if test $target_elf = yes; then :
74cea91b
DK
6042 # ELF platforms build the lto-plugin always.
6043 build_lto_plugin=yes
e49e5c92 6044
e49e5c92
DK
6045else
6046 if test x"$default_enable_lto" = x"yes" ; then
29821356 6047 case $target in
a8eb3f0a 6048 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6049 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6050 *) enable_lto=no ;;
6051 esac
e49e5c92 6052 else
29821356
RW
6053 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6054 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6055 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6056 # warn during gcc/ subconfigure; unless you're bootstrapping with
6057 # -flto it won't be needed until after installation anyway.
6058 case $target in
a8eb3f0a 6059 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6060 *) if test x"$enable_lto" = x"yes"; then
6061 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6062 fi
6063 ;;
6064 esac
6065 fi
a8eb3f0a 6066 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6067 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6068 case $target in
74cea91b 6069 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6070 *) ;;
6071 esac
74cea91b 6072
e49e5c92
DK
6073fi
6074
700d40ca 6075
e28c595f 6076
947f426e 6077# By default, C is the only stage 1 language.
9b134994 6078stage1_languages=,c,
1d39f329 6079
e8a5fa9c 6080# Target libraries that we bootstrap.
2aa2364a 6081bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6082
9e07f89d
NN
6083# Figure out what language subdirectories are present.
6084# Look if the user specified --enable-languages="..."; if not, use
6085# the environment variable $LANGUAGES if defined. $LANGUAGES might
6086# go away some day.
6087# NB: embedded tabs in this IF block -- do not untabify
6088if test -d ${srcdir}/gcc; then
6089 if test x"${enable_languages+set}" != xset; then
6090 if test x"${LANGUAGES+set}" = xset; then
6091 enable_languages="${LANGUAGES}"
6092 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6093 else
6094 enable_languages=all
6095 fi
6096 else
6097 if test x"${enable_languages}" = x ||
6098 test x"${enable_languages}" = xyes;
6099 then
6100 echo configure.in: --enable-languages needs at least one language argument 1>&2
6101 exit 1
6102 fi
6103 fi
6104 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6105
096f7d00
DE
6106 # 'f95' is the old name for the 'fortran' language. We issue a warning
6107 # and make the substitution.
6108 case ,${enable_languages}, in
6109 *,f95,*)
6110 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6111 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6112 ;;
6113 esac
6114
9e07f89d
NN
6115 # First scan to see if an enabled language requires some other language.
6116 # We assume that a given config-lang.in will list all the language
6117 # front ends it requires, even if some are required indirectly.
6118 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6119 case ${lang_frag} in
6120 ..) ;;
6121 # The odd quoting in the next line works around
6122 # an apparent bug in bash 1.12 on linux.
6123 ${srcdir}/gcc/[*]/config-lang.in) ;;
6124 *)
e552509b
ILT
6125 # From the config-lang.in, get $language, $lang_requires, and
6126 # $lang_requires_boot_languages.
9e07f89d
NN
6127 language=
6128 lang_requires=
e552509b 6129 lang_requires_boot_languages=
9e07f89d 6130 . ${lang_frag}
e552509b 6131 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6132 case ,${enable_languages}, in
6133 *,$other,*) ;;
6134 *,all,*) ;;
6135 *,$language,*)
6136 echo " \`$other' language required by \`$language'; enabling" 1>&2
6137 enable_languages="${enable_languages},${other}"
6138 ;;
6139 esac
6140 done
e552509b
ILT
6141 for other in ${lang_requires_boot_languages} ; do
6142 if test "$other" != "c"; then
6143 case ,${enable_stage1_languages}, in
6144 *,$other,*) ;;
6145 *,all,*) ;;
6146 *)
6147 case ,${enable_languages}, in
6148 *,$language,*)
6149 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6150 enable_stage1_languages="$enable_stage1_languages,${other}"
6151 ;;
6152 esac
6153 ;;
6154 esac
6155 fi
6156 done
9e07f89d
NN
6157 ;;
6158 esac
6159 done
6160
9b134994 6161 new_enable_languages=,c,
700d40ca
ILT
6162
6163 # If LTO is enabled, add the LTO front end.
6164 extra_host_libiberty_configure_flags=
6165 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6166 case ,${enable_languages}, in
6167 *,lto,*) ;;
6168 *) enable_languages="${enable_languages},lto" ;;
6169 esac
a8eb3f0a 6170 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6171 configdirs="$configdirs lto-plugin"
6172 extra_host_libiberty_configure_flags=--enable-shared
6173 fi
6174 fi
6175
6176
9e07f89d 6177 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6178 potential_languages=,c,
9e07f89d
NN
6179
6180 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6181 case ${lang_frag} in
6182 ..) ;;
6183 # The odd quoting in the next line works around
6184 # an apparent bug in bash 1.12 on linux.
6185 ${srcdir}/gcc/[*]/config-lang.in) ;;
6186 *)
c6b750e1 6187 # From the config-lang.in, get $language, $target_libs,
1d39f329 6188 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6189 language=
6190 target_libs=
6191 lang_dirs=
64ce424c 6192 subdir_requires=
9b134994
PB
6193 boot_language=no
6194 build_by_default=yes
9e07f89d 6195 . ${lang_frag}
9b134994
PB
6196 if test x${language} = x; then
6197 echo "${lang_frag} doesn't set \$language." 1>&2
6198 exit 1
6199 fi
6200
1f53ca9a
AO
6201 if test "$language" = "c++" \
6202 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6203 boot_language=yes
6204 fi
6205
9b134994
PB
6206 case ,${enable_languages}, in
6207 *,${language},*)
9e07f89d
NN
6208 # Language was explicitly selected; include it.
6209 add_this_lang=yes
6210 ;;
9b134994
PB
6211 *,all,*)
6212 # 'all' was selected, select it if it is a default language
6213 add_this_lang=${build_by_default}
9e07f89d
NN
6214 ;;
6215 *)
6216 add_this_lang=no
6217 ;;
6218 esac
4b1cb4fe 6219
64ce424c 6220 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6221 for i in $subdir_requires; do
3d3adb43 6222 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6223 case ,${enable_languages}, in
6224 *,${language},*)
6225 # Specifically requested language; tell them.
81ecdfbb 6226 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6227 ;;
6228 *)
6229 # Silently disable.
9b134994 6230 add_this_lang=unsupported
64ce424c
PB
6231 ;;
6232 esac
6233 done
6234
9b134994
PB
6235 # Disable Ada if no preexisting GNAT is available.
6236 case ,${enable_languages},:${language}:${have_gnat} in
6237 *,${language},*:ada:no)
6238 # Specifically requested language; tell them.
81ecdfbb 6239 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6240 ;;
6241 *:ada:no)
6242 # Silently disable.
6243 add_this_lang=unsupported
6244 ;;
6245 esac
6246
59f7ec45
HPN
6247 # Disable a language that is unsupported by the target.
6248 case " $unsupported_languages " in
6249 *" $language "*)
9b134994 6250 add_this_lang=unsupported
59f7ec45
HPN
6251 ;;
6252 esac
6253
4b1cb4fe 6254 case $add_this_lang in
9b134994 6255 unsupported)
9e07f89d 6256 # Remove language-dependent dirs.
1d39f329
NN
6257 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6258 ;;
9b134994
PB
6259 no)
6260 # Remove language-dependent dirs; still show language as supported.
6261 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6262 potential_languages="${potential_languages}${language},"
6263 ;;
6264 yes)
6265 new_enable_languages="${new_enable_languages}${language},"
6266 potential_languages="${potential_languages}${language},"
1d39f329 6267 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
f8dc745f
RW
6268 case "${boot_language}:,$enable_stage1_languages," in
6269 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6270 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6271 case ",$stage1_languages," in
6272 *,$language,* | ,yes, | ,all,) ;;
6273 *) stage1_languages="${stage1_languages}${language}," ;;
6274 esac
e8a5fa9c
RW
6275 # We need to bootstrap any supporting libraries.
6276 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6277 ;;
6278 esac
6279 ;;
9e07f89d
NN
6280 esac
6281 ;;
6282 esac
6283 done
6284
81ecdfbb
RW
6285 # Check whether --enable-stage1-languages was given.
6286if test "${enable_stage1_languages+set}" = set; then :
6287 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6288 ,no,|,,)
6289 # Set it to something that will have no effect in the loop below
6290 enable_stage1_languages=c ;;
6291 ,yes,)
6292 enable_stage1_languages=`echo $new_enable_languages | \
6293 sed -e "s/^,//" -e "s/,$//" ` ;;
6294 *,all,*)
6295 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6296 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6297 esac
6298
6299 # Add "good" languages from enable_stage1_languages to stage1_languages,
6300 # while "bad" languages go in missing_languages. Leave no duplicates.
6301 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6302 case $potential_languages in
6303 *,$i,*)
6304 case $stage1_languages in
6305 *,$i,*) ;;
6306 *) stage1_languages="$stage1_languages$i," ;;
6307 esac ;;
6308 *)
6309 case $missing_languages in
6310 *,$i,*) ;;
6311 *) missing_languages="$missing_languages$i," ;;
6312 esac ;;
6313 esac
6314 done
81ecdfbb
RW
6315fi
6316
9b134994
PB
6317
6318 # Remove leading/trailing commas that were added for simplicity
6319 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6320 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6321 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6322 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6323
9e07f89d 6324 if test "x$missing_languages" != x; then
81ecdfbb 6325 as_fn_error "
27258dd4 6326The following requested languages could not be built: ${missing_languages}
81ecdfbb 6327Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6328 fi
9e07f89d
NN
6329 if test "x$new_enable_languages" != "x$enable_languages"; then
6330 echo The following languages will be built: ${new_enable_languages}
9b134994 6331 enable_languages="$new_enable_languages"
9e07f89d 6332 fi
9b134994 6333
c6b750e1 6334
81ec575a 6335 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6336fi
6337
a6df5a19
PB
6338# Handle --disable-<component> generically.
6339for dir in $configdirs $build_configdirs $target_configdirs ; do
6340 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6341 varname=`echo $dirname | sed -e s/+/_/g`
6342 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6343 noconfigdirs="$noconfigdirs $dir"
6344 fi
6345done
6346
4f0ef2d8 6347# Check for Boehm's garbage collector
81ecdfbb
RW
6348# Check whether --enable-objc-gc was given.
6349if test "${enable_objc_gc+set}" = set; then :
6350 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6351 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6352 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6353 ;;
6354esac
81ecdfbb
RW
6355fi
6356
4f0ef2d8
CD
6357
6358# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6359case ,${enable_languages},:${enable_objc_gc} in
6360 *,objc,*:yes)
4f0ef2d8
CD
6361 # Keep target-boehm-gc if requested for Objective-C.
6362 ;;
4f0ef2d8 6363 *)
d42c4017
DA
6364 # Otherwise remove target-boehm-gc depending on target-libjava.
6365 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6366 noconfigdirs="$noconfigdirs target-boehm-gc"
6367 fi
4f0ef2d8
CD
6368 ;;
6369esac
6370
caeba88f
AL
6371# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6372# $build_configdirs and $target_configdirs.
9e07f89d
NN
6373# If we have the source for $noconfigdirs entries, add them to $notsupp.
6374
6375notsupp=""
6376for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6377 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6378 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6379 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6380 if test -r $srcdir/$dirname/configure ; then
6381 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6382 true
6383 else
6384 notsupp="$notsupp $dir"
6385 fi
6386 fi
6387 fi
caeba88f
AL
6388 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6389 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6390 if test -r $srcdir/$dirname/configure ; then
6391 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6392 true
6393 else
6394 notsupp="$notsupp $dir"
6395 fi
6396 fi
6397 fi
9e07f89d
NN
6398 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6399 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6400 if test -r $srcdir/$dirname/configure ; then
6401 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6402 true
6403 else
6404 notsupp="$notsupp $dir"
6405 fi
6406 fi
6407 fi
6408done
6409
6410# Sometimes the tools are distributed with libiberty but with no other
6411# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6412# Don't let libgcc imply libiberty either.
9e07f89d 6413if test -n "${target_configdirs}" ; then
f86e35b8 6414 libgcc=
9e07f89d
NN
6415 others=
6416 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6417 if test "$i" = "libgcc"; then
6418 libgcc=target-libgcc
6419 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6420 if test -r $srcdir/$i/configure ; then
6421 others=yes;
6422 break;
6423 fi
6424 fi
6425 done
6426 if test -z "${others}" ; then
f86e35b8 6427 target_configdirs=$libgcc
9e07f89d
NN
6428 fi
6429fi
6430
6431# Quietly strip out all directories which aren't configurable in this tree.
6432# This relies on all configurable subdirectories being autoconfiscated, which
6433# is now the case.
6a9cf61e
PB
6434build_configdirs_all="$build_configdirs"
6435build_configdirs=
6436for i in ${build_configdirs_all} ; do
c6b750e1 6437 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6438 if test -f ${srcdir}/$j/configure ; then
6439 build_configdirs="${build_configdirs} $i"
6440 fi
6441done
6442
9e07f89d
NN
6443configdirs_all="$configdirs"
6444configdirs=
6445for i in ${configdirs_all} ; do
6446 if test -f ${srcdir}/$i/configure ; then
6447 configdirs="${configdirs} $i"
6448 fi
6449done
6a9cf61e 6450
9e07f89d
NN
6451target_configdirs_all="$target_configdirs"
6452target_configdirs=
6453for i in ${target_configdirs_all} ; do
c6b750e1 6454 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6455 if test -f ${srcdir}/$j/configure ; then
6456 target_configdirs="${target_configdirs} $i"
6457 fi
6458done
6459
6460# Produce a warning message for the subdirs we can't configure.
6461# This isn't especially interesting in the Cygnus tree, but in the individual
6462# FSF releases, it's important to let people know when their machine isn't
6463# supported by the one or two programs in a package.
6464
6465if test -n "${notsupp}" && test -z "${norecursion}" ; then
6466 # If $appdirs is non-empty, at least one of those directories must still
6467 # be configured, or we error out. (E.g., if the gas release supports a
6468 # specified target in some subdirs but not the gas subdir, we shouldn't
6469 # pretend that all is well.)
6470 if test -n "$appdirs" ; then
6471 for dir in $appdirs ; do
6472 if test -r $dir/Makefile.in ; then
6473 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 appdirs=""
6475 break
6476 fi
6a9cf61e 6477 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6478 appdirs=""
6479 break
6480 fi
6481 fi
6482 done
6483 if test -n "$appdirs" ; then
6484 echo "*** This configuration is not supported by this package." 1>&2
6485 exit 1
6486 fi
6487 fi
6488 # Okay, some application will build, or we don't care to check. Still
6489 # notify of subdirs not getting built.
6490 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6491 echo " ${notsupp}" 1>&2
6492 echo " (Any other directories should still work fine.)" 1>&2
6493fi
6494
6495case "$host" in
6496 *msdosdjgpp*)
6497 enable_gdbtk=no ;;
6498esac
6499
18f6b6ee
PB
6500# To find our prefix, in gcc_cv_tool_prefix.
6501
6502# The user is always right.
6503if test "${PATH_SEPARATOR+set}" != set; then
6504 echo "#! /bin/sh" >conf$$.sh
6505 echo "exit 0" >>conf$$.sh
6506 chmod +x conf$$.sh
6507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6508 PATH_SEPARATOR=';'
6509 else
6510 PATH_SEPARATOR=:
6511 fi
6512 rm -f conf$$.sh
6513fi
6514
6515
6516
6517if test "x$exec_prefix" = xNONE; then
6518 if test "x$prefix" = xNONE; then
6519 gcc_cv_tool_prefix=$ac_default_prefix
6520 else
6521 gcc_cv_tool_prefix=$prefix
6522 fi
6523else
6524 gcc_cv_tool_prefix=$exec_prefix
6525fi
6526
6527# If there is no compiler in the tree, use the PATH only. In any
6528# case, if there is no compiler in the tree nobody should use
6529# AS_FOR_TARGET and LD_FOR_TARGET.
6530if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6531 gcc_version=`cat $srcdir/gcc/BASE-VER`
6532 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6533 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6534 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6535 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6537 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6538else
6539 gcc_cv_tool_dirs=
6540fi
6541
6542if test x$build = x$target && test -n "$md_exec_prefix"; then
6543 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6544fi
6545
6546
6547
9e07f89d
NN
6548copy_dirs=
6549
c6b750e1 6550
81ecdfbb
RW
6551# Check whether --with-build-sysroot was given.
6552if test "${with_build_sysroot+set}" = set; then :
6553 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6554 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6555 fi
6556else
6557 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6558fi
a19b6204
MM
6559
6560
8a6ee3ab 6561
81ecdfbb
RW
6562
6563# Check whether --with-debug-prefix-map was given.
6564if test "${with_debug_prefix_map+set}" = set; then :
6565 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6566 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6567 for debug_map in $withval; do
6568 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6569 done
6570 fi
6571else
6572 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6573fi
6574
8a6ee3ab
JM
6575
6576
7f6ef0c0
PB
6577# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6578# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6579# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6580# We want to ensure that TARGET libraries (which we know are built with
6581# gcc) are built with "-O2 -g", so include those options when setting
6582# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6583if test "x$CFLAGS_FOR_TARGET" = x; then
6584 CFLAGS_FOR_TARGET=$CFLAGS
6585 case " $CFLAGS " in
6586 *" -O2 "*) ;;
6587 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6588 esac
6589 case " $CFLAGS " in
6590 *" -g "* | *" -g3 "*) ;;
6591 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6592 esac
6593fi
6594
6595
6596if test "x$CXXFLAGS_FOR_TARGET" = x; then
6597 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6598 case " $CXXFLAGS " in
6599 *" -O2 "*) ;;
6600 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6601 esac
6602 case " $CXXFLAGS " in
6603 *" -g "* | *" -g3 "*) ;;
6604 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6605 esac
6606fi
6607
6608
9e07f89d
NN
6609# Handle --with-headers=XXX. If the value is not "yes", the contents of
6610# the named directory are copied to $(tooldir)/sys-include.
6611if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6612 if test x${is_cross_compiler} = xno ; then
6613 echo 1>&2 '***' --with-headers is only supported when cross compiling
6614 exit 1
6615 fi
6616 if test x"${with_headers}" != xyes ; then
18f6b6ee 6617 x=${gcc_cv_tool_prefix}
c6b750e1 6618 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6619 fi
6620fi
6621
6622# Handle --with-libs=XXX. If the value is not "yes", the contents of
6623# the name directories are copied to $(tooldir)/lib. Multiple directories
6624# are permitted.
6625if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6626 if test x${is_cross_compiler} = xno ; then
6627 echo 1>&2 '***' --with-libs is only supported when cross compiling
6628 exit 1
6629 fi
6630 if test x"${with_libs}" != xyes ; then
6631 # Copy the libraries in reverse order, so that files in the first named
6632 # library override files in subsequent libraries.
18f6b6ee 6633 x=${gcc_cv_tool_prefix}
9e07f89d 6634 for l in ${with_libs}; do
c6b750e1 6635 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6636 done
6637 fi
6638fi
6639
700d40ca 6640# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6641#
6642# This is done by determining whether or not the appropriate directory
6643# is available, and by checking whether or not specific configurations
6644# have requested that this magic not happen.
c6b750e1
DJ
6645#
6646# The command line options always override the explicit settings in
2429c060
PB
6647# configure.in, and the settings in configure.in override this magic.
6648#
c6b750e1 6649# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6650# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6651# --without-gnu-ld options for the configure script. Similarly, if
6652# the default is to use the included zlib and you don't want to do that,
6653# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6654
6655if test x${use_gnu_as} = x &&
6656 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6657 with_gnu_as=yes
6658 extra_host_args="$extra_host_args --with-gnu-as"
6659fi
6660
6661if test x${use_gnu_ld} = x &&
93f9b408 6662 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6663 with_gnu_ld=yes
6664 extra_host_args="$extra_host_args --with-gnu-ld"
6665fi
6666
700d40ca
ILT
6667if test x${use_included_zlib} = x &&
6668 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6669 :
6670else
6671 with_system_zlib=yes
6672 extra_host_args="$extra_host_args --with-system-zlib"
6673fi
6674
2429c060
PB
6675# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6676# can detect this case.
6677
6678if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6679 with_newlib=yes
6680 extra_host_args="$extra_host_args --with-newlib"
6681fi
6682
9e07f89d
NN
6683# Handle ${copy_dirs}
6684set fnord ${copy_dirs}
6685shift
6686while test $# != 0 ; do
6687 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6688 :
6689 else
6690 echo Copying $1 to $2
6691
6692 # Use the install script to create the directory and all required
6693 # parent directories.
6694 if test -d $2 ; then
6695 :
6696 else
6697 echo >config.temp
6698 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6699 fi
6700
6701 # Copy the directory, assuming we have tar.
6702 # FIXME: Should we use B in the second tar? Not all systems support it.
6703 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6704
6705 # It is the responsibility of the user to correctly adjust all
6706 # symlinks. If somebody can figure out how to handle them correctly
6707 # here, feel free to add the code.
6708
6709 echo $1 > $2/COPIED
6710 fi
6711 shift; shift
6712done
6713
2429c060
PB
6714# Determine a target-dependent exec_prefix that the installed
6715# gcc will search in. Keep this list sorted by triplet, with
6716# the *-*-osname triplets last.
6717md_exec_prefix=
6718case "${target}" in
6719 alpha*-*-*vms*)
6720 md_exec_prefix=/gnu/lib/gcc-lib
6721 ;;
521ec477 6722 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6723 md_exec_prefix=/dev/env/DJDIR/bin
6724 ;;
521ec477 6725 i[34567]86-*-sco3.2v5*)
2429c060
PB
6726 if test $with_gnu_as = yes; then
6727 md_exec_prefix=/usr/gnu/bin
6728 else
6729 md_exec_prefix=/usr/ccs/bin/elf
6730 fi
6731 ;;
6732
6733 mn10300-*-* | \
6734 powerpc-*-chorusos* | \
6735 powerpc*-*-eabi* | \
6736 powerpc*-*-sysv* | \
6737 powerpc*-*-kaos* | \
6738 s390x-ibm-tpf*)
6739 md_exec_prefix=/usr/ccs/bin
6740 ;;
6741 sparc64-*-elf*)
6742 ;;
6743 v850*-*-*)
6744 md_exec_prefix=/usr/ccs/bin
6745 ;;
8b66833e 6746 xtensa*-*-elf*)
2429c060
PB
6747 ;;
6748
6749 *-*-beos* | \
6750 *-*-elf* | \
6751 *-*-hpux* | \
6752 *-*-netware* | \
6753 *-*-nto-qnx* | \
6754 *-*-rtems* | \
6755 *-*-solaris2* | \
521ec477 6756 *-*-sysv[45]* | \
2429c060
PB
6757 *-*-vxworks* | \
6758 *-wrs-windiss)
6759 md_exec_prefix=/usr/ccs/bin
6760 ;;
6761esac
6762
a0da8069
NN
6763extra_arflags_for_target=
6764extra_nmflags_for_target=
6765extra_ranlibflags_for_target=
6766target_makefile_frag=/dev/null
6767case "${target}" in
4e206d7e
DB
6768 mep*-*-*)
6769 target_makefile_frag="config/mt-mep"
6770 ;;
77d7106f
AM
6771 spu-*-*)
6772 target_makefile_frag="config/mt-spu"
6773 ;;
429acdec
RS
6774 mips*-sde-elf*)
6775 target_makefile_frag="config/mt-sde"
6776 ;;
f3b1e08e
RS
6777 mipsisa*-*-elfoabi*)
6778 target_makefile_frag="config/mt-mips-elfoabi"
6779 ;;
e7c8859c
RS
6780 mips*-*-*linux* | mips*-*-gnu*)
6781 target_makefile_frag="config/mt-mips-gnu"
6782 ;;
2a3124ca 6783 *-*-netware*)
a0da8069
NN
6784 target_makefile_frag="config/mt-netware"
6785 ;;
29383458 6786 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6787 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6788 ;;
6789 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6790 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6791 # commands to handle both 32-bit and 64-bit objects. These flags are
6792 # harmless if we're using GNU nm or ar.
6793 extra_arflags_for_target=" -X32_64"
6794 extra_nmflags_for_target=" -B -X32_64"
6795 ;;
92f4e989
JM
6796 *-*-darwin[3-9]*)
6797 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6798 extra_ranlibflags_for_target=" -c"
6799 ;;
6800 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6801 target_makefile_frag="config/mt-wince"
6802 ;;
6803esac
6804
6805alphaieee_frag=/dev/null
6806case $target in
6807 alpha*-*-*)
6808 # This just makes sure to use the -mieee option to build target libs.
6809 # This should probably be set individually by each library.
6810 alphaieee_frag="config/mt-alphaieee"
6811 ;;
6812esac
6813
6814# If --enable-target-optspace always use -Os instead of -O2 to build
6815# the target libraries, similarly if it is not specified, use -Os
6816# on selected platforms.
6817ospace_frag=/dev/null
6818case "${enable_target_optspace}:${target}" in
6819 yes:*)
6820 ospace_frag="config/mt-ospace"
6821 ;;
6822 :d30v-*)
6823 ospace_frag="config/mt-d30v"
6824 ;;
6825 :m32r-* | :d10v-* | :fr30-*)
6826 ospace_frag="config/mt-ospace"
6827 ;;
6828 no:* | :*)
6829 ;;
6830 *)
6831 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6832 ;;
6833esac
6834
a0da8069
NN
6835# Default to using --with-stabs for certain targets.
6836if test x${with_stabs} = x ; then
6837 case "${target}" in
e31d1ea3 6838 mips*-*-irix[56]*)
a0da8069
NN
6839 ;;
6840 mips*-*-* | alpha*-*-osf*)
6841 with_stabs=yes;
6842 extra_host_args="${extra_host_args} --with-stabs"
6843 ;;
6844 esac
6845fi
6846
6847# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6848# them automatically.
6849case "${host}" in
c6b750e1 6850 hppa*64*-*-hpux11*)
a0da8069
NN
6851 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6852 ;;
6853esac
6854
a0da8069
NN
6855# Some systems (e.g., one of the i386-aix systems the gas testers are
6856# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6857tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6858build_tooldir=${tooldir}
6859
a0da8069
NN
6860# Create a .gdbinit file which runs the one in srcdir
6861# and tells GDB to look there for source files.
6862
6863if test -r ${srcdir}/.gdbinit ; then
6864 case ${srcdir} in
6865 .) ;;
6866 *) cat > ./.gdbinit <<EOF
6867# ${NO_EDIT}
6868dir ${srcdir}
6869dir .
6870source ${srcdir}/.gdbinit
6871EOF
6872 ;;
6873 esac
6874fi
6875
a0da8069
NN
6876# Make sure that the compiler is able to generate an executable. If it
6877# can't, we are probably in trouble. We don't care whether we can run the
6878# executable--we might be using a cross compiler--we only care whether it
6879# can be created. At this point the main configure script has set CC.
6880we_are_ok=no
6881echo "int main () { return 0; }" > conftest.c
6882${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6883if test $? = 0 ; then
6884 if test -s conftest || test -s conftest.exe ; then
6885 we_are_ok=yes
6886 fi
c6b750e1 6887fi
a0da8069
NN
6888case $we_are_ok in
6889 no)
6890 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6891 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6892 rm -f conftest*
6893 exit 1
6894 ;;
6895esac
6896rm -f conftest*
6897
6898# The Solaris /usr/ucb/cc compiler does not appear to work.
6899case "${host}" in
6900 sparc-sun-solaris2*)
6901 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6902 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6903 could_use=
6904 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6905 if test -d /opt/cygnus/bin ; then
6906 if test "$could_use" = "" ; then
6907 could_use="/opt/cygnus/bin"
6908 else
6909 could_use="$could_use or /opt/cygnus/bin"
6910 fi
6911 fi
6912 if test "$could_use" = "" ; then
6913 echo "Warning: compilation may fail because you're using"
6914 echo "/usr/ucb/cc. You should change your PATH or CC "
6915 echo "variable and rerun configure."
6916 else
6917 echo "Warning: compilation may fail because you're using"
6918 echo "/usr/ucb/cc, when you should use the C compiler from"
6919 echo "$could_use. You should change your"
6920 echo "PATH or CC variable and rerun configure."
6921 fi
6922 fi
6923 ;;
6924esac
6925
3bbd2f8f 6926# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6927case "${host}" in
6928 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6929 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6930 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6931 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6932esac
6933
3bbd2f8f 6934# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6935# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6936# built executables to PATH.
3bbd2f8f
AL
6937if test "$RPATH_ENVVAR" = PATH; then
6938 GCC_SHLIB_SUBDIR=/shlib
6939else
6940 GCC_SHLIB_SUBDIR=
6941fi
6942
a0da8069
NN
6943# Record target_configdirs and the configure arguments for target and
6944# build configuration in Makefile.
6945target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6946build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6947
2aa2364a
JR
6948# If we are building libgomp, bootstrap it.
6949if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6950 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6951fi
6952
a0da8069
NN
6953# Determine whether gdb needs tk/tcl or not.
6954# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6955# and in that case we want gdb to be built without tk. Ugh!
6956# In fact I believe gdb is the *only* package directly dependent on tk,
6957# so we should be able to put the 'maybe's in unconditionally and
6958# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6959# 100% sure that that's safe though.
c180f501 6960
675c6968 6961gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6962case "$enable_gdbtk" in
6963 no)
6964 GDB_TK="" ;;
c180f501
AC
6965 yes)
6966 GDB_TK="${gdb_tk}" ;;
a0da8069 6967 *)
c180f501
AC
6968 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6969 # distro. Eventually someone will fix this and move Insight, nee
6970 # gdbtk to a separate directory.
6971 if test -d ${srcdir}/gdb/gdbtk ; then
6972 GDB_TK="${gdb_tk}"
6973 else
6974 GDB_TK=""
6975 fi
6976 ;;
a0da8069 6977esac
907be67c
DJ
6978CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6979INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6980
6bd3dfaa 6981# Strip out unwanted targets.
dd12c3a8
NN
6982
6983# While at that, we remove Makefiles if we were started for recursive
6984# configuration, so that the top-level Makefile reconfigures them,
6985# like we used to do when configure itself was recursive.
dd12c3a8 6986
06a51eac
RW
6987# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6988# but now we're fixing up the Makefile ourselves with the additional
6989# commands passed to AC_CONFIG_FILES. Use separate variables
6990# extrasub-{build,host,target} not because there is any reason to split
6991# the substitutions up that way, but only to remain below the limit of
6992# 99 commands in a script, for HP-UX sed.
6993# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6994
81ecdfbb
RW
6995# Check whether --enable-bootstrap was given.
6996if test "${enable_bootstrap+set}" = set; then :
6997 enableval=$enable_bootstrap;
319cab08 6998else
9cb3fa6f 6999 enable_bootstrap=default
81ecdfbb
RW
7000fi
7001
319cab08 7002
9cb3fa6f
PB
7003# Issue errors and warnings for invalid/strange bootstrap combinations.
7004case "$configdirs" in
7005 *gcc*) have_compiler=yes ;;
7006 *) have_compiler=no ;;
7007esac
7008
7009case "$have_compiler:$host:$target:$enable_bootstrap" in
7010 *:*:*:no) ;;
7011
0aed8855 7012 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7013 # and we are in a native configuration.
7014 yes:$build:$build:default)
0aed8855 7015 enable_bootstrap=yes ;;
9cb3fa6f
PB
7016
7017 *:*:*:default)
7018 enable_bootstrap=no ;;
7019
7020 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7021 yes:$build:$build:yes)
9cb3fa6f
PB
7022 ;;
7023
7024 # Other configurations, but we have a compiler. Assume the user knows
7025 # what he's doing.
80911fe1 7026 yes:*:*:yes)
81ecdfbb
RW
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7028$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7029 ;;
7030
7031 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7032 no:*:*:yes)
81ecdfbb 7033 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7034
7035 # Fail if wrong command line
7036 *)
81ecdfbb 7037 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7038 ;;
7039esac
7040
4385ad3c
RW
7041case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7042 *,c++,*:yes:yes) ;;
7043 *:yes:yes)
7044 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7045 ;;
7046esac
7047
16b1ad29
RW
7048case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7049 yes:yes:*\ gold\ *:*,c++,*) ;;
7050 yes:yes:*\ gold\ *:*)
7051 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7052 ;;
7053esac
7054
9cb3fa6f 7055# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7056case $enable_bootstrap in
319cab08 7057 yes)
96655cc4
AO
7058 bootstrap_suffix=bootstrap
7059 BUILD_CONFIG=bootstrap-debug
7060 ;;
319cab08 7061 no)
96655cc4
AO
7062 bootstrap_suffix=no-bootstrap
7063 BUILD_CONFIG=
7064 ;;
319cab08
PB
7065esac
7066
96655cc4
AO
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7068$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7069
7070
7071# Check whether --with-build-config was given.
7072if test "${with_build_config+set}" = set; then :
7073 withval=$with_build_config; case $with_build_config in
7074 yes) with_build_config= ;;
7075 no) with_build_config= BUILD_CONFIG= ;;
7076 esac
7077fi
7078
7079
7080if test "x${with_build_config}" != x; then
7081 BUILD_CONFIG=$with_build_config
7082else
7083 case $BUILD_CONFIG in
7084 bootstrap-debug)
7085 if echo "int f (void) { return 0; }" > conftest.c &&
7086 ${CC} -c conftest.c &&
7087 mv conftest.o conftest.o.g0 &&
7088 ${CC} -c -g conftest.c &&
7089 mv conftest.o conftest.o.g &&
a009f2e7 7090 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7091 :
7092 else
7093 BUILD_CONFIG=
7094 fi
7095 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7096 ;;
7097 esac
7098fi
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7100$as_echo "$BUILD_CONFIG" >&6; }
7101
7102
06a51eac 7103extrasub_build=
6a9cf61e 7104for module in ${build_configdirs} ; do
498d4a71
CF
7105 if test -z "${no_recursion}" \
7106 && test -f ${build_subdir}/${module}/Makefile; then
7107 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7108 rm -f ${build_subdir}/${module}/Makefile
7109 fi
06a51eac 7110 extrasub_build="$extrasub_build
498d4a71
CF
7111/^@if build-$module\$/d
7112/^@endif build-$module\$/d
7113/^@if build-$module-$bootstrap_suffix\$/d
7114/^@endif build-$module-$bootstrap_suffix\$/d"
7115done
06a51eac 7116extrasub_host=
498d4a71 7117for module in ${configdirs} ; do
80911fe1 7118 if test -z "${no_recursion}"; then
8cf39b1b 7119 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7120 if test -f ${file}; then
7121 echo 1>&2 "*** removing ${file} to force reconfigure"
7122 rm -f ${file}
7123 fi
7124 done
498d4a71 7125 fi
06a51eac 7126 extrasub_host="$extrasub_host
498d4a71
CF
7127/^@if $module\$/d
7128/^@endif $module\$/d
7129/^@if $module-$bootstrap_suffix\$/d
7130/^@endif $module-$bootstrap_suffix\$/d"
7131done
06a51eac 7132extrasub_target=
498d4a71
CF
7133for module in ${target_configdirs} ; do
7134 if test -z "${no_recursion}" \
7135 && test -f ${target_subdir}/${module}/Makefile; then
7136 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7137 rm -f ${target_subdir}/${module}/Makefile
7138 fi
e8a5fa9c
RW
7139
7140 # We only bootstrap target libraries listed in bootstrap_target_libs.
7141 case $bootstrap_target_libs in
7142 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7143 *) target_bootstrap_suffix=no-bootstrap ;;
7144 esac
7145
06a51eac 7146 extrasub_target="$extrasub_target
498d4a71
CF
7147/^@if target-$module\$/d
7148/^@endif target-$module\$/d
e8a5fa9c
RW
7149/^@if target-$module-$target_bootstrap_suffix\$/d
7150/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7151done
7152
06a51eac
RW
7153# Do the final fixup along with target modules.
7154extrasub_target="$extrasub_target
6bd3dfaa 7155/^@if /,/^@endif /d"
a0da8069
NN
7156
7157# Create the serialization dependencies. This uses a temporary file.
7158
81ecdfbb
RW
7159# Check whether --enable-serial-configure was given.
7160if test "${enable_serial_configure+set}" = set; then :
7161 enableval=$enable_serial_configure;
7162fi
e6bfb94a
AO
7163
7164
1047cb91
DD
7165case ${enable_serial_configure} in
7166 yes)
7167 enable_serial_build_configure=yes
7168 enable_serial_host_configure=yes
7169 enable_serial_target_configure=yes
7170 ;;
7171esac
7172
a0da8069
NN
7173# These force 'configure's to be done one at a time, to avoid problems
7174# with contention over a shared config.cache.
7175rm -f serdep.tmp
e6bfb94a 7176echo '# serdep.tmp' > serdep.tmp
a0da8069 7177olditem=
1047cb91 7178test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7179for item in ${build_configdirs} ; do
7180 case ${olditem} in
7181 "") ;;
e6bfb94a 7182 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7183 esac
7184 olditem=${item}
7185done
7186olditem=
1047cb91 7187test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7188for item in ${configdirs} ; do
7189 case ${olditem} in
7190 "") ;;
e6bfb94a 7191 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7192 esac
7193 olditem=${item}
7194done
7195olditem=
1047cb91 7196test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7197for item in ${target_configdirs} ; do
7198 case ${olditem} in
7199 "") ;;
e6bfb94a 7200 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7201 esac
7202 olditem=${item}
7203done
7204serialization_dependencies=serdep.tmp
7205
7206
e6bfb94a 7207# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7208# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7209# might not want to pass down to subconfigures. The exception being
7210# --cache-file=/dev/null, which is used to turn off the use of cache
7211# files altogether, and which should be passed on to subconfigures.
7212# Also strip program-prefix, program-suffix, and program-transform-name,
7213# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7214baseargs=
7215keep_next=no
7216skip_next=no
7217eval "set -- $ac_configure_args"
18f6b6ee
PB
7218for ac_arg
7219do
c6b750e1
DJ
7220 if test X"$skip_next" = X"yes"; then
7221 skip_next=no
7222 continue
7223 fi
7224 if test X"$keep_next" = X"yes"; then
7225 case $ac_arg in
7226 *\'*)
7227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7228 esac
7229 baseargs="$baseargs '$ac_arg'"
7230 keep_next=no
7231 continue
7232 fi
7233
7234 # Handle separated arguments. Based on the logic generated by
7235 # autoconf 2.59.
7236 case $ac_arg in
7237 *=* | --config-cache | -C | -disable-* | --disable-* \
7238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7240 | -with-* | --with-* | -without-* | --without-* | --x)
7241 separate_arg=no
7242 ;;
7243 -*)
7244 separate_arg=yes
7245 ;;
7246 *)
7247 separate_arg=no
7248 ;;
7249 esac
7250
7251 case "$ac_arg" in
30167e0a
NC
7252 --cache-file=/dev/null | \
7253 -cache-file=/dev/null )
7254 # Handled here to avoid the test to skip args below.
7255 baseargs="$baseargs '$ac_arg'"
7256 # Assert: $separate_arg should always be no.
7257 keep_next=$separate_arg
7258 ;;
c6b750e1
DJ
7259 --no*)
7260 continue
7261 ;;
7262 --c* | \
7263 --sr* | \
7264 --ho* | \
7265 --bu* | \
7266 --t* | \
7267 --program-* | \
7268 -cache_file* | \
7269 -srcdir* | \
7270 -host* | \
7271 -build* | \
7272 -target* | \
7273 -program-prefix* | \
7274 -program-suffix* | \
7275 -program-transform-name* )
7276 skip_next=$separate_arg
7277 continue
7278 ;;
7279 -*)
7280 # An option. Add it.
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=$separate_arg
7287 ;;
7288 *)
7289 # Either a variable assignment, or a nonopt (triplet). Don't
7290 # pass it down; let the Makefile handle this.
7291 continue
7292 ;;
7293 esac
7294done
7295# Remove the initial space we just introduced and, as these will be
7296# expanded by make, quote '$'.
7297baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7298
f27d4f92
DJ
7299# Add in --program-transform-name, after --program-prefix and
7300# --program-suffix have been applied to it. Autoconf has already
7301# doubled dollar signs and backslashes in program_transform_name; we want
7302# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7303# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7304# Also, because we want to override the logic in subdir configure scripts to
7305# choose program_transform_name, replace any s,x,x, with s,y,y,.
7306sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7307${program_transform_name}
7308EOF_SED
7309gcc_transform_name=`cat conftestsed.out`
7310rm -f conftestsed.out
7311baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7312if test "$silent" = yes; then
7313 baseargs="$baseargs --silent"
7314fi
34a0f3cf 7315baseargs="$baseargs --disable-option-checking"
f27d4f92 7316
4074d5f2
RW
7317# Record and document user additions to sub configure arguments.
7318
7319
7320
7321
a0da8069
NN
7322# For the build-side libraries, we just need to pretend we're native,
7323# and not use the same cache file. Multilibs are neither needed nor
7324# desired.
4074d5f2 7325build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7326
7327# For host modules, accept cache file option, or specification as blank.
7328case "${cache_file}" in
7329"") # empty
7330 cache_file_option="" ;;
7331/* | [A-Za-z]:[\\/]* ) # absolute path
7332 cache_file_option="--cache-file=${cache_file}" ;;
7333*) # relative path
7334 cache_file_option="--cache-file=../${cache_file}" ;;
7335esac
7336
82252c06
NN
7337# Host dirs don't like to share a cache file either, horribly enough.
7338# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7339host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7340
4074d5f2 7341target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7342
7343# Passing a --with-cross-host argument lets the target libraries know
7344# whether they are being built with a cross-compiler or being built
7345# native. However, it would be better to use other mechanisms to make the
7346# sorts of decisions they want to make on this basis. Please consider
7347# this option to be deprecated. FIXME.
7348if test x${is_cross_compiler} = xyes ; then
c6b750e1 7349 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7350fi
7351
938d2b74
RW
7352# Default to --enable-multilib.
7353if test x${enable_multilib} = x ; then
a0da8069 7354 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7355fi
a0da8069
NN
7356
7357# Pass --with-newlib if appropriate. Note that target_configdirs has
7358# changed from the earlier setting of with_newlib.
7359if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7360 target_configargs="--with-newlib ${target_configargs}"
7361fi
7362
95036d20
NN
7363# Different target subdirs use different values of certain variables
7364# (notably CXX). Worse, multilibs use *lots* of different values.
7365# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7366# it doesn't automatically accept command-line overrides of them.
7367# This means it's not safe for target subdirs to share a cache file,
7368# which is disgusting, but there you have it. Hopefully this can be
7369# fixed in future. It's still worthwhile to use a cache file for each
7370# directory. I think.
7371
ae380b45
MS
7372# Pass the appropriate --build, --host, --target and --cache-file arguments.
7373# We need to pass --target, as newer autoconf's requires consistency
7374# for target_alias and gcc doesn't manage it consistently.
4b900473 7375target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7376
a0da8069
NN
7377FLAGS_FOR_TARGET=
7378case " $target_configdirs " in
7379 *" newlib "*)
7380 case " $target_configargs " in
7381 *" --with-newlib "*)
7382 case "$target" in
1f53ca9a
AO
7383 *-cygwin*)
7384 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'
7385 ;;
a0da8069
NN
7386 esac
7387
7388 # If we're not building GCC, don't discard standard headers.
7389 if test -d ${srcdir}/gcc; then
7390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7391
7392 if test "${build}" != "${host}"; then
7393 # On Canadian crosses, CC_FOR_TARGET will have already been set
7394 # by `configure', so we won't have an opportunity to add -Bgcc/
7395 # to it. This is right: we don't want to search that directory
7396 # for binaries, but we want the header files in there, so add
7397 # them explicitly.
e552509b 7398 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7399
7400 # Someone might think of using the pre-installed headers on
7401 # Canadian crosses, in case the installed compiler is not fully
7402 # compatible with the compiler being built. In this case, it
7403 # would be better to flag an error than risking having
7404 # incompatible object files being constructed. We can't
7405 # guarantee that an error will be flagged, but let's hope the
7406 # compiler will do it, when presented with incompatible header
7407 # files.
7408 fi
7409 fi
7410
7411 case "${target}-${is_cross_compiler}" in
ec11bdc6 7412 i[3456789]86-*-linux*-no)
a0da8069
NN
7413 # Here host == target, so we don't need to build gcc,
7414 # so we don't want to discard standard headers.
7415 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7416 ;;
7417 *)
7418 # If we're building newlib, use its generic headers last, but search
7419 # for any libc-related directories first (so make it the last -B
7420 # switch).
7421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7422
7423 # If we're building libgloss, find the startup file, simulator library
7424 # and linker script.
7425 case " $target_configdirs " in
7426 *" libgloss "*)
7427 # Look for startup file, simulator library and maybe linker script.
7428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7429 # Look for libnosys.a in case the target needs it.
7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7431 # Most targets have the linker script in the source directory.
7432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7433 ;;
7434 esac
a0da8069
NN
7435 ;;
7436 esac
7437 ;;
7438 esac
7439 ;;
7440esac
1f53ca9a 7441
45055374 7442case "$target" in
1f53ca9a
AO
7443 x86_64-*mingw* | *-w64-mingw*)
7444 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7445 # however, use a symlink named 'mingw' in ${prefix} .
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7447 ;;
7448 *-mingw*)
7449 # MinGW can't be handled as Cygwin above since it does not use newlib.
7450 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'
7451 ;;
45055374 7452esac
a0da8069 7453
5fbad20a
DD
7454# Allow the user to override the flags for
7455# our build compiler if desired.
c66487f8
NC
7456if test x"${build}" = x"${host}" ; then
7457 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7458 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7459 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7460fi
5fbad20a 7461
a0da8069
NN
7462# On Canadian crosses, we'll be searching the right directories for
7463# the previously-installed cross compiler, so don't bother to add
7464# flags for directories within the install tree of the compiler
7465# being built; programs in there won't even run.
7466if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7467 # Search for pre-installed headers if nothing else fits.
bba45b8b 7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7469fi
7470
7471if test "x${use_gnu_ld}" = x &&
7472 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7473 # Arrange for us to find uninstalled linker scripts.
b00612cc 7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7475fi
7476
a481dbb7
DD
7477# Search for other target-specific linker scripts and such.
7478case "${target}" in
4e206d7e
DB
7479 mep*)
7480 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7481 ;;
7482esac
7483
a0da8069 7484# Makefile fragments.
3e707e94
PB
7485for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7486do
7487 eval fragval=\$$frag
7488 if test $fragval != /dev/null; then
7489 eval $frag=${srcdir}/$fragval
7490 fi
7491done
a0da8069
NN
7492
7493
7494
7495
7496
7497# Miscellanea: directories, flags, etc.
7498
7499
7500
7501
7502
7503
7504
3bbd2f8f 7505
6a9cf61e 7506# Build module lists & subconfigure args.
a0da8069
NN
7507
7508
7509
be01d343
PB
7510# Host module lists & subconfigure args.
7511
7512
7513
911e63d0 7514
be01d343
PB
7515# Target module lists & subconfigure args.
7516
7517
7518
7519# Build tools.
7520
7521
7522
1576798e
PB
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
e552509b 7537
be01d343
PB
7538# Generate default definitions for YACC, M4, LEX and other programs that run
7539# on the build machine. These are used if the Makefile can't locate these
7540# programs in objdir.
7541MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7542
7543for ac_prog in 'bison -y' byacc yacc
7544do
c6b750e1 7545 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7546set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_YACC+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
be01d343
PB
7551else
7552 if test -n "$YACC"; then
7553 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7554else
c6b750e1
DJ
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7562 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7564 break 2
7565 fi
7566done
81ecdfbb
RW
7567 done
7568IFS=$as_save_IFS
c6b750e1 7569
be01d343
PB
7570fi
7571fi
c6b750e1 7572YACC=$ac_cv_prog_YACC
be01d343 7573if test -n "$YACC"; then
81ecdfbb
RW
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7575$as_echo "$YACC" >&6; }
be01d343 7576else
81ecdfbb
RW
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
be01d343
PB
7579fi
7580
81ecdfbb 7581
c6b750e1 7582 test -n "$YACC" && break
be01d343
PB
7583done
7584test -n "$YACC" || YACC="$MISSING bison -y"
7585
7586case " $build_configdirs " in
7587 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7588 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7589esac
7590
7591for ac_prog in bison
7592do
c6b750e1 7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7594set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596$as_echo_n "checking for $ac_word... " >&6; }
7597if test "${ac_cv_prog_BISON+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
be01d343
PB
7599else
7600 if test -n "$BISON"; then
7601 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7602else
c6b750e1
DJ
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7610 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7612 break 2
7613 fi
7614done
81ecdfbb
RW
7615 done
7616IFS=$as_save_IFS
c6b750e1 7617
be01d343
PB
7618fi
7619fi
c6b750e1 7620BISON=$ac_cv_prog_BISON
be01d343 7621if test -n "$BISON"; then
81ecdfbb
RW
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7623$as_echo "$BISON" >&6; }
be01d343 7624else
81ecdfbb
RW
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
be01d343
PB
7627fi
7628
81ecdfbb 7629
c6b750e1 7630 test -n "$BISON" && break
be01d343
PB
7631done
7632test -n "$BISON" || BISON="$MISSING bison"
7633
7634case " $build_configdirs " in
7635 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7636esac
7637
7638for ac_prog in gm4 gnum4 m4
7639do
c6b750e1 7640 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7641set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if test "${ac_cv_prog_M4+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
be01d343
PB
7646else
7647 if test -n "$M4"; then
7648 ac_cv_prog_M4="$M4" # Let the user override the test.
7649else
c6b750e1
DJ
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7657 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7659 break 2
7660 fi
7661done
81ecdfbb
RW
7662 done
7663IFS=$as_save_IFS
c6b750e1 7664
be01d343
PB
7665fi
7666fi
c6b750e1 7667M4=$ac_cv_prog_M4
be01d343 7668if test -n "$M4"; then
81ecdfbb
RW
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7670$as_echo "$M4" >&6; }
be01d343 7671else
81ecdfbb
RW
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
be01d343
PB
7674fi
7675
81ecdfbb 7676
c6b750e1 7677 test -n "$M4" && break
be01d343
PB
7678done
7679test -n "$M4" || M4="$MISSING m4"
7680
7681case " $build_configdirs " in
7682 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7683esac
7684
7685for ac_prog in flex lex
7686do
c6b750e1 7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7688set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690$as_echo_n "checking for $ac_word... " >&6; }
7691if test "${ac_cv_prog_LEX+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
be01d343
PB
7693else
7694 if test -n "$LEX"; then
7695 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7696else
c6b750e1
DJ
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7704 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7706 break 2
7707 fi
7708done
81ecdfbb
RW
7709 done
7710IFS=$as_save_IFS
c6b750e1 7711
be01d343
PB
7712fi
7713fi
c6b750e1 7714LEX=$ac_cv_prog_LEX
be01d343 7715if test -n "$LEX"; then
81ecdfbb
RW
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7717$as_echo "$LEX" >&6; }
be01d343 7718else
81ecdfbb
RW
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
be01d343
PB
7721fi
7722
81ecdfbb 7723
c6b750e1 7724 test -n "$LEX" && break
be01d343
PB
7725done
7726test -n "$LEX" || LEX="$MISSING flex"
7727
7728case " $build_configdirs " in
7729 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7730 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7731esac
7732
7733for ac_prog in flex
7734do
c6b750e1 7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7736set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if test "${ac_cv_prog_FLEX+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
be01d343
PB
7741else
7742 if test -n "$FLEX"; then
7743 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7744else
c6b750e1
DJ
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7752 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7754 break 2
7755 fi
7756done
81ecdfbb
RW
7757 done
7758IFS=$as_save_IFS
c6b750e1 7759
be01d343
PB
7760fi
7761fi
c6b750e1 7762FLEX=$ac_cv_prog_FLEX
be01d343 7763if test -n "$FLEX"; then
81ecdfbb
RW
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7765$as_echo "$FLEX" >&6; }
be01d343 7766else
81ecdfbb
RW
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
be01d343
PB
7769fi
7770
81ecdfbb 7771
c6b750e1 7772 test -n "$FLEX" && break
be01d343
PB
7773done
7774test -n "$FLEX" || FLEX="$MISSING flex"
7775
7776case " $build_configdirs " in
7777 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7778esac
7779
7780for ac_prog in makeinfo
7781do
c6b750e1 7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7783set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
be01d343
PB
7788else
7789 if test -n "$MAKEINFO"; then
7790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7791else
c6b750e1
DJ
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7799 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7801 break 2
7802 fi
7803done
81ecdfbb
RW
7804 done
7805IFS=$as_save_IFS
c6b750e1 7806
be01d343
PB
7807fi
7808fi
c6b750e1 7809MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7810if test -n "$MAKEINFO"; then
81ecdfbb
RW
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7812$as_echo "$MAKEINFO" >&6; }
be01d343 7813else
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
be01d343
PB
7816fi
7817
81ecdfbb 7818
c6b750e1 7819 test -n "$MAKEINFO" && break
be01d343
PB
7820done
7821test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7822
7823case " $build_configdirs " in
7824 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7825 *)
7826
10ad8ef3 7827 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7828 # higher, else we use the "missing" dummy.
7829 if ${MAKEINFO} --version \
10ad8ef3 7830 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7831 :
7832 else
7833 MAKEINFO="$MISSING makeinfo"
7834 fi
7835 ;;
7836
7837esac
a0da8069 7838
be01d343 7839# FIXME: expect and dejagnu may become build tools?
a0da8069 7840
be01d343
PB
7841for ac_prog in expect
7842do
c6b750e1 7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7844set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if test "${ac_cv_prog_EXPECT+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
be01d343
PB
7849else
7850 if test -n "$EXPECT"; then
7851 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7852else
c6b750e1
DJ
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7860 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7862 break 2
7863 fi
7864done
81ecdfbb
RW
7865 done
7866IFS=$as_save_IFS
c6b750e1 7867
be01d343
PB
7868fi
7869fi
c6b750e1 7870EXPECT=$ac_cv_prog_EXPECT
be01d343 7871if test -n "$EXPECT"; then
81ecdfbb
RW
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7873$as_echo "$EXPECT" >&6; }
be01d343 7874else
81ecdfbb
RW
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
be01d343 7877fi
a0da8069 7878
81ecdfbb 7879
c6b750e1 7880 test -n "$EXPECT" && break
be01d343
PB
7881done
7882test -n "$EXPECT" || EXPECT="expect"
a0da8069 7883
be01d343
PB
7884case " $configdirs " in
7885 *" expect "*)
7886 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7887 ;;
7888esac
a0da8069 7889
be01d343
PB
7890for ac_prog in runtest
7891do
c6b750e1 7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7893set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
be01d343
PB
7898else
7899 if test -n "$RUNTEST"; then
7900 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7901else
c6b750e1
DJ
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7909 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7911 break 2
7912 fi
7913done
81ecdfbb
RW
7914 done
7915IFS=$as_save_IFS
c6b750e1 7916
be01d343
PB
7917fi
7918fi
c6b750e1 7919RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7920if test -n "$RUNTEST"; then
81ecdfbb
RW
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7922$as_echo "$RUNTEST" >&6; }
be01d343 7923else
81ecdfbb
RW
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
be01d343 7926fi
a0da8069 7927
81ecdfbb 7928
c6b750e1 7929 test -n "$RUNTEST" && break
be01d343
PB
7930done
7931test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7932
be01d343
PB
7933case " $configdirs " in
7934 *" dejagnu "*)
6b89cc21 7935 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7936 ;;
7937esac
a0da8069
NN
7938
7939
a0da8069 7940# Host tools.
859789af
AC
7941ncn_tool_prefix=
7942test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7943ncn_target_tool_prefix=
7944test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7945
9a819804
AO
7946
7947
7948if test -n "$AR"; then
7949 ac_cv_prog_AR=$AR
7950elif test -n "$ac_cv_prog_AR"; then
7951 AR=$ac_cv_prog_AR
7952fi
7953
7954if test -n "$ac_cv_prog_AR"; then
7955 for ncn_progname in ar; do
7956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7957set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
7960if test "${ac_cv_prog_AR+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
9a819804
AO
7962else
7963 if test -n "$AR"; then
7964 ac_cv_prog_AR="$AR" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7973 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7975 break 2
7976 fi
7977done
81ecdfbb
RW
7978 done
7979IFS=$as_save_IFS
9a819804
AO
7980
7981fi
7982fi
7983AR=$ac_cv_prog_AR
7984if test -n "$AR"; then
81ecdfbb
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7986$as_echo "$AR" >&6; }
9a819804 7987else
81ecdfbb
RW
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
9a819804
AO
7990fi
7991
81ecdfbb 7992
9a819804
AO
7993 done
7994fi
7995
7996for ncn_progname in ar; do
05cbd757
PB
7997 if test -n "$ncn_tool_prefix"; then
7998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7999set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
8002if test "${ac_cv_prog_AR+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
859789af
AC
8004else
8005 if test -n "$AR"; then
8006 ac_cv_prog_AR="$AR" # Let the user override the test.
8007else
c6b750e1
DJ
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8015 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8017 break 2
8018 fi
8019done
81ecdfbb
RW
8020 done
8021IFS=$as_save_IFS
c6b750e1 8022
859789af
AC
8023fi
8024fi
c6b750e1 8025AR=$ac_cv_prog_AR
859789af 8026if test -n "$AR"; then
81ecdfbb
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8028$as_echo "$AR" >&6; }
859789af 8029else
81ecdfbb
RW
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
859789af
AC
8032fi
8033
81ecdfbb 8034
05cbd757
PB
8035 fi
8036 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
859789af 8043else
05cbd757
PB
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8046else
c6b750e1
DJ
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8054 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8056 break 2
8057 fi
8058done
81ecdfbb
RW
8059 done
8060IFS=$as_save_IFS
c6b750e1 8061
859789af
AC
8062fi
8063fi
c6b750e1 8064AR=$ac_cv_prog_AR
05cbd757 8065if test -n "$AR"; then
81ecdfbb
RW
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067$as_echo "$AR" >&6; }
859789af 8068else
81ecdfbb
RW
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
859789af 8071fi
c6b750e1 8072
81ecdfbb 8073
05cbd757
PB
8074 fi
8075 test -n "$ac_cv_prog_AR" && break
8076done
8077
8078if test -z "$ac_cv_prog_AR" ; then
8079 set dummy ar
8080 if test $build = $host ; then
8081 AR="$2"
859789af 8082 else
05cbd757 8083 AR="${ncn_tool_prefix}$2"
859789af 8084 fi
859789af
AC
8085fi
8086
9a819804
AO
8087
8088
8089if test -n "$AS"; then
8090 ac_cv_prog_AS=$AS
8091elif test -n "$ac_cv_prog_AS"; then
8092 AS=$ac_cv_prog_AS
8093fi
8094
8095if test -n "$ac_cv_prog_AS"; then
8096 for ncn_progname in as; do
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if test "${ac_cv_prog_AS+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
9a819804
AO
8103else
8104 if test -n "$AS"; then
8105 ac_cv_prog_AS="$AS" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8114 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8116 break 2
8117 fi
8118done
81ecdfbb
RW
8119 done
8120IFS=$as_save_IFS
9a819804
AO
8121
8122fi
8123fi
8124AS=$ac_cv_prog_AS
8125if test -n "$AS"; then
81ecdfbb
RW
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8127$as_echo "$AS" >&6; }
9a819804 8128else
81ecdfbb
RW
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
9a819804
AO
8131fi
8132
81ecdfbb 8133
9a819804
AO
8134 done
8135fi
8136
8137for ncn_progname in as; do
05cbd757
PB
8138 if test -n "$ncn_tool_prefix"; then
8139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8140set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142$as_echo_n "checking for $ac_word... " >&6; }
8143if test "${ac_cv_prog_AS+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
859789af
AC
8145else
8146 if test -n "$AS"; then
8147 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8148else
8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8156 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8158 break 2
8159 fi
8160done
81ecdfbb
RW
8161 done
8162IFS=$as_save_IFS
c6b750e1 8163
859789af
AC
8164fi
8165fi
c6b750e1 8166AS=$ac_cv_prog_AS
859789af 8167if test -n "$AS"; then
81ecdfbb
RW
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8169$as_echo "$AS" >&6; }
859789af 8170else
81ecdfbb
RW
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172$as_echo "no" >&6; }
859789af
AC
8173fi
8174
81ecdfbb 8175
05cbd757
PB
8176 fi
8177 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
859789af 8184else
05cbd757
PB
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8187else
c6b750e1
DJ
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8195 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8197 break 2
8198 fi
8199done
81ecdfbb
RW
8200 done
8201IFS=$as_save_IFS
c6b750e1 8202
859789af
AC
8203fi
8204fi
c6b750e1 8205AS=$ac_cv_prog_AS
05cbd757 8206if test -n "$AS"; then
81ecdfbb
RW
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208$as_echo "$AS" >&6; }
859789af 8209else
81ecdfbb
RW
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
859789af 8212fi
c6b750e1 8213
81ecdfbb 8214
05cbd757
PB
8215 fi
8216 test -n "$ac_cv_prog_AS" && break
8217done
8218
8219if test -z "$ac_cv_prog_AS" ; then
8220 set dummy as
8221 if test $build = $host ; then
8222 AS="$2"
859789af 8223 else
05cbd757 8224 AS="${ncn_tool_prefix}$2"
859789af 8225 fi
859789af
AC
8226fi
8227
9a819804
AO
8228
8229
8230if test -n "$DLLTOOL"; then
8231 ac_cv_prog_DLLTOOL=$DLLTOOL
8232elif test -n "$ac_cv_prog_DLLTOOL"; then
8233 DLLTOOL=$ac_cv_prog_DLLTOOL
8234fi
8235
8236if test -n "$ac_cv_prog_DLLTOOL"; then
8237 for ncn_progname in dlltool; do
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241$as_echo_n "checking for $ac_word... " >&6; }
8242if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
9a819804
AO
8244else
8245 if test -n "$DLLTOOL"; then
8246 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8247else
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8255 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8257 break 2
8258 fi
8259done
81ecdfbb
RW
8260 done
8261IFS=$as_save_IFS
9a819804
AO
8262
8263fi
8264fi
8265DLLTOOL=$ac_cv_prog_DLLTOOL
8266if test -n "$DLLTOOL"; then
81ecdfbb
RW
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8268$as_echo "$DLLTOOL" >&6; }
9a819804 8269else
81ecdfbb
RW
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
9a819804
AO
8272fi
8273
81ecdfbb 8274
9a819804
AO
8275 done
8276fi
8277
8278for ncn_progname in dlltool; do
05cbd757
PB
8279 if test -n "$ncn_tool_prefix"; then
8280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8281set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
859789af
AC
8286else
8287 if test -n "$DLLTOOL"; then
8288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8289else
c6b750e1
DJ
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8297 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8299 break 2
8300 fi
8301done
81ecdfbb
RW
8302 done
8303IFS=$as_save_IFS
c6b750e1 8304
859789af
AC
8305fi
8306fi
c6b750e1 8307DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8308if test -n "$DLLTOOL"; then
81ecdfbb
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8310$as_echo "$DLLTOOL" >&6; }
859789af 8311else
81ecdfbb
RW
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
859789af
AC
8314fi
8315
81ecdfbb 8316
05cbd757
PB
8317 fi
8318 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
8323if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
859789af 8325else
05cbd757
PB
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8328else
c6b750e1
DJ
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8338 break 2
8339 fi
8340done
81ecdfbb
RW
8341 done
8342IFS=$as_save_IFS
c6b750e1 8343
859789af
AC
8344fi
8345fi
c6b750e1 8346DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8347if test -n "$DLLTOOL"; then
81ecdfbb
RW
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349$as_echo "$DLLTOOL" >&6; }
859789af 8350else
81ecdfbb
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
859789af 8353fi
c6b750e1 8354
81ecdfbb 8355
05cbd757
PB
8356 fi
8357 test -n "$ac_cv_prog_DLLTOOL" && break
8358done
8359
8360if test -z "$ac_cv_prog_DLLTOOL" ; then
8361 set dummy dlltool
8362 if test $build = $host ; then
8363 DLLTOOL="$2"
859789af 8364 else
05cbd757 8365 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8366 fi
859789af
AC
8367fi
8368
9a819804
AO
8369
8370
8371if test -n "$LD"; then
8372 ac_cv_prog_LD=$LD
8373elif test -n "$ac_cv_prog_LD"; then
8374 LD=$ac_cv_prog_LD
8375fi
8376
8377if test -n "$ac_cv_prog_LD"; then
8378 for ncn_progname in ld; do
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if test "${ac_cv_prog_LD+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
9a819804
AO
8385else
8386 if test -n "$LD"; then
8387 ac_cv_prog_LD="$LD" # Let the user override the test.
8388else
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8396 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8398 break 2
8399 fi
8400done
81ecdfbb
RW
8401 done
8402IFS=$as_save_IFS
9a819804
AO
8403
8404fi
8405fi
8406LD=$ac_cv_prog_LD
8407if test -n "$LD"; then
81ecdfbb
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8409$as_echo "$LD" >&6; }
9a819804 8410else
81ecdfbb
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
9a819804
AO
8413fi
8414
81ecdfbb 8415
9a819804
AO
8416 done
8417fi
8418
8419for ncn_progname in ld; do
05cbd757
PB
8420 if test -n "$ncn_tool_prefix"; then
8421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8422set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424$as_echo_n "checking for $ac_word... " >&6; }
8425if test "${ac_cv_prog_LD+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
859789af
AC
8427else
8428 if test -n "$LD"; then
8429 ac_cv_prog_LD="$LD" # Let the user override the test.
8430else
c6b750e1
DJ
8431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432for as_dir in $PATH
8433do
8434 IFS=$as_save_IFS
8435 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8438 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8440 break 2
8441 fi
8442done
81ecdfbb
RW
8443 done
8444IFS=$as_save_IFS
c6b750e1 8445
859789af
AC
8446fi
8447fi
c6b750e1 8448LD=$ac_cv_prog_LD
859789af 8449if test -n "$LD"; then
81ecdfbb
RW
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8451$as_echo "$LD" >&6; }
859789af 8452else
81ecdfbb
RW
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454$as_echo "no" >&6; }
859789af
AC
8455fi
8456
81ecdfbb 8457
05cbd757
PB
8458 fi
8459 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
859789af 8466else
05cbd757
PB
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8469else
c6b750e1
DJ
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8477 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8479 break 2
8480 fi
8481done
81ecdfbb
RW
8482 done
8483IFS=$as_save_IFS
c6b750e1 8484
859789af
AC
8485fi
8486fi
c6b750e1 8487LD=$ac_cv_prog_LD
05cbd757 8488if test -n "$LD"; then
81ecdfbb
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490$as_echo "$LD" >&6; }
859789af 8491else
81ecdfbb
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
859789af 8494fi
c6b750e1 8495
81ecdfbb 8496
05cbd757
PB
8497 fi
8498 test -n "$ac_cv_prog_LD" && break
8499done
8500
8501if test -z "$ac_cv_prog_LD" ; then
8502 set dummy ld
8503 if test $build = $host ; then
8504 LD="$2"
859789af 8505 else
05cbd757 8506 LD="${ncn_tool_prefix}$2"
859789af 8507 fi
859789af
AC
8508fi
8509
9a819804
AO
8510
8511
8512if test -n "$LIPO"; then
8513 ac_cv_prog_LIPO=$LIPO
8514elif test -n "$ac_cv_prog_LIPO"; then
8515 LIPO=$ac_cv_prog_LIPO
8516fi
8517
8518if test -n "$ac_cv_prog_LIPO"; then
8519 for ncn_progname in lipo; do
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523$as_echo_n "checking for $ac_word... " >&6; }
8524if test "${ac_cv_prog_LIPO+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
9a819804
AO
8526else
8527 if test -n "$LIPO"; then
8528 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8529else
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8537 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8539 break 2
8540 fi
8541done
81ecdfbb
RW
8542 done
8543IFS=$as_save_IFS
9a819804
AO
8544
8545fi
8546fi
8547LIPO=$ac_cv_prog_LIPO
8548if test -n "$LIPO"; then
81ecdfbb
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8550$as_echo "$LIPO" >&6; }
9a819804 8551else
81ecdfbb
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
9a819804
AO
8554fi
8555
81ecdfbb 8556
9a819804
AO
8557 done
8558fi
8559
8560for ncn_progname in lipo; do
be01d343
PB
8561 if test -n "$ncn_tool_prefix"; then
8562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565$as_echo_n "checking for $ac_word... " >&6; }
8566if test "${ac_cv_prog_LIPO+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
be01d343
PB
8568else
8569 if test -n "$LIPO"; then
8570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8571else
c6b750e1
DJ
8572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573for as_dir in $PATH
8574do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8579 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8581 break 2
8582 fi
8583done
81ecdfbb
RW
8584 done
8585IFS=$as_save_IFS
c6b750e1 8586
be01d343
PB
8587fi
8588fi
c6b750e1 8589LIPO=$ac_cv_prog_LIPO
be01d343 8590if test -n "$LIPO"; then
81ecdfbb
RW
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8592$as_echo "$LIPO" >&6; }
be01d343 8593else
81ecdfbb
RW
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595$as_echo "no" >&6; }
be01d343
PB
8596fi
8597
81ecdfbb 8598
be01d343
PB
8599 fi
8600 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
be01d343
PB
8607else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610else
c6b750e1
DJ
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8618 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8620 break 2
8621 fi
8622done
81ecdfbb
RW
8623 done
8624IFS=$as_save_IFS
c6b750e1 8625
be01d343
PB
8626fi
8627fi
c6b750e1 8628LIPO=$ac_cv_prog_LIPO
be01d343 8629if test -n "$LIPO"; then
81ecdfbb
RW
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631$as_echo "$LIPO" >&6; }
be01d343 8632else
81ecdfbb
RW
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
be01d343 8635fi
c6b750e1 8636
81ecdfbb 8637
be01d343
PB
8638 fi
8639 test -n "$ac_cv_prog_LIPO" && break
8640done
8641
8642if test -z "$ac_cv_prog_LIPO" ; then
8643 set dummy lipo
8644 if test $build = $host ; then
8645 LIPO="$2"
8646 else
8647 LIPO="${ncn_tool_prefix}$2"
8648 fi
8649fi
8650
9a819804
AO
8651
8652
8653if test -n "$NM"; then
8654 ac_cv_prog_NM=$NM
8655elif test -n "$ac_cv_prog_NM"; then
8656 NM=$ac_cv_prog_NM
8657fi
8658
8659if test -n "$ac_cv_prog_NM"; then
8660 for ncn_progname in nm; do
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
8665if test "${ac_cv_prog_NM+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
859789af
AC
8667else
8668 if test -n "$NM"; then
8669 ac_cv_prog_NM="$NM" # Let the user override the test.
8670else
c6b750e1
DJ
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8678 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8680 break 2
8681 fi
8682done
81ecdfbb
RW
8683 done
8684IFS=$as_save_IFS
c6b750e1 8685
859789af
AC
8686fi
8687fi
c6b750e1 8688NM=$ac_cv_prog_NM
859789af 8689if test -n "$NM"; then
81ecdfbb
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8691$as_echo "$NM" >&6; }
859789af 8692else
81ecdfbb
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
859789af
AC
8695fi
8696
81ecdfbb 8697
9a819804
AO
8698 done
8699fi
8700
8701for ncn_progname in nm; do
8702 if test -n "$ncn_tool_prefix"; then
8703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8704set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706$as_echo_n "checking for $ac_word... " >&6; }
8707if test "${ac_cv_prog_NM+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
859789af 8709else
05cbd757
PB
8710 if test -n "$NM"; then
8711 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8712else
c6b750e1
DJ
8713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714for as_dir in $PATH
8715do
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8720 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8722 break 2
8723 fi
8724done
81ecdfbb
RW
8725 done
8726IFS=$as_save_IFS
c6b750e1 8727
859789af
AC
8728fi
8729fi
c6b750e1 8730NM=$ac_cv_prog_NM
05cbd757 8731if test -n "$NM"; then
81ecdfbb
RW
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8733$as_echo "$NM" >&6; }
859789af 8734else
81ecdfbb
RW
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736$as_echo "no" >&6; }
859789af 8737fi
c6b750e1 8738
81ecdfbb 8739
05cbd757 8740 fi
9a819804
AO
8741 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
9a819804
AO
8748else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8759 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8761 break 2
8762 fi
8763done
81ecdfbb
RW
8764 done
8765IFS=$as_save_IFS
9a819804
AO
8766
8767fi
8768fi
8769NM=$ac_cv_prog_NM
8770if test -n "$NM"; then
81ecdfbb
RW
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772$as_echo "$NM" >&6; }
9a819804 8773else
81ecdfbb
RW
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
9a819804
AO
8776fi
8777
81ecdfbb 8778
9a819804
AO
8779 fi
8780 test -n "$ac_cv_prog_NM" && break
8781done
8782
8783if test -z "$ac_cv_prog_NM" ; then
8784 set dummy nm
8785 if test $build = $host ; then
8786 NM="$2"
8787 else
8788 NM="${ncn_tool_prefix}$2"
8789 fi
8790fi
8791
8792
8793
8794if test -n "$RANLIB"; then
8795 ac_cv_prog_RANLIB=$RANLIB
8796elif test -n "$ac_cv_prog_RANLIB"; then
8797 RANLIB=$ac_cv_prog_RANLIB
8798fi
8799
8800if test -n "$ac_cv_prog_RANLIB"; then
8801 for ncn_progname in ranlib; do
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if test "${ac_cv_prog_RANLIB+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
9a819804
AO
8808else
8809 if test -n "$RANLIB"; then
8810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8819 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8821 break 2
8822 fi
8823done
81ecdfbb
RW
8824 done
8825IFS=$as_save_IFS
9a819804
AO
8826
8827fi
8828fi
8829RANLIB=$ac_cv_prog_RANLIB
8830if test -n "$RANLIB"; then
81ecdfbb
RW
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8832$as_echo "$RANLIB" >&6; }
9a819804 8833else
81ecdfbb
RW
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
9a819804
AO
8836fi
8837
81ecdfbb 8838
9a819804
AO
8839 done
8840fi
859789af 8841
9a819804 8842for ncn_progname in ranlib; do
05cbd757
PB
8843 if test -n "$ncn_tool_prefix"; then
8844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8845set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847$as_echo_n "checking for $ac_word... " >&6; }
8848if test "${ac_cv_prog_RANLIB+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
859789af
AC
8850else
8851 if test -n "$RANLIB"; then
8852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8853else
c6b750e1
DJ
8854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855for as_dir in $PATH
8856do
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8861 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8863 break 2
8864 fi
8865done
81ecdfbb
RW
8866 done
8867IFS=$as_save_IFS
c6b750e1 8868
859789af
AC
8869fi
8870fi
c6b750e1 8871RANLIB=$ac_cv_prog_RANLIB
859789af 8872if test -n "$RANLIB"; then
81ecdfbb
RW
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8874$as_echo "$RANLIB" >&6; }
859789af 8875else
81ecdfbb
RW
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877$as_echo "no" >&6; }
859789af
AC
8878fi
8879
81ecdfbb 8880
05cbd757
PB
8881 fi
8882 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
859789af 8889else
05cbd757
PB
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8892else
c6b750e1
DJ
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8900 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8902 break 2
8903 fi
8904done
81ecdfbb
RW
8905 done
8906IFS=$as_save_IFS
c6b750e1 8907
859789af
AC
8908fi
8909fi
c6b750e1 8910RANLIB=$ac_cv_prog_RANLIB
05cbd757 8911if test -n "$RANLIB"; then
81ecdfbb
RW
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913$as_echo "$RANLIB" >&6; }
859789af 8914else
81ecdfbb
RW
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
859789af 8917fi
c6b750e1 8918
81ecdfbb 8919
859789af 8920 fi
05cbd757
PB
8921 test -n "$ac_cv_prog_RANLIB" && break
8922done
8923
8924if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8925 RANLIB="true"
859789af
AC
8926fi
8927
9a819804
AO
8928
8929
8930if test -n "$STRIP"; then
8931 ac_cv_prog_STRIP=$STRIP
8932elif test -n "$ac_cv_prog_STRIP"; then
8933 STRIP=$ac_cv_prog_STRIP
8934fi
8935
8936if test -n "$ac_cv_prog_STRIP"; then
8937 for ncn_progname in strip; do
8938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941$as_echo_n "checking for $ac_word... " >&6; }
8942if test "${ac_cv_prog_STRIP+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
9a819804
AO
8944else
8945 if test -n "$STRIP"; then
8946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8947else
8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949for as_dir in $PATH
8950do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8955 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8957 break 2
8958 fi
8959done
81ecdfbb
RW
8960 done
8961IFS=$as_save_IFS
9a819804
AO
8962
8963fi
8964fi
8965STRIP=$ac_cv_prog_STRIP
8966if test -n "$STRIP"; then
81ecdfbb
RW
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8968$as_echo "$STRIP" >&6; }
9a819804 8969else
81ecdfbb
RW
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971$as_echo "no" >&6; }
9a819804
AO
8972fi
8973
81ecdfbb 8974
9a819804
AO
8975 done
8976fi
8977
8978for ncn_progname in strip; do
be01d343
PB
8979 if test -n "$ncn_tool_prefix"; then
8980 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8981set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983$as_echo_n "checking for $ac_word... " >&6; }
8984if test "${ac_cv_prog_STRIP+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
be01d343
PB
8986else
8987 if test -n "$STRIP"; then
8988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8989else
c6b750e1
DJ
8990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8997 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8999 break 2
9000 fi
9001done
81ecdfbb
RW
9002 done
9003IFS=$as_save_IFS
c6b750e1 9004
be01d343
PB
9005fi
9006fi
c6b750e1 9007STRIP=$ac_cv_prog_STRIP
be01d343 9008if test -n "$STRIP"; then
81ecdfbb
RW
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9010$as_echo "$STRIP" >&6; }
be01d343 9011else
81ecdfbb
RW
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013$as_echo "no" >&6; }
be01d343
PB
9014fi
9015
81ecdfbb 9016
be01d343
PB
9017 fi
9018 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
be01d343
PB
9025else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028else
c6b750e1
DJ
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9036 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9038 break 2
9039 fi
9040done
81ecdfbb
RW
9041 done
9042IFS=$as_save_IFS
c6b750e1 9043
be01d343
PB
9044fi
9045fi
c6b750e1 9046STRIP=$ac_cv_prog_STRIP
be01d343 9047if test -n "$STRIP"; then
81ecdfbb
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049$as_echo "$STRIP" >&6; }
be01d343 9050else
81ecdfbb
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
be01d343 9053fi
c6b750e1 9054
81ecdfbb 9055
be01d343
PB
9056 fi
9057 test -n "$ac_cv_prog_STRIP" && break
9058done
9059
9060if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9061 STRIP="true"
be01d343
PB
9062fi
9063
9a819804
AO
9064
9065
9066if test -n "$WINDRES"; then
9067 ac_cv_prog_WINDRES=$WINDRES
9068elif test -n "$ac_cv_prog_WINDRES"; then
9069 WINDRES=$ac_cv_prog_WINDRES
9070fi
9071
9072if test -n "$ac_cv_prog_WINDRES"; then
9073 for ncn_progname in windres; do
9074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9075set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077$as_echo_n "checking for $ac_word... " >&6; }
9078if test "${ac_cv_prog_WINDRES+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9a819804
AO
9080else
9081 if test -n "$WINDRES"; then
9082 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9083else
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9091 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9093 break 2
9094 fi
9095done
81ecdfbb
RW
9096 done
9097IFS=$as_save_IFS
9a819804
AO
9098
9099fi
9100fi
9101WINDRES=$ac_cv_prog_WINDRES
9102if test -n "$WINDRES"; then
81ecdfbb
RW
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9104$as_echo "$WINDRES" >&6; }
9a819804 9105else
81ecdfbb
RW
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107$as_echo "no" >&6; }
9a819804
AO
9108fi
9109
81ecdfbb 9110
9a819804
AO
9111 done
9112fi
9113
9114for ncn_progname in windres; do
05cbd757
PB
9115 if test -n "$ncn_tool_prefix"; then
9116 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9117set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119$as_echo_n "checking for $ac_word... " >&6; }
9120if test "${ac_cv_prog_WINDRES+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
859789af
AC
9122else
9123 if test -n "$WINDRES"; then
9124 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9125else
c6b750e1
DJ
9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9133 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9135 break 2
9136 fi
9137done
81ecdfbb
RW
9138 done
9139IFS=$as_save_IFS
c6b750e1 9140
859789af
AC
9141fi
9142fi
c6b750e1 9143WINDRES=$ac_cv_prog_WINDRES
859789af 9144if test -n "$WINDRES"; then
81ecdfbb
RW
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9146$as_echo "$WINDRES" >&6; }
859789af 9147else
81ecdfbb
RW
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149$as_echo "no" >&6; }
859789af
AC
9150fi
9151
81ecdfbb 9152
05cbd757
PB
9153 fi
9154 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
859789af 9161else
05cbd757
PB
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9164else
c6b750e1
DJ
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9172 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9174 break 2
9175 fi
9176done
81ecdfbb
RW
9177 done
9178IFS=$as_save_IFS
c6b750e1 9179
859789af
AC
9180fi
9181fi
c6b750e1 9182WINDRES=$ac_cv_prog_WINDRES
05cbd757 9183if test -n "$WINDRES"; then
81ecdfbb
RW
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185$as_echo "$WINDRES" >&6; }
859789af 9186else
81ecdfbb
RW
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
859789af 9189fi
c6b750e1 9190
81ecdfbb 9191
05cbd757
PB
9192 fi
9193 test -n "$ac_cv_prog_WINDRES" && break
9194done
9195
9196if test -z "$ac_cv_prog_WINDRES" ; then
9197 set dummy windres
9198 if test $build = $host ; then
9199 WINDRES="$2"
859789af 9200 else
05cbd757 9201 WINDRES="${ncn_tool_prefix}$2"
859789af 9202 fi
859789af
AC
9203fi
9204
9a819804
AO
9205
9206
0c24b341
NC
9207if test -n "$WINDMC"; then
9208 ac_cv_prog_WINDMC=$WINDMC
9209elif test -n "$ac_cv_prog_WINDMC"; then
9210 WINDMC=$ac_cv_prog_WINDMC
9211fi
9212
9213if test -n "$ac_cv_prog_WINDMC"; then
9214 for ncn_progname in windmc; do
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
9219if test "${ac_cv_prog_WINDMC+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
0c24b341
NC
9221else
9222 if test -n "$WINDMC"; then
9223 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9224else
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9232 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9234 break 2
9235 fi
9236done
81ecdfbb
RW
9237 done
9238IFS=$as_save_IFS
0c24b341
NC
9239
9240fi
9241fi
9242WINDMC=$ac_cv_prog_WINDMC
9243if test -n "$WINDMC"; then
81ecdfbb
RW
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9245$as_echo "$WINDMC" >&6; }
0c24b341 9246else
81ecdfbb
RW
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
0c24b341
NC
9249fi
9250
81ecdfbb 9251
0c24b341
NC
9252 done
9253fi
9254
9255for ncn_progname in windmc; do
9256 if test -n "$ncn_tool_prefix"; then
9257 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9258set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260$as_echo_n "checking for $ac_word... " >&6; }
9261if test "${ac_cv_prog_WINDMC+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
0c24b341
NC
9263else
9264 if test -n "$WINDMC"; then
9265 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9266else
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9274 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9276 break 2
9277 fi
9278done
81ecdfbb
RW
9279 done
9280IFS=$as_save_IFS
0c24b341
NC
9281
9282fi
9283fi
9284WINDMC=$ac_cv_prog_WINDMC
9285if test -n "$WINDMC"; then
81ecdfbb
RW
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9287$as_echo "$WINDMC" >&6; }
0c24b341 9288else
81ecdfbb
RW
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290$as_echo "no" >&6; }
0c24b341
NC
9291fi
9292
81ecdfbb 9293
0c24b341
NC
9294 fi
9295 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
9300if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
0c24b341
NC
9302else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305else
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9313 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9315 break 2
9316 fi
9317done
81ecdfbb
RW
9318 done
9319IFS=$as_save_IFS
0c24b341
NC
9320
9321fi
9322fi
9323WINDMC=$ac_cv_prog_WINDMC
9324if test -n "$WINDMC"; then
81ecdfbb
RW
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326$as_echo "$WINDMC" >&6; }
0c24b341 9327else
81ecdfbb
RW
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
0c24b341
NC
9330fi
9331
81ecdfbb 9332
0c24b341
NC
9333 fi
9334 test -n "$ac_cv_prog_WINDMC" && break
9335done
9336
9337if test -z "$ac_cv_prog_WINDMC" ; then
9338 set dummy windmc
9339 if test $build = $host ; then
9340 WINDMC="$2"
9341 else
9342 WINDMC="${ncn_tool_prefix}$2"
9343 fi
9344fi
9345
9346
9347
9a819804
AO
9348if test -n "$OBJCOPY"; then
9349 ac_cv_prog_OBJCOPY=$OBJCOPY
9350elif test -n "$ac_cv_prog_OBJCOPY"; then
9351 OBJCOPY=$ac_cv_prog_OBJCOPY
9352fi
9353
9354if test -n "$ac_cv_prog_OBJCOPY"; then
9355 for ncn_progname in objcopy; do
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359$as_echo_n "checking for $ac_word... " >&6; }
9360if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9a819804
AO
9362else
9363 if test -n "$OBJCOPY"; then
9364 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9365else
9366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367for as_dir in $PATH
9368do
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9373 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9375 break 2
9376 fi
9377done
81ecdfbb
RW
9378 done
9379IFS=$as_save_IFS
9a819804
AO
9380
9381fi
9382fi
9383OBJCOPY=$ac_cv_prog_OBJCOPY
9384if test -n "$OBJCOPY"; then
81ecdfbb
RW
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9386$as_echo "$OBJCOPY" >&6; }
9a819804 9387else
81ecdfbb
RW
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389$as_echo "no" >&6; }
9a819804
AO
9390fi
9391
81ecdfbb 9392
9a819804
AO
9393 done
9394fi
9395
9396for ncn_progname in objcopy; do
05cbd757
PB
9397 if test -n "$ncn_tool_prefix"; then
9398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9399set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401$as_echo_n "checking for $ac_word... " >&6; }
9402if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
859789af
AC
9404else
9405 if test -n "$OBJCOPY"; then
9406 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9407else
c6b750e1
DJ
9408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409for as_dir in $PATH
9410do
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9415 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9417 break 2
9418 fi
9419done
81ecdfbb
RW
9420 done
9421IFS=$as_save_IFS
c6b750e1 9422
859789af
AC
9423fi
9424fi
c6b750e1 9425OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9426if test -n "$OBJCOPY"; then
81ecdfbb
RW
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9428$as_echo "$OBJCOPY" >&6; }
859789af 9429else
81ecdfbb
RW
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431$as_echo "no" >&6; }
859789af
AC
9432fi
9433
81ecdfbb 9434
05cbd757
PB
9435 fi
9436 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
9441if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
859789af 9443else
05cbd757
PB
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9446else
c6b750e1
DJ
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9456 break 2
9457 fi
9458done
81ecdfbb
RW
9459 done
9460IFS=$as_save_IFS
c6b750e1 9461
859789af
AC
9462fi
9463fi
c6b750e1 9464OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9465if test -n "$OBJCOPY"; then
81ecdfbb
RW
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467$as_echo "$OBJCOPY" >&6; }
859789af 9468else
81ecdfbb
RW
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
859789af 9471fi
c6b750e1 9472
81ecdfbb 9473
05cbd757
PB
9474 fi
9475 test -n "$ac_cv_prog_OBJCOPY" && break
9476done
9477
9478if test -z "$ac_cv_prog_OBJCOPY" ; then
9479 set dummy objcopy
9480 if test $build = $host ; then
9481 OBJCOPY="$2"
859789af 9482 else
05cbd757 9483 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9484 fi
859789af
AC
9485fi
9486
9a819804
AO
9487
9488
9489if test -n "$OBJDUMP"; then
9490 ac_cv_prog_OBJDUMP=$OBJDUMP
9491elif test -n "$ac_cv_prog_OBJDUMP"; then
9492 OBJDUMP=$ac_cv_prog_OBJDUMP
9493fi
9494
9495if test -n "$ac_cv_prog_OBJDUMP"; then
9496 for ncn_progname in objdump; do
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9a819804
AO
9503else
9504 if test -n "$OBJDUMP"; then
9505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9506else
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9514 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9516 break 2
9517 fi
9518done
81ecdfbb
RW
9519 done
9520IFS=$as_save_IFS
9a819804
AO
9521
9522fi
9523fi
9524OBJDUMP=$ac_cv_prog_OBJDUMP
9525if test -n "$OBJDUMP"; then
81ecdfbb
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9527$as_echo "$OBJDUMP" >&6; }
9a819804 9528else
81ecdfbb
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
9a819804
AO
9531fi
9532
81ecdfbb 9533
9a819804
AO
9534 done
9535fi
9536
9537for ncn_progname in objdump; do
05cbd757
PB
9538 if test -n "$ncn_tool_prefix"; then
9539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
859789af
AC
9545else
9546 if test -n "$OBJDUMP"; then
9547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9548else
c6b750e1
DJ
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9556 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9558 break 2
9559 fi
9560done
81ecdfbb
RW
9561 done
9562IFS=$as_save_IFS
c6b750e1 9563
859789af
AC
9564fi
9565fi
c6b750e1 9566OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9567if test -n "$OBJDUMP"; then
81ecdfbb
RW
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9569$as_echo "$OBJDUMP" >&6; }
859789af 9570else
81ecdfbb
RW
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
859789af
AC
9573fi
9574
81ecdfbb 9575
05cbd757
PB
9576 fi
9577 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
859789af 9584else
05cbd757
PB
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9587else
c6b750e1
DJ
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9597 break 2
9598 fi
9599done
81ecdfbb
RW
9600 done
9601IFS=$as_save_IFS
c6b750e1 9602
859789af
AC
9603fi
9604fi
c6b750e1 9605OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9606if test -n "$OBJDUMP"; then
81ecdfbb
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608$as_echo "$OBJDUMP" >&6; }
859789af 9609else
81ecdfbb
RW
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
859789af 9612fi
c6b750e1 9613
81ecdfbb 9614
05cbd757
PB
9615 fi
9616 test -n "$ac_cv_prog_OBJDUMP" && break
9617done
9618
9619if test -z "$ac_cv_prog_OBJDUMP" ; then
9620 set dummy objdump
9621 if test $build = $host ; then
9622 OBJDUMP="$2"
859789af 9623 else
05cbd757 9624 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9625 fi
859789af
AC
9626fi
9627
a0da8069
NN
9628
9629
9630
9631
9632
be01d343 9633# Target tools.
c6b750e1 9634
81ecdfbb
RW
9635# Check whether --with-build-time-tools was given.
9636if test "${with_build_time_tools+set}" = set; then :
9637 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9638 x/*) ;;
9639 *)
9640 with_build_time_tools=
81ecdfbb
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9642$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9643 ;;
9644 esac
859789af 9645else
2429c060 9646 with_build_time_tools=
81ecdfbb
RW
9647fi
9648
859789af 9649
9a819804
AO
9650
9651
9652if test -n "$CC_FOR_TARGET"; then
9653 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9654elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9655 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9656fi
9657
9658if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9659 for ncn_progname in cc gcc; do
9660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9661set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663$as_echo_n "checking for $ac_word... " >&6; }
9664if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9a819804
AO
9666else
9667 if test -n "$CC_FOR_TARGET"; then
9668 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9669else
9670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9677 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9679 break 2
9680 fi
9681done
81ecdfbb
RW
9682 done
9683IFS=$as_save_IFS
9a819804
AO
9684
9685fi
9686fi
9687CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9688if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9690$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9691else
81ecdfbb
RW
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9a819804
AO
9694fi
9695
81ecdfbb 9696
9a819804
AO
9697 done
9698fi
9699
9700if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9701 for ncn_progname in cc gcc; do
81ecdfbb
RW
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9703$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9704 if test -x $with_build_time_tools/${ncn_progname}; then
9705 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9707$as_echo "yes" >&6; }
cac3d6c4 9708 break
2429c060 9709 else
81ecdfbb
RW
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711$as_echo "no" >&6; }
cac3d6c4
CM
9712 fi
9713 done
55db4b87
PB
9714fi
9715
2429c060
PB
9716if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9717 for ncn_progname in cc gcc; do
9718 if test -n "$ncn_target_tool_prefix"; then
9719 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9720set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
55db4b87
PB
9725else
9726 if test -n "$CC_FOR_TARGET"; then
9727 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9728else
c6b750e1
DJ
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9736 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9738 break 2
9739 fi
9740done
81ecdfbb
RW
9741 done
9742IFS=$as_save_IFS
c6b750e1 9743
55db4b87
PB
9744fi
9745fi
c6b750e1 9746CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9747if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9749$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9750else
81ecdfbb
RW
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
55db4b87
PB
9753fi
9754
81ecdfbb 9755
2429c060
PB
9756 fi
9757 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9759set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761$as_echo_n "checking for $ac_word... " >&6; }
9762if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
55db4b87 9764else
05cbd757
PB
9765 if test -n "$CC_FOR_TARGET"; then
9766 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9767else
c6b750e1
DJ
9768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769for as_dir in $PATH
9770do
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9775 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9777 break 2
9778 fi
9779done
81ecdfbb
RW
9780 done
9781IFS=$as_save_IFS
c6b750e1 9782
55db4b87
PB
9783fi
9784fi
c6b750e1 9785CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9786if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9788$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9789else
81ecdfbb
RW
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791$as_echo "no" >&6; }
55db4b87 9792fi
c6b750e1 9793
81ecdfbb 9794
2429c060
PB
9795 fi
9796 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9797 done
9798fi
c6b750e1 9799
05cbd757
PB
9800if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9801 set dummy cc gcc
9802 if test $build = $target ; then
9803 CC_FOR_TARGET="$2"
55db4b87 9804 else
05cbd757 9805 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9806 fi
d3f5afc4
MS
9807else
9808 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9809fi
9810
9a819804
AO
9811
9812
9813if test -n "$CXX_FOR_TARGET"; then
9814 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9815elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9816 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9817fi
9818
9819if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9820 for ncn_progname in c++ g++ cxx gxx; do
9821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9822set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824$as_echo_n "checking for $ac_word... " >&6; }
9825if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9a819804
AO
9827else
9828 if test -n "$CXX_FOR_TARGET"; then
9829 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9830else
9831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9838 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9840 break 2
9841 fi
9842done
81ecdfbb
RW
9843 done
9844IFS=$as_save_IFS
9a819804
AO
9845
9846fi
9847fi
9848CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9849if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9851$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9852else
81ecdfbb
RW
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854$as_echo "no" >&6; }
9a819804
AO
9855fi
9856
81ecdfbb 9857
9a819804
AO
9858 done
9859fi
9860
9861if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9862 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9864$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9865 if test -x $with_build_time_tools/${ncn_progname}; then
9866 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9868$as_echo "yes" >&6; }
2429c060
PB
9869 break
9870 else
81ecdfbb
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
2429c060
PB
9873 fi
9874 done
9875fi
9876
9877if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9878 for ncn_progname in c++ g++ cxx gxx; do
9879 if test -n "$ncn_target_tool_prefix"; then
9880 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9881set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883$as_echo_n "checking for $ac_word... " >&6; }
9884if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
55db4b87
PB
9886else
9887 if test -n "$CXX_FOR_TARGET"; then
9888 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9889else
c6b750e1
DJ
9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891for as_dir in $PATH
9892do
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9897 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9899 break 2
9900 fi
9901done
81ecdfbb
RW
9902 done
9903IFS=$as_save_IFS
c6b750e1 9904
55db4b87
PB
9905fi
9906fi
c6b750e1 9907CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9908if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9910$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9911else
81ecdfbb
RW
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913$as_echo "no" >&6; }
55db4b87
PB
9914fi
9915
81ecdfbb 9916
2429c060
PB
9917 fi
9918 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9920set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922$as_echo_n "checking for $ac_word... " >&6; }
9923if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
55db4b87 9925else
05cbd757
PB
9926 if test -n "$CXX_FOR_TARGET"; then
9927 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9928else
c6b750e1
DJ
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9936 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9938 break 2
9939 fi
9940done
81ecdfbb
RW
9941 done
9942IFS=$as_save_IFS
c6b750e1 9943
55db4b87
PB
9944fi
9945fi
c6b750e1 9946CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9947if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9949$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9950else
81ecdfbb
RW
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952$as_echo "no" >&6; }
55db4b87 9953fi
c6b750e1 9954
81ecdfbb 9955
2429c060
PB
9956 fi
9957 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9958 done
9959fi
c6b750e1 9960
05cbd757
PB
9961if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9962 set dummy c++ g++ cxx gxx
9963 if test $build = $target ; then
9964 CXX_FOR_TARGET="$2"
55db4b87 9965 else
05cbd757 9966 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9967 fi
d3f5afc4
MS
9968else
9969 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9970fi
9971
9a819804
AO
9972
9973
9974if test -n "$GCC_FOR_TARGET"; then
9975 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9976elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9977 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9978fi
9979
9980if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9981 for ncn_progname in gcc; do
9982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9983set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985$as_echo_n "checking for $ac_word... " >&6; }
9986if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9a819804
AO
9988else
9989 if test -n "$GCC_FOR_TARGET"; then
9990 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9991else
9992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993for as_dir in $PATH
9994do
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9999 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10001 break 2
10002 fi
10003done
81ecdfbb
RW
10004 done
10005IFS=$as_save_IFS
9a819804
AO
10006
10007fi
10008fi
10009GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10010if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10012$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10013else
81ecdfbb
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015$as_echo "no" >&6; }
9a819804
AO
10016fi
10017
81ecdfbb 10018
9a819804
AO
10019 done
10020fi
10021
10022if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10023 for ncn_progname in gcc; do
81ecdfbb
RW
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10025$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10026 if test -x $with_build_time_tools/${ncn_progname}; then
10027 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10029$as_echo "yes" >&6; }
2429c060
PB
10030 break
10031 else
81ecdfbb
RW
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033$as_echo "no" >&6; }
2429c060
PB
10034 fi
10035 done
10036fi
10037
10038if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10039 for ncn_progname in gcc; do
10040 if test -n "$ncn_target_tool_prefix"; then
10041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10042set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044$as_echo_n "checking for $ac_word... " >&6; }
10045if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10046 $as_echo_n "(cached) " >&6
859789af 10047else
2429c060
PB
10048 if test -n "$GCC_FOR_TARGET"; then
10049 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10050else
c6b750e1
DJ
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10058 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10060 break 2
10061 fi
10062done
81ecdfbb
RW
10063 done
10064IFS=$as_save_IFS
c6b750e1 10065
55db4b87
PB
10066fi
10067fi
c6b750e1 10068GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10069if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10071$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10072else
81ecdfbb
RW
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074$as_echo "no" >&6; }
55db4b87
PB
10075fi
10076
81ecdfbb 10077
2429c060
PB
10078 fi
10079 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10081set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083$as_echo_n "checking for $ac_word... " >&6; }
10084if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
55db4b87 10086else
05cbd757
PB
10087 if test -n "$GCC_FOR_TARGET"; then
10088 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10089else
c6b750e1
DJ
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10097 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10099 break 2
10100 fi
10101done
81ecdfbb
RW
10102 done
10103IFS=$as_save_IFS
c6b750e1 10104
55db4b87
PB
10105fi
10106fi
c6b750e1 10107GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10108if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10110$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10111else
81ecdfbb
RW
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113$as_echo "no" >&6; }
55db4b87 10114fi
c6b750e1 10115
81ecdfbb 10116
2429c060
PB
10117 fi
10118 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10119 done
10120fi
c6b750e1 10121
05cbd757
PB
10122if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10123 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10124else
10125 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10126fi
10127
9a819804
AO
10128
10129
10130if test -n "$GCJ_FOR_TARGET"; then
10131 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10132elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10133 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10134fi
10135
10136if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10137 for ncn_progname in gcj; do
10138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10139set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141$as_echo_n "checking for $ac_word... " >&6; }
10142if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
9a819804
AO
10144else
10145 if test -n "$GCJ_FOR_TARGET"; then
10146 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10147else
10148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149for as_dir in $PATH
10150do
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10155 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10157 break 2
10158 fi
10159done
81ecdfbb
RW
10160 done
10161IFS=$as_save_IFS
9a819804
AO
10162
10163fi
10164fi
10165GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10166if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10168$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10169else
81ecdfbb
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171$as_echo "no" >&6; }
9a819804
AO
10172fi
10173
81ecdfbb 10174
9a819804
AO
10175 done
10176fi
10177
10178if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10179 for ncn_progname in gcj; do
81ecdfbb
RW
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10181$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10182 if test -x $with_build_time_tools/${ncn_progname}; then
10183 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10185$as_echo "yes" >&6; }
2429c060
PB
10186 break
10187 else
81ecdfbb
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
2429c060
PB
10190 fi
10191 done
10192fi
10193
10194if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10195 for ncn_progname in gcj; do
10196 if test -n "$ncn_target_tool_prefix"; then
10197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200$as_echo_n "checking for $ac_word... " >&6; }
10201if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
55db4b87
PB
10203else
10204 if test -n "$GCJ_FOR_TARGET"; then
10205 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10206else
c6b750e1
DJ
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10214 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10216 break 2
10217 fi
10218done
81ecdfbb
RW
10219 done
10220IFS=$as_save_IFS
c6b750e1 10221
55db4b87
PB
10222fi
10223fi
9a819804
AO
10224GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10225if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10227$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10228else
81ecdfbb
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230$as_echo "no" >&6; }
9a819804
AO
10231fi
10232
81ecdfbb 10233
9a819804
AO
10234 fi
10235 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10237set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239$as_echo_n "checking for $ac_word... " >&6; }
10240if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
9a819804
AO
10242else
10243 if test -n "$GCJ_FOR_TARGET"; then
10244 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10245else
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10253 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10255 break 2
10256 fi
10257done
81ecdfbb
RW
10258 done
10259IFS=$as_save_IFS
9a819804
AO
10260
10261fi
10262fi
10263GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10264if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10266$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10267else
81ecdfbb
RW
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
9a819804
AO
10270fi
10271
81ecdfbb 10272
9a819804
AO
10273 fi
10274 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10275 done
10276fi
10277
10278if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10279 set dummy gcj
10280 if test $build = $target ; then
10281 GCJ_FOR_TARGET="$2"
10282 else
10283 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10284 fi
d3f5afc4
MS
10285else
10286 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10287fi
10288
10289
10290
10291if test -n "$GFORTRAN_FOR_TARGET"; then
10292 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10293elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10294 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10295fi
10296
9a819804
AO
10297if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10298 for ncn_progname in gfortran; do
10299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10300set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302$as_echo_n "checking for $ac_word... " >&6; }
10303if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
55db4b87 10305else
9a819804
AO
10306 if test -n "$GFORTRAN_FOR_TARGET"; then
10307 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10308else
c6b750e1
DJ
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10316 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10318 break 2
10319 fi
10320done
81ecdfbb
RW
10321 done
10322IFS=$as_save_IFS
c6b750e1 10323
55db4b87
PB
10324fi
10325fi
9a819804
AO
10326GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10327if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10329$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10330else
81ecdfbb
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332$as_echo "no" >&6; }
55db4b87 10333fi
c6b750e1 10334
81ecdfbb 10335
2429c060
PB
10336 done
10337fi
c6b750e1 10338
9a819804 10339if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10340 for ncn_progname in gfortran; do
81ecdfbb
RW
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10342$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10343 if test -x $with_build_time_tools/${ncn_progname}; then
10344 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346$as_echo "yes" >&6; }
2429c060
PB
10347 break
10348 else
81ecdfbb
RW
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
2429c060
PB
10351 fi
10352 done
10353fi
10354
10355if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10356 for ncn_progname in gfortran; do
10357 if test -n "$ncn_target_tool_prefix"; then
10358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10359set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
10362if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
55db4b87
PB
10364else
10365 if test -n "$GFORTRAN_FOR_TARGET"; then
10366 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10367else
c6b750e1
DJ
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10375 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10377 break 2
10378 fi
10379done
81ecdfbb
RW
10380 done
10381IFS=$as_save_IFS
c6b750e1 10382
55db4b87
PB
10383fi
10384fi
c6b750e1 10385GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10386if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10388$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10389else
81ecdfbb
RW
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
55db4b87
PB
10392fi
10393
81ecdfbb 10394
2429c060
PB
10395 fi
10396 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10398set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400$as_echo_n "checking for $ac_word... " >&6; }
10401if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
55db4b87 10403else
05cbd757 10404 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10405 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10414 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10416 break 2
10417 fi
10418done
81ecdfbb
RW
10419 done
10420IFS=$as_save_IFS
c6b750e1 10421
55db4b87
PB
10422fi
10423fi
c6b750e1 10424GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10425if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10427$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10428else
81ecdfbb
RW
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
55db4b87 10431fi
c6b750e1 10432
81ecdfbb 10433
2429c060
PB
10434 fi
10435 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10436 done
10437fi
c6b750e1 10438
05cbd757
PB
10439if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10440 set dummy gfortran
10441 if test $build = $target ; then
10442 GFORTRAN_FOR_TARGET="$2"
55db4b87 10443 else
05cbd757 10444 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10445 fi
d3f5afc4
MS
10446else
10447 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10448fi
10449
2429c060
PB
10450
10451
e552509b
ILT
10452if test -n "$GOC_FOR_TARGET"; then
10453 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10454elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10455 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10456fi
10457
10458if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10459 for ncn_progname in gccgo; do
10460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10461set dummy ${ncn_progname}; ac_word=$2
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463$as_echo_n "checking for $ac_word... " >&6; }
10464if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466else
10467 if test -n "$GOC_FOR_TARGET"; then
10468 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10469else
10470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471for as_dir in $PATH
10472do
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10477 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10480 fi
10481done
10482 done
10483IFS=$as_save_IFS
10484
10485fi
10486fi
10487GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10488if test -n "$GOC_FOR_TARGET"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10490$as_echo "$GOC_FOR_TARGET" >&6; }
10491else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493$as_echo "no" >&6; }
10494fi
10495
10496
10497 done
10498fi
10499
10500if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10501 for ncn_progname in gccgo; do
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10503$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10504 if test -x $with_build_time_tools/${ncn_progname}; then
10505 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507$as_echo "yes" >&6; }
10508 break
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512 fi
10513 done
10514fi
10515
10516if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10517 for ncn_progname in gccgo; do
10518 if test -n "$ncn_target_tool_prefix"; then
10519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10520set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522$as_echo_n "checking for $ac_word... " >&6; }
10523if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525else
10526 if test -n "$GOC_FOR_TARGET"; then
10527 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10536 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541 done
10542IFS=$as_save_IFS
10543
10544fi
10545fi
10546GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10547if test -n "$GOC_FOR_TARGET"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10549$as_echo "$GOC_FOR_TARGET" >&6; }
10550else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552$as_echo "no" >&6; }
10553fi
10554
10555
10556 fi
10557 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10559set dummy ${ncn_progname}; ac_word=$2
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561$as_echo_n "checking for $ac_word... " >&6; }
10562if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564else
10565 if test -n "$GOC_FOR_TARGET"; then
10566 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10567else
10568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 break 2
10578 fi
10579done
10580 done
10581IFS=$as_save_IFS
10582
10583fi
10584fi
10585GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10586if test -n "$GOC_FOR_TARGET"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10588$as_echo "$GOC_FOR_TARGET" >&6; }
10589else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591$as_echo "no" >&6; }
10592fi
10593
10594
10595 fi
10596 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10597 done
10598fi
10599
10600if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10601 set dummy gccgo
10602 if test $build = $target ; then
10603 GOC_FOR_TARGET="$2"
10604 else
10605 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10606 fi
10607else
10608 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10609fi
10610
10611
10612
2429c060
PB
10613cat > conftest.c << \EOF
10614#ifdef __GNUC__
10615 gcc_yay;
10616#endif
10617EOF
10618if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10619 have_gcc_for_target=yes
859789af 10620else
2429c060
PB
10621 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10622 have_gcc_for_target=no
859789af 10623fi
2429c060
PB
10624rm conftest.c
10625
10626
10627
859789af 10628
2429c060
PB
10629if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10630 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10632$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10633 if test -x $with_build_time_tools/ar; then
10634 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10635 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10637$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10638 else
81ecdfbb
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
3a35eeb3 10641 fi
2429c060
PB
10642 elif test $build != $host && test $have_gcc_for_target = yes; then
10643 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10644 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10645 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10646 fi
2429c060 10647fi
c6b750e1 10648if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10649 # Extract the first word of "ar", so it can be a program name with args.
10650set dummy ar; ac_word=$2
81ecdfbb
RW
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652$as_echo_n "checking for $ac_word... " >&6; }
10653if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
859789af 10655else
c6b750e1
DJ
10656 case $AR_FOR_TARGET in
10657 [\\/]* | ?:[\\/]*)
2429c060
PB
10658 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10659 ;;
2429c060 10660 *)
c6b750e1
DJ
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $gcc_cv_tool_dirs
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10668 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10670 break 2
10671 fi
10672done
81ecdfbb
RW
10673 done
10674IFS=$as_save_IFS
c6b750e1 10675
2429c060
PB
10676 ;;
10677esac
859789af 10678fi
c6b750e1 10679AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10680if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10682$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10683else
81ecdfbb
RW
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
859789af 10686fi
05cbd757 10687
81ecdfbb 10688
2429c060
PB
10689fi
10690if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10691
10692
10693if test -n "$AR_FOR_TARGET"; then
10694 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10695elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10696 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10697fi
10698
10699if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10700 for ncn_progname in ar; do
10701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10702set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
10705if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
9a819804
AO
10707else
10708 if test -n "$AR_FOR_TARGET"; then
10709 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10718 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10720 break 2
10721 fi
10722done
81ecdfbb
RW
10723 done
10724IFS=$as_save_IFS
9a819804
AO
10725
10726fi
10727fi
10728AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10729if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10731$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10732else
81ecdfbb
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
9a819804
AO
10735fi
10736
81ecdfbb 10737
9a819804
AO
10738 done
10739fi
10740
10741if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10742 for ncn_progname in ar; do
81ecdfbb
RW
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10744$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10745 if test -x $with_build_time_tools/${ncn_progname}; then
10746 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748$as_echo "yes" >&6; }
2429c060
PB
10749 break
10750 else
81ecdfbb
RW
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
2429c060
PB
10753 fi
10754 done
859789af
AC
10755fi
10756
2429c060
PB
10757if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10758 for ncn_progname in ar; do
10759 if test -n "$ncn_target_tool_prefix"; then
10760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10761set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763$as_echo_n "checking for $ac_word... " >&6; }
10764if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
7e0f7140 10766else
2429c060
PB
10767 if test -n "$AR_FOR_TARGET"; then
10768 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10769else
c6b750e1
DJ
10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $PATH
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10777 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10779 break 2
10780 fi
10781done
81ecdfbb
RW
10782 done
10783IFS=$as_save_IFS
c6b750e1 10784
7e0f7140
GK
10785fi
10786fi
c6b750e1 10787AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10788if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10790$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10791else
81ecdfbb
RW
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
7e0f7140
GK
10794fi
10795
81ecdfbb 10796
2429c060
PB
10797 fi
10798 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10800set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802$as_echo_n "checking for $ac_word... " >&6; }
10803if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
7e0f7140 10805else
2429c060
PB
10806 if test -n "$AR_FOR_TARGET"; then
10807 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10808else
c6b750e1
DJ
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10816 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10818 break 2
10819 fi
10820done
81ecdfbb
RW
10821 done
10822IFS=$as_save_IFS
c6b750e1 10823
7e0f7140
GK
10824fi
10825fi
c6b750e1 10826AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10827if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10829$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10830else
81ecdfbb
RW
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
7e0f7140 10833fi
c6b750e1 10834
81ecdfbb 10835
2429c060
PB
10836 fi
10837 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10838 done
10839fi
c6b750e1 10840
2429c060
PB
10841if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10842 set dummy ar
7e0f7140 10843 if test $build = $target ; then
2429c060 10844 AR_FOR_TARGET="$2"
7e0f7140 10845 else
2429c060 10846 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10847 fi
d3f5afc4
MS
10848else
10849 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10850fi
10851
3a35eeb3
PB
10852else
10853 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10854fi
10855
10856
10857
10858
10859if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10860 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10862$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10863 if test -x $with_build_time_tools/as; then
10864 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10865 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10867$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10868 else
81ecdfbb
RW
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
3a35eeb3 10871 fi
2429c060
PB
10872 elif test $build != $host && test $have_gcc_for_target = yes; then
10873 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10874 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10875 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10876 fi
10877fi
c6b750e1 10878if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10879 # Extract the first word of "as", so it can be a program name with args.
10880set dummy as; ac_word=$2
81ecdfbb
RW
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882$as_echo_n "checking for $ac_word... " >&6; }
10883if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
2429c060 10885else
c6b750e1
DJ
10886 case $AS_FOR_TARGET in
10887 [\\/]* | ?:[\\/]*)
2429c060
PB
10888 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10889 ;;
2429c060 10890 *)
c6b750e1
DJ
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $gcc_cv_tool_dirs
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10898 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10900 break 2
10901 fi
10902done
81ecdfbb
RW
10903 done
10904IFS=$as_save_IFS
c6b750e1 10905
2429c060
PB
10906 ;;
10907esac
10908fi
c6b750e1 10909AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10910if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10912$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10913else
81ecdfbb
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915$as_echo "no" >&6; }
2429c060
PB
10916fi
10917
81ecdfbb 10918
2429c060
PB
10919fi
10920if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10921
10922
10923if test -n "$AS_FOR_TARGET"; then
10924 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10925elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10926 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10927fi
10928
10929if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10930 for ncn_progname in as; do
10931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10932set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934$as_echo_n "checking for $ac_word... " >&6; }
10935if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
9a819804
AO
10937else
10938 if test -n "$AS_FOR_TARGET"; then
10939 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10940else
10941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942for as_dir in $PATH
10943do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10948 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10950 break 2
10951 fi
10952done
81ecdfbb
RW
10953 done
10954IFS=$as_save_IFS
9a819804
AO
10955
10956fi
10957fi
10958AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10959if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10961$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10962else
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964$as_echo "no" >&6; }
9a819804
AO
10965fi
10966
81ecdfbb 10967
9a819804
AO
10968 done
10969fi
10970
10971if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10972 for ncn_progname in as; do
81ecdfbb
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10974$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10975 if test -x $with_build_time_tools/${ncn_progname}; then
10976 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978$as_echo "yes" >&6; }
2429c060
PB
10979 break
10980 else
81ecdfbb
RW
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
2429c060
PB
10983 fi
10984 done
10985fi
10986
10987if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10988 for ncn_progname in as; do
10989 if test -n "$ncn_target_tool_prefix"; then
10990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
10994if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
2429c060
PB
10996else
10997 if test -n "$AS_FOR_TARGET"; then
10998 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10999else
c6b750e1
DJ
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11007 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11009 break 2
11010 fi
11011done
81ecdfbb
RW
11012 done
11013IFS=$as_save_IFS
c6b750e1 11014
2429c060
PB
11015fi
11016fi
c6b750e1 11017AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11018if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11020$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11021else
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
2429c060
PB
11024fi
11025
81ecdfbb 11026
2429c060
PB
11027 fi
11028 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
11033if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
2429c060
PB
11035else
11036 if test -n "$AS_FOR_TARGET"; then
11037 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11038else
c6b750e1
DJ
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11046 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11048 break 2
11049 fi
11050done
81ecdfbb
RW
11051 done
11052IFS=$as_save_IFS
c6b750e1 11053
2429c060
PB
11054fi
11055fi
c6b750e1 11056AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11057if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11059$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11060else
81ecdfbb
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
2429c060 11063fi
c6b750e1 11064
81ecdfbb 11065
2429c060
PB
11066 fi
11067 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11068 done
11069fi
c6b750e1 11070
2429c060
PB
11071if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11072 set dummy as
11073 if test $build = $target ; then
11074 AS_FOR_TARGET="$2"
11075 else
11076 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11077 fi
d3f5afc4
MS
11078else
11079 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11080fi
11081
3a35eeb3
PB
11082else
11083 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11084fi
11085
11086
11087
11088
11089if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11090 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11092$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11093 if test -x $with_build_time_tools/dlltool; then
11094 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11095 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11097$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11098 else
81ecdfbb
RW
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
3a35eeb3 11101 fi
2429c060
PB
11102 elif test $build != $host && test $have_gcc_for_target = yes; then
11103 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11104 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11105 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11106 fi
11107fi
c6b750e1 11108if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11109 # Extract the first word of "dlltool", so it can be a program name with args.
11110set dummy dlltool; ac_word=$2
81ecdfbb
RW
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112$as_echo_n "checking for $ac_word... " >&6; }
11113if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
2429c060 11115else
c6b750e1
DJ
11116 case $DLLTOOL_FOR_TARGET in
11117 [\\/]* | ?:[\\/]*)
2429c060
PB
11118 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11119 ;;
2429c060 11120 *)
c6b750e1
DJ
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $gcc_cv_tool_dirs
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11128 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11130 break 2
11131 fi
11132done
81ecdfbb
RW
11133 done
11134IFS=$as_save_IFS
c6b750e1 11135
2429c060
PB
11136 ;;
11137esac
11138fi
c6b750e1 11139DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11140if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11142$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11143else
81ecdfbb
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145$as_echo "no" >&6; }
2429c060
PB
11146fi
11147
81ecdfbb 11148
2429c060
PB
11149fi
11150if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11151
11152
11153if test -n "$DLLTOOL_FOR_TARGET"; then
11154 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11155elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11156 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11157fi
11158
11159if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11160 for ncn_progname in dlltool; do
11161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11162set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164$as_echo_n "checking for $ac_word... " >&6; }
11165if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
9a819804
AO
11167else
11168 if test -n "$DLLTOOL_FOR_TARGET"; then
11169 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11170else
11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172for as_dir in $PATH
11173do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11178 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11180 break 2
11181 fi
11182done
81ecdfbb
RW
11183 done
11184IFS=$as_save_IFS
9a819804
AO
11185
11186fi
11187fi
11188DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11189if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11191$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11192else
81ecdfbb
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194$as_echo "no" >&6; }
9a819804
AO
11195fi
11196
81ecdfbb 11197
9a819804
AO
11198 done
11199fi
11200
11201if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11202 for ncn_progname in dlltool; do
81ecdfbb
RW
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11204$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11205 if test -x $with_build_time_tools/${ncn_progname}; then
11206 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208$as_echo "yes" >&6; }
2429c060
PB
11209 break
11210 else
81ecdfbb
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
2429c060
PB
11213 fi
11214 done
11215fi
11216
11217if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11218 for ncn_progname in dlltool; do
11219 if test -n "$ncn_target_tool_prefix"; then
11220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11221set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223$as_echo_n "checking for $ac_word... " >&6; }
11224if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
2429c060
PB
11226else
11227 if test -n "$DLLTOOL_FOR_TARGET"; then
11228 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11229else
c6b750e1
DJ
11230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH
11232do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11237 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11239 break 2
11240 fi
11241done
81ecdfbb
RW
11242 done
11243IFS=$as_save_IFS
c6b750e1 11244
2429c060
PB
11245fi
11246fi
c6b750e1 11247DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11248if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11250$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11251else
81ecdfbb
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253$as_echo "no" >&6; }
2429c060
PB
11254fi
11255
81ecdfbb 11256
2429c060
PB
11257 fi
11258 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11260set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262$as_echo_n "checking for $ac_word... " >&6; }
11263if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
2429c060
PB
11265else
11266 if test -n "$DLLTOOL_FOR_TARGET"; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11268else
c6b750e1
DJ
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11276 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11278 break 2
11279 fi
11280done
81ecdfbb
RW
11281 done
11282IFS=$as_save_IFS
c6b750e1 11283
2429c060
PB
11284fi
11285fi
c6b750e1 11286DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11287if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11289$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11290else
81ecdfbb
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292$as_echo "no" >&6; }
2429c060 11293fi
c6b750e1 11294
81ecdfbb 11295
2429c060
PB
11296 fi
11297 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11298 done
11299fi
c6b750e1 11300
2429c060
PB
11301if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11302 set dummy dlltool
11303 if test $build = $target ; then
11304 DLLTOOL_FOR_TARGET="$2"
11305 else
11306 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11307 fi
d3f5afc4
MS
11308else
11309 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11310fi
11311
3a35eeb3
PB
11312else
11313 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11314fi
11315
11316
11317
11318
11319if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11320 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11322$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11323 if test -x $with_build_time_tools/ld; then
11324 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11325 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11327$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11328 else
81ecdfbb
RW
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330$as_echo "no" >&6; }
3a35eeb3 11331 fi
2429c060
PB
11332 elif test $build != $host && test $have_gcc_for_target = yes; then
11333 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11334 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11335 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11336 fi
11337fi
c6b750e1 11338if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11339 # Extract the first word of "ld", so it can be a program name with args.
11340set dummy ld; ac_word=$2
81ecdfbb
RW
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342$as_echo_n "checking for $ac_word... " >&6; }
11343if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
2429c060 11345else
c6b750e1
DJ
11346 case $LD_FOR_TARGET in
11347 [\\/]* | ?:[\\/]*)
2429c060
PB
11348 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11349 ;;
2429c060 11350 *)
c6b750e1
DJ
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $gcc_cv_tool_dirs
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11358 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11360 break 2
11361 fi
11362done
81ecdfbb
RW
11363 done
11364IFS=$as_save_IFS
c6b750e1 11365
2429c060
PB
11366 ;;
11367esac
11368fi
c6b750e1 11369LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11370if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11372$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11373else
81ecdfbb
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
2429c060
PB
11376fi
11377
81ecdfbb 11378
2429c060
PB
11379fi
11380if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11381
11382
11383if test -n "$LD_FOR_TARGET"; then
11384 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11385elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11386 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11387fi
11388
11389if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11390 for ncn_progname in ld; do
11391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11392set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
11395if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
9a819804
AO
11397else
11398 if test -n "$LD_FOR_TARGET"; then
11399 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11400else
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11408 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11410 break 2
11411 fi
11412done
81ecdfbb
RW
11413 done
11414IFS=$as_save_IFS
9a819804
AO
11415
11416fi
11417fi
11418LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11419if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11421$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11422else
81ecdfbb
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
9a819804
AO
11425fi
11426
81ecdfbb 11427
9a819804
AO
11428 done
11429fi
11430
11431if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11432 for ncn_progname in ld; do
81ecdfbb
RW
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11435 if test -x $with_build_time_tools/${ncn_progname}; then
11436 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438$as_echo "yes" >&6; }
2429c060
PB
11439 break
11440 else
81ecdfbb
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
2429c060
PB
11443 fi
11444 done
11445fi
11446
11447if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11448 for ncn_progname in ld; do
11449 if test -n "$ncn_target_tool_prefix"; then
11450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453$as_echo_n "checking for $ac_word... " >&6; }
11454if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
2429c060
PB
11456else
11457 if test -n "$LD_FOR_TARGET"; then
11458 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11459else
c6b750e1
DJ
11460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461for as_dir in $PATH
11462do
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11467 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11469 break 2
11470 fi
11471done
81ecdfbb
RW
11472 done
11473IFS=$as_save_IFS
c6b750e1 11474
2429c060
PB
11475fi
11476fi
c6b750e1 11477LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11478if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11480$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11481else
81ecdfbb
RW
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
2429c060
PB
11484fi
11485
81ecdfbb 11486
2429c060
PB
11487 fi
11488 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11490set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492$as_echo_n "checking for $ac_word... " >&6; }
11493if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
2429c060
PB
11495else
11496 if test -n "$LD_FOR_TARGET"; then
11497 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11498else
c6b750e1
DJ
11499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500for as_dir in $PATH
11501do
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11506 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11508 break 2
11509 fi
11510done
81ecdfbb
RW
11511 done
11512IFS=$as_save_IFS
c6b750e1 11513
2429c060
PB
11514fi
11515fi
c6b750e1 11516LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11517if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11519$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11520else
81ecdfbb
RW
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522$as_echo "no" >&6; }
2429c060 11523fi
c6b750e1 11524
81ecdfbb 11525
2429c060
PB
11526 fi
11527 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11528 done
11529fi
c6b750e1 11530
2429c060
PB
11531if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11532 set dummy ld
11533 if test $build = $target ; then
11534 LD_FOR_TARGET="$2"
11535 else
11536 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11537 fi
d3f5afc4
MS
11538else
11539 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11540fi
11541
3a35eeb3
PB
11542else
11543 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11544fi
11545
11546
11547
11548
11549if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11550 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11552$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11553 if test -x $with_build_time_tools/lipo; then
11554 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11555 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11557$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11558 else
81ecdfbb
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
3a35eeb3 11561 fi
2429c060
PB
11562 elif test $build != $host && test $have_gcc_for_target = yes; then
11563 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11564 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11565 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11566 fi
11567fi
9a819804
AO
11568if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11569 # Extract the first word of "lipo", so it can be a program name with args.
11570set dummy lipo; ac_word=$2
81ecdfbb
RW
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572$as_echo_n "checking for $ac_word... " >&6; }
11573if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
9a819804
AO
11575else
11576 case $LIPO_FOR_TARGET in
11577 [\\/]* | ?:[\\/]*)
11578 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11579 ;;
11580 *)
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $gcc_cv_tool_dirs
11583do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11588 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11590 break 2
11591 fi
11592done
81ecdfbb
RW
11593 done
11594IFS=$as_save_IFS
9a819804
AO
11595
11596 ;;
11597esac
11598fi
11599LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11600if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11602$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11603else
81ecdfbb
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
9a819804
AO
11606fi
11607
81ecdfbb 11608
9a819804
AO
11609fi
11610if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11611
11612
11613if test -n "$LIPO_FOR_TARGET"; then
11614 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11615elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11616 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11617fi
11618
11619if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11620 for ncn_progname in lipo; do
11621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11622set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
2429c060 11627else
9a819804
AO
11628 if test -n "$LIPO_FOR_TARGET"; then
11629 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
c6b750e1
DJ
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11638 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11640 break 2
11641 fi
11642done
81ecdfbb
RW
11643 done
11644IFS=$as_save_IFS
c6b750e1 11645
2429c060 11646fi
9a819804
AO
11647fi
11648LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11649if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11651$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11652else
81ecdfbb
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
2429c060
PB
11655fi
11656
81ecdfbb 11657
9a819804 11658 done
2429c060 11659fi
9a819804
AO
11660
11661if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11662 for ncn_progname in lipo; do
81ecdfbb
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11664$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11665 if test -x $with_build_time_tools/${ncn_progname}; then
11666 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668$as_echo "yes" >&6; }
2429c060
PB
11669 break
11670 else
81ecdfbb
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672$as_echo "no" >&6; }
2429c060
PB
11673 fi
11674 done
11675fi
11676
11677if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11678 for ncn_progname in lipo; do
11679 if test -n "$ncn_target_tool_prefix"; then
11680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
11684if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
2429c060
PB
11686else
11687 if test -n "$LIPO_FOR_TARGET"; then
11688 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11689else
c6b750e1
DJ
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11697 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11699 break 2
11700 fi
11701done
81ecdfbb
RW
11702 done
11703IFS=$as_save_IFS
c6b750e1 11704
2429c060
PB
11705fi
11706fi
c6b750e1 11707LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11708if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11710$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11711else
81ecdfbb
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
2429c060
PB
11714fi
11715
81ecdfbb 11716
2429c060
PB
11717 fi
11718 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11720set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722$as_echo_n "checking for $ac_word... " >&6; }
11723if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
2429c060
PB
11725else
11726 if test -n "$LIPO_FOR_TARGET"; then
11727 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11728else
c6b750e1
DJ
11729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730for as_dir in $PATH
11731do
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11736 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11738 break 2
11739 fi
11740done
81ecdfbb
RW
11741 done
11742IFS=$as_save_IFS
c6b750e1 11743
2429c060
PB
11744fi
11745fi
c6b750e1 11746LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11747if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11749$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11750else
81ecdfbb
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752$as_echo "no" >&6; }
2429c060 11753fi
c6b750e1 11754
81ecdfbb 11755
2429c060
PB
11756 fi
11757 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11758 done
11759fi
c6b750e1 11760
2429c060
PB
11761if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11762 set dummy lipo
11763 if test $build = $target ; then
11764 LIPO_FOR_TARGET="$2"
11765 else
11766 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11767 fi
d3f5afc4
MS
11768else
11769 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11770fi
11771
3a35eeb3
PB
11772else
11773 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11774fi
11775
11776
11777
11778
11779if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11780 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11782$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11783 if test -x $with_build_time_tools/nm; then
11784 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11785 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11787$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11788 else
81ecdfbb
RW
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
3a35eeb3 11791 fi
2429c060
PB
11792 elif test $build != $host && test $have_gcc_for_target = yes; then
11793 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11794 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11795 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11796 fi
11797fi
c6b750e1 11798if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11799 # Extract the first word of "nm", so it can be a program name with args.
11800set dummy nm; ac_word=$2
81ecdfbb
RW
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802$as_echo_n "checking for $ac_word... " >&6; }
11803if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
2429c060 11805else
c6b750e1
DJ
11806 case $NM_FOR_TARGET in
11807 [\\/]* | ?:[\\/]*)
2429c060
PB
11808 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11809 ;;
2429c060 11810 *)
c6b750e1
DJ
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $gcc_cv_tool_dirs
11813do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11818 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11820 break 2
11821 fi
11822done
81ecdfbb
RW
11823 done
11824IFS=$as_save_IFS
c6b750e1 11825
2429c060
PB
11826 ;;
11827esac
11828fi
c6b750e1 11829NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11830if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11832$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11833else
81ecdfbb
RW
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
2429c060
PB
11836fi
11837
81ecdfbb 11838
2429c060
PB
11839fi
11840if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11841
11842
11843if test -n "$NM_FOR_TARGET"; then
11844 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11845elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11846 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11847fi
11848
11849if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11850 for ncn_progname in nm; do
11851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11852set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
9a819804
AO
11857else
11858 if test -n "$NM_FOR_TARGET"; then
11859 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11868 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11870 break 2
11871 fi
11872done
81ecdfbb
RW
11873 done
11874IFS=$as_save_IFS
9a819804
AO
11875
11876fi
11877fi
11878NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11879if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11881$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11882else
81ecdfbb
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
9a819804
AO
11885fi
11886
81ecdfbb 11887
9a819804
AO
11888 done
11889fi
11890
11891if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11892 for ncn_progname in nm; do
81ecdfbb
RW
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11894$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11895 if test -x $with_build_time_tools/${ncn_progname}; then
11896 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898$as_echo "yes" >&6; }
2429c060
PB
11899 break
11900 else
81ecdfbb
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
2429c060
PB
11903 fi
11904 done
11905fi
11906
11907if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11908 for ncn_progname in nm; do
11909 if test -n "$ncn_target_tool_prefix"; then
11910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913$as_echo_n "checking for $ac_word... " >&6; }
11914if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
859789af 11916else
55db4b87
PB
11917 if test -n "$NM_FOR_TARGET"; then
11918 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11919else
c6b750e1
DJ
11920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11927 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11929 break 2
11930 fi
11931done
81ecdfbb
RW
11932 done
11933IFS=$as_save_IFS
c6b750e1 11934
859789af
AC
11935fi
11936fi
c6b750e1 11937NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11938if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11940$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11941else
81ecdfbb
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
859789af
AC
11944fi
11945
81ecdfbb 11946
2429c060
PB
11947 fi
11948 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11950set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952$as_echo_n "checking for $ac_word... " >&6; }
11953if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
859789af 11955else
05cbd757
PB
11956 if test -n "$NM_FOR_TARGET"; then
11957 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11958else
c6b750e1
DJ
11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960for as_dir in $PATH
11961do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11966 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11968 break 2
11969 fi
11970done
81ecdfbb
RW
11971 done
11972IFS=$as_save_IFS
c6b750e1 11973
859789af
AC
11974fi
11975fi
c6b750e1 11976NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11977if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11979$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11980else
81ecdfbb
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
859789af 11983fi
c6b750e1 11984
81ecdfbb 11985
2429c060
PB
11986 fi
11987 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11988 done
11989fi
c6b750e1 11990
05cbd757
PB
11991if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11992 set dummy nm
11993 if test $build = $target ; then
11994 NM_FOR_TARGET="$2"
859789af 11995 else
05cbd757 11996 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11997 fi
d3f5afc4
MS
11998else
11999 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12000fi
12001
3a35eeb3
PB
12002else
12003 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12004fi
12005
12006
12007
12008
12009if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12010 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12012$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12013 if test -x $with_build_time_tools/objdump; then
12014 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12015 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12017$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12018 else
81ecdfbb
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
3a35eeb3 12021 fi
2429c060
PB
12022 elif test $build != $host && test $have_gcc_for_target = yes; then
12023 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12024 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12025 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12026 fi
12027fi
c6b750e1 12028if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12029 # Extract the first word of "objdump", so it can be a program name with args.
12030set dummy objdump; ac_word=$2
81ecdfbb
RW
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032$as_echo_n "checking for $ac_word... " >&6; }
12033if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
2429c060 12035else
c6b750e1
DJ
12036 case $OBJDUMP_FOR_TARGET in
12037 [\\/]* | ?:[\\/]*)
2429c060
PB
12038 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12039 ;;
2429c060 12040 *)
c6b750e1
DJ
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $gcc_cv_tool_dirs
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12048 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12050 break 2
12051 fi
12052done
81ecdfbb
RW
12053 done
12054IFS=$as_save_IFS
c6b750e1 12055
2429c060
PB
12056 ;;
12057esac
12058fi
c6b750e1 12059OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12060if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12062$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12063else
81ecdfbb
RW
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
2429c060
PB
12066fi
12067
81ecdfbb 12068
2429c060
PB
12069fi
12070if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12071
12072
12073if test -n "$OBJDUMP_FOR_TARGET"; then
12074 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12075elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12076 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12077fi
12078
12079if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12080 for ncn_progname in objdump; do
12081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12082set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
9a819804
AO
12087else
12088 if test -n "$OBJDUMP_FOR_TARGET"; then
12089 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12090else
12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12098 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12100 break 2
12101 fi
12102done
81ecdfbb
RW
12103 done
12104IFS=$as_save_IFS
9a819804
AO
12105
12106fi
12107fi
12108OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12109if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12111$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12112else
81ecdfbb
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
9a819804
AO
12115fi
12116
81ecdfbb 12117
9a819804
AO
12118 done
12119fi
12120
12121if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12122 for ncn_progname in objdump; do
81ecdfbb
RW
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12124$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12125 if test -x $with_build_time_tools/${ncn_progname}; then
12126 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128$as_echo "yes" >&6; }
2429c060
PB
12129 break
12130 else
81ecdfbb
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
2429c060
PB
12133 fi
12134 done
12135fi
12136
12137if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12138 for ncn_progname in objdump; do
12139 if test -n "$ncn_target_tool_prefix"; then
12140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12141set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
12144if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
5ae72758
DJ
12146else
12147 if test -n "$OBJDUMP_FOR_TARGET"; then
12148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12149else
c6b750e1
DJ
12150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12159 break 2
12160 fi
12161done
81ecdfbb
RW
12162 done
12163IFS=$as_save_IFS
c6b750e1 12164
5ae72758
DJ
12165fi
12166fi
c6b750e1 12167OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12168if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12170$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12171else
81ecdfbb
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
5ae72758
DJ
12174fi
12175
81ecdfbb 12176
2429c060
PB
12177 fi
12178 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12180set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
12183if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
5ae72758
DJ
12185else
12186 if test -n "$OBJDUMP_FOR_TARGET"; then
12187 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12188else
c6b750e1
DJ
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12196 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12198 break 2
12199 fi
12200done
81ecdfbb
RW
12201 done
12202IFS=$as_save_IFS
c6b750e1 12203
5ae72758
DJ
12204fi
12205fi
c6b750e1 12206OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12207if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12209$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12210else
81ecdfbb
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
5ae72758 12213fi
c6b750e1 12214
81ecdfbb 12215
2429c060
PB
12216 fi
12217 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12218 done
12219fi
c6b750e1 12220
5ae72758
DJ
12221if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12222 set dummy objdump
12223 if test $build = $target ; then
12224 OBJDUMP_FOR_TARGET="$2"
12225 else
12226 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12227 fi
d3f5afc4
MS
12228else
12229 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12230fi
12231
3a35eeb3
PB
12232else
12233 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12234fi
12235
12236
12237
12238
12239if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12240 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12242$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12243 if test -x $with_build_time_tools/ranlib; then
12244 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12245 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12247$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12248 else
81ecdfbb
RW
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
3a35eeb3 12251 fi
2429c060
PB
12252 elif test $build != $host && test $have_gcc_for_target = yes; then
12253 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12254 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12255 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12256 fi
12257fi
c6b750e1 12258if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12259 # Extract the first word of "ranlib", so it can be a program name with args.
12260set dummy ranlib; ac_word=$2
81ecdfbb
RW
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
2429c060 12265else
c6b750e1
DJ
12266 case $RANLIB_FOR_TARGET in
12267 [\\/]* | ?:[\\/]*)
2429c060
PB
12268 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12269 ;;
2429c060 12270 *)
c6b750e1
DJ
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $gcc_cv_tool_dirs
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12278 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12280 break 2
12281 fi
12282done
81ecdfbb
RW
12283 done
12284IFS=$as_save_IFS
c6b750e1 12285
2429c060
PB
12286 ;;
12287esac
12288fi
c6b750e1 12289RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12290if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12292$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12293else
81ecdfbb
RW
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
2429c060
PB
12296fi
12297
81ecdfbb 12298
2429c060
PB
12299fi
12300if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12301
12302
12303if test -n "$RANLIB_FOR_TARGET"; then
12304 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12305elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12306 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12307fi
12308
12309if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12310 for ncn_progname in ranlib; do
12311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12312set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
9a819804
AO
12317else
12318 if test -n "$RANLIB_FOR_TARGET"; then
12319 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12328 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12330 break 2
12331 fi
12332done
81ecdfbb
RW
12333 done
12334IFS=$as_save_IFS
9a819804
AO
12335
12336fi
12337fi
12338RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12339if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12341$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12342else
81ecdfbb
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
9a819804
AO
12345fi
12346
81ecdfbb 12347
9a819804
AO
12348 done
12349fi
12350
12351if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12352 for ncn_progname in ranlib; do
81ecdfbb
RW
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12354$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12355 if test -x $with_build_time_tools/${ncn_progname}; then
12356 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358$as_echo "yes" >&6; }
2429c060
PB
12359 break
12360 else
81ecdfbb
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
2429c060
PB
12363 fi
12364 done
12365fi
12366
12367if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12368 for ncn_progname in ranlib; do
12369 if test -n "$ncn_target_tool_prefix"; then
12370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12371set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373$as_echo_n "checking for $ac_word... " >&6; }
12374if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
859789af 12376else
55db4b87
PB
12377 if test -n "$RANLIB_FOR_TARGET"; then
12378 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12379else
c6b750e1
DJ
12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381for as_dir in $PATH
12382do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12387 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12389 break 2
12390 fi
12391done
81ecdfbb
RW
12392 done
12393IFS=$as_save_IFS
c6b750e1 12394
859789af
AC
12395fi
12396fi
c6b750e1 12397RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12398if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12400$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12401else
81ecdfbb
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
859789af
AC
12404fi
12405
81ecdfbb 12406
2429c060
PB
12407 fi
12408 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12410set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
12413if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
859789af 12415else
05cbd757
PB
12416 if test -n "$RANLIB_FOR_TARGET"; then
12417 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12418else
c6b750e1
DJ
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12426 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12428 break 2
12429 fi
12430done
81ecdfbb
RW
12431 done
12432IFS=$as_save_IFS
c6b750e1 12433
859789af
AC
12434fi
12435fi
c6b750e1 12436RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12437if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12439$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12440else
81ecdfbb
RW
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
859789af 12443fi
c6b750e1 12444
81ecdfbb 12445
2429c060
PB
12446 fi
12447 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12448 done
12449fi
c6b750e1 12450
2429c060
PB
12451if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12452 set dummy ranlib
12453 if test $build = $target ; then
12454 RANLIB_FOR_TARGET="$2"
12455 else
12456 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12457 fi
d3f5afc4
MS
12458else
12459 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12460fi
05cbd757 12461
3a35eeb3
PB
12462else
12463 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12464fi
12465
2429c060
PB
12466
12467
12468
12469if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12470 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12472$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12473 if test -x $with_build_time_tools/strip; then
12474 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12475 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12477$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12478 else
81ecdfbb
RW
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
3a35eeb3 12481 fi
2429c060
PB
12482 elif test $build != $host && test $have_gcc_for_target = yes; then
12483 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12484 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12485 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12486 fi
12487fi
c6b750e1 12488if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12489 # Extract the first word of "strip", so it can be a program name with args.
12490set dummy strip; ac_word=$2
81ecdfbb
RW
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492$as_echo_n "checking for $ac_word... " >&6; }
12493if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
2429c060 12495else
c6b750e1
DJ
12496 case $STRIP_FOR_TARGET in
12497 [\\/]* | ?:[\\/]*)
2429c060
PB
12498 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12499 ;;
2429c060 12500 *)
c6b750e1
DJ
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502for as_dir in $gcc_cv_tool_dirs
12503do
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12508 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12510 break 2
12511 fi
12512done
81ecdfbb
RW
12513 done
12514IFS=$as_save_IFS
c6b750e1 12515
2429c060
PB
12516 ;;
12517esac
12518fi
c6b750e1 12519STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12520if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12522$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12523else
81ecdfbb
RW
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
2429c060
PB
12526fi
12527
81ecdfbb 12528
2429c060
PB
12529fi
12530if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12531
12532
12533if test -n "$STRIP_FOR_TARGET"; then
12534 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12535elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12536 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12537fi
12538
12539if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12540 for ncn_progname in strip; do
12541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12542set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
9a819804
AO
12547else
12548 if test -n "$STRIP_FOR_TARGET"; then
12549 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12558 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12560 break 2
12561 fi
12562done
81ecdfbb
RW
12563 done
12564IFS=$as_save_IFS
9a819804
AO
12565
12566fi
12567fi
12568STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12569if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12571$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12572else
81ecdfbb
RW
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
9a819804
AO
12575fi
12576
81ecdfbb 12577
9a819804
AO
12578 done
12579fi
12580
12581if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12582 for ncn_progname in strip; do
81ecdfbb
RW
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12584$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12585 if test -x $with_build_time_tools/${ncn_progname}; then
12586 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588$as_echo "yes" >&6; }
2429c060
PB
12589 break
12590 else
81ecdfbb
RW
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
2429c060
PB
12593 fi
12594 done
12595fi
12596
12597if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12598 for ncn_progname in strip; do
12599 if test -n "$ncn_target_tool_prefix"; then
12600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12601set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603$as_echo_n "checking for $ac_word... " >&6; }
12604if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
7e0f7140
GK
12606else
12607 if test -n "$STRIP_FOR_TARGET"; then
12608 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12609else
12610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611for as_dir in $PATH
12612do
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12617 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12619 break 2
12620 fi
12621done
81ecdfbb
RW
12622 done
12623IFS=$as_save_IFS
c6b750e1 12624
7e0f7140
GK
12625fi
12626fi
c6b750e1 12627STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12628if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12630$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12631else
81ecdfbb
RW
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
7e0f7140
GK
12634fi
12635
81ecdfbb 12636
2429c060
PB
12637 fi
12638 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12640set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642$as_echo_n "checking for $ac_word... " >&6; }
12643if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12644 $as_echo_n "(cached) " >&6
7e0f7140
GK
12645else
12646 if test -n "$STRIP_FOR_TARGET"; then
12647 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12648else
c6b750e1
DJ
12649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650for as_dir in $PATH
12651do
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12656 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12658 break 2
12659 fi
12660done
81ecdfbb
RW
12661 done
12662IFS=$as_save_IFS
c6b750e1 12663
7e0f7140
GK
12664fi
12665fi
c6b750e1 12666STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12667if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12669$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12670else
81ecdfbb
RW
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
7e0f7140 12673fi
c6b750e1 12674
81ecdfbb 12675
2429c060
PB
12676 fi
12677 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12678 done
12679fi
c6b750e1 12680
7e0f7140
GK
12681if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12682 set dummy strip
12683 if test $build = $target ; then
12684 STRIP_FOR_TARGET="$2"
12685 else
12686 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12687 fi
d3f5afc4
MS
12688else
12689 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12690fi
12691
3a35eeb3
PB
12692else
12693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12694fi
12695
12696
12697
12698
12699if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12700 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12702$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12703 if test -x $with_build_time_tools/windres; then
12704 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12705 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12707$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12708 else
81ecdfbb
RW
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710$as_echo "no" >&6; }
3a35eeb3 12711 fi
2429c060
PB
12712 elif test $build != $host && test $have_gcc_for_target = yes; then
12713 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12714 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12715 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12716 fi
12717fi
c6b750e1 12718if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12719 # Extract the first word of "windres", so it can be a program name with args.
12720set dummy windres; ac_word=$2
81ecdfbb
RW
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
12723if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
2429c060 12725else
c6b750e1
DJ
12726 case $WINDRES_FOR_TARGET in
12727 [\\/]* | ?:[\\/]*)
2429c060
PB
12728 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12729 ;;
2429c060 12730 *)
c6b750e1
DJ
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732for as_dir in $gcc_cv_tool_dirs
12733do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12738 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12740 break 2
12741 fi
12742done
81ecdfbb
RW
12743 done
12744IFS=$as_save_IFS
c6b750e1 12745
2429c060
PB
12746 ;;
12747esac
12748fi
c6b750e1 12749WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12750if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12752$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12753else
81ecdfbb
RW
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
2429c060
PB
12756fi
12757
81ecdfbb 12758
2429c060
PB
12759fi
12760if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12761
12762
12763if test -n "$WINDRES_FOR_TARGET"; then
12764 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12765elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12766 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12767fi
12768
12769if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12770 for ncn_progname in windres; do
12771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12772set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
9a819804
AO
12777else
12778 if test -n "$WINDRES_FOR_TARGET"; then
12779 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12788 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12790 break 2
12791 fi
12792done
81ecdfbb
RW
12793 done
12794IFS=$as_save_IFS
9a819804
AO
12795
12796fi
12797fi
12798WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12799if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12801$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12802else
81ecdfbb
RW
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
9a819804
AO
12805fi
12806
81ecdfbb 12807
9a819804
AO
12808 done
12809fi
12810
12811if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12812 for ncn_progname in windres; do
81ecdfbb
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12814$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12815 if test -x $with_build_time_tools/${ncn_progname}; then
12816 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818$as_echo "yes" >&6; }
2429c060
PB
12819 break
12820 else
81ecdfbb
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
2429c060
PB
12823 fi
12824 done
12825fi
12826
12827if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12828 for ncn_progname in windres; do
12829 if test -n "$ncn_target_tool_prefix"; then
12830 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12831set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833$as_echo_n "checking for $ac_word... " >&6; }
12834if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
859789af 12836else
55db4b87
PB
12837 if test -n "$WINDRES_FOR_TARGET"; then
12838 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12839else
c6b750e1
DJ
12840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12847 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12849 break 2
12850 fi
12851done
81ecdfbb
RW
12852 done
12853IFS=$as_save_IFS
c6b750e1 12854
859789af
AC
12855fi
12856fi
c6b750e1 12857WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12858if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12860$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12861else
81ecdfbb
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
859789af
AC
12864fi
12865
81ecdfbb 12866
2429c060
PB
12867 fi
12868 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12870set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872$as_echo_n "checking for $ac_word... " >&6; }
12873if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
859789af 12875else
05cbd757
PB
12876 if test -n "$WINDRES_FOR_TARGET"; then
12877 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12878else
c6b750e1
DJ
12879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880for as_dir in $PATH
12881do
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12886 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12888 break 2
12889 fi
12890done
81ecdfbb
RW
12891 done
12892IFS=$as_save_IFS
c6b750e1 12893
859789af
AC
12894fi
12895fi
c6b750e1 12896WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12897if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12899$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12900else
81ecdfbb
RW
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902$as_echo "no" >&6; }
859789af 12903fi
c6b750e1 12904
81ecdfbb 12905
2429c060
PB
12906 fi
12907 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12908 done
12909fi
c6b750e1 12910
05cbd757
PB
12911if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12912 set dummy windres
12913 if test $build = $target ; then
12914 WINDRES_FOR_TARGET="$2"
859789af 12915 else
05cbd757 12916 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12917 fi
d3f5afc4
MS
12918else
12919 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12920fi
12921
3a35eeb3
PB
12922else
12923 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12924fi
12925
852e5f18 12926
0c24b341
NC
12927
12928
12929if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12930 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12932$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12933 if test -x $with_build_time_tools/windmc; then
12934 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12935 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12937$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12938 else
81ecdfbb
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940$as_echo "no" >&6; }
0c24b341
NC
12941 fi
12942 elif test $build != $host && test $have_gcc_for_target = yes; then
12943 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12944 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12945 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12946 fi
12947fi
12948if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12949 # Extract the first word of "windmc", so it can be a program name with args.
12950set dummy windmc; ac_word=$2
81ecdfbb
RW
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
0c24b341
NC
12955else
12956 case $WINDMC_FOR_TARGET in
12957 [\\/]* | ?:[\\/]*)
12958 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12959 ;;
12960 *)
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $gcc_cv_tool_dirs
12963do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12968 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12970 break 2
12971 fi
12972done
81ecdfbb
RW
12973 done
12974IFS=$as_save_IFS
0c24b341
NC
12975
12976 ;;
12977esac
12978fi
12979WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12980if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12982$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12983else
81ecdfbb
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
0c24b341
NC
12986fi
12987
81ecdfbb 12988
0c24b341
NC
12989fi
12990if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12991
12992
12993if test -n "$WINDMC_FOR_TARGET"; then
12994 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12995elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12996 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12997fi
12998
12999if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13000 for ncn_progname in windmc; do
13001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13002set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
13005if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
0c24b341
NC
13007else
13008 if test -n "$WINDMC_FOR_TARGET"; then
13009 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13018 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13020 break 2
13021 fi
13022done
81ecdfbb
RW
13023 done
13024IFS=$as_save_IFS
0c24b341
NC
13025
13026fi
13027fi
13028WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13029if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13031$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13032else
81ecdfbb
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
0c24b341
NC
13035fi
13036
81ecdfbb 13037
0c24b341
NC
13038 done
13039fi
13040
13041if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13042 for ncn_progname in windmc; do
81ecdfbb
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13044$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13045 if test -x $with_build_time_tools/${ncn_progname}; then
13046 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048$as_echo "yes" >&6; }
0c24b341
NC
13049 break
13050 else
81ecdfbb
RW
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
0c24b341
NC
13053 fi
13054 done
13055fi
13056
13057if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13058 for ncn_progname in windmc; do
13059 if test -n "$ncn_target_tool_prefix"; then
13060 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13061set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063$as_echo_n "checking for $ac_word... " >&6; }
13064if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
0c24b341
NC
13066else
13067 if test -n "$WINDMC_FOR_TARGET"; then
13068 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13069else
13070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071for as_dir in $PATH
13072do
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13077 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13079 break 2
13080 fi
13081done
81ecdfbb
RW
13082 done
13083IFS=$as_save_IFS
0c24b341
NC
13084
13085fi
13086fi
13087WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13088if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13090$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13091else
81ecdfbb
RW
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093$as_echo "no" >&6; }
0c24b341
NC
13094fi
13095
81ecdfbb 13096
0c24b341
NC
13097 fi
13098 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13100set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102$as_echo_n "checking for $ac_word... " >&6; }
13103if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
0c24b341
NC
13105else
13106 if test -n "$WINDMC_FOR_TARGET"; then
13107 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13108else
13109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110for as_dir in $PATH
13111do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13116 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13118 break 2
13119 fi
13120done
81ecdfbb
RW
13121 done
13122IFS=$as_save_IFS
0c24b341
NC
13123
13124fi
13125fi
13126WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13127if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13129$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13130else
81ecdfbb
RW
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
0c24b341
NC
13133fi
13134
81ecdfbb 13135
0c24b341
NC
13136 fi
13137 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13138 done
13139fi
13140
13141if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13142 set dummy windmc
13143 if test $build = $target ; then
13144 WINDMC_FOR_TARGET="$2"
13145 else
13146 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13147 fi
13148else
13149 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13150fi
13151
13152else
13153 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13154fi
13155
13156
be01d343
PB
13157RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13158
81ecdfbb
RW
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13160$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13161if test "x${build}" != "x${host}" ; then
2429c060
PB
13162 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13163 # We already found the complete path
b8025f34 13164 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13166$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13167 else
13168 # Canadian cross, just use what we found
81ecdfbb
RW
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13170$as_echo "pre-installed" >&6; }
2429c060 13171 fi
be01d343
PB
13172else
13173 ok=yes
13174 case " ${configdirs} " in
13175 *" binutils "*) ;;
13176 *) ok=no ;;
13177 esac
c6b750e1 13178
be01d343
PB
13179 if test $ok = yes; then
13180 # An in-tree tool is available and we can use it
13181 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13183$as_echo "just compiled" >&6; }
2429c060
PB
13184 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13185 # We already found the complete path
b8025f34 13186 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13188$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13189 elif test "x$target" = "x$host"; then
13190 # We can use an host tool
13191 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13193$as_echo "host tool" >&6; }
be01d343
PB
13194 else
13195 # We need a cross tool
81ecdfbb
RW
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13197$as_echo "pre-installed" >&6; }
be01d343
PB
13198 fi
13199fi
4b900473 13200
81ecdfbb
RW
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13202$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13203if test "x${build}" != "x${host}" ; then
2429c060
PB
13204 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13205 # We already found the complete path
b8025f34 13206 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13208$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13209 else
13210 # Canadian cross, just use what we found
81ecdfbb
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13212$as_echo "pre-installed" >&6; }
2429c060 13213 fi
be01d343
PB
13214else
13215 ok=yes
13216 case " ${configdirs} " in
13217 *" gas "*) ;;
13218 *) ok=no ;;
13219 esac
c6b750e1 13220
be01d343
PB
13221 if test $ok = yes; then
13222 # An in-tree tool is available and we can use it
13223 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13225$as_echo "just compiled" >&6; }
2429c060
PB
13226 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13227 # We already found the complete path
b8025f34 13228 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13230$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13231 elif test "x$target" = "x$host"; then
13232 # We can use an host tool
13233 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13235$as_echo "host tool" >&6; }
be01d343
PB
13236 else
13237 # We need a cross tool
81ecdfbb
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13239$as_echo "pre-installed" >&6; }
be01d343
PB
13240 fi
13241fi
4b900473 13242
81ecdfbb
RW
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13244$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13245if test "x${build}" != "x${host}" ; then
2429c060
PB
13246 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13247 # We already found the complete path
b8025f34 13248 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13250$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13251 else
13252 # Canadian cross, just use what we found
81ecdfbb
RW
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13254$as_echo "pre-installed" >&6; }
2429c060 13255 fi
be01d343
PB
13256else
13257 ok=yes
13258 case " ${configdirs} " in
13259 *" gcc "*) ;;
13260 *) ok=no ;;
13261 esac
c6b750e1 13262
be01d343
PB
13263 if test $ok = yes; then
13264 # An in-tree tool is available and we can use it
13265 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13267$as_echo "just compiled" >&6; }
2429c060
PB
13268 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13269 # We already found the complete path
b8025f34 13270 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13273 elif test "x$target" = "x$host"; then
13274 # We can use an host tool
13275 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13277$as_echo "host tool" >&6; }
be01d343
PB
13278 else
13279 # We need a cross tool
81ecdfbb
RW
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13281$as_echo "pre-installed" >&6; }
be01d343
PB
13282 fi
13283fi
4b900473 13284
81ecdfbb
RW
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13286$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13287if test "x${build}" != "x${host}" ; then
2429c060
PB
13288 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13289 # We already found the complete path
b8025f34 13290 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13292$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13293 else
13294 # Canadian cross, just use what we found
81ecdfbb
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13296$as_echo "pre-installed" >&6; }
2429c060 13297 fi
be01d343
PB
13298else
13299 ok=yes
13300 case " ${configdirs} " in
13301 *" gcc "*) ;;
13302 *) ok=no ;;
13303 esac
13304 case ,${enable_languages}, in
13305 *,c++,*) ;;
13306 *) ok=no ;;
13307 esac
13308 if test $ok = yes; then
13309 # An in-tree tool is available and we can use it
13310 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'
81ecdfbb
RW
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13312$as_echo "just compiled" >&6; }
2429c060
PB
13313 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13314 # We already found the complete path
b8025f34 13315 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13318 elif test "x$target" = "x$host"; then
13319 # We can use an host tool
13320 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13322$as_echo "host tool" >&6; }
be01d343
PB
13323 else
13324 # We need a cross tool
81ecdfbb
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13326$as_echo "pre-installed" >&6; }
be01d343
PB
13327 fi
13328fi
4b900473 13329
81ecdfbb
RW
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13331$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13332if test "x${build}" != "x${host}" ; then
2429c060
PB
13333 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13334 # We already found the complete path
b8025f34 13335 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13337$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13338 else
13339 # Canadian cross, just use what we found
81ecdfbb
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13341$as_echo "pre-installed" >&6; }
2429c060 13342 fi
be01d343
PB
13343else
13344 ok=yes
13345 case " ${configdirs} " in
13346 *" gcc "*) ;;
13347 *) ok=no ;;
13348 esac
13349 case ,${enable_languages}, in
13350 *,c++,*) ;;
13351 *) ok=no ;;
13352 esac
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357$as_echo "just compiled" >&6; }
2429c060
PB
13358 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
b8025f34 13360 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367$as_echo "host tool" >&6; }
be01d343
PB
13368 else
13369 # We need a cross tool
81ecdfbb
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371$as_echo "pre-installed" >&6; }
be01d343
PB
13372 fi
13373fi
4b900473 13374
81ecdfbb
RW
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13376$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13377if test "x${build}" != "x${host}" ; then
2429c060
PB
13378 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
b8025f34 13380 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13383 else
13384 # Canadian cross, just use what we found
81ecdfbb
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386$as_echo "pre-installed" >&6; }
2429c060 13387 fi
be01d343
PB
13388else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" binutils "*) ;;
13392 *) ok=no ;;
13393 esac
c6b750e1 13394
be01d343
PB
13395 if test $ok = yes; then
13396 # An in-tree tool is available and we can use it
13397 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13399$as_echo "just compiled" >&6; }
2429c060
PB
13400 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13401 # We already found the complete path
b8025f34 13402 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13405 elif test "x$target" = "x$host"; then
13406 # We can use an host tool
13407 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13409$as_echo "host tool" >&6; }
be01d343
PB
13410 else
13411 # We need a cross tool
81ecdfbb
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413$as_echo "pre-installed" >&6; }
be01d343
PB
13414 fi
13415fi
4b900473 13416
81ecdfbb
RW
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13418$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13419if test "x${build}" != "x${host}" ; then
2429c060
PB
13420 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
b8025f34 13422 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13425 else
13426 # Canadian cross, just use what we found
81ecdfbb
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428$as_echo "pre-installed" >&6; }
2429c060 13429 fi
be01d343
PB
13430else
13431 ok=yes
13432 case " ${configdirs} " in
13433 *" gcc "*) ;;
13434 *) ok=no ;;
13435 esac
c6b750e1 13436
be01d343
PB
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441$as_echo "just compiled" >&6; }
2429c060
PB
13442 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
b8025f34 13444 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451$as_echo "host tool" >&6; }
be01d343
PB
13452 else
13453 # We need a cross tool
81ecdfbb
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455$as_echo "pre-installed" >&6; }
be01d343
PB
13456 fi
13457fi
4b900473 13458
81ecdfbb
RW
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13460$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13461if test "x${build}" != "x${host}" ; then
2429c060
PB
13462 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
b8025f34 13464 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13467 else
13468 # Canadian cross, just use what we found
81ecdfbb
RW
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470$as_echo "pre-installed" >&6; }
2429c060 13471 fi
be01d343
PB
13472else
13473 ok=yes
13474 case " ${configdirs} " in
13475 *" gcc "*) ;;
13476 *) ok=no ;;
13477 esac
13478 case ,${enable_languages}, in
13479 *,java,*) ;;
13480 *) ok=no ;;
13481 esac
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
13484 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486$as_echo "just compiled" >&6; }
2429c060
PB
13487 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
b8025f34 13489 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496$as_echo "host tool" >&6; }
be01d343
PB
13497 else
13498 # We need a cross tool
81ecdfbb
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500$as_echo "pre-installed" >&6; }
be01d343
PB
13501 fi
13502fi
4b900473 13503
81ecdfbb
RW
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13505$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13506if test "x${build}" != "x${host}" ; then
2429c060
PB
13507 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
b8025f34 13509 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13512 else
13513 # Canadian cross, just use what we found
81ecdfbb
RW
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515$as_echo "pre-installed" >&6; }
2429c060 13516 fi
be01d343
PB
13517else
13518 ok=yes
13519 case " ${configdirs} " in
13520 *" gcc "*) ;;
13521 *) ok=no ;;
13522 esac
13523 case ,${enable_languages}, in
13524 *,fortran,*) ;;
13525 *) ok=no ;;
13526 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531$as_echo "just compiled" >&6; }
2429c060
PB
13532 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
b8025f34 13534 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541$as_echo "host tool" >&6; }
be01d343
PB
13542 else
13543 # We need a cross tool
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545$as_echo "pre-installed" >&6; }
be01d343
PB
13546 fi
13547fi
4b900473 13548
e552509b
ILT
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13550$as_echo_n "checking where to find the target gccgo... " >&6; }
13551if test "x${build}" != "x${host}" ; then
13552 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $GOC_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556$as_echo "pre-installed in $ac_dir" >&6; }
13557 else
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560$as_echo "pre-installed" >&6; }
13561 fi
13562else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" gcc "*) ;;
13566 *) ok=no ;;
13567 esac
13568 case ,${enable_languages}, in
13569 *,go,*) ;;
13570 *) ok=no ;;
13571 esac
13572 if test $ok = yes; then
13573 # An in-tree tool is available and we can use it
13574 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13576$as_echo "just compiled" >&6; }
13577 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13578 # We already found the complete path
13579 ac_dir=`dirname $GOC_FOR_TARGET`
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581$as_echo "pre-installed in $ac_dir" >&6; }
13582 elif test "x$target" = "x$host"; then
13583 # We can use an host tool
13584 GOC_FOR_TARGET='$(GOC)'
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13586$as_echo "host tool" >&6; }
13587 else
13588 # We need a cross tool
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590$as_echo "pre-installed" >&6; }
13591 fi
13592fi
13593
81ecdfbb
RW
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13595$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13596if test "x${build}" != "x${host}" ; then
2429c060
PB
13597 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13598 # We already found the complete path
b8025f34 13599 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13601$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13602 else
13603 # Canadian cross, just use what we found
81ecdfbb
RW
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13605$as_echo "pre-installed" >&6; }
2429c060 13606 fi
be01d343
PB
13607else
13608 ok=yes
13609 case " ${configdirs} " in
13610 *" ld "*) ;;
13611 *) ok=no ;;
13612 esac
c6b750e1 13613
be01d343
PB
13614 if test $ok = yes; then
13615 # An in-tree tool is available and we can use it
13616 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13618$as_echo "just compiled" >&6; }
2429c060
PB
13619 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13620 # We already found the complete path
b8025f34 13621 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13623$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13624 elif test "x$target" = "x$host"; then
13625 # We can use an host tool
13626 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13628$as_echo "host tool" >&6; }
be01d343
PB
13629 else
13630 # We need a cross tool
81ecdfbb
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632$as_echo "pre-installed" >&6; }
be01d343
PB
13633 fi
13634fi
4b900473 13635
81ecdfbb
RW
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13637$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13638if test "x${build}" != "x${host}" ; then
2429c060
PB
13639 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13640 # We already found the complete path
b8025f34 13641 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13643$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13644 else
13645 # Canadian cross, just use what we found
81ecdfbb
RW
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13647$as_echo "pre-installed" >&6; }
2429c060 13648 fi
be01d343 13649else
2429c060
PB
13650 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13651 # We already found the complete path
b8025f34 13652 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13655 elif test "x$target" = "x$host"; then
be01d343
PB
13656 # We can use an host tool
13657 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13659$as_echo "host tool" >&6; }
be01d343
PB
13660 else
13661 # We need a cross tool
81ecdfbb
RW
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13663$as_echo "pre-installed" >&6; }
be01d343
PB
13664 fi
13665fi
4b900473 13666
81ecdfbb
RW
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13668$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13669if test "x${build}" != "x${host}" ; then
2429c060
PB
13670 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13671 # We already found the complete path
b8025f34 13672 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13674$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13675 else
13676 # Canadian cross, just use what we found
81ecdfbb
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13678$as_echo "pre-installed" >&6; }
2429c060 13679 fi
be01d343
PB
13680else
13681 ok=yes
13682 case " ${configdirs} " in
13683 *" binutils "*) ;;
13684 *) ok=no ;;
13685 esac
c6b750e1 13686
be01d343
PB
13687 if test $ok = yes; then
13688 # An in-tree tool is available and we can use it
13689 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13691$as_echo "just compiled" >&6; }
2429c060
PB
13692 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
b8025f34 13694 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13697 elif test "x$target" = "x$host"; then
13698 # We can use an host tool
13699 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13701$as_echo "host tool" >&6; }
be01d343
PB
13702 else
13703 # We need a cross tool
81ecdfbb
RW
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13705$as_echo "pre-installed" >&6; }
be01d343
PB
13706 fi
13707fi
4b900473 13708
81ecdfbb
RW
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13710$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13711if test "x${build}" != "x${host}" ; then
2429c060
PB
13712 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13713 # We already found the complete path
b8025f34 13714 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13716$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13717 else
13718 # Canadian cross, just use what we found
81ecdfbb
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720$as_echo "pre-installed" >&6; }
2429c060 13721 fi
be01d343
PB
13722else
13723 ok=yes
13724 case " ${configdirs} " in
13725 *" binutils "*) ;;
13726 *) ok=no ;;
13727 esac
c6b750e1 13728
be01d343
PB
13729 if test $ok = yes; then
13730 # An in-tree tool is available and we can use it
13731 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13733$as_echo "just compiled" >&6; }
2429c060
PB
13734 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
b8025f34 13736 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13739 elif test "x$target" = "x$host"; then
13740 # We can use an host tool
13741 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13743$as_echo "host tool" >&6; }
be01d343
PB
13744 else
13745 # We need a cross tool
81ecdfbb
RW
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13747$as_echo "pre-installed" >&6; }
be01d343
PB
13748 fi
13749fi
4b900473 13750
81ecdfbb
RW
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13752$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13753if test "x${build}" != "x${host}" ; then
2429c060
PB
13754 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13755 # We already found the complete path
b8025f34 13756 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13758$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13759 else
13760 # Canadian cross, just use what we found
81ecdfbb
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13762$as_echo "pre-installed" >&6; }
2429c060 13763 fi
be01d343
PB
13764else
13765 ok=yes
13766 case " ${configdirs} " in
13767 *" binutils "*) ;;
13768 *) ok=no ;;
13769 esac
c6b750e1 13770
be01d343
PB
13771 if test $ok = yes; then
13772 # An in-tree tool is available and we can use it
13773 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13775$as_echo "just compiled" >&6; }
2429c060
PB
13776 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13777 # We already found the complete path
b8025f34 13778 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13781 elif test "x$target" = "x$host"; then
13782 # We can use an host tool
13783 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13785$as_echo "host tool" >&6; }
be01d343
PB
13786 else
13787 # We need a cross tool
81ecdfbb
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789$as_echo "pre-installed" >&6; }
be01d343
PB
13790 fi
13791fi
4b900473 13792
81ecdfbb
RW
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13794$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13795if test "x${build}" != "x${host}" ; then
2429c060
PB
13796 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13797 # We already found the complete path
b8025f34 13798 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13800$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13801 else
13802 # Canadian cross, just use what we found
81ecdfbb
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804$as_echo "pre-installed" >&6; }
2429c060 13805 fi
be01d343
PB
13806else
13807 ok=yes
13808 case " ${configdirs} " in
13809 *" binutils "*) ;;
13810 *) ok=no ;;
13811 esac
c6b750e1 13812
be01d343
PB
13813 if test $ok = yes; then
13814 # An in-tree tool is available and we can use it
9b980aa1 13815 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13817$as_echo "just compiled" >&6; }
2429c060
PB
13818 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13819 # We already found the complete path
b8025f34 13820 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13823 elif test "x$target" = "x$host"; then
13824 # We can use an host tool
13825 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13827$as_echo "host tool" >&6; }
be01d343
PB
13828 else
13829 # We need a cross tool
81ecdfbb
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831$as_echo "pre-installed" >&6; }
be01d343
PB
13832 fi
13833fi
4b900473 13834
81ecdfbb
RW
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13836$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13837if test "x${build}" != "x${host}" ; then
2429c060
PB
13838 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13839 # We already found the complete path
b8025f34 13840 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13842$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13843 else
13844 # Canadian cross, just use what we found
81ecdfbb
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846$as_echo "pre-installed" >&6; }
2429c060 13847 fi
be01d343
PB
13848else
13849 ok=yes
13850 case " ${configdirs} " in
13851 *" binutils "*) ;;
13852 *) ok=no ;;
13853 esac
c6b750e1 13854
be01d343
PB
13855 if test $ok = yes; then
13856 # An in-tree tool is available and we can use it
13857 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13859$as_echo "just compiled" >&6; }
2429c060
PB
13860 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13861 # We already found the complete path
b8025f34 13862 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13865 elif test "x$target" = "x$host"; then
13866 # We can use an host tool
13867 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13869$as_echo "host tool" >&6; }
be01d343
PB
13870 else
13871 # We need a cross tool
81ecdfbb
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873$as_echo "pre-installed" >&6; }
be01d343 13874 fi
a0da8069 13875fi
54752a6b 13876
81ecdfbb
RW
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13878$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13879if test "x${build}" != "x${host}" ; then
13880 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13881 # We already found the complete path
13882 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13884$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13885 else
13886 # Canadian cross, just use what we found
81ecdfbb
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13888$as_echo "pre-installed" >&6; }
0c24b341
NC
13889 fi
13890else
13891 ok=yes
13892 case " ${configdirs} " in
13893 *" binutils "*) ;;
13894 *) ok=no ;;
13895 esac
13896
13897 if test $ok = yes; then
13898 # An in-tree tool is available and we can use it
13899 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13901$as_echo "just compiled" >&6; }
0c24b341
NC
13902 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13903 # We already found the complete path
13904 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13906$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13907 elif test "x$target" = "x$host"; then
13908 # We can use an host tool
13909 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13911$as_echo "host tool" >&6; }
0c24b341
NC
13912 else
13913 # We need a cross tool
81ecdfbb
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13915$as_echo "pre-installed" >&6; }
0c24b341
NC
13916 fi
13917fi
13918
54752a6b
NN
13919
13920
be01d343 13921
4b900473 13922
a0da8069
NN
13923# Certain tools may need extra flags.
13924AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13925RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13926NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13927
be01d343
PB
13928# When building target libraries, except in a Canadian cross, we use
13929# the same toolchain as the compiler we just built.
13930COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13931COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13932COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13933if test $host = $build; then
13934 case " $configdirs " in
13935 *" gcc "*)
13936 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13937 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13938 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13939 ;;
13940 esac
13941fi
13942
13943
13944
13945
13946
81ecdfbb
RW
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13948$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13949# Check whether --enable-maintainer-mode was given.
13950if test "${enable_maintainer_mode+set}" = set; then :
13951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13952else
13953 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13954fi
13955
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13957$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13958
13959
13960if test "$USE_MAINTAINER_MODE" = yes; then
13961 MAINTAINER_MODE_TRUE=
13962 MAINTAINER_MODE_FALSE='#'
13963else
13964 MAINTAINER_MODE_TRUE='#'
13965 MAINTAINER_MODE_FALSE=
c6b750e1 13966fi
3d5e36ae
AO
13967MAINT=$MAINTAINER_MODE_TRUE
13968
1d39f329
NN
13969# ---------------------
13970# GCC bootstrap support
13971# ---------------------
13972
13973# Stage specific cflags for build.
13974stage1_cflags="-g"
13975case $build in
13976 vax-*-*)
13977 case ${GCC} in
13978 yes) stage1_cflags="-g -Wa,-J" ;;
13979 *) stage1_cflags="-g -J" ;;
13980 esac ;;
1d39f329
NN
13981esac
13982
1d89b610 13983# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13984if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13985 saved_CFLAGS="$CFLAGS"
13986
13987 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13988 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13990$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13992/* end confdefs.h. */
13993
2038f525
PB
13994#if (__GNUC__ < 3) \
13995 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13996 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13997#error http://gcc.gnu.org/PR29382
13998#endif
13999
c6b750e1
DJ
14000int
14001main ()
14002{
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
81ecdfbb
RW
14008if ac_fn_c_try_compile "$LINENO"; then :
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14011else
81ecdfbb
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013$as_echo "no" >&6; }
c6b750e1 14014fi
81ecdfbb 14015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14016
14017 CFLAGS="$saved_CFLAGS"
14018fi
14019
14020
1d39f329 14021
8a0d8a5c 14022# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14023# Check whether --enable-stage1-checking was given.
14024if test "${enable_stage1_checking+set}" = set; then :
14025 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14026else
5566c1fa 14027 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14028 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14029else
5566c1fa 14030 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14031fi
81ecdfbb 14032fi
8a0d8a5c
PB
14033
14034
c6b750e1 14035
81ecdfbb
RW
14036# Enable -Werror in bootstrap stage2 and later.
14037# Check whether --enable-werror was given.
14038if test "${enable_werror+set}" = set; then :
14039 enableval=$enable_werror;
1d39f329 14040else
a0323144 14041 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14042 enable_werror=yes
79fcd0ec
PB
14043else
14044 enable_werror=no
14045fi
81ecdfbb
RW
14046fi
14047
1a6f2dc7
NN
14048case ${enable_werror} in
14049 yes) stage2_werror_flag="--enable-werror-always" ;;
14050 *) stage2_werror_flag="" ;;
1d39f329
NN
14051esac
14052
14053
e8a5fa9c
RW
14054# Specify what files to not compare during bootstrap.
14055
14056compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14057case "$target" in
14058 hppa*64*-*-hpux*) ;;
14059 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14060esac
1f53ca9a
AO
14061case " $configdirs " in
14062*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14063esac
e8a5fa9c
RW
14064
14065
81ecdfbb
RW
14066ac_config_files="$ac_config_files Makefile"
14067
c6b750e1 14068cat >confcache <<\_ACEOF
a0da8069
NN
14069# This file is a shell script that caches the results of configure
14070# tests run on this system so they can be shared between configure
c6b750e1
DJ
14071# scripts and configure runs, see configure's option --config-cache.
14072# It is not useful on other systems. If it contains results you don't
14073# want to keep, you may remove or edit it.
a0da8069 14074#
c6b750e1
DJ
14075# config.status only pays attention to the cache file if you give it
14076# the --recheck option to rerun configure.
a0da8069 14077#
c6b750e1
DJ
14078# `ac_cv_env_foo' variables (set or unset) will be overridden when
14079# loading this file, other *unset* `ac_cv_foo' will be assigned the
14080# following values.
14081
14082_ACEOF
14083
a0da8069
NN
14084# The following way of writing the cache mishandles newlines in values,
14085# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14086# So, we kill variables containing newlines.
a0da8069
NN
14087# Ultrix sh set writes to stderr and can't be redirected directly,
14088# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14089(
14090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14091 eval ac_val=\$$ac_var
14092 case $ac_val in #(
14093 *${as_nl}*)
14094 case $ac_var in #(
14095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14097 esac
14098 case $ac_var in #(
14099 _ | IFS | as_nl) ;; #(
14100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14101 *) { eval $ac_var=; unset $ac_var;} ;;
14102 esac ;;
14103 esac
14104 done
14105
c6b750e1 14106 (set) 2>&1 |
81ecdfbb
RW
14107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14108 *${as_nl}ac_space=\ *)
14109 # `set' does not quote correctly, so add quotes: double-quote
14110 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14111 sed -n \
14112 "s/'/'\\\\''/g;
14113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14114 ;; #(
c6b750e1
DJ
14115 *)
14116 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14118 ;;
81ecdfbb
RW
14119 esac |
14120 sort
14121) |
c6b750e1 14122 sed '
81ecdfbb 14123 /^ac_cv_env_/b end
c6b750e1 14124 t clear
81ecdfbb 14125 :clear
c6b750e1
DJ
14126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14127 t end
81ecdfbb
RW
14128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14129 :end' >>confcache
14130if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14131 if test -w "$cache_file"; then
14132 test "x$cache_file" != "x/dev/null" &&
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14134$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14135 cat confcache >$cache_file
a0da8069 14136 else
81ecdfbb
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14138$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14139 fi
852e5f18 14140fi
a0da8069 14141rm -f confcache
852e5f18 14142
a0da8069
NN
14143test "x$prefix" = xNONE && prefix=$ac_default_prefix
14144# Let make expand exec_prefix.
14145test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14146
a0da8069
NN
14147# Transform confdefs.h into DEFS.
14148# Protect against shell expansion while executing Makefile rules.
14149# Protect against Makefile macro expansion.
c6b750e1
DJ
14150#
14151# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14152# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14153# look for a macro that doesn't take arguments.
81ecdfbb
RW
14154ac_script='
14155:mline
14156/\\$/{
14157 N
14158 s,\\\n,,
14159 b mline
14160}
c6b750e1 14161t clear
81ecdfbb
RW
14162:clear
14163s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14164t quote
81ecdfbb 14165s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14166t quote
81ecdfbb
RW
14167b any
14168:quote
14169s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14170s/\[/\\&/g
14171s/\]/\\&/g
14172s/\$/$$/g
14173H
14174:any
14175${
14176 g
14177 s/^\n//
14178 s/\n/ /g
14179 p
14180}
14181'
14182DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14183
14184
14185ac_libobjs=
14186ac_ltlibobjs=
14187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14188 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14190 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14192 # will be set to the directory where LIBOBJS objects are built.
14193 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14194 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14195done
14196LIBOBJS=$ac_libobjs
852e5f18 14197
c6b750e1 14198LTLIBOBJS=$ac_ltlibobjs
376a0e54 14199
cac3d6c4 14200
c6b750e1
DJ
14201
14202: ${CONFIG_STATUS=./config.status}
81ecdfbb 14203ac_write_fail=0
c6b750e1
DJ
14204ac_clean_files_save=$ac_clean_files
14205ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14207$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14208as_write_fail=0
14209cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14210#! $SHELL
14211# Generated by $as_me.
a0da8069 14212# Run this file to recreate the current configuration.
a0da8069 14213# Compiler output produced by configure, useful for debugging
c6b750e1 14214# configure, is in config.log if it exists.
376a0e54 14215
c6b750e1
DJ
14216debug=false
14217ac_cs_recheck=false
14218ac_cs_silent=false
c6b750e1 14219
81ecdfbb
RW
14220SHELL=\${CONFIG_SHELL-$SHELL}
14221export SHELL
14222_ASEOF
14223cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14224## -------------------- ##
14225## M4sh Initialization. ##
14226## -------------------- ##
14227
14228# Be more Bourne compatible
14229DUALCASE=1; export DUALCASE # for MKS sh
14230if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14231 emulate sh
14232 NULLCMD=:
81ecdfbb 14233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14234 # is contrary to our usage. Disable this feature.
14235 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14236 setopt NO_GLOB_SUBST
14237else
14238 case `(set -o) 2>/dev/null` in #(
14239 *posix*) :
14240 set -o posix ;; #(
14241 *) :
14242 ;;
14243esac
c6b750e1 14244fi
c6b750e1 14245
81ecdfbb
RW
14246
14247as_nl='
14248'
14249export as_nl
14250# Printing a long string crashes Solaris 7 /usr/bin/printf.
14251as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14253as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14254# Prefer a ksh shell builtin over an external printf program on Solaris,
14255# but without wasting forks for bash or zsh.
14256if test -z "$BASH_VERSION$ZSH_VERSION" \
14257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14258 as_echo='print -r --'
14259 as_echo_n='print -rn --'
14260elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14261 as_echo='printf %s\n'
14262 as_echo_n='printf %s'
14263else
14264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14266 as_echo_n='/usr/ucb/echo -n'
14267 else
14268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14269 as_echo_n_body='eval
14270 arg=$1;
14271 case $arg in #(
14272 *"$as_nl"*)
14273 expr "X$arg" : "X\\(.*\\)$as_nl";
14274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14275 esac;
14276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14277 '
14278 export as_echo_n_body
14279 as_echo_n='sh -c $as_echo_n_body as_echo'
14280 fi
14281 export as_echo_body
14282 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14283fi
14284
81ecdfbb
RW
14285# The user is always right.
14286if test "${PATH_SEPARATOR+set}" != set; then
14287 PATH_SEPARATOR=:
14288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14290 PATH_SEPARATOR=';'
14291 }
14292fi
14293
14294
14295# IFS
14296# We need space, tab and new line, in precisely that order. Quoting is
14297# there to prevent editors from complaining about space-tab.
14298# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14299# splitting by setting IFS to empty value.)
14300IFS=" "" $as_nl"
14301
14302# Find who we are. Look in the path if we contain no directory separator.
14303case $0 in #((
14304 *[\\/]* ) as_myself=$0 ;;
14305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306for as_dir in $PATH
14307do
14308 IFS=$as_save_IFS
14309 test -z "$as_dir" && as_dir=.
14310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14311 done
14312IFS=$as_save_IFS
14313
14314 ;;
14315esac
14316# We did not find ourselves, most probably we were run as `sh COMMAND'
14317# in which case we are not to be found in the path.
14318if test "x$as_myself" = x; then
14319 as_myself=$0
14320fi
14321if test ! -f "$as_myself"; then
14322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14323 exit 1
14324fi
c6b750e1 14325
81ecdfbb
RW
14326# Unset variables that we do not need and which cause bugs (e.g. in
14327# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14328# suppresses any "Segmentation fault" message there. '((' could
14329# trigger a bug in pdksh 5.2.14.
14330for as_var in BASH_ENV ENV MAIL MAILPATH
14331do eval test x\${$as_var+set} = xset \
14332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14333done
c6b750e1
DJ
14334PS1='$ '
14335PS2='> '
14336PS4='+ '
14337
14338# NLS nuisances.
81ecdfbb
RW
14339LC_ALL=C
14340export LC_ALL
14341LANGUAGE=C
14342export LANGUAGE
14343
14344# CDPATH.
14345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14346
14347
14348# as_fn_error ERROR [LINENO LOG_FD]
14349# ---------------------------------
14350# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14351# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14352# script with status $?, using 1 if that was 0.
14353as_fn_error ()
14354{
14355 as_status=$?; test $as_status -eq 0 && as_status=1
14356 if test "$3"; then
14357 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14359 fi
81ecdfbb
RW
14360 $as_echo "$as_me: error: $1" >&2
14361 as_fn_exit $as_status
14362} # as_fn_error
14363
14364
14365# as_fn_set_status STATUS
14366# -----------------------
14367# Set $? to STATUS, without forking.
14368as_fn_set_status ()
14369{
14370 return $1
14371} # as_fn_set_status
14372
14373# as_fn_exit STATUS
14374# -----------------
14375# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14376as_fn_exit ()
14377{
14378 set +e
14379 as_fn_set_status $1
14380 exit $1
14381} # as_fn_exit
14382
14383# as_fn_unset VAR
14384# ---------------
14385# Portably unset VAR.
14386as_fn_unset ()
14387{
14388 { eval $1=; unset $1;}
14389}
14390as_unset=as_fn_unset
14391# as_fn_append VAR VALUE
14392# ----------------------
14393# Append the text in VALUE to the end of the definition contained in VAR. Take
14394# advantage of any shell optimizations that allow amortized linear growth over
14395# repeated appends, instead of the typical quadratic growth present in naive
14396# implementations.
14397if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14398 eval 'as_fn_append ()
14399 {
14400 eval $1+=\$2
14401 }'
14402else
14403 as_fn_append ()
14404 {
14405 eval $1=\$$1\$2
14406 }
14407fi # as_fn_append
14408
14409# as_fn_arith ARG...
14410# ------------------
14411# Perform arithmetic evaluation on the ARGs, and store the result in the
14412# global $as_val. Take advantage of shells that can avoid forks. The arguments
14413# must be portable across $(()) and expr.
14414if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14415 eval 'as_fn_arith ()
14416 {
14417 as_val=$(( $* ))
14418 }'
14419else
14420 as_fn_arith ()
14421 {
14422 as_val=`expr "$@" || test $? -eq 1`
14423 }
14424fi # as_fn_arith
14425
c6b750e1 14426
81ecdfbb
RW
14427if expr a : '\(a\)' >/dev/null 2>&1 &&
14428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14429 as_expr=expr
14430else
14431 as_expr=false
14432fi
14433
81ecdfbb 14434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14435 as_basename=basename
14436else
14437 as_basename=false
14438fi
14439
81ecdfbb
RW
14440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14441 as_dirname=dirname
14442else
14443 as_dirname=false
14444fi
c6b750e1 14445
81ecdfbb 14446as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14450$as_echo X/"$0" |
14451 sed '/^.*\/\([^/][^/]*\)\/*$/{
14452 s//\1/
14453 q
14454 }
14455 /^X\/\(\/\/\)$/{
14456 s//\1/
14457 q
14458 }
14459 /^X\/\(\/\).*/{
14460 s//\1/
14461 q
14462 }
14463 s/.*/./; q'`
c6b750e1 14464
c6b750e1
DJ
14465# Avoid depending upon Character Ranges.
14466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14469as_cr_digits='0123456789'
14470as_cr_alnum=$as_cr_Letters$as_cr_digits
14471
81ecdfbb
RW
14472ECHO_C= ECHO_N= ECHO_T=
14473case `echo -n x` in #(((((
14474-n*)
14475 case `echo 'xy\c'` in
14476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14477 xy) ECHO_C='\c';;
14478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14479 ECHO_T=' ';;
14480 esac;;
14481*)
14482 ECHO_N='-n';;
c6b750e1
DJ
14483esac
14484
81ecdfbb
RW
14485rm -f conf$$ conf$$.exe conf$$.file
14486if test -d conf$$.dir; then
14487 rm -f conf$$.dir/conf$$.file
c6b750e1 14488else
81ecdfbb
RW
14489 rm -f conf$$.dir
14490 mkdir conf$$.dir 2>/dev/null
c6b750e1 14491fi
81ecdfbb
RW
14492if (echo >conf$$.file) 2>/dev/null; then
14493 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14494 as_ln_s='ln -s'
81ecdfbb
RW
14495 # ... but there are two gotchas:
14496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14498 # In both cases, we have to default to `cp -p'.
14499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14500 as_ln_s='cp -p'
14501 elif ln conf$$.file conf$$ 2>/dev/null; then
14502 as_ln_s=ln
14503 else
14504 as_ln_s='cp -p'
c6b750e1 14505 fi
c6b750e1
DJ
14506else
14507 as_ln_s='cp -p'
14508fi
81ecdfbb
RW
14509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14510rmdir conf$$.dir 2>/dev/null
14511
14512
14513# as_fn_mkdir_p
14514# -------------
14515# Create "$as_dir" as a directory, including parents if necessary.
14516as_fn_mkdir_p ()
14517{
14518
14519 case $as_dir in #(
14520 -*) as_dir=./$as_dir;;
14521 esac
14522 test -d "$as_dir" || eval $as_mkdir_p || {
14523 as_dirs=
14524 while :; do
14525 case $as_dir in #(
14526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14527 *) as_qdir=$as_dir;;
14528 esac
14529 as_dirs="'$as_qdir' $as_dirs"
14530 as_dir=`$as_dirname -- "$as_dir" ||
14531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$as_dir" : 'X\(//\)[^/]' \| \
14533 X"$as_dir" : 'X\(//\)$' \| \
14534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14535$as_echo X"$as_dir" |
14536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14537 s//\1/
14538 q
14539 }
14540 /^X\(\/\/\)[^/].*/{
14541 s//\1/
14542 q
14543 }
14544 /^X\(\/\/\)$/{
14545 s//\1/
14546 q
14547 }
14548 /^X\(\/\).*/{
14549 s//\1/
14550 q
14551 }
14552 s/.*/./; q'`
14553 test -d "$as_dir" && break
14554 done
14555 test -z "$as_dirs" || eval "mkdir $as_dirs"
14556 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14557
c6b750e1 14558
81ecdfbb 14559} # as_fn_mkdir_p
c6b750e1 14560if mkdir -p . 2>/dev/null; then
81ecdfbb 14561 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14562else
14563 test -d ./-p && rmdir ./-p
14564 as_mkdir_p=false
14565fi
14566
81ecdfbb
RW
14567if test -x / >/dev/null 2>&1; then
14568 as_test_x='test -x'
14569else
14570 if ls -dL / >/dev/null 2>&1; then
14571 as_ls_L_option=L
14572 else
14573 as_ls_L_option=
14574 fi
14575 as_test_x='
14576 eval sh -c '\''
14577 if test -d "$1"; then
14578 test -d "$1/.";
14579 else
14580 case $1 in #(
14581 -*)set "./$1";;
14582 esac;
14583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14584 ???[sx]*):;;*)false;;esac;fi
14585 '\'' sh
14586 '
14587fi
14588as_executable_p=$as_test_x
c6b750e1
DJ
14589
14590# Sed expression to map a string onto a valid CPP name.
14591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14592
14593# Sed expression to map a string onto a valid variable name.
14594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14595
14596
c6b750e1 14597exec 6>&1
81ecdfbb
RW
14598## ----------------------------------- ##
14599## Main body of $CONFIG_STATUS script. ##
14600## ----------------------------------- ##
14601_ASEOF
14602test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14603
14604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14606# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14607# values after options handling.
14608ac_log="
c6b750e1 14609This file was extended by $as_me, which was
81ecdfbb 14610generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14611
14612 CONFIG_FILES = $CONFIG_FILES
14613 CONFIG_HEADERS = $CONFIG_HEADERS
14614 CONFIG_LINKS = $CONFIG_LINKS
14615 CONFIG_COMMANDS = $CONFIG_COMMANDS
14616 $ $0 $@
14617
81ecdfbb
RW
14618on `(hostname || uname -n) 2>/dev/null | sed 1q`
14619"
14620
c6b750e1
DJ
14621_ACEOF
14622
81ecdfbb
RW
14623case $ac_config_files in *"
14624"*) set x $ac_config_files; shift; ac_config_files=$*;;
14625esac
c6b750e1 14626
c6b750e1 14627
c6b750e1 14628
81ecdfbb
RW
14629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630# Files that config.status was made for.
14631config_files="$ac_config_files"
c6b750e1 14632
81ecdfbb 14633_ACEOF
c6b750e1 14634
81ecdfbb 14635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14636ac_cs_usage="\
81ecdfbb
RW
14637\`$as_me' instantiates files and other configuration actions
14638from templates according to the current configuration. Unless the files
14639and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14640
81ecdfbb 14641Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14642
14643 -h, --help print this help, then exit
81ecdfbb
RW
14644 -V, --version print version number and configuration settings, then exit
14645 -q, --quiet, --silent
14646 do not print progress messages
c6b750e1
DJ
14647 -d, --debug don't remove temporary files
14648 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14649 --file=FILE[:TEMPLATE]
14650 instantiate the configuration file FILE
c6b750e1
DJ
14651
14652Configuration files:
14653$config_files
14654
81ecdfbb 14655Report bugs to the package provider."
c6b750e1 14656
81ecdfbb
RW
14657_ACEOF
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14659ac_cs_version="\\
14660config.status
81ecdfbb
RW
14661configured by $0, generated by GNU Autoconf 2.64,
14662 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14663
81ecdfbb 14664Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14665This config.status script is free software; the Free Software Foundation
14666gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14667
14668ac_pwd='$ac_pwd'
14669srcdir='$srcdir'
14670INSTALL='$INSTALL'
8e957354 14671AWK='$AWK'
81ecdfbb 14672test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14673_ACEOF
14674
81ecdfbb
RW
14675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14677ac_need_defaults=:
14678while test $# != 0
a0da8069 14679do
c6b750e1
DJ
14680 case $1 in
14681 --*=*)
81ecdfbb
RW
14682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14683 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14684 ac_shift=:
14685 ;;
81ecdfbb 14686 *)
c6b750e1
DJ
14687 ac_option=$1
14688 ac_optarg=$2
14689 ac_shift=shift
14690 ;;
c6b750e1
DJ
14691 esac
14692
14693 case $ac_option in
14694 # Handling of the options.
a0da8069 14695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14696 ac_cs_recheck=: ;;
81ecdfbb
RW
14697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14698 $as_echo "$ac_cs_version"; exit ;;
14699 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14700 debug=: ;;
14701 --file | --fil | --fi | --f )
14702 $ac_shift
81ecdfbb
RW
14703 case $ac_optarg in
14704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14705 esac
14706 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14707 ac_need_defaults=false;;
81ecdfbb
RW
14708 --he | --h | --help | --hel | -h )
14709 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14712 ac_cs_silent=: ;;
14713
14714 # This is an error.
81ecdfbb
RW
14715 -*) as_fn_error "unrecognized option: \`$1'
14716Try \`$0 --help' for more information." ;;
c6b750e1 14717
81ecdfbb
RW
14718 *) as_fn_append ac_config_targets " $1"
14719 ac_need_defaults=false ;;
c6b750e1 14720
376a0e54 14721 esac
c6b750e1 14722 shift
376a0e54
CM
14723done
14724
c6b750e1 14725ac_configure_extra_args=
376a0e54 14726
c6b750e1
DJ
14727if $ac_cs_silent; then
14728 exec 6>/dev/null
14729 ac_configure_extra_args="$ac_configure_extra_args --silent"
14730fi
376a0e54 14731
c6b750e1 14732_ACEOF
81ecdfbb 14733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14734if \$ac_cs_recheck; then
81ecdfbb
RW
14735 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14736 shift
14737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14738 CONFIG_SHELL='$SHELL'
14739 export CONFIG_SHELL
14740 exec "\$@"
c6b750e1
DJ
14741fi
14742
14743_ACEOF
81ecdfbb
RW
14744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745exec 5>>config.log
14746{
14747 echo
14748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14749## Running $as_me. ##
14750_ASBOX
14751 $as_echo "$ac_log"
14752} >&5
c6b750e1 14753
81ecdfbb
RW
14754_ACEOF
14755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14756#
14757# INIT-COMMANDS
14758#
14759extrasub_build="$extrasub_build"
14760 extrasub_host="$extrasub_host"
14761 extrasub_target="$extrasub_target"
14762
81ecdfbb 14763_ACEOF
c6b750e1 14764
81ecdfbb 14765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14766
81ecdfbb 14767# Handling of arguments.
c6b750e1
DJ
14768for ac_config_target in $ac_config_targets
14769do
81ecdfbb
RW
14770 case $ac_config_target in
14771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14772
14773 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14774 esac
14775done
14776
81ecdfbb 14777
c6b750e1
DJ
14778# If the user did not use the arguments to specify the items to instantiate,
14779# then the envvar interface is used. Set only those that are not.
14780# We use the long form for the default assignment because of an extremely
14781# bizarre bug on SunOS 4.1.3.
14782if $ac_need_defaults; then
14783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14784fi
14785
14786# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14787# simply because there is no reason against having it here, and in addition,
c6b750e1 14788# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14789# Hook for its removal unless debugging.
14790# Note that there is a small window in which the directory will not be cleaned:
14791# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14792$debug ||
14793{
81ecdfbb
RW
14794 tmp=
14795 trap 'exit_status=$?
14796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14797' 0
14798 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14799}
c6b750e1
DJ
14800# Create a (secure) tmp directory for tmp files.
14801
14802{
81ecdfbb 14803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14804 test -n "$tmp" && test -d "$tmp"
14805} ||
14806{
81ecdfbb
RW
14807 tmp=./conf$$-$RANDOM
14808 (umask 077 && mkdir "$tmp")
14809} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14810
14811# Set up the scripts for CONFIG_FILES section.
14812# No need to generate them if there are no CONFIG_FILES.
14813# This happens for instance with `./config.status config.h'.
14814if test -n "$CONFIG_FILES"; then
14815
14816if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14817 ac_cs_awk_getline=:
14818 ac_cs_awk_pipe_init=
14819 ac_cs_awk_read_file='
14820 while ((getline aline < (F[key])) > 0)
14821 print(aline)
14822 close(F[key])'
14823 ac_cs_awk_pipe_fini=
14824else
14825 ac_cs_awk_getline=false
14826 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14827 ac_cs_awk_read_file='
14828 print "|#_!!_#|"
14829 print "cat " F[key] " &&"
14830 '$ac_cs_awk_pipe_init
14831 # The final `:' finishes the AND list.
14832 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14833fi
14834ac_cr=`echo X | tr X '\015'`
14835# On cygwin, bash can eat \r inside `` if the user requested igncr.
14836# But we know of no other shell where ac_cr would be empty at this
14837# point, so we can use a bashism as a fallback.
14838if test "x$ac_cr" = x; then
14839 eval ac_cr=\$\'\\r\'
14840fi
14841ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14842if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14843 ac_cs_awk_cr='\r'
14844else
14845 ac_cs_awk_cr=$ac_cr
14846fi
14847
14848echo 'BEGIN {' >"$tmp/subs1.awk" &&
14849_ACEOF
14850
14851# Create commands to substitute file output variables.
c6b750e1 14852{
81ecdfbb
RW
14853 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14854 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14855 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14856 echo "_ACAWK" &&
14857 echo "_ACEOF"
14858} >conf$$files.sh &&
14859. ./conf$$files.sh ||
14860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14861rm -f conf$$files.sh
c6b750e1 14862
81ecdfbb
RW
14863{
14864 echo "cat >conf$$subs.awk <<_ACEOF" &&
14865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14866 echo "_ACEOF"
14867} >conf$$subs.sh ||
14868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14869ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14870ac_delim='%!_!# '
14871for ac_last_try in false false false false false :; do
14872 . ./conf$$subs.sh ||
14873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14874
14875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14876 if test $ac_delim_n = $ac_delim_num; then
14877 break
14878 elif $ac_last_try; then
14879 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14880 else
14881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14882 fi
14883done
14884rm -f conf$$subs.sh
14885
14886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14888_ACEOF
81ecdfbb
RW
14889sed -n '
14890h
14891s/^/S["/; s/!.*/"]=/
14892p
14893g
14894s/^[^!]*!//
14895:repl
14896t repl
14897s/'"$ac_delim"'$//
14898t delim
14899:nl
14900h
14901s/\(.\{148\}\).*/\1/
14902t more1
14903s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14904p
14905n
14906b repl
14907:more1
14908s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14909p
14910g
14911s/.\{148\}//
14912t nl
14913:delim
14914h
14915s/\(.\{148\}\).*/\1/
14916t more2
14917s/["\\]/\\&/g; s/^/"/; s/$/"/
14918p
14919b
14920:more2
14921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14922p
14923g
14924s/.\{148\}//
14925t delim
14926' <conf$$subs.awk | sed '
14927/^[^""]/{
14928 N
14929 s/\n//
14930}
14931' >>$CONFIG_STATUS || ac_write_fail=1
14932rm -f conf$$subs.awk
14933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934_ACAWK
14935cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14936 for (key in S) S_is_set[key] = 1
14937 FS = "\a"
14938 \$ac_cs_awk_pipe_init
14939}
14940{
14941 line = $ 0
14942 nfields = split(line, field, "@")
14943 substed = 0
14944 len = length(field[1])
14945 for (i = 2; i < nfields; i++) {
14946 key = field[i]
14947 keylen = length(key)
14948 if (S_is_set[key]) {
14949 value = S[key]
14950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14951 len += length(value) + length(field[++i])
14952 substed = 1
14953 } else
14954 len += 1 + keylen
14955 }
14956 if (nfields == 3 && !substed) {
14957 key = field[2]
14958 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14959 \$ac_cs_awk_read_file
14960 next
14961 }
14962 }
14963 print line
14964}
14965\$ac_cs_awk_pipe_fini
14966_ACAWK
14967_ACEOF
14968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14971else
14972 cat
14973fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14974 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14975_ACEOF
14976
14977# VPATH may cause trouble with some makes, so we remove $(srcdir),
14978# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14979# trailing colons and then remove the whole line if VPATH becomes empty
14980# (actually we leave an empty line to preserve line numbers).
14981if test "x$srcdir" = x.; then
14982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14983s/:*\$(srcdir):*/:/
14984s/:*\${srcdir}:*/:/
14985s/:*@srcdir@:*/:/
14986s/^\([^=]*=[ ]*\):*/\1/
14987s/:*$//
14988s/^[^=]*=[ ]*$//
14989}'
14990fi
c6b750e1 14991
81ecdfbb
RW
14992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14993fi # test -n "$CONFIG_FILES"
c6b750e1 14994
c6b750e1 14995
81ecdfbb
RW
14996eval set X " :F $CONFIG_FILES "
14997shift
14998for ac_tag
14999do
15000 case $ac_tag in
15001 :[FHLC]) ac_mode=$ac_tag; continue;;
15002 esac
15003 case $ac_mode$ac_tag in
15004 :[FHL]*:*);;
15005 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15006 :[FH]-) ac_tag=-:-;;
15007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15008 esac
15009 ac_save_IFS=$IFS
15010 IFS=:
15011 set x $ac_tag
15012 IFS=$ac_save_IFS
15013 shift
15014 ac_file=$1
15015 shift
252b5132 15016
81ecdfbb
RW
15017 case $ac_mode in
15018 :L) ac_source=$1;;
15019 :[FH])
15020 ac_file_inputs=
15021 for ac_f
15022 do
15023 case $ac_f in
15024 -) ac_f="$tmp/stdin";;
15025 *) # Look for the file first in the build tree, then in the source tree
15026 # (if the path is not absolute). The absolute path cannot be DOS-style,
15027 # because $ac_f cannot contain `:'.
15028 test -f "$ac_f" ||
15029 case $ac_f in
15030 [\\/$]*) false;;
15031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15032 esac ||
15033 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15034 esac
15035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15036 as_fn_append ac_file_inputs " '$ac_f'"
15037 done
c6b750e1 15038
81ecdfbb
RW
15039 # Let's still pretend it is `configure' which instantiates (i.e., don't
15040 # use $as_me), people would be surprised to read:
15041 # /* config.h. Generated by config.status. */
15042 configure_input='Generated from '`
15043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15044 `' by configure.'
15045 if test x"$ac_file" != x-; then
15046 configure_input="$ac_file. $configure_input"
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15048$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15049 fi
81ecdfbb
RW
15050 # Neutralize special characters interpreted by sed in replacement strings.
15051 case $configure_input in #(
15052 *\&* | *\|* | *\\* )
15053 ac_sed_conf_input=`$as_echo "$configure_input" |
15054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15055 *) ac_sed_conf_input=$configure_input;;
15056 esac
cac3d6c4 15057
81ecdfbb
RW
15058 case $ac_tag in
15059 *:-:* | *:-) cat >"$tmp/stdin" \
15060 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15061 esac
15062 ;;
a0da8069 15063 esac
252b5132 15064
81ecdfbb 15065 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15067 X"$ac_file" : 'X\(//\)[^/]' \| \
15068 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15070$as_echo X"$ac_file" |
15071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15072 s//\1/
15073 q
15074 }
15075 /^X\(\/\/\)[^/].*/{
15076 s//\1/
15077 q
15078 }
15079 /^X\(\/\/\)$/{
15080 s//\1/
15081 q
15082 }
15083 /^X\(\/\).*/{
15084 s//\1/
15085 q
15086 }
15087 s/.*/./; q'`
15088 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15089 ac_builddir=.
252b5132 15090
81ecdfbb
RW
15091case "$ac_dir" in
15092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15093*)
15094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15095 # A ".." for each directory in $ac_dir_suffix.
15096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15097 case $ac_top_builddir_sub in
15098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15100 esac ;;
15101esac
15102ac_abs_top_builddir=$ac_pwd
15103ac_abs_builddir=$ac_pwd$ac_dir_suffix
15104# for backward compatibility:
15105ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15106
15107case $srcdir in
81ecdfbb 15108 .) # We are building in place.
c6b750e1 15109 ac_srcdir=.
81ecdfbb
RW
15110 ac_top_srcdir=$ac_top_builddir_sub
15111 ac_abs_top_srcdir=$ac_pwd ;;
15112 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15113 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15114 ac_top_srcdir=$srcdir
15115 ac_abs_top_srcdir=$srcdir ;;
15116 *) # Relative name.
15117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15118 ac_top_srcdir=$ac_top_build_prefix$srcdir
15119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15120esac
81ecdfbb 15121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15122
252b5132 15123
81ecdfbb
RW
15124 case $ac_mode in
15125 :F)
15126 #
15127 # CONFIG_FILE
15128 #
c6b750e1
DJ
15129
15130 case $INSTALL in
15131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15133 esac
81ecdfbb 15134_ACEOF
252b5132 15135
81ecdfbb
RW
15136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137# If the template does not know about datarootdir, expand it.
15138# FIXME: This hack should be removed a few years after 2.60.
15139ac_datarootdir_hack=; ac_datarootdir_seen=
15140ac_sed_dataroot='
15141/datarootdir/ {
15142 p
15143 q
15144}
15145/@datadir@/p
15146/@docdir@/p
15147/@infodir@/p
15148/@localedir@/p
15149/@mandir@/p'
15150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15151*datarootdir*) ac_datarootdir_seen=yes;;
15152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15155_ACEOF
81ecdfbb
RW
15156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 ac_datarootdir_hack='
15158 s&@datadir@&$datadir&g
15159 s&@docdir@&$docdir&g
15160 s&@infodir@&$infodir&g
15161 s&@localedir@&$localedir&g
15162 s&@mandir@&$mandir&g
15163 s&\\\${datarootdir}&$datarootdir&g' ;;
15164esac
15165_ACEOF
15166
15167# Neutralize VPATH when `$srcdir' = `.'.
15168# Shell code in configure.ac might set extrasub.
15169# FIXME: do we really want to maintain this feature?
15170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15172$extrasub
15173_ACEOF
81ecdfbb 15174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15175:t
15176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15177s|@configure_input@|$ac_sed_conf_input|;t t
15178s&@top_builddir@&$ac_top_builddir_sub&;t t
15179s&@top_build_prefix@&$ac_top_build_prefix&;t t
15180s&@srcdir@&$ac_srcdir&;t t
15181s&@abs_srcdir@&$ac_abs_srcdir&;t t
15182s&@top_srcdir@&$ac_top_srcdir&;t t
15183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15184s&@builddir@&$ac_builddir&;t t
15185s&@abs_builddir@&$ac_abs_builddir&;t t
15186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15187s&@INSTALL@&$ac_INSTALL&;t t
15188$ac_datarootdir_hack
15189"
15190eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15191if $ac_cs_awk_getline; then
15192 $AWK -f "$tmp/subs.awk"
15193else
15194 $AWK -f "$tmp/subs.awk" | $SHELL
15195fi >$tmp/out \
15196 || as_fn_error "could not create $ac_file" "$LINENO" 5
15197
15198test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15202which seems to be undefined. Please make sure it is defined." >&5
15203$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15204which seems to be undefined. Please make sure it is defined." >&2;}
15205
15206 rm -f "$tmp/stdin"
15207 case $ac_file in
15208 -) cat "$tmp/out" && rm -f "$tmp/out";;
15209 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15210 esac \
15211 || as_fn_error "could not create $ac_file" "$LINENO" 5
15212 ;;
c148b4cb 15213
c148b4cb 15214
c148b4cb 15215
81ecdfbb
RW
15216 esac
15217
06a51eac
RW
15218
15219 case $ac_file$ac_mode in
15220 "Makefile":F) sed "$extrasub_build" Makefile |
15221 sed "$extrasub_host" |
15222 sed "$extrasub_target" > mf$$
15223 mv -f mf$$ Makefile ;;
15224
15225 esac
81ecdfbb
RW
15226done # for ac_tag
15227
15228
15229as_fn_exit 0
c6b750e1 15230_ACEOF
c6b750e1
DJ
15231ac_clean_files=$ac_clean_files_save
15232
81ecdfbb
RW
15233test $ac_write_fail = 0 ||
15234 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15235
c6b750e1
DJ
15236
15237# configure is writing to config.log, and then calls config.status.
15238# config.status does its own redirection, appending to config.log.
15239# Unfortunately, on DOS this fails, as config.log is still kept open
15240# by configure, so config.status won't be able to write to it; its
15241# output is simply discarded. So we exec the FD to /dev/null,
15242# effectively closing config.log, so it can be properly (re)opened and
15243# appended to by config.status. When coming back to configure, we
15244# need to make the FD available again.
15245if test "$no_create" != yes; then
15246 ac_cs_success=:
15247 ac_config_status_args=
15248 test "$silent" = yes &&
15249 ac_config_status_args="$ac_config_status_args --quiet"
15250 exec 5>/dev/null
15251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15252 exec 5>>config.log
15253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15254 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15255 $ac_cs_success || as_fn_exit $?
15256fi
15257if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15259$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15260fi
c148b4cb 15261