* configure.in: Check for windows.h, not Windows.h.
[deliverable/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
c7791212 744enable_ld
89a1e9c3
PB
745enable_libquadmath
746enable_libquadmath_support
81ecdfbb
RW
747enable_libada
748enable_libssp
749enable_build_with_cxx
750with_mpc
751with_mpc_include
752with_mpc_lib
753with_mpfr_dir
754with_mpfr
755with_mpfr_include
756with_mpfr_lib
757with_gmp_dir
758with_gmp
759with_gmp_include
760with_gmp_lib
761with_host_libstdcxx
762with_stage1_ldflags
763with_stage1_libs
81ecdfbb 764with_boot_libs
143754cd 765with_boot_ldflags
81ecdfbb
RW
766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
e552509b 773enable_cloog_backend
81ecdfbb 774enable_cloog_version_check
700d40ca 775enable_lto
81ecdfbb
RW
776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
96655cc4 781with_build_config
81ecdfbb
RW
782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
81ecdfbb
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
4074d5f2
RW
799build_configargs
800host_configargs
801target_configargs
81ecdfbb
RW
802AR
803AS
804DLLTOOL
805LD
806LIPO
807NM
808RANLIB
809STRIP
810WINDRES
811WINDMC
812OBJCOPY
813OBJDUMP
814CC_FOR_TARGET
815CXX_FOR_TARGET
816GCC_FOR_TARGET
817GCJ_FOR_TARGET
818GFORTRAN_FOR_TARGET
e552509b 819GOC_FOR_TARGET
81ecdfbb
RW
820AR_FOR_TARGET
821AS_FOR_TARGET
822DLLTOOL_FOR_TARGET
823LD_FOR_TARGET
824LIPO_FOR_TARGET
825NM_FOR_TARGET
826OBJDUMP_FOR_TARGET
827RANLIB_FOR_TARGET
828STRIP_FOR_TARGET
829WINDRES_FOR_TARGET
830WINDMC_FOR_TARGET'
831
a0da8069
NN
832
833# Initialize some variables set by options.
c6b750e1
DJ
834ac_init_help=
835ac_init_version=false
81ecdfbb
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
a0da8069
NN
838# The variables have the same names as the options, with
839# dashes changed to underlines.
c6b750e1 840cache_file=/dev/null
a0da8069 841exec_prefix=NONE
a0da8069 842no_create=
a0da8069
NN
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
a0da8069
NN
851verbose=
852x_includes=NONE
853x_libraries=NONE
c6b750e1
DJ
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 860# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
a0da8069
NN
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
a0da8069
NN
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
81ecdfbb
RW
871docdir='${datarootdir}/doc/${PACKAGE}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
252b5132 880
a0da8069 881ac_prev=
81ecdfbb 882ac_dashdash=
a0da8069
NN
883for ac_option
884do
a0da8069
NN
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
81ecdfbb 887 eval $ac_prev=\$ac_option
a0da8069
NN
888 ac_prev=
889 continue
890 fi
252b5132 891
81ecdfbb
RW
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
a0da8069
NN
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
81ecdfbb
RW
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
a0da8069
NN
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 906 bindir=$ac_optarg ;;
a0da8069
NN
907
908 -build | --build | --buil | --bui | --bu)
c6b750e1 909 ac_prev=build_alias ;;
a0da8069 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 911 build_alias=$ac_optarg ;;
a0da8069
NN
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
a0da8069 922
81ecdfbb 923 -datadir | --datadir | --datadi | --datad)
a0da8069 924 ac_prev=datadir ;;
81ecdfbb 925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 926 datadir=$ac_optarg ;;
a0da8069 927
81ecdfbb
RW
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
a0da8069 935 -disable-* | --disable-*)
81ecdfbb 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 937 # Reject names that are not valid shell variable names.
81ecdfbb
RW
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
a0da8069
NN
960
961 -enable-* | --enable-*)
81ecdfbb 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 963 # Reject names that are not valid shell variable names.
81ecdfbb
RW
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
a0da8069 974 esac
81ecdfbb 975 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
c6b750e1 984 exec_prefix=$ac_optarg ;;
a0da8069
NN
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
c6b750e1
DJ
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
a0da8069
NN
996
997 -host | --host | --hos | --ho)
c6b750e1 998 ac_prev=host_alias ;;
a0da8069 999 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1000 host_alias=$ac_optarg ;;
a0da8069 1001
81ecdfbb
RW
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
a0da8069
NN
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1013 includedir=$ac_optarg ;;
a0da8069
NN
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1018 infodir=$ac_optarg ;;
a0da8069
NN
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1023 libdir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1030 libexecdir=$ac_optarg ;;
a0da8069 1031
81ecdfbb
RW
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
a0da8069 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1038 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1042 localstatedir=$ac_optarg ;;
a0da8069
NN
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1047 mandir=$ac_optarg ;;
a0da8069
NN
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1054 | --no-cr | --no-c | -n)
a0da8069
NN
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1068 oldincludedir=$ac_optarg ;;
a0da8069
NN
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1073 prefix=$ac_optarg ;;
a0da8069
NN
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1080 program_prefix=$ac_optarg ;;
a0da8069
NN
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1087 program_suffix=$ac_optarg ;;
a0da8069
NN
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1104 program_transform_name=$ac_optarg ;;
a0da8069 1105
81ecdfbb
RW
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
a0da8069
NN
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
c6b750e1 1124 sbindir=$ac_optarg ;;
a0da8069
NN
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
c6b750e1 1135 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
c6b750e1 1140 site=$ac_optarg ;;
a0da8069
NN
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1145 srcdir=$ac_optarg ;;
a0da8069
NN
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1152 sysconfdir=$ac_optarg ;;
a0da8069
NN
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1155 ac_prev=target_alias ;;
a0da8069 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1157 target_alias=$ac_optarg ;;
a0da8069
NN
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
c6b750e1
DJ
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
a0da8069
NN
1164
1165 -with-* | --with-*)
81ecdfbb 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1167 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
a0da8069 1178 esac
81ecdfbb 1179 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1180
1181 -without-* | --without-*)
81ecdfbb 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1183 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
a0da8069
NN
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1206 x_includes=$ac_optarg ;;
a0da8069
NN
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1213 x_libraries=$ac_optarg ;;
a0da8069 1214
81ecdfbb
RW
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
a0da8069
NN
1217 ;;
1218
c6b750e1
DJ
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1227 export $ac_envvar ;;
1228
a0da8069 1229 *)
c6b750e1 1230 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
c6b750e1 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1242 as_fn_error "missing argument to $ac_option"
a0da8069 1243fi
a0da8069 1244
81ecdfbb
RW
1245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1250 esac
81ecdfbb 1251fi
a0da8069 1252
81ecdfbb
RW
1253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
a0da8069 1258do
81ecdfbb
RW
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
c6b750e1 1267 case $ac_val in
81ecdfbb
RW
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1270 esac
81ecdfbb 1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1272done
1273
c6b750e1
DJ
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
376a0e54 1280
c6b750e1
DJ
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
81ecdfbb 1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
a0da8069 1296
a0da8069 1297
81ecdfbb
RW
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1304
1305
a0da8069
NN
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
81ecdfbb
RW
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
a0da8069 1333 srcdir=$ac_confdir
81ecdfbb 1334 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
81ecdfbb
RW
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
6d0cd39e
AM
1358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
9cc8ae67
PB
1363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
81ecdfbb
RW
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
c6b750e1
DJ
1371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
c6b750e1
DJ
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1401 [$ac_default_prefix]
c6b750e1 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1403 [PREFIX]
c6b750e1
DJ
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
81ecdfbb
RW
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
a0da8069 1446fi
a0da8069 1447
c6b750e1
DJ
1448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
81ecdfbb 1453 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
521ec477
DD
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
e8a5fa9c 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1464 --disable-ppl-version-check
1465 disable check for PPL version
ceca0218
PB
1466 --enable-cloog-backend[=BACKEND]
1467 set the CLooG BACKEND used to either isl, ppl or
1468 ppl-legacy (default)
e552509b
ILT
1469 --disable-cloog-version-check
1470 disable check for CLooG version
700d40ca 1471 --enable-lto enable link time optimization support
7837304f
AS
1472 --enable-stage1-languages[=all]
1473 choose additional languages to build during stage1.
1474 Mostly useful for compiler development
1475 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1476 Objective-C runtime
521ec477
DD
1477 --enable-bootstrap enable bootstrapping [yes if native build]
1478 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1479 force sequential configuration of sub-packages for
1480 the host, target or build machine, or all
1481 sub-packages
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-stage1-checking[=all]
1486 choose additional checking for stage1 of the
1487 compiler
c6b750e1
DJ
1488 --enable-werror enable -Werror in bootstrap stage2 and later
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1494 --with-mpc=PATH specify prefix directory for installed MPC package.
1495 Equivalent to --with-mpc-include=PATH/include plus
1496 --with-mpc-lib=PATH/lib
1497 --with-mpc-include=PATH specify directory for installed MPC include files
1498 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1499 --with-mpfr-dir=PATH this option has been REMOVED
1500 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1501 Equivalent to --with-mpfr-include=PATH/include plus
1502 --with-mpfr-lib=PATH/lib
c6b750e1 1503 --with-mpfr-include=PATH
521ec477
DD
1504 specify directory for installed MPFR include files
1505 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1506 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1507 --with-gmp=PATH specify prefix directory for the installed GMP
1508 package. Equivalent to
1509 --with-gmp-include=PATH/include plus
1510 --with-gmp-lib=PATH/lib
521ec477
DD
1511 --with-gmp-include=PATH specify directory for installed GMP include files
1512 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1513 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1514 linking with PPL
1515 --with-stage1-ldflags=FLAGS
1516 linker flags for stage1
1517 --with-stage1-libs=LIBS libraries for stage1
1518 --with-boot-libs=LIBS libraries for stage2 and later
1519 --with-boot-ldflags=FLAGS
1520 linker flags for stage2 and later
1521 --with-ppl=PATH specify prefix directory for the installed PPL
1522 package. Equivalent to
1523 --with-ppl-include=PATH/include plus
1524 --with-ppl-lib=PATH/lib
1525 --with-ppl-include=PATH specify directory for installed PPL include files
1526 --with-ppl-lib=PATH specify directory for the installed PPL library
e552509b
ILT
1527 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1528 package. Equivalent to
1529 --with-cloog-include=PATH/include plus
1530 --with-cloog-lib=PATH/lib
1531 --with-cloog-include=PATH
1532 Specify directory for installed CLooG include files
1533 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1534 library
521ec477 1535 --with-build-sysroot=SYSROOT
c6b750e1 1536 use sysroot as the system root during the build
8a6ee3ab 1537 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1538 map A to B, C to D ... in debug information
1539 --with-build-config='NAME NAME2...'
1540 use config/NAME.mk build configuration
521ec477 1541 --with-build-time-tools=PATH
c6b750e1 1542 use given path to find target tools during the build
c6b750e1
DJ
1543
1544Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
81ecdfbb
RW
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
4074d5f2
RW
1554 build_configargs
1555 additional configure arguments for build directories
1556 host_configargs
1557 additional configure arguments for host directories
1558 target_configargs
1559 additional configure arguments for target directories
9a819804
AO
1560 AR AR for the host
1561 AS AS for the host
1562 DLLTOOL DLLTOOL for the host
1563 LD LD for the host
1564 LIPO LIPO for the host
1565 NM NM for the host
1566 RANLIB RANLIB for the host
1567 STRIP STRIP for the host
1568 WINDRES WINDRES for the host
0c24b341 1569 WINDMC WINDMC for the host
9a819804
AO
1570 OBJCOPY OBJCOPY for the host
1571 OBJDUMP OBJDUMP for the host
1572 CC_FOR_TARGET
1573 CC for the target
1574 CXX_FOR_TARGET
1575 CXX for the target
1576 GCC_FOR_TARGET
1577 GCC for the target
1578 GCJ_FOR_TARGET
1579 GCJ for the target
1580 GFORTRAN_FOR_TARGET
1581 GFORTRAN for the target
e552509b
ILT
1582 GOC_FOR_TARGET
1583 GOC for the target
9a819804
AO
1584 AR_FOR_TARGET
1585 AR for the target
1586 AS_FOR_TARGET
1587 AS for the target
1588 DLLTOOL_FOR_TARGET
1589 DLLTOOL for the target
1590 LD_FOR_TARGET
1591 LD for the target
1592 LIPO_FOR_TARGET
1593 LIPO for the target
1594 NM_FOR_TARGET
1595 NM for the target
1596 OBJDUMP_FOR_TARGET
1597 OBJDUMP for the target
1598 RANLIB_FOR_TARGET
1599 RANLIB for the target
1600 STRIP_FOR_TARGET
1601 STRIP for the target
1602 WINDRES_FOR_TARGET
1603 WINDRES for the target
0c24b341
NC
1604 WINDMC_FOR_TARGET
1605 WINDMC for the target
c6b750e1
DJ
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
81ecdfbb 1610Report bugs to the package provider.
c6b750e1 1611_ACEOF
81ecdfbb 1612ac_status=$?
c6b750e1
DJ
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
c6b750e1 1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
c6b750e1
DJ
1621 ac_builddir=.
1622
81ecdfbb
RW
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1638
1639case $srcdir in
81ecdfbb 1640 .) # We are building in place.
c6b750e1 1641 ac_srcdir=.
81ecdfbb
RW
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1645 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1652esac
81ecdfbb
RW
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1663 else
81ecdfbb
RW
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1667 done
1668fi
1669
81ecdfbb 1670test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1671if $ac_init_version; then
1672 cat <<\_ACEOF
81ecdfbb
RW
1673configure
1674generated by GNU Autoconf 2.64
c6b750e1 1675
81ecdfbb 1676Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
81ecdfbb 1680 exit
c6b750e1 1681fi
81ecdfbb
RW
1682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_cxx_try_compile LINENO
1726# ----------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_cxx_try_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_link
1808cat >config.log <<_ACEOF
c6b750e1
DJ
1809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by $as_me, which was
81ecdfbb 1813generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1814
1815 $ $0 $@
1816
1817_ACEOF
81ecdfbb 1818exec 5>>config.log
c6b750e1
DJ
1819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1849 $as_echo "PATH: $as_dir"
1850 done
1851IFS=$as_save_IFS
c6b750e1
DJ
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
c6b750e1
DJ
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
81ecdfbb
RW
1883 *\'*)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1885 esac
1886 case $ac_pass in
81ecdfbb 1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1888 2)
81ecdfbb 1889 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
81ecdfbb 1905 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1906 ;;
1907 esac
1908 done
1909done
81ecdfbb
RW
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
81ecdfbb
RW
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
c6b750e1 1946 (set) 2>&1 |
81ecdfbb
RW
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
c6b750e1 1949 sed -n \
81ecdfbb
RW
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
c6b750e1 1953 *)
81ecdfbb 1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1955 ;;
81ecdfbb
RW
1956 esac |
1957 sort
1958)
c6b750e1
DJ
1959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
81ecdfbb
RW
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
81ecdfbb
RW
1979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
c6b750e1
DJ
1982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
81ecdfbb
RW
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
81ecdfbb 2002 cat confdefs.h
c6b750e1
DJ
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
81ecdfbb
RW
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
c6b750e1 2008 } >&5
81ecdfbb
RW
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2011 exit $exit_status
81ecdfbb 2012' 0
c6b750e1 2013for ac_signal in 1 2 13 15; do
81ecdfbb 2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2019rm -f -r conftest* confdefs.h
2020
2021$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2022
2023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
c6b750e1
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
c6b750e1
DJ
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
2036
c6b750e1
DJ
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
c6b750e1
DJ
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
81ecdfbb
RW
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
c6b750e1
DJ
2049
2050# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
2054if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2062fi
81ecdfbb
RW
2063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064do
2065 test "x$ac_site_file" = xNONE && continue
a0da8069 2066 if test -r "$ac_site_file"; then
81ecdfbb
RW
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2069 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
c6b750e1
DJ
2075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
81ecdfbb
RW
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2080 case $cache_file in
81ecdfbb
RW
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
c6b750e1
DJ
2083 esac
2084 fi
a0da8069 2085else
81ecdfbb
RW
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
81ecdfbb 2094for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2099 case $ac_old_set,$ac_new_set in
2100 set,)
81ecdfbb
RW
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2103 ac_cache_corrupted=: ;;
2104 ,set)
81ecdfbb
RW
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
81ecdfbb 2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
81ecdfbb
RW
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2147fi
81ecdfbb
RW
2148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
a0da8069
NN
2151
2152ac_ext=c
a0da8069 2153ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160
c6b750e1
DJ
2161
2162
34a0f3cf 2163
c6b750e1 2164
5b553f7e
RW
2165
2166progname=$0
2167# if PWD already has a value, it is probably wrong.
2168if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169
2170# Export original configure arguments for use by sub-configures.
2171# Quote arguments with shell meta charatcers.
2172TOPLEVEL_CONFIGURE_ARGUMENTS=
2173set -- "$progname" "$@"
2174for ac_arg
2175do
2176 case "$ac_arg" in
2177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2179 # if the argument is of the form -foo=baz, quote the baz part only
2180 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2181 *) ;;
2182 esac
2183 # Add the quoted argument to the list.
2184 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2185done
2186if test "$silent" = yes; then
2187 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188fi
2189# Remove the initial space we just introduced and, as these will be
2190# expanded by make, quote '$'.
2191TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2192
c6b750e1
DJ
2193
2194# Find the build, host, and target systems.
a0da8069 2195ac_aux_dir=
81ecdfbb
RW
2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 for ac_t in install-sh install.sh shtool; do
2198 if test -f "$ac_dir/$ac_t"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/$ac_t -c"
2201 break 2
2202 fi
2203 done
a0da8069
NN
2204done
2205if test -z "$ac_aux_dir"; then
81ecdfbb 2206 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2207fi
81ecdfbb
RW
2208
2209# These three variables are undocumented and unsupported,
2210# and are intended to be withdrawn in a future Autoconf release.
2211# They can cause serious problems if a builder's source tree is in a directory
2212# whose full name contains unusual characters.
2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216
a0da8069 2217
c6b750e1 2218# Make sure we can run config.sub.
81ecdfbb
RW
2219$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2220 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2223$as_echo_n "checking build system type... " >&6; }
2224if test "${ac_cv_build+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 ac_build_alias=$build_alias
2228test "x$ac_build_alias" = x &&
2229 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2230test "x$ac_build_alias" = x &&
2231 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2232ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2233 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2237$as_echo "$ac_cv_build" >&6; }
2238case $ac_cv_build in
2239*-*-*) ;;
2240*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2241esac
c6b750e1 2242build=$ac_cv_build
81ecdfbb
RW
2243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_build
2245shift
2246build_cpu=$1
2247build_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251build_os=$*
2252IFS=$ac_save_IFS
2253case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2254
a0da8069 2255
c6b750e1
DJ
2256 case ${build_alias} in
2257 "") build_noncanonical=${build} ;;
2258 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2259esac
2260
2261
cac3d6c4 2262
c6b750e1
DJ
2263 case ${host_alias} in
2264 "") host_noncanonical=${build_noncanonical} ;;
2265 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2266esac
2267
cac3d6c4 2268
c6b750e1
DJ
2269
2270 case ${target_alias} in
2271 "") target_noncanonical=${host_noncanonical} ;;
2272 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2273esac
2274
cac3d6c4 2275
c6b750e1
DJ
2276
2277
2278test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2279 test "$program_prefix$program_suffix$program_transform_name" = \
2280 NONENONEs,x,x, &&
c6b750e1 2281 program_transform_name=s,y,y,
cac3d6c4 2282
81ecdfbb
RW
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284$as_echo_n "checking host system type... " >&6; }
2285if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
cac3d6c4 2287else
81ecdfbb
RW
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293fi
c6b750e1
DJ
2294
2295fi
81ecdfbb
RW
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297$as_echo "$ac_cv_host" >&6; }
2298case $ac_cv_host in
2299*-*-*) ;;
2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301esac
c6b750e1 2302host=$ac_cv_host
81ecdfbb
RW
2303ac_save_IFS=$IFS; IFS='-'
2304set x $ac_cv_host
2305shift
2306host_cpu=$1
2307host_vendor=$2
2308shift; shift
2309# Remember, the first character of IFS is used to create $*,
2310# except with old shells:
2311host_os=$*
2312IFS=$ac_save_IFS
2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2314
2315
81ecdfbb
RW
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317$as_echo_n "checking target system type... " >&6; }
2318if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
c6b750e1 2320else
81ecdfbb
RW
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326fi
c6b750e1 2327
cac3d6c4 2328fi
81ecdfbb
RW
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330$as_echo "$ac_cv_target" >&6; }
2331case $ac_cv_target in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334esac
c6b750e1 2335target=$ac_cv_target
81ecdfbb
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_target
2338shift
2339target_cpu=$1
2340target_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344target_os=$*
2345IFS=$ac_save_IFS
2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2347
2348
2349# The aliases save the names the user supplied, while $host etc.
2350# will get canonicalized.
2351test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
81ecdfbb 2355
a0da8069 2356test "$program_prefix" != NONE &&
81ecdfbb 2357 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2358# Use a double $ so make ignores it.
2359test "$program_suffix" != NONE &&
81ecdfbb
RW
2360 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361# Double any \ or $.
c6b750e1 2362# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2365
a0da8069
NN
2366
2367
e5c3f801
NN
2368# Get 'install' or 'install-sh' and its variants.
2369# Find a good install program. We prefer a C program (faster),
2370# so one script is as good as another. But avoid the broken or
2371# incompatible versions:
2372# SysV /etc/install, /usr/sbin/install
2373# SunOS /usr/etc/install
2374# IRIX /sbin/install
2375# AIX /bin/install
c6b750e1 2376# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2380# OS/2's system install, which has a completely different semantic
e5c3f801 2381# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2382# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2384$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2385if test -z "$INSTALL"; then
81ecdfbb
RW
2386if test "${ac_cv_path_install+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2388else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2394 # Account for people who put trailing slashes in PATH elements.
2395case $as_dir/ in #((
2396 ./ | .// | /[cC]/* | \
c6b750e1 2397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2399 /usr/ucb/* ) ;;
2400 *)
2401 # OSF1 and SCO ODT 3.0 have their own names for install.
2402 # Don't use installbsd from OSF since it installs stuff as root
2403 # by default.
2404 for ac_prog in ginstall scoinst install; do
2405 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2407 if test $ac_prog = install &&
c6b750e1 2408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2409 # AIX install. It has an incompatible calling convention.
2410 :
c6b750e1
DJ
2411 elif test $ac_prog = install &&
2412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413 # program-specific install script used by HP pwplus--don't use.
2414 :
e5c3f801 2415 else
58c85be7
RW
2416 rm -rf conftest.one conftest.two conftest.dir
2417 echo one > conftest.one
2418 echo two > conftest.two
2419 mkdir conftest.dir
2420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2421 test -s conftest.one && test -s conftest.two &&
2422 test -s conftest.dir/conftest.one &&
2423 test -s conftest.dir/conftest.two
2424 then
2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 break 3
2427 fi
e5c3f801
NN
2428 fi
2429 fi
2430 done
c6b750e1
DJ
2431 done
2432 ;;
2433esac
81ecdfbb
RW
2434
2435 done
2436IFS=$as_save_IFS
c6b750e1 2437
58c85be7 2438rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2439
2440fi
2441 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2442 INSTALL=$ac_cv_path_install
e5c3f801 2443 else
58c85be7
RW
2444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for INSTALL within a source directory, because that will
e5c3f801 2446 # break other packages using the cache if that directory is
58c85be7 2447 # removed, or if the value is a relative name.
c6b750e1 2448 INSTALL=$ac_install_sh
e5c3f801
NN
2449 fi
2450fi
81ecdfbb
RW
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2452$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2453
2454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2455# It thinks the first close brace ends the variable substitution.
2456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457
c6b750e1 2458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2459
2460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2463$as_echo_n "checking whether ln works... " >&6; }
2464if test "${acx_cv_prog_LN+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
656fdd47
PB
2466else
2467 rm -f conftestdata_t
2468echo >conftestdata_f
2469if ln conftestdata_f conftestdata_t 2>/dev/null
2470then
2471 acx_cv_prog_LN=ln
2472else
2473 acx_cv_prog_LN=no
2474fi
2475rm -f conftestdata_f conftestdata_t
2476
2477fi
2478if test $acx_cv_prog_LN = no; then
2479 LN="cp"
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2481$as_echo "no, using $LN" >&6; }
656fdd47
PB
2482else
2483 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485$as_echo "yes" >&6; }
656fdd47
PB
2486fi
2487
81ecdfbb
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2489$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2490LN_S=$as_ln_s
2491if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
cac3d6c4 2494else
81ecdfbb
RW
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2496$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2497fi
2498
8e957354
PB
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2500$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2501if test "${ac_cv_path_SED+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2505 for ac_i in 1 2 3 4 5 6 7; do
2506 ac_script="$ac_script$as_nl$ac_script"
2507 done
2508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2509 { ac_script=; unset ac_script;}
2510 if test -z "$SED"; then
2511 ac_path_SED_found=false
2512 # Loop through the user's path and test for each of PROGNAME-LIST
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in sed gsed; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2522# Check for GNU ac_path_SED and select it if it is found.
2523 # Check for GNU $ac_path_SED
2524case `"$ac_path_SED" --version 2>&1` in
2525*GNU*)
2526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527*)
2528 ac_count=0
2529 $as_echo_n 0123456789 >"conftest.in"
2530 while :
2531 do
2532 cat "conftest.in" "conftest.in" >"conftest.tmp"
2533 mv "conftest.tmp" "conftest.in"
2534 cp "conftest.in" "conftest.nl"
2535 $as_echo '' >> "conftest.nl"
2536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2538 as_fn_arith $ac_count + 1 && ac_count=$as_val
2539 if test $ac_count -gt ${ac_path_SED_max-0}; then
2540 # Best one so far, save it but keep looking for a better one
2541 ac_cv_path_SED="$ac_path_SED"
2542 ac_path_SED_max=$ac_count
2543 fi
2544 # 10*(2^10) chars as input seems more than enough
2545 test $ac_count -gt 10 && break
2546 done
2547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2548esac
2549
2550 $ac_path_SED_found && break 3
2551 done
2552 done
2553 done
2554IFS=$as_save_IFS
2555 if test -z "$ac_cv_path_SED"; then
2556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557 fi
2558else
2559 ac_cv_path_SED=$SED
2560fi
2561
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2564$as_echo "$ac_cv_path_SED" >&6; }
2565 SED="$ac_cv_path_SED"
2566 rm -f conftest.sed
2567
2568for ac_prog in gawk mawk nawk awk
2569do
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if test "${ac_cv_prog_AWK+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 if test -n "$AWK"; then
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_AWK="$ac_prog"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592 done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597AWK=$ac_cv_prog_AWK
2598if test -n "$AWK"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600$as_echo "$AWK" >&6; }
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607 test -n "$AWK" && break
2608done
2609
e5c3f801 2610
252b5132 2611### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2612### If we are on Windows, search for the shell. This will permit people
2613### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2614### without also having to set CONFIG_SHELL. This code will work when
2615### using bash, which sets OSTYPE.
2616case "${OSTYPE}" in
2617*win32*)
a0da8069
NN
2618 if test x${CONFIG_SHELL} = x ; then
2619 if test ! -f /bin/sh ; then
2620 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2621 CONFIG_SHELL=${SHELL}
2622 export CONFIG_SHELL
2623 else
2624 for prog in sh sh.exe bash bash.exe; do
2625 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2626 for dir in $PATH; do
2627 test -z "$dir" && dir=.
2628 if test -f $dir/$prog; then
2629 CONFIG_SHELL=$dir/$prog
2630 export CONFIG_SHELL
2631 break
2632 fi
2633 done
2634 IFS="$save_ifs"
2635 test -n "${CONFIG_SHELL}" && break
2636 done
2637 fi
2638 fi
2639 fi
2640 ;;
2641esac
2642
2643config_shell=${CONFIG_SHELL-/bin/sh}
2644
a0da8069 2645moveifchange=${srcdir}/move-if-change
252b5132 2646
0fdbe983
DJ
2647srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2648
2649# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2650# a relative path.
2651if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2652 INSTALL="${srcpwd}/install-sh -c"
2653fi
2654
a0da8069
NN
2655# Set srcdir to "." if that's what it is.
2656# This is important for multilib support.
2657pwd=`${PWDCMD-pwd}`
a0da8069
NN
2658if test "${pwd}" = "${srcpwd}" ; then
2659 srcdir=.
252b5132
RH
2660fi
2661
a0da8069 2662topsrcdir=$srcpwd
252b5132 2663
a0da8069 2664extra_host_args=
afefada0 2665
a0da8069
NN
2666### To add a new directory to the tree, first choose whether it is a target
2667### or a host dependent tool. Then put it into the appropriate list
2668### (library or tools, host or target), doing a dependency sort.
252b5132 2669
c6b750e1 2670# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2671# configdirs, or target_configdirs; see the serialization section below.
252b5132 2672
c6b750e1
DJ
2673# Dependency sorting is only needed when *configuration* must be done in
2674# a particular order. In all cases a dependency should be specified in
a0da8069 2675# the Makefile, whether or not it's implicitly specified here.
252b5132 2676
a0da8069
NN
2677# Double entries in build_configdirs, configdirs, or target_configdirs may
2678# cause circular dependencies and break everything horribly.
252b5132 2679
6a9cf61e
PB
2680# these library is used by various programs built for the build
2681# environment
2682#
2683build_libs="build-libiberty"
2684
2685# these tools are built for the build environment
ee025550 2686build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2687
a0da8069
NN
2688# these libraries are used by various programs built for the host environment
2689#
1f53ca9a 2690host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2691
a0da8069
NN
2692# these tools are built for the host environment
2693# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2694# know that we are building the simulator.
2695# binutils, gas and ld appear in that order because it makes sense to run
2696# "make check" in that particular order.
e6de499b 2697# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2698host_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
2699
2700# libgcj represents the runtime libraries only used by gcj.
2701libgcj="target-libffi \
a0da8069
NN
2702 target-zlib \
2703 target-qthreads \
2704 target-libjava"
2705
2706# these libraries are built for the target environment, and are built after
2707# the host libraries and the host tools (which may be a cross compiler)
2708#
b1299c4e
DJ
2709target_libraries="target-libgcc \
2710 target-libiberty \
a0da8069
NN
2711 target-libgloss \
2712 target-newlib \
cff87f51 2713 target-libgomp \
b9459e83 2714 target-libstdc++-v3 \
4b1cb4fe 2715 target-libmudflap \
bb780410 2716 target-libssp \
e552509b 2717 target-libquadmath \
4b1cb4fe 2718 target-libgfortran \
4f0ef2d8 2719 target-boehm-gc \
83326456 2720 ${libgcj} \
a2592b1b 2721 target-libobjc \
e552509b
ILT
2722 target-libada \
2723 target-libgo"
a0da8069 2724
9c14acb8
NN
2725# these tools are built using the target libraries, and are intended to
2726# run only in the target environment
a0da8069 2727#
9c14acb8 2728# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2729# list belongs in this list.
a0da8069 2730#
2354b38b 2731target_tools="target-examples target-gperf target-rda"
252b5132 2732
a0da8069 2733################################################################################
252b5132 2734
a0da8069
NN
2735## All tools belong in one of the four categories, and are assigned above
2736## We assign ${configdirs} this way to remove all embedded newlines. This
2737## is important because configure will choke if they ever get through.
2738## ${configdirs} is directories we build using the host tools.
2739## ${target_configdirs} is directories we build using the target tools.
a0da8069 2740configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2741target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2742build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2743
9cc8ae67
PB
2744
2745
a0da8069 2746################################################################################
252b5132 2747
a0da8069 2748srcname="gnu development package"
252b5132 2749
a0da8069
NN
2750# This gets set non-empty for some net releases of packages.
2751appdirs=""
252b5132 2752
a0da8069
NN
2753# Define is_cross_compiler to save on calls to 'test'.
2754is_cross_compiler=
2755if test x"${host}" = x"${target}" ; then
2756 is_cross_compiler=no
252b5132 2757else
a0da8069 2758 is_cross_compiler=yes
c6b750e1 2759fi
252b5132 2760
9175bfc0 2761# Find the build and target subdir names.
dd12c3a8 2762
66a79c16
DJ
2763# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2764# have matching libraries, they should use host libraries: Makefile.tpl
2765# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2766# However, they still use the build modules, because the corresponding
2767# host modules (e.g. bison) are only built for the host when bootstrap
2768# finishes. So:
2769# - build_subdir is where we find build modules, and never changes.
2770# - build_libsubdir is where we find build libraries, and can be overridden.
2771
2772# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2773build_subdir="build-${build_noncanonical}"
c6b750e1 2774
81ecdfbb
RW
2775# Check whether --with-build-libsubdir was given.
2776if test "${with_build_libsubdir+set}" = set; then :
2777 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2778else
2779 build_libsubdir="$build_subdir"
81ecdfbb
RW
2780fi
2781
b00612cc
PB
2782# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2783if ( test $srcdir = . && test -d gcc ) \
2784 || test -d $srcdir/../host-${host_noncanonical}; then
2785 host_subdir="host-${host_noncanonical}"
2786else
2787 host_subdir=.
2788fi
dd12c3a8
NN
2789# No prefix.
2790target_subdir=${target_noncanonical}
c6b750e1 2791
2fd0b40b
RW
2792# Be sure to cover against remnants of an in-tree build.
2793if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2794 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2795Use a pristine source tree when building in a separate tree" "$LINENO" 5
2796fi
252b5132 2797
a0da8069
NN
2798# Skipdirs are removed silently.
2799skipdirs=
2800# Noconfigdirs are removed loudly.
2801noconfigdirs=""
252b5132 2802
a0da8069
NN
2803use_gnu_ld=
2804# Make sure we don't let GNU ld be added if we didn't want it.
2805if test x$with_gnu_ld = xno ; then
2806 use_gnu_ld=no
93f9b408 2807 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2808fi
2809
a0da8069
NN
2810use_gnu_as=
2811# Make sure we don't let GNU as be added if we didn't want it.
2812if test x$with_gnu_as = xno ; then
2813 use_gnu_as=no
2814 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2815fi
2816
700d40ca
ILT
2817use_included_zlib=
2818# Make sure we don't let ZLIB be added if we didn't want it.
2819if test x$with_system_zlib = xyes ; then
2820 use_included_zlib=no
2821 noconfigdirs="$noconfigdirs zlib"
2822fi
2823
c6b750e1 2824# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2825# it's not even worth trying to configure, much less build, that tool.
252b5132 2826
a0da8069
NN
2827case ${with_x} in
2828 yes | "") ;; # the default value for this tree is that X11 is available
2829 no)
675c6968 2830 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2831 # We won't be able to build gdbtk without X.
c6b750e1 2832 enable_gdbtk=no
a0da8069
NN
2833 ;;
2834 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2835esac
252b5132 2836
0377a422 2837# Some are only suitable for cross toolchains.
a0da8069
NN
2838# Remove these if host=target.
2839cross_only="target-libgloss target-newlib target-opcodes"
2840
2841case $is_cross_compiler in
2842 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2843esac
252b5132 2844
a0da8069
NN
2845# If both --with-headers and --with-libs are specified, default to
2846# --without-newlib.
32be62b5
RS
2847if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2848 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2849 if test x"${with_newlib}" = x ; then
2850 with_newlib=no
2851 fi
252b5132
RH
2852fi
2853
a0da8069
NN
2854# Recognize --with-newlib/--without-newlib.
2855case ${with_newlib} in
2856 no) skipdirs="${skipdirs} target-newlib" ;;
2857 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2858esac
252b5132 2859
c7791212
NC
2860# Handle --enable-gold, --enable-ld.
2861# --disable-gold [--enable-ld]
2862# Build only ld. Default option.
d3b50760
L
2863# --enable-gold [--enable-ld]
2864# Build both gold and ld. Install gold as "ld.gold", install ld
2865# as "ld.bfd" and "ld".
2866# --enable-gold=default [--enable-ld]
c7791212
NC
2867# Build both gold and ld. Install gold as "ld.gold" and "ld",
2868# install ld as "ld.bfd".
2869# --enable-gold[=default] --disable-ld
2870# Build only gold, which is then installed as both "ld.gold" and "ld".
2871# --enable-gold --enable-ld=default
d3b50760
L
2872# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2873# and ld.bfd).
c7791212
NC
2874# In other words, ld is default
2875# --enable-gold=default --enable-ld=default
2876# Error.
2877
2878default_ld=
81ecdfbb
RW
2879# Check whether --enable-gold was given.
2880if test "${enable_gold+set}" = set; then :
2881 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2882else
2883 ENABLE_GOLD=no
81ecdfbb
RW
2884fi
2885
c7791212
NC
2886case "${ENABLE_GOLD}" in
2887 yes|default)
e6de499b
NC
2888 # Check for ELF target.
2889 is_elf=no
2890 case "${target}" in
2891 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2892 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2893 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2894 case "${target}" in
2895 *-*-linux*aout* | *-*-linux*oldld*)
2896 ;;
2897 *)
2898 is_elf=yes
2899 ;;
2900 esac
2901 esac
2902
2903 if test "$is_elf" = "yes"; then
2904 # Check for target supported by gold.
93f9b408 2905 case "${target}" in
e6de499b 2906 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2907 configdirs="$configdirs gold"
2908 if test x${ENABLE_GOLD} = xdefault; then
2909 default_ld=gold
2910 fi
e6de499b 2911 ENABLE_GOLD=yes
93f9b408
ILT
2912 ;;
2913 esac
e6de499b
NC
2914 fi
2915 ;;
2916 no)
2917 ;;
2918 *)
2919 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2920 ;;
c7791212
NC
2921esac
2922
2923# Check whether --enable-ld was given.
2924if test "${enable_ld+set}" = set; then :
2925 enableval=$enable_ld; ENABLE_LD=$enableval
2926else
2927 ENABLE_LD=yes
2928fi
2929
2930
2931case "${ENABLE_LD}" in
2932 default)
d3b50760 2933 if test x${default_ld} != x; then
c7791212
NC
2934 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2935 fi
2936 ;;
2937 yes)
2938 ;;
2939 no)
2940 if test x${ENABLE_GOLD} != xyes; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2942$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2943 fi
2944 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2945 ;;
2946 *)
2947 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2948 ;;
2949esac
93f9b408 2950
a0da8069 2951# Configure extra directories which are host specific
252b5132 2952
a0da8069
NN
2953case "${host}" in
2954 *-cygwin*)
2955 configdirs="$configdirs libtermcap" ;;
2956esac
252b5132 2957
59f7ec45
HPN
2958# A target can indicate whether a language isn't supported for some reason.
2959# Only spaces may be used in this macro; not newlines or tabs.
2960unsupported_languages=
2961
c6b750e1 2962# Remove more programs from consideration, based on the host or
a0da8069
NN
2963# target this usually means that a port of the program doesn't
2964# exist yet.
252b5132 2965
a0da8069 2966case "${host}" in
3516a403 2967 i[3456789]86-*-msdosdjgpp*)
0377a422 2968 noconfigdirs="$noconfigdirs tcl tk itcl libffi"
bba45b8b 2969 ;;
2d1e8239 2970 x86_64-*-mingw*)
0377a422 2971 noconfigdirs="$noconfigdirs newlib"
2d1e8239 2972 ;;
ec11bdc6 2973 i[3456789]86-*-mingw32*)
0377a422 2974 noconfigdirs="$noconfigdirs newlib"
a0da8069 2975 ;;
a0da8069 2976esac
252b5132 2977
4b1cb4fe 2978
89a1e9c3
PB
2979# Check whether --enable-libquadmath was given.
2980if test "${enable_libquadmath+set}" = set; then :
2981 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2982else
2983 ENABLE_LIBQUADMATH=yes
2984fi
2985
2986if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2987 noconfigdirs="$noconfigdirs target-libquadmath"
2988fi
2989
2990
2991# Check whether --enable-libquadmath-support was given.
2992if test "${enable_libquadmath_support+set}" = set; then :
2993 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2994else
2995 ENABLE_LIBQUADMATH_SUPPORT=yes
2996fi
2997
2998enable_libquadmath_support=
2999if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3000 enable_libquadmath_support=no
3001fi
3002
3003
81ecdfbb
RW
3004# Check whether --enable-libada was given.
3005if test "${enable_libada+set}" = set; then :
3006 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3007else
3008 ENABLE_LIBADA=yes
81ecdfbb
RW
3009fi
3010
a2592b1b 3011if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3012 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3013fi
3014
81ecdfbb
RW
3015# Check whether --enable-libssp was given.
3016if test "${enable_libssp+set}" = set; then :
3017 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3018else
3019 ENABLE_LIBSSP=yes
81ecdfbb
RW
3020fi
3021
5f128533 3022
a0da8069
NN
3023# Save it here so that, even in case of --enable-libgcj, if the Java
3024# front-end isn't enabled, we still get libgcj disabled.
3025libgcj_saved=$libgcj
3026case $enable_libgcj in
3027yes)
3028 # If we reset it here, it won't get added to noconfigdirs in the
3029 # target-specific build rules, so it will be forcibly enabled
3030 # (unless the Java language itself isn't enabled).
3031 libgcj=
3032 ;;
3033no)
3034 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3035 # Don't disable libffi, though, other languages use it.
3036 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3037 # Clear libgcj_saved so that even if java is enabled libffi won't be
3038 # built.
3039 libgcj_saved=
a0da8069
NN
3040 ;;
3041esac
252b5132 3042
4b1cb4fe 3043
a6df5a19
PB
3044# Disable libmudflap on some systems.
3045if test x$enable_libmudflap = x ; then
3e707e94 3046 case "${target}" in
29383458 3047 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3048 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3049 ;;
3050 *-*-freebsd*)
3051 # Enable libmudflap by default in FreeBSD.
3052 ;;
3053 *)
3054 # Disable it by default everywhere else.
3055 noconfigdirs="$noconfigdirs target-libmudflap"
3056 ;;
3057 esac
a6df5a19 3058fi
4b1cb4fe 3059
a6df5a19
PB
3060# Disable libgomp on non POSIX hosted systems.
3061if test x$enable_libgomp = x ; then
b3ded179
PB
3062 # Enable libgomp by default on hosted POSIX systems.
3063 case "${target}" in
29383458 3064 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3065 ;;
3066 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3067 ;;
64ce424c 3068 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3069 ;;
3070 *-*-darwin* | *-*-aix*)
3071 ;;
3072 *)
3073 noconfigdirs="$noconfigdirs target-libgomp"
3074 ;;
3075 esac
a6df5a19 3076fi
b3ded179 3077
691bb5a1
DD
3078# Default libgloss CPU subdirectory.
3079libgloss_dir="$target_cpu"
4b1cb4fe 3080
a0da8069
NN
3081case "${target}" in
3082 *-*-chorusos)
54d1c879 3083 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3084 ;;
24741ab2 3085 powerpc-*-darwin*)
9d39db92 3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3087 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3088 ;;
85bd1942
TG
3089 i[3456789]86-*-darwin*)
3090 noconfigdirs="$noconfigdirs ld gprof"
3091 noconfigdirs="$noconfigdirs sim target-rda"
3092 ;;
e8a5fa9c 3093 x86_64-*-darwin[912]*)
652dec25
TG
3094 noconfigdirs="$noconfigdirs ld gas gprof"
3095 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3096 ;;
04d1ab34 3097 *-*-darwin*)
d320aacb 3098 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3099 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3100 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3101 ;;
a0da8069 3102 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3103 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3104 ;;
de0b4a87 3105 *-*-freebsd*)
4b1cb4fe
DD
3106 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3107 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3108 && test -f /usr/local/include/gmp.h; then
3109 with_gmp=/usr/local
3110 fi
3111
3112 # Skip some stuff that's unsupported on some FreeBSD configurations.
3113 case "${target}" in
3114 i*86-*-*) ;;
3115 alpha*-*-*) ;;
143754cd 3116 x86_64-*-*) ;;
4b1cb4fe 3117 *)
54d1c879 3118 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3119 ;;
3120 esac
3121 ;;
f8a495c8
NC
3122 *-*-kaos*)
3123 # Remove unsupported stuff on all kaOS configurations.
2354b38b 3124 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
0377a422 3125 skipdirs="$skipdirs target-libobjc"
f8a495c8
NC
3126 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3127 noconfigdirs="$noconfigdirs target-libgloss"
3128 ;;
a0da8069
NN
3129 *-*-netbsd*)
3130 # Skip some stuff on all NetBSD configurations.
3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3132
3133 # Skip some stuff that's unsupported on some NetBSD configurations.
3134 case "${target}" in
3135 i*86-*-netbsdelf*) ;;
5b474aa8 3136 arm*-*-netbsdelf*) ;;
a0da8069 3137 *)
54d1c879 3138 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3139 ;;
3140 esac
3141 ;;
2a3124ca 3142 *-*-netware*)
2354b38b 3143 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
a0da8069
NN
3144 ;;
3145 *-*-rtems*)
a009f2e7 3146 skipdirs="${skipdirs} target-libiberty"
54d1c879 3147 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3148 ;;
1587117a
EC
3149 # The tpf target doesn't support gdb yet.
3150 *-*-tpf*)
2354b38b 3151 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
1587117a 3152 ;;
c1968181 3153 *-*-uclinux*)
54d1c879 3154 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3155 ;;
a0da8069 3156 *-*-vxworks*)
54d1c879 3157 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3158 ;;
3159 alpha*-dec-osf*)
3160 # ld works, but does not support shared libraries.
0377a422 3161 # newlib is not 64 bit ready.
a0da8069 3162 # gas doesn't generate exception information.
0377a422 3163 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3164 ;;
3165 alpha*-*-*vms*)
d594eacc 3166 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3167 ;;
3168 alpha*-*-linux*)
3169 # newlib is not 64 bit ready
3170 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3171 ;;
a0da8069
NN
3172 alpha*-*-*)
3173 # newlib is not 64 bit ready
54d1c879 3174 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3175 ;;
4a18bd6b 3176 am33_2.0-*-linux*)
54d1c879 3177 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3178 ;;
a0da8069 3179 sh-*-linux*)
54d1c879 3180 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3181 ;;
a0da8069 3182 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3183 noconfigdirs="$noconfigdirs ${libgcj}"
0377a422 3184 noconfigdirs="$noconfigdirs target-libiberty"
675c6968 3185 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3186 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3187 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069 3188 noconfigdirs="$noconfigdirs target-newlib"
691bb5a1 3189 libgloss_dir=wince
a0da8069
NN
3190 ;;
3191 arc-*-*)
782cb41f 3192 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3193 ;;
93cc359e 3194 arm-*-coff)
54d1c879 3195 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3196 libgloss_dir=arm
a0da8069 3197 ;;
93cc359e 3198 arm-*-elf* | arm*-*-eabi* )
0377a422 3199 noconfigdirs="$noconfigdirs target-libffi"
691bb5a1 3200 libgloss_dir=arm
a0da8069 3201 ;;
bd70a46f 3202 arm*-*-linux-gnueabi)
0377a422 3203 noconfigdirs="$noconfigdirs"
a5b3b4dd
DD
3204 case ${with_newlib} in
3205 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3206 esac
691bb5a1 3207 libgloss_dir=arm
bd70a46f 3208 ;;
df4a6958 3209 arm*-*-symbianelf*)
54d1c879 3210 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3211 libgloss_dir=arm
df4a6958 3212 ;;
a0da8069 3213 arm-*-pe*)
54d1c879 3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3215 ;;
a0da8069 3216 arm-*-riscix*)
54d1c879 3217 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3218 ;;
3219 avr-*-*)
266df637 3220 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3221 ;;
376a0e54 3222 bfin-*-*)
df51e4e1 3223 unsupported_languages="$unsupported_languages java"
7837304f 3224 noconfigdirs="$noconfigdirs target-boehm-gc"
3cf3372e 3225 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3226 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3227 fi
3228 ;;
a0da8069 3229 c4x-*-* | tic4x-*-*)
54d1c879 3230 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3231 ;;
3232 c54x*-*-* | tic54x-*-*)
54d1c879 3233 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3234 ;;
52310858
NC
3235 cr16-*-*)
3236 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3237 ;;
c7e66c6d 3238 cris-*-* | crisv32-*-*)
59f7ec45 3239 unsupported_languages="$unsupported_languages java"
c7e66c6d 3240 case "${target}" in
2faa2958 3241 *-*-aout)
096f7d00 3242 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3243 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d357cef7
HPN
3244 *-*-elf) # See PR46792 regarding target-libffi.
3245 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3246 *-*-linux*)
5e818318 3247 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3248 *)
096f7d00 3249 unsupported_languages="$unsupported_languages fortran"
54d1c879 3250 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3251 esac
691bb5a1 3252 libgloss_dir=cris
a0da8069
NN
3253 ;;
3254 d10v-*-*)
54d1c879 3255 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3256 ;;
3257 d30v-*-*)
54d1c879 3258 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3259 ;;
3260 fr30-*-elf*)
54d1c879 3261 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3262 ;;
3263 frv-*-*)
54d1c879 3264 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3265 ;;
20135e4c
NC
3266 moxie-*-*)
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3268 noconfigdirs="$noconfigdirs gprof"
3269 ;;
a0da8069 3270 h8300*-*-*)
54d1c879 3271 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3272 ;;
3273 h8500-*-*)
54d1c879 3274 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3275 ;;
caeba88f 3276 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3277 ;;
93cc359e 3278 hppa*64*-*-linux*)
a0da8069
NN
3279 # In this case, it's because the hppa64-linux target is for
3280 # the kernel only at this point and has no libc, and thus no
3281 # headers, crt*.o, etc., all of which are needed by these.
3282 noconfigdirs="$noconfigdirs target-zlib"
3283 ;;
f0ff0f90 3284 hppa*-*-linux*)
5dcac624 3285 ;;
a0da8069 3286 hppa*-*-*elf* | \
a0da8069
NN
3287 hppa*-*-lites* | \
3288 hppa*-*-openbsd* | \
3289 hppa*64*-*-*)
54d1c879 3290 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3291 ;;
3292 hppa*-hp-hpux11*)
0377a422 3293 noconfigdirs="$noconfigdirs ld"
a0da8069 3294 ;;
691bb5a1
DD
3295 hppa*-*-pro*)
3296 libgloss_dir=pa
3297 ;;
a0da8069
NN
3298 hppa*-*-*)
3299 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3300 # build on HP-UX 10.20.
0377a422 3301 noconfigdirs="$noconfigdirs ld ${libgcj}"
a0da8069 3302 ;;
b07c2aad 3303 i960-*-*)
54d1c879 3304 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3305 ;;
a0da8069
NN
3306 ia64*-*-elf*)
3307 # No gdb support yet.
0377a422 3308 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3309 ;;
3310 ia64*-**-hpux*)
92c9a463
JB
3311 # No ld support yet.
3312 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
a0da8069 3313 ;;
19e99079
NC
3314 ia64*-*-*vms*)
3315 # No gdb or ld support yet.
0377a422 3316 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
19e99079 3317 ;;
ec11bdc6 3318 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3319 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3320 libgloss_dir=i386
a0da8069 3321 ;;
ec11bdc6 3322 i[3456789]86-*-linux*)
a0da8069
NN
3323 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3324 # not build java stuff by default.
3325 case "${target}" in
3326 *-*-*libc1*)
54d1c879 3327 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3328 esac
3329
3330 # This section makes it possible to build newlib natively on linux.
3331 # If we are using a cross compiler then don't configure newlib.
3332 if test x${is_cross_compiler} != xno ; then
bba45b8b 3333 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3334 fi
3335 noconfigdirs="$noconfigdirs target-libgloss"
3336 # If we are not using a cross compiler, do configure newlib.
3337 # Note however, that newlib will only be configured in this situation
3338 # if the --with-newlib option has been given, because otherwise
3339 # 'target-newlib' will appear in skipdirs.
3340 ;;
1f53ca9a 3341 i[3456789]86-w64-mingw*)
0377a422 3342 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1f53ca9a
AO
3343 ;;
3344 i[3456789]86-*-mingw*)
45055374 3345 target_configdirs="$target_configdirs target-winsup"
0377a422 3346 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3347 ;;
2d1e8239 3348 x86_64-*-mingw*)
0377a422 3349 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3350 ;;
a0da8069
NN
3351 *-*-cygwin*)
3352 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3353 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3354 # always build newlib if winsup directory is present.
45055374 3355 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3356 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3357 elif test -d "$srcdir/newlib"; then
45055374 3358 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3359 fi
c6b750e1 3360 ;;
f0ff0f90 3361 i[3456789]86-*-interix* )
caeba88f 3362 ;;
ec11bdc6 3363 i[3456789]86-*-pe)
782cb41f 3364 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3365 ;;
ec11bdc6 3366 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3367 # The linker does not yet know about weak symbols in COFF,
3368 # and is not configured to handle mixed ELF and COFF.
54d1c879 3369 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3370 ;;
ec11bdc6 3371 i[3456789]86-*-sco*)
54d1c879 3372 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3373 ;;
ec11bdc6 3374 i[3456789]86-*-solaris2*)
a0da8069
NN
3375 noconfigdirs="$noconfigdirs target-libgloss"
3376 ;;
ec11bdc6 3377 i[3456789]86-*-sysv4*)
54d1c879 3378 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3379 ;;
ec11bdc6 3380 i[3456789]86-*-beos*)
54d1c879 3381 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3382 ;;
b59bea8a 3383 i[3456789]86-*-rdos*)
2429c060
PB
3384 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3385 ;;
b07c2aad 3386 m32r-*-*)
54d1c879 3387 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3388 ;;
a0da8069 3389 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
782cb41f 3390 noconfigdirs="$noconfigdirs target-libiberty"
691bb5a1 3391 libgloss_dir=m68hc11
a0da8069
NN
3392 ;;
3393 m68k-*-elf*)
54d1c879 3394 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3395 ;;
3396 m68k-*-coff*)
54d1c879 3397 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3398 ;;
691bb5a1
DD
3399 m68*-*-* | fido-*-*)
3400 libgloss_dir=m68k
3401 ;;
a0da8069 3402 mmix-*-*)
59f7ec45 3403 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3404 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3405 ;;
3406 mn10200-*-*)
54d1c879 3407 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3408 ;;
3409 mn10300-*-*)
54d1c879 3410 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3411 ;;
4970f871 3412 mt-*-*)
cdb9b172
AH
3413 noconfigdirs="$noconfigdirs sim"
3414 ;;
887ebfb4
RW
3415 picochip-*-*)
3416 noconfigdirs="$noconfigdirs target-libiberty"
3417 ;;
a0da8069
NN
3418 powerpc-*-aix*)
3419 # copied from rs6000-*-* entry
e8a5fa9c 3420 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069 3421 ;;
93cc359e 3422 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3423 target_configdirs="$target_configdirs target-winsup"
0377a422 3424 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl ${libgcj}"
a0da8069
NN
3425 # always build newlib.
3426 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3427 ;;
3428 # This is temporary until we can link against shared libraries
3429 powerpcle-*-solaris*)
0377a422 3430 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl ${libgcj}"
691bb5a1 3431 libgloss_dir=rs6000
a0da8069
NN
3432 ;;
3433 powerpc-*-beos*)
54d1c879 3434 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3435 ;;
a0da8069 3436 powerpc-*-eabi)
54d1c879 3437 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3438 libgloss_dir=rs6000
caeba88f
AL
3439 ;;
3440 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3441 libgloss_dir=rs6000
a0da8069 3442 ;;
a0da8069 3443 rs6000-*-lynxos*)
54d1c879 3444 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3445 ;;
3446 rs6000-*-aix*)
e8a5fa9c 3447 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3448 ;;
3449 rs6000-*-*)
54d1c879 3450 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3451 ;;
3452 m68k-apollo-*)
54d1c879 3453 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3454 ;;
25a07265 3455 microblaze*)
29821356 3456 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3457 ;;
5bd8be13
RS
3458 mips*-sde-elf*)
3459 skipdirs="$skipdirs target-libiberty"
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 if test x$with_newlib = xyes; then
3462 noconfigdirs="$noconfigdirs gprof"
3463 fi
3464 libgloss_dir=mips
3465 ;;
a0da8069 3466 mips*-*-irix5*)
54d1c879 3467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3468 ;;
3469 mips*-*-irix6*)
a0da8069
NN
3470 # Linking libjava exceeds command-line length limits on at least
3471 # IRIX 6.2, but not on IRIX 6.5.
3472 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3473 # <oldham@codesourcery.com>
54d1c879 3474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3475 ;;
a0da8069 3476 mips*-*-bsd*)
54d1c879 3477 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3478 ;;
a0da8069
NN
3479 mips*-*-linux*)
3480 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481 ;;
3482 mips*-*-*)
54d1c879 3483 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3484 libgloss_dir=mips
a0da8069
NN
3485 ;;
3486 romp-*-*)
54d1c879 3487 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3488 ;;
dbf85af7 3489 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3490 case "${target}" in
3491 sh*-*-elf)
3492 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3493 *)
3494 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3495 esac
a0da8069 3496 ;;
691bb5a1
DD
3497 sparclet-*-aout* | sparc86x-*-*)
3498 libgloss_dir=sparc
3499 ;;
a0da8069 3500 sparc-*-elf*)
54d1c879 3501 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3502 ;;
3503 sparc64-*-elf*)
54d1c879 3504 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3505 libgloss_dir=sparc
a0da8069
NN
3506 ;;
3507 sparclite-*-*)
54d1c879 3508 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3509 libgloss_dir=sparc
a0da8069
NN
3510 ;;
3511 sparc-*-sunos4*)
54d1c879 3512 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3513 if test x${is_cross_compiler} != xno ; then
3514 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3515 else
3516 use_gnu_ld=no
3517 fi
3518 ;;
e3c770b1 3519 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3520 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3521 ;;
a0da8069
NN
3522 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3523 ;;
619a3713
JM
3524 tic6x-*-*)
3525 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3526 ;;
a0da8069 3527 v810-*-*)
54d1c879 3528 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3529 ;;
1cd986c5
NC
3530 v850*-*-*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3532 ;;
3533 vax-*-vms)
54d1c879 3534 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3535 ;;
3536 vax-*-*)
54d1c879 3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3538 ;;
8b66833e 3539 xtensa*-*-*)
54d1c879 3540 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3541 ;;
a0da8069 3542 ip2k-*-*)
54d1c879 3543 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3544 ;;
29383458 3545 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 ;;
3548 *-*-lynxos*)
54d1c879 3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3550 ;;
a0da8069 3551 *-*-*)
54d1c879 3552 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3553 ;;
3554esac
252b5132 3555
a0da8069
NN
3556# If we aren't building newlib, then don't build libgloss, since libgloss
3557# depends upon some newlib header files.
3558case "${noconfigdirs}" in
3559 *target-libgloss*) ;;
3560 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3561esac
3562
a0da8069 3563# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3564host_makefile_frag=/dev/null
3565if test -d ${srcdir}/config ; then
3566case "${host}" in
ec11bdc6 3567 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3568 host_makefile_frag="config/mh-djgpp"
3569 ;;
3570 *-cygwin*)
e33b51a6 3571
81ecdfbb
RW
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3573$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3574echo a >cygwin-cat-check
1f53ca9a 3575if test `cat cygwin-cat-check` = a ; then
8ade07e9 3576 rm cygwin-cat-check
81ecdfbb
RW
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578$as_echo "yes" >&6; }
e33b51a6 3579else
8ade07e9 3580 rm cygwin-cat-check
81ecdfbb
RW
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3584 Please either mount the build directory in binary mode or run the following
3585 commands before running any configure script:
3586set -o igncr
3587export SHELLOPTS
81ecdfbb 3588 " "$LINENO" 5
e33b51a6 3589fi
e33b51a6 3590
a0da8069
NN
3591 host_makefile_frag="config/mh-cygwin"
3592 ;;
8a1599ab 3593 *-mingw*)
84e7906e 3594 host_makefile_frag="config/mh-mingw"
2d1e8239 3595 ;;
a0da8069
NN
3596 *-interix*)
3597 host_makefile_frag="config/mh-interix"
3598 ;;
da888c87 3599 hppa*-hp-hpux10*)
da888c87 3600 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3601 ;;
3516a403 3602 hppa*-hp-hpux*)
da888c87
PB
3603 host_makefile_frag="config/mh-pa"
3604 ;;
3605 hppa*-*)
3606 host_makefile_frag="config/mh-pa"
3607 ;;
e552509b
ILT
3608 *-*-darwin*)
3609 host_makefile_frag="config/mh-darwin"
0df3d27f 3610 ;;
f6d183c0
PB
3611 powerpc-*-aix*)
3612 host_makefile_frag="config/mh-ppc-aix"
3613 ;;
3614 rs6000-*-aix*)
3615 host_makefile_frag="config/mh-ppc-aix"
3616 ;;
a0da8069
NN
3617esac
3618fi
3619
9e07f89d 3620if test "${build}" != "${host}" ; then
1576798e
PB
3621 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3622 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3623 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3624 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3625 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3626 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3627 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3628 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3629 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3630 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3631 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3632 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3633 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3634else
3635 AR_FOR_BUILD="\$(AR)"
3636 AS_FOR_BUILD="\$(AS)"
512b7dfb 3637 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3638 CXX_FOR_BUILD="\$(CXX)"
3639 GCJ_FOR_BUILD="\$(GCJ)"
3640 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3641 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3642 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3643 LD_FOR_BUILD="\$(LD)"
3644 NM_FOR_BUILD="\$(NM)"
3645 RANLIB_FOR_BUILD="\$(RANLIB)"
3646 WINDRES_FOR_BUILD="\$(WINDRES)"
3647 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3648fi
3649
3650ac_ext=c
c6b750e1
DJ
3651ac_cpp='$CPP $CPPFLAGS'
3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3657set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3662else
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3675 break 2
3676 fi
3677done
81ecdfbb
RW
3678 done
3679IFS=$as_save_IFS
c6b750e1
DJ
3680
3681fi
3682fi
3683CC=$ac_cv_prog_CC
3684if test -n "$CC"; then
81ecdfbb
RW
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686$as_echo "$CC" >&6; }
c6b750e1 3687else
81ecdfbb
RW
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
c6b750e1
DJ
3690fi
3691
81ecdfbb 3692
c6b750e1
DJ
3693fi
3694if test -z "$ac_cv_prog_CC"; then
3695 ac_ct_CC=$CC
6a9cf61e 3696 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3697set dummy gcc; ac_word=$2
81ecdfbb
RW
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699$as_echo_n "checking for $ac_word... " >&6; }
3700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3702else
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705else
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3713 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3715 break 2
3716 fi
3717done
81ecdfbb
RW
3718 done
3719IFS=$as_save_IFS
c6b750e1
DJ
3720
3721fi
3722fi
3723ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3727else
81ecdfbb
RW
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729$as_echo "no" >&6; }
c6b750e1
DJ
3730fi
3731
81ecdfbb
RW
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736yes:)
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739ac_tool_warned=yes ;;
3740esac
3741 CC=$ac_ct_CC
3742 fi
c6b750e1
DJ
3743else
3744 CC="$ac_cv_prog_CC"
3745fi
3746
3747if test -z "$CC"; then
81ecdfbb
RW
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3750set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
9e07f89d
NN
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
c6b750e1
DJ
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3766 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3768 break 2
3769 fi
3770done
81ecdfbb
RW
3771 done
3772IFS=$as_save_IFS
c6b750e1 3773
9e07f89d
NN
3774fi
3775fi
c6b750e1 3776CC=$ac_cv_prog_CC
9e07f89d 3777if test -n "$CC"; then
81ecdfbb
RW
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779$as_echo "$CC" >&6; }
c6b750e1 3780else
81ecdfbb
RW
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782$as_echo "no" >&6; }
c6b750e1
DJ
3783fi
3784
c6b750e1 3785
81ecdfbb 3786 fi
c6b750e1 3787fi
9e07f89d
NN
3788if test -z "$CC"; then
3789 # Extract the first word of "cc", so it can be a program name with args.
3790set dummy cc; ac_word=$2
81ecdfbb
RW
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
3793if test "${ac_cv_prog_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
9e07f89d
NN
3795else
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798else
9e07f89d 3799 ac_prog_rejected=no
c6b750e1
DJ
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808 ac_prog_rejected=yes
3809 continue
3810 fi
3811 ac_cv_prog_CC="cc"
81ecdfbb 3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3813 break 2
3814 fi
3815done
81ecdfbb
RW
3816 done
3817IFS=$as_save_IFS
c6b750e1 3818
9e07f89d
NN
3819if test $ac_prog_rejected = yes; then
3820 # We found a bogon in the path, so make sure we never use it.
3821 set dummy $ac_cv_prog_CC
3822 shift
c6b750e1 3823 if test $# != 0; then
9e07f89d
NN
3824 # We chose a different compiler from the bogus one.
3825 # However, it has the same basename, so the bogon will be chosen
3826 # first if we set CC to just the basename; use the full file name.
3827 shift
c6b750e1 3828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3829 fi
3830fi
3831fi
3832fi
c6b750e1 3833CC=$ac_cv_prog_CC
9e07f89d 3834if test -n "$CC"; then
81ecdfbb
RW
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836$as_echo "$CC" >&6; }
9e07f89d 3837else
81ecdfbb
RW
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
9e07f89d
NN
3840fi
3841
81ecdfbb 3842
c6b750e1
DJ
3843fi
3844if test -z "$CC"; then
3845 if test -n "$ac_tool_prefix"; then
81ecdfbb 3846 for ac_prog in cl.exe
c6b750e1
DJ
3847 do
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851$as_echo_n "checking for $ac_word... " >&6; }
3852if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
9e07f89d
NN
3854else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857else
c6b750e1
DJ
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3867 break 2
376a0e54 3868 fi
c6b750e1 3869done
81ecdfbb
RW
3870 done
3871IFS=$as_save_IFS
cac3d6c4 3872
c6b750e1
DJ
3873fi
3874fi
3875CC=$ac_cv_prog_CC
3876if test -n "$CC"; then
81ecdfbb
RW
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878$as_echo "$CC" >&6; }
cac3d6c4 3879else
81ecdfbb
RW
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881$as_echo "no" >&6; }
9e07f89d 3882fi
cac3d6c4 3883
81ecdfbb 3884
c6b750e1
DJ
3885 test -n "$CC" && break
3886 done
cac3d6c4 3887fi
c6b750e1
DJ
3888if test -z "$CC"; then
3889 ac_ct_CC=$CC
81ecdfbb 3890 for ac_prog in cl.exe
c6b750e1
DJ
3891do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895$as_echo_n "checking for $ac_word... " >&6; }
3896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
cac3d6c4 3898else
c6b750e1
DJ
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3901else
c6b750e1
DJ
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3909 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3911 break 2
3912 fi
3913done
81ecdfbb
RW
3914 done
3915IFS=$as_save_IFS
c6b750e1 3916
cac3d6c4
CM
3917fi
3918fi
c6b750e1
DJ
3919ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3923else
81ecdfbb
RW
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
cac3d6c4 3926fi
376a0e54 3927
81ecdfbb 3928
c6b750e1
DJ
3929 test -n "$ac_ct_CC" && break
3930done
3931
81ecdfbb
RW
3932 if test "x$ac_ct_CC" = x; then
3933 CC=""
3934 else
3935 case $cross_compiling:$ac_tool_warned in
3936yes:)
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939ac_tool_warned=yes ;;
3940esac
3941 CC=$ac_ct_CC
3942 fi
c6b750e1
DJ
3943fi
3944
3945fi
3946
3947
81ecdfbb
RW
3948test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950as_fn_error "no acceptable C compiler found in \$PATH
3951See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
3952
3953# Provide some information about the compiler.
81ecdfbb
RW
3954$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955set X $ac_compile
3956ac_compiler=$2
3957for ac_option in --version -v -V -qversion; do
3958 { { ac_try="$ac_compiler $ac_option >&5"
3959case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964$as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 3966 ac_status=$?
81ecdfbb
RW
3967 if test -s conftest.err; then
3968 sed '10a\
3969... rest of stderr output deleted ...
3970 10q' conftest.err >conftest.er1
3971 cat conftest.er1 >&5
3972 rm -f conftest.er1 conftest.err
3973 fi
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976done
c6b750e1 3977
81ecdfbb 3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
3979/* end confdefs.h. */
3980
3981int
3982main ()
3983{
3984
3985 ;
3986 return 0;
3987}
3988_ACEOF
3989ac_clean_files_save=$ac_clean_files
81ecdfbb 3990ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
3991# Try to create an executable without -o first, disregard a.out.
3992# It will help us diagnose broken compilers, and finding out an intuition
3993# of exeext.
81ecdfbb
RW
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3995$as_echo_n "checking for C compiler default output file name... " >&6; }
3996ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3997
3998# The possible output files:
3999ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4000
4001ac_rmfiles=
4002for ac_file in $ac_files
4003do
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4007 esac
4008done
4009rm -f $ac_rmfiles
4010
4011if { { ac_try="$ac_link_default"
4012case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017$as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_link_default") 2>&5
c6b750e1 4019 ac_status=$?
81ecdfbb
RW
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4024# in a Makefile. We should not override ac_cv_exeext if it was cached,
4025# so that the user can short-circuit this test for compilers unknown to
4026# Autoconf.
4027for ac_file in $ac_files ''
c6b750e1
DJ
4028do
4029 test -f "$ac_file" || continue
4030 case $ac_file in
81ecdfbb 4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4032 ;;
4033 [ab].out )
4034 # We found the default executable, but exeext='' is most
4035 # certainly right.
4036 break;;
4037 *.* )
81ecdfbb
RW
4038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4039 then :; else
4040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4041 fi
4042 # We set ac_cv_exeext here because the later test for it is not
4043 # safe: cross compilers may not add the suffix if given an `-o'
4044 # argument, so we may need to know it at that point already.
4045 # Even if this section looks crufty: it has the advantage of
4046 # actually working.
c6b750e1
DJ
4047 break;;
4048 * )
4049 break;;
4050 esac
4051done
81ecdfbb
RW
4052test "$ac_cv_exeext" = no && ac_cv_exeext=
4053
c6b750e1 4054else
81ecdfbb
RW
4055 ac_file=''
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4058$as_echo "$ac_file" >&6; }
4059if test -z "$ac_file"; then :
4060 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
81ecdfbb
RW
4063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065{ as_fn_set_status 77
4066as_fn_error "C compiler cannot create executables
4067See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4068fi
c6b750e1 4069ac_exeext=$ac_cv_exeext
c6b750e1 4070
81ecdfbb 4071# Check that the compiler produces executables we can run. If not, either
c6b750e1 4072# the compiler is broken, or we cross compile.
81ecdfbb
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4074$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4075# If not cross compiling, check that we can run a simple program.
4076if test "$cross_compiling" != yes; then
4077 if { ac_try='./$ac_file'
81ecdfbb
RW
4078 { { case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083$as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_try") 2>&5
c6b750e1 4085 ac_status=$?
81ecdfbb
RW
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; }; then
c6b750e1
DJ
4088 cross_compiling=no
4089 else
4090 if test "$cross_compiling" = maybe; then
4091 cross_compiling=yes
4092 else
81ecdfbb
RW
4093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095as_fn_error "cannot run C compiled programs.
c6b750e1 4096If you meant to cross compile, use \`--host'.
81ecdfbb 4097See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4098 fi
4099 fi
4100fi
81ecdfbb
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
c6b750e1 4103
81ecdfbb 4104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4105ac_clean_files=$ac_clean_files_save
81ecdfbb 4106# Check that the compiler produces executables we can run. If not, either
c6b750e1 4107# the compiler is broken, or we cross compile.
81ecdfbb
RW
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109$as_echo_n "checking whether we are cross compiling... " >&6; }
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4111$as_echo "$cross_compiling" >&6; }
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114$as_echo_n "checking for suffix of executables... " >&6; }
4115if { { ac_try="$ac_link"
4116case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119esac
4120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121$as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
c6b750e1 4123 ac_status=$?
81ecdfbb
RW
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; then :
c6b750e1
DJ
4126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4127# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4128# work properly (i.e., refer to `conftest.exe'), while it won't with
4129# `rm'.
4130for ac_file in conftest.exe conftest conftest.*; do
4131 test -f "$ac_file" || continue
4132 case $ac_file in
81ecdfbb 4133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4135 break;;
4136 * ) break;;
4137 esac
4138done
4139else
81ecdfbb
RW
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142as_fn_error "cannot compute suffix of executables: cannot compile and link
4143See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4144fi
c6b750e1 4145rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4148
4149rm -f conftest.$ac_ext
4150EXEEXT=$ac_cv_exeext
4151ac_exeext=$EXEEXT
81ecdfbb
RW
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153$as_echo_n "checking for suffix of object files... " >&6; }
4154if test "${ac_cv_objext+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
c6b750e1 4156else
81ecdfbb 4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4158/* end confdefs.h. */
4159
4160int
4161main ()
4162{
4163
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168rm -f conftest.o conftest.obj
81ecdfbb
RW
4169if { { ac_try="$ac_compile"
4170case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175$as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compile") 2>&5
c6b750e1 4177 ac_status=$?
81ecdfbb
RW
4178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; then :
4180 for ac_file in conftest.o conftest.obj conftest.*; do
4181 test -f "$ac_file" || continue;
c6b750e1 4182 case $ac_file in
81ecdfbb 4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4185 break;;
4186 esac
4187done
cac3d6c4 4188else
81ecdfbb 4189 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
81ecdfbb
RW
4192{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194as_fn_error "cannot compute suffix of object files: cannot compile
4195See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4196fi
c6b750e1
DJ
4197rm -f conftest.$ac_cv_objext conftest.$ac_ext
4198fi
81ecdfbb
RW
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4201OBJEXT=$ac_cv_objext
4202ac_objext=$OBJEXT
81ecdfbb
RW
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
c6b750e1 4207else
81ecdfbb 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4209/* end confdefs.h. */
4210
4211int
4212main ()
4213{
4214#ifndef __GNUC__
4215 choke me
4216#endif
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
81ecdfbb 4222if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4223 ac_compiler_gnu=yes
4224else
81ecdfbb 4225 ac_compiler_gnu=no
c6b750e1 4226fi
81ecdfbb 4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4228ac_cv_c_compiler_gnu=$ac_compiler_gnu
4229
4230fi
81ecdfbb
RW
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233if test $ac_compiler_gnu = yes; then
4234 GCC=yes
4235else
4236 GCC=
4237fi
c6b750e1
DJ
4238ac_test_CFLAGS=${CFLAGS+set}
4239ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241$as_echo_n "checking whether $CC accepts -g... " >&6; }
4242if test "${ac_cv_prog_cc_g+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244else
4245 ac_save_c_werror_flag=$ac_c_werror_flag
4246 ac_c_werror_flag=yes
4247 ac_cv_prog_cc_g=no
4248 CFLAGS="-g"
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4250/* end confdefs.h. */
4251
4252int
4253main ()
4254{
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
81ecdfbb 4260if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4261 ac_cv_prog_cc_g=yes
4262else
81ecdfbb
RW
4263 CFLAGS=""
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h. */
4266
4267int
4268main ()
4269{
4270
4271 ;
4272 return 0;
4273}
4274_ACEOF
4275if ac_fn_c_try_compile "$LINENO"; then :
4276
4277else
4278 ac_c_werror_flag=$ac_save_c_werror_flag
4279 CFLAGS="-g"
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h. */
cac3d6c4 4282
81ecdfbb
RW
4283int
4284main ()
4285{
4286
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_g=yes
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4295fi
81ecdfbb 4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4297fi
81ecdfbb
RW
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300fi
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4303if test "$ac_test_CFLAGS" = set; then
c6b750e1 4304 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4305elif test $ac_cv_prog_cc_g = yes; then
4306 if test "$GCC" = yes; then
4307 CFLAGS="-g -O2"
4308 else
4309 CFLAGS="-g"
4310 fi
4311else
4312 if test "$GCC" = yes; then
4313 CFLAGS="-O2"
4314 else
4315 CFLAGS=
4316 fi
4317fi
81ecdfbb
RW
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320if test "${ac_cv_prog_cc_c89+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
c6b750e1 4322else
81ecdfbb 4323 ac_cv_prog_cc_c89=no
c6b750e1 4324ac_save_CC=$CC
81ecdfbb 4325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4326/* end confdefs.h. */
4327#include <stdarg.h>
4328#include <stdio.h>
4329#include <sys/types.h>
4330#include <sys/stat.h>
4331/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4332struct buf { int x; };
4333FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334static char *e (p, i)
4335 char **p;
4336 int i;
4337{
4338 return p[i];
4339}
4340static char *f (char * (*g) (char **, int), char **p, ...)
4341{
4342 char *s;
4343 va_list v;
4344 va_start (v,p);
4345 s = g (p, va_arg (v,int));
4346 va_end (v);
4347 return s;
4348}
4349
4350/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4351 function prototypes and stuff, but not '\xHH' hex character constants.
4352 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4353 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4355 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4356 that's true only with -std. */
c6b750e1
DJ
4357int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4358
81ecdfbb
RW
4359/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4360 inside strings and character constants. */
4361#define FOO(x) 'x'
4362int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4363
c6b750e1
DJ
4364int test (int i, double x);
4365struct s1 {int (*f) (int a);};
4366struct s2 {int (*f) (double a);};
4367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4368int argc;
4369char **argv;
4370int
4371main ()
4372{
4373return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4374 ;
4375 return 0;
4376}
4377_ACEOF
81ecdfbb
RW
4378for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4380do
4381 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4384fi
81ecdfbb
RW
4385rm -f core conftest.err conftest.$ac_objext
4386 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4387done
81ecdfbb 4388rm -f conftest.$ac_ext
c6b750e1
DJ
4389CC=$ac_save_CC
4390
4391fi
81ecdfbb
RW
4392# AC_CACHE_VAL
4393case "x$ac_cv_prog_cc_c89" in
4394 x)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396$as_echo "none needed" >&6; } ;;
4397 xno)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399$as_echo "unsupported" >&6; } ;;
c6b750e1 4400 *)
81ecdfbb
RW
4401 CC="$CC $ac_cv_prog_cc_c89"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4404esac
81ecdfbb 4405if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4406
c6b750e1
DJ
4407fi
4408
c6b750e1
DJ
4409ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4414
81ecdfbb 4415ac_ext=cpp
18f6b6ee
PB
4416ac_cpp='$CXXCPP $CPPFLAGS'
4417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4420if test -z "$CXX"; then
4421 if test -n "$CCC"; then
4422 CXX=$CCC
4423 else
4424 if test -n "$ac_tool_prefix"; then
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4426 do
4427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430$as_echo_n "checking for $ac_word... " >&6; }
4431if test "${ac_cv_prog_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4433else
4434 if test -n "$CXX"; then
4435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4446 break 2
4447 fi
4448done
81ecdfbb
RW
4449 done
4450IFS=$as_save_IFS
512b7dfb 4451
18f6b6ee
PB
4452fi
4453fi
4454CXX=$ac_cv_prog_CXX
4455if test -n "$CXX"; then
81ecdfbb
RW
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4457$as_echo "$CXX" >&6; }
18f6b6ee 4458else
81ecdfbb
RW
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
18f6b6ee
PB
4461fi
4462
81ecdfbb 4463
18f6b6ee
PB
4464 test -n "$CXX" && break
4465 done
4466fi
4467if test -z "$CXX"; then
4468 ac_ct_CXX=$CXX
81ecdfbb 4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4470do
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }
4475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4477else
4478 if test -n "$ac_ct_CXX"; then
4479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4480else
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4488 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4490 break 2
512b7dfb 4491 fi
18f6b6ee 4492done
81ecdfbb
RW
4493 done
4494IFS=$as_save_IFS
512b7dfb 4495
18f6b6ee
PB
4496fi
4497fi
4498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4499if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4501$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4502else
81ecdfbb
RW
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
18f6b6ee
PB
4505fi
4506
81ecdfbb 4507
18f6b6ee
PB
4508 test -n "$ac_ct_CXX" && break
4509done
18f6b6ee 4510
81ecdfbb
RW
4511 if test "x$ac_ct_CXX" = x; then
4512 CXX="g++"
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515yes:)
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518ac_tool_warned=yes ;;
4519esac
4520 CXX=$ac_ct_CXX
4521 fi
18f6b6ee
PB
4522fi
4523
81ecdfbb
RW
4524 fi
4525fi
18f6b6ee 4526# Provide some information about the compiler.
81ecdfbb
RW
4527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4528set X $ac_compile
4529ac_compiler=$2
4530for ac_option in --version -v -V -qversion; do
4531 { { ac_try="$ac_compiler $ac_option >&5"
4532case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537$as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4539 ac_status=$?
81ecdfbb
RW
4540 if test -s conftest.err; then
4541 sed '10a\
4542... rest of stderr output deleted ...
4543 10q' conftest.err >conftest.er1
4544 cat conftest.er1 >&5
4545 rm -f conftest.er1 conftest.err
4546 fi
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4549done
18f6b6ee 4550
81ecdfbb
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4552$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4553if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
18f6b6ee 4555else
81ecdfbb 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4557/* end confdefs.h. */
4558
4559int
4560main ()
4561{
4562#ifndef __GNUC__
4563 choke me
4564#endif
4565
4566 ;
4567 return 0;
4568}
4569_ACEOF
81ecdfbb 4570if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4571 ac_compiler_gnu=yes
4572else
81ecdfbb 4573 ac_compiler_gnu=no
18f6b6ee 4574fi
81ecdfbb 4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4576ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4577
4578fi
81ecdfbb
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4580$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4581if test $ac_compiler_gnu = yes; then
4582 GXX=yes
4583else
4584 GXX=
4585fi
18f6b6ee
PB
4586ac_test_CXXFLAGS=${CXXFLAGS+set}
4587ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4589$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4590if test "${ac_cv_prog_cxx_g+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592else
4593 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4594 ac_cxx_werror_flag=yes
4595 ac_cv_prog_cxx_g=no
4596 CXXFLAGS="-g"
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4598/* end confdefs.h. */
4599
4600int
4601main ()
4602{
4603
4604 ;
4605 return 0;
4606}
4607_ACEOF
81ecdfbb 4608if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4609 ac_cv_prog_cxx_g=yes
4610else
81ecdfbb
RW
4611 CXXFLAGS=""
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4613/* end confdefs.h. */
81ecdfbb 4614
18f6b6ee
PB
4615int
4616main ()
4617{
81ecdfbb 4618
18f6b6ee
PB
4619 ;
4620 return 0;
4621}
4622_ACEOF
81ecdfbb 4623if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4624
81ecdfbb
RW
4625else
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4627 CXXFLAGS="-g"
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4629/* end confdefs.h. */
81ecdfbb 4630
18f6b6ee
PB
4631int
4632main ()
4633{
81ecdfbb 4634
18f6b6ee
PB
4635 ;
4636 return 0;
4637}
4638_ACEOF
81ecdfbb
RW
4639if ac_fn_cxx_try_compile "$LINENO"; then :
4640 ac_cv_prog_cxx_g=yes
18f6b6ee 4641fi
81ecdfbb
RW
4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643fi
4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4650$as_echo "$ac_cv_prog_cxx_g" >&6; }
4651if test "$ac_test_CXXFLAGS" = set; then
4652 CXXFLAGS=$ac_save_CXXFLAGS
4653elif test $ac_cv_prog_cxx_g = yes; then
4654 if test "$GXX" = yes; then
4655 CXXFLAGS="-g -O2"
4656 else
4657 CXXFLAGS="-g"
4658 fi
4659else
4660 if test "$GXX" = yes; then
4661 CXXFLAGS="-O2"
4662 else
4663 CXXFLAGS=
4664 fi
18f6b6ee 4665fi
18f6b6ee
PB
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
4672
4673# We must set the default linker to the linker used by gcc for the correct
4674# operation of libtool. If LD is not defined and we are using gcc, try to
4675# set the LD default to the ld used by gcc.
4676if test -z "$LD"; then
4677 if test "$GCC" = yes; then
4678 case $build in
4679 *-*-mingw*)
4680 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4681 *)
4682 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4683 esac
4684 case $gcc_prog_ld in
4685 # Accept absolute paths.
4686 [\\/]* | [A-Za-z]:[\\/]*)
4687 LD="$gcc_prog_ld" ;;
4688 esac
4689 fi
512b7dfb
PB
4690fi
4691
4692
4693
4694
c6b750e1 4695if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4696 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4697set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
9e07f89d 4702else
512b7dfb
PB
4703 if test -n "$GNATBIND"; then
4704 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4705else
c6b750e1
DJ
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4713 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4715 break 2
4716 fi
4717done
81ecdfbb
RW
4718 done
4719IFS=$as_save_IFS
c6b750e1 4720
9e07f89d
NN
4721fi
4722fi
512b7dfb
PB
4723GNATBIND=$ac_cv_prog_GNATBIND
4724if test -n "$GNATBIND"; then
81ecdfbb
RW
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4726$as_echo "$GNATBIND" >&6; }
9e07f89d 4727else
81ecdfbb
RW
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
9e07f89d
NN
4730fi
4731
81ecdfbb 4732
c6b750e1 4733fi
512b7dfb
PB
4734if test -z "$ac_cv_prog_GNATBIND"; then
4735 ac_ct_GNATBIND=$GNATBIND
4736 # Extract the first word of "gnatbind", so it can be a program name with args.
4737set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
4740if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
9e07f89d 4742else
512b7dfb
PB
4743 if test -n "$ac_ct_GNATBIND"; then
4744 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4745else
c6b750e1
DJ
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4753 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4755 break 2
4756 fi
4757done
81ecdfbb
RW
4758 done
4759IFS=$as_save_IFS
c6b750e1 4760
9e07f89d
NN
4761fi
4762fi
512b7dfb
PB
4763ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4764if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4766$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4767else
81ecdfbb
RW
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
9e07f89d
NN
4770fi
4771
81ecdfbb
RW
4772 if test "x$ac_ct_GNATBIND" = x; then
4773 GNATBIND="no"
4774 else
4775 case $cross_compiling:$ac_tool_warned in
4776yes:)
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779ac_tool_warned=yes ;;
4780esac
4781 GNATBIND=$ac_ct_GNATBIND
4782 fi
24ff9987 4783else
512b7dfb 4784 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4785fi
4786
7df2cd5d 4787if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4788 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4789set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
7df2cd5d 4794else
512b7dfb
PB
4795 if test -n "$GNATMAKE"; then
4796 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4805 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4807 break 2
4808 fi
4809done
81ecdfbb
RW
4810 done
4811IFS=$as_save_IFS
7df2cd5d
PB
4812
4813fi
4814fi
512b7dfb
PB
4815GNATMAKE=$ac_cv_prog_GNATMAKE
4816if test -n "$GNATMAKE"; then
81ecdfbb
RW
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4818$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4819else
81ecdfbb
RW
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
7df2cd5d
PB
4822fi
4823
81ecdfbb 4824
7df2cd5d 4825fi
512b7dfb
PB
4826if test -z "$ac_cv_prog_GNATMAKE"; then
4827 ac_ct_GNATMAKE=$GNATMAKE
4828 # Extract the first word of "gnatmake", so it can be a program name with args.
4829set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
4832if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
7df2cd5d 4834else
512b7dfb
PB
4835 if test -n "$ac_ct_GNATMAKE"; then
4836 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4845 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4847 break 2
4848 fi
4849done
81ecdfbb
RW
4850 done
4851IFS=$as_save_IFS
7df2cd5d 4852
7df2cd5d
PB
4853fi
4854fi
512b7dfb
PB
4855ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4856if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4858$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4859else
81ecdfbb
RW
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
7df2cd5d
PB
4862fi
4863
81ecdfbb
RW
4864 if test "x$ac_ct_GNATMAKE" = x; then
4865 GNATMAKE="no"
4866 else
4867 case $cross_compiling:$ac_tool_warned in
4868yes:)
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4871ac_tool_warned=yes ;;
4872esac
4873 GNATMAKE=$ac_ct_GNATMAKE
4874 fi
7df2cd5d 4875else
512b7dfb 4876 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4877fi
4878
81ecdfbb
RW
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4880$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4881if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
9e07f89d
NN
4883else
4884 cat >conftest.adb <<EOF
4885procedure conftest is begin null; end conftest;
4886EOF
4887acx_cv_cc_gcc_supports_ada=no
4888# There is a bug in old released versions of GCC which causes the
4889# driver to exit successfully when the appropriate language module
4890# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4891# Therefore we must check for the error message as well as an
4892# unsuccessful exit.
b8908782
DD
4893# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4894# given a .adb file, but produce no object file. So we must check
4895# if an object file was really produced to guard against this.
9e07f89d 4896errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4897if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4898 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4899fi
4900rm -f conftest.*
4901fi
81ecdfbb
RW
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4903$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4904
512b7dfb 4905if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4906 have_gnat=yes
4907else
4908 have_gnat=no
4909fi
4910
81ecdfbb
RW
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4912$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4913if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
b8908782
DD
4915else
4916 echo abfoo >t1
4917 echo cdfoo >t2
4918 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4919 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4920 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4921 :
4922 else
4923 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4924 fi
4925 fi
b8908782
DD
4926 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4927 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4928 :
b8908782
DD
4929 else
4930 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4931 fi
4932 fi
4933 rm t1 t2
4934
4935fi
81ecdfbb
RW
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4937$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
4938do_compare="$gcc_cv_prog_cmp_skip"
4939
4940
9e07f89d 4941
e8a5fa9c 4942# See if we are building gcc with C++.
81ecdfbb
RW
4943# Check whether --enable-build-with-cxx was given.
4944if test "${enable_build_with_cxx+set}" = set; then :
4945 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
4946else
4947 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
4948fi
4949
e8a5fa9c 4950
d5f2ee2e
KG
4951# Used for setting $lt_cv_objdir
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4953$as_echo_n "checking for objdir... " >&6; }
4954if test "${lt_cv_objdir+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956else
4957 rm -f .libs 2>/dev/null
4958mkdir .libs 2>/dev/null
4959if test -d .libs; then
4960 lt_cv_objdir=.libs
4961else
4962 # MS-DOS does not allow filenames that begin with a dot.
4963 lt_cv_objdir=_libs
4964fi
4965rmdir .libs 2>/dev/null
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4968$as_echo "$lt_cv_objdir" >&6; }
4969objdir=$lt_cv_objdir
4970
4971
4972
4973
4974
4975cat >>confdefs.h <<_ACEOF
4976#define LT_OBJDIR "$lt_cv_objdir/"
4977_ACEOF
4978
4979
4980
e8a5fa9c 4981# Check for GMP, MPFR and MPC
d9b76ff9 4982gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 4983gmpinc=
4b900473 4984have_gmp=no
e8a5fa9c
RW
4985
4986# Specify a location for mpc
4987# check for this first so it ends up on the link line before mpfr.
4988
81ecdfbb
RW
4989# Check whether --with-mpc was given.
4990if test "${with_mpc+set}" = set; then :
4991 withval=$with_mpc;
4992fi
e8a5fa9c 4993
e8a5fa9c 4994
e552509b 4995# Check whether --with-mpc-include was given.
81ecdfbb
RW
4996if test "${with_mpc_include+set}" = set; then :
4997 withval=$with_mpc_include;
4998fi
e8a5fa9c 4999
e8a5fa9c 5000
e552509b 5001# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5002if test "${with_mpc_lib+set}" = set; then :
5003 withval=$with_mpc_lib;
5004fi
e8a5fa9c 5005
e8a5fa9c
RW
5006
5007if test "x$with_mpc" != x; then
d9b76ff9
KG
5008 gmplibs="-L$with_mpc/lib $gmplibs"
5009 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5010fi
5011if test "x$with_mpc_include" != x; then
d9b76ff9 5012 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5013fi
5014if test "x$with_mpc_lib" != x; then
d9b76ff9 5015 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5016fi
5017if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5018 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5019 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5020 # Do not test the mpc version. Assume that it is sufficient, since
5021 # it is in the source tree, and the library has not been built yet
5022 # but it would be included on the link line in the version check below
5023 # hence making the test fail.
d9b76ff9 5024 have_gmp=yes
e8a5fa9c 5025fi
4b900473 5026
11b04d1f
DD
5027# Specify a location for mpfr
5028# check for this first so it ends up on the link line before gmp.
c6b750e1 5029
81ecdfbb
RW
5030# Check whether --with-mpfr-dir was given.
5031if test "${with_mpfr_dir+set}" = set; then :
5032 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5033Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5034fi
5035
11b04d1f
DD
5036
5037
81ecdfbb
RW
5038# Check whether --with-mpfr was given.
5039if test "${with_mpfr+set}" = set; then :
5040 withval=$with_mpfr;
5041fi
c6b750e1 5042
11b04d1f 5043
e552509b 5044# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5045if test "${with_mpfr_include+set}" = set; then :
5046 withval=$with_mpfr_include;
5047fi
c6b750e1 5048
8a0d8a5c 5049
e552509b 5050# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5051if test "${with_mpfr_lib+set}" = set; then :
5052 withval=$with_mpfr_lib;
5053fi
8a0d8a5c 5054
11b04d1f
DD
5055
5056if test "x$with_mpfr" != x; then
5057 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5058 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5059fi
8a0d8a5c 5060if test "x$with_mpfr_include" != x; then
d9b76ff9 5061 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5062fi
5063if test "x$with_mpfr_lib" != x; then
5064 gmplibs="-L$with_mpfr_lib $gmplibs"
5065fi
4b900473 5066if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5067 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5068 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5069 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5070 # Do not test the mpfr version. Assume that it is sufficient, since
5071 # it is in the source tree, and the library has not been built yet
5072 # but it would be included on the link line in the version check below
5073 # hence making the test fail.
5074 have_gmp=yes
5075fi
11b04d1f 5076
4b1cb4fe 5077# Specify a location for gmp
c6b750e1 5078
81ecdfbb
RW
5079# Check whether --with-gmp-dir was given.
5080if test "${with_gmp_dir+set}" = set; then :
5081 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5082Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5083fi
5084
4b1cb4fe
DD
5085
5086
81ecdfbb
RW
5087# Check whether --with-gmp was given.
5088if test "${with_gmp+set}" = set; then :
5089 withval=$with_gmp;
5090fi
c6b750e1 5091
4b1cb4fe 5092
e552509b 5093# Check whether --with-gmp-include was given.
81ecdfbb
RW
5094if test "${with_gmp_include+set}" = set; then :
5095 withval=$with_gmp_include;
5096fi
c6b750e1 5097
8a0d8a5c 5098
e552509b 5099# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5100if test "${with_gmp_lib+set}" = set; then :
5101 withval=$with_gmp_lib;
5102fi
8a0d8a5c
PB
5103
5104
4b1cb4fe 5105
11b04d1f
DD
5106if test "x$with_gmp" != x; then
5107 gmplibs="-L$with_gmp/lib $gmplibs"
5108 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5109fi
8a0d8a5c
PB
5110if test "x$with_gmp_include" != x; then
5111 gmpinc="-I$with_gmp_include $gmpinc"
5112fi
5113if test "x$with_gmp_lib" != x; then
5114 gmplibs="-L$with_gmp_lib $gmplibs"
5115fi
4b900473 5116if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5117 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5118 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5119 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5120 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5121 # Do not test the gmp version. Assume that it is sufficient, since
5122 # it is in the source tree, and the library has not been built yet
5123 # but it would be included on the link line in the version check below
5124 # hence making the test fail.
5125 have_gmp=yes
5126fi
4b1cb4fe 5127
ceb92e78 5128if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5129 have_gmp=yes
5130 saved_CFLAGS="$CFLAGS"
5131 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5132 # Check for the recommended and required versions of GMP.
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5134$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5135
5136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5137/* end confdefs.h. */
5138#include "gmp.h"
5139int
5140main ()
5141{
5142
5143 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5144 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5145 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5146 choke me
5147 #endif
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5155/* end confdefs.h. */
a6b5846e 5156#include <gmp.h>
c6b750e1
DJ
5157int
5158main ()
5159{
4b1cb4fe 5160
a6b5846e
KG
5161 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5162 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5163 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5164 choke me
5165 #endif
c6b750e1
DJ
5166
5167 ;
5168 return 0;
5169}
5170_ACEOF
81ecdfbb
RW
5171if ac_fn_c_try_compile "$LINENO"; then :
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173$as_echo "yes" >&6; }
a6b5846e
KG
5174else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5176$as_echo "buggy but acceptable" >&6; }
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5179else
81ecdfbb
RW
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5182fi
81ecdfbb 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5184
e8a5fa9c 5185 # If we have GMP, check the MPFR version.
4b900473 5186 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5187 # Check for the recommended and required versions of MPFR.
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5189$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5191/* end confdefs.h. */
9b134994 5192#include <gmp.h>
4b900473 5193 #include <mpfr.h>
c6b750e1
DJ
5194int
5195main ()
5196{
9b134994 5197
ef699244 5198 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5199 choke me
5200 #endif
c6b750e1
DJ
5201
5202 ;
5203 return 0;
5204}
5205_ACEOF
81ecdfbb
RW
5206if ac_fn_c_try_compile "$LINENO"; then :
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5208/* end confdefs.h. */
4b1cb4fe 5209#include <gmp.h>
4b900473 5210 #include <mpfr.h>
c6b750e1
DJ
5211int
5212main ()
5213{
9dbaa842 5214
a6b5846e 5215 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5216 choke me
5217 #endif
e8a5fa9c
RW
5218
5219 ;
5220 return 0;
5221}
5222_ACEOF
81ecdfbb
RW
5223if ac_fn_c_try_compile "$LINENO"; then :
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5225$as_echo "yes" >&6; }
e8a5fa9c 5226else
81ecdfbb
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5228$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5229fi
81ecdfbb 5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5231else
81ecdfbb
RW
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5234fi
81ecdfbb 5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5236 fi
5237
5238 # Check for the MPC header version.
d9b76ff9 5239 if test x"$have_gmp" = xyes ; then
a6b5846e 5240 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5242$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5244/* end confdefs.h. */
5245#include <mpc.h>
5246int
5247main ()
5248{
5249
a6b5846e
KG
5250 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5251 choke me
5252 #endif
5253
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"; then :
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h. */
5261#include <mpc.h>
5262int
5263main ()
5264{
5265
5266 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5267 choke me
5268 #endif
5269
5270 ;
5271 return 0;
5272}
5273_ACEOF
81ecdfbb
RW
5274if ac_fn_c_try_compile "$LINENO"; then :
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5276$as_echo "yes" >&6; }
a6b5846e
KG
5277else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5279$as_echo "buggy but acceptable" >&6; }
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5282else
81ecdfbb 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5284$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5285fi
81ecdfbb 5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5287 fi
5288
5289 # Now check the MPFR library.
5290 if test x"$have_gmp" = xyes; then
5291 saved_LIBS="$LIBS"
5292 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5294$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5296/* end confdefs.h. */
d9b76ff9 5297#include <mpc.h>
e8a5fa9c
RW
5298int
5299main ()
5300{
5301
5302 mpfr_t n;
5303 mpfr_t x;
d9b76ff9 5304 mpc_t c;
e8a5fa9c
RW
5305 int t;
5306 mpfr_init (n);
5307 mpfr_init (x);
5308 mpfr_atan2 (n, n, x, GMP_RNDN);
5309 mpfr_erfc (n, x, GMP_RNDN);
5310 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5311 mpfr_clear(n);
5312 mpfr_clear(x);
5313 mpc_init2 (c, 53);
5314 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5315 mpc_cosh (c, c, MPC_RNDNN);
5316 mpc_pow (c, c, c, MPC_RNDNN);
5317 mpc_acosh (c, c, MPC_RNDNN);
5318 mpc_clear (c);
c6b750e1
DJ
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
81ecdfbb
RW
5324if ac_fn_c_try_link "$LINENO"; then :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326$as_echo "yes" >&6; }
c6b750e1 5327else
81ecdfbb
RW
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5330fi
81ecdfbb
RW
5331rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5333 LIBS="$saved_LIBS"
5334 fi
5335
4b900473 5336 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5337
a6b5846e
KG
5338# The library versions listed in the error message below should match
5339# the HARD-minimums enforced above.
4b900473 5340 if test x$have_gmp != xyes; then
a6b5846e 5341 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5342Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5343their locations. Source code for these libraries can be found at
5344their respective hosting sites as well as at
5345ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5346http://gcc.gnu.org/install/prerequisites.html for additional info. If
5347you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5348make sure that you have installed both the libraries and the header
5349files. They may be located in separate packages." "$LINENO" 5
4b900473 5350 fi
9dbaa842
DD
5351fi
5352
e8a5fa9c
RW
5353# Flags needed for both GMP, MPFR and/or MPC.
5354
5355
5356
4b1cb4fe
DD
5357
5358
5359
29383458
JM
5360# Allow host libstdc++ to be specified for static linking with PPL.
5361
81ecdfbb
RW
5362# Check whether --with-host-libstdcxx was given.
5363if test "${with_host_libstdcxx+set}" = set; then :
5364 withval=$with_host_libstdcxx;
5365fi
29383458 5366
29383458
JM
5367
5368case $with_host_libstdcxx in
5369 no|yes)
81ecdfbb 5370 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5371 ;;
5372esac
e28c595f 5373
e8a5fa9c
RW
5374# Linker flags to use for stage1 or when not boostrapping.
5375
81ecdfbb
RW
5376# Check whether --with-stage1-ldflags was given.
5377if test "${with_stage1_ldflags+set}" = set; then :
5378 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5379 stage1_ldflags=
5380 else
5381 stage1_ldflags=$withval
5382 fi
5383else
5384 stage1_ldflags=
81ecdfbb
RW
5385fi
5386
e8a5fa9c
RW
5387
5388
5389# Libraries to use for stage1 or when not bootstrapping.
5390
81ecdfbb
RW
5391# Check whether --with-stage1-libs was given.
5392if test "${with_stage1_libs+set}" = set; then :
5393 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5394 stage1_libs=
5395 else
5396 stage1_libs=$withval
5397 fi
5398else
5399 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5400fi
5401
e8a5fa9c
RW
5402
5403
e8a5fa9c
RW
5404# Libraries to use for stage2 and later builds. This defaults to the
5405# argument passed to --with-host-libstdcxx.
5406
81ecdfbb
RW
5407# Check whether --with-boot-libs was given.
5408if test "${with_boot_libs+set}" = set; then :
5409 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5410 poststage1_libs=
5411 else
5412 poststage1_libs=$withval
5413 fi
5414else
5415 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5416fi
5417
e8a5fa9c
RW
5418
5419
143754cd
NC
5420# Linker flags to use for stage2 and later builds.
5421
5422# Check whether --with-boot-ldflags was given.
5423if test "${with_boot_ldflags+set}" = set; then :
5424 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5425 poststage1_ldflags=
5426 else
5427 poststage1_ldflags=$withval
5428 fi
5429else
5430 poststage1_ldflags=
4f11b223
ILT
5431 # In stages 2 and 3, default to linking libstdc++ and libgcc
5432 # statically. But if the user explicitly specified the libraries to
5433 # use, trust that they are doing what they want.
5434 if test "$poststage1_libs" = ""; then
143754cd
NC
5435 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5436 fi
5437fi
5438
5439
5440
e28c595f 5441# Check for PPL
b123da99 5442ppllibs=
e28c595f 5443pplinc=
b123da99 5444pwllib=
e28c595f
JM
5445
5446
81ecdfbb
RW
5447# Check whether --with-ppl was given.
5448if test "${with_ppl+set}" = set; then :
5449 withval=$with_ppl;
81ecdfbb 5450fi
e28c595f 5451
e28c595f 5452
e552509b 5453# Check whether --with-ppl-include was given.
81ecdfbb
RW
5454if test "${with_ppl_include+set}" = set; then :
5455 withval=$with_ppl_include;
5456fi
5457
e28c595f 5458
e552509b 5459# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5460if test "${with_ppl_lib+set}" = set; then :
5461 withval=$with_ppl_lib;
5462fi
e28c595f 5463
e28c595f 5464
b123da99
SP
5465# Check whether --enable-ppl-version-check was given.
5466if test "${enable_ppl_version_check+set}" = set; then :
5467 enableval=$enable_ppl_version_check;
5468fi
5469
5470
29383458 5471case $with_ppl in
b123da99 5472 yes | no | "")
1f53ca9a 5473 ;;
29383458 5474 *)
b123da99 5475 ppllibs="-L$with_ppl/lib"
29383458 5476 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5477 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5478 with_ppl=yes
5479 else
5480 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5481 fi
29383458
JM
5482 ;;
5483esac
b123da99
SP
5484
5485if test x"$with_ppl_include" != x; then
e28c595f 5486 pplinc="-I$with_ppl_include $pplinc"
b123da99 5487 with_ppl=yes
e28c595f 5488fi
b123da99 5489
e28c595f 5490if test "x$with_ppl_lib" != x; then
b123da99
SP
5491 ppllibs="-L$with_ppl_lib"
5492 with_ppl=yes
e28c595f 5493fi
b123da99
SP
5494
5495if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5496 if test x"$enable_watchdog" = xyes; then
5497 pwllib="-lpwl"
5498 fi
5499 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5500 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5501 enable_ppl_version_check=no
b123da99 5502 with_ppl=yes
e28c595f
JM
5503fi
5504
86ed8cf6 5505if test "x$with_ppl" != xno; then
b123da99 5506 if test "x$pwllib" = x; then
0e8ad34f
RO
5507 saved_LIBS="$LIBS"
5508 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5510$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5511if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513else
5514 ac_check_lib_save_LIBS=$LIBS
5515LIBS="-lpwl $LIBS"
5516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518
5519/* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5522#ifdef __cplusplus
5523extern "C"
5524#endif
5525char PWL_handle_timeout ();
5526int
5527main ()
5528{
5529return PWL_handle_timeout ();
5530 ;
5531 return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_link "$LINENO"; then :
5535 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5536else
b123da99
SP
5537 ac_cv_lib_pwl_PWL_handle_timeout=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541LIBS=$ac_check_lib_save_LIBS
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5544$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5545if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5546 pwllib="-lpwl"
81ecdfbb
RW
5547fi
5548
0e8ad34f 5549 LIBS="$saved_LIBS"
b123da99 5550 fi
e28c595f 5551
b123da99
SP
5552 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5553
5554 if test "$enable_ppl_version_check" != no; then
5555 saved_CFLAGS="$CFLAGS"
5556 CFLAGS="$CFLAGS $pplinc $gmpinc"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5558$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5560/* end confdefs.h. */
5561#include "ppl_c.h"
5562int
5563main ()
5564{
5565
b123da99
SP
5566 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5567 choke me
5568 #endif
e28c595f
JM
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
81ecdfbb
RW
5574if ac_fn_c_try_compile "$LINENO"; then :
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576$as_echo "yes" >&6; }
e28c595f 5577else
81ecdfbb 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5579$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5580fi
81ecdfbb 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5582 CFLAGS="$saved_CFLAGS"
5583 fi
e28c595f
JM
5584fi
5585
5586# Flags needed for PPL
5587
5588
5589
5590
5591# Check for CLOOG
e552509b 5592
e28c595f
JM
5593
5594
81ecdfbb
RW
5595# Check whether --with-cloog was given.
5596if test "${with_cloog+set}" = set; then :
5597 withval=$with_cloog;
81ecdfbb
RW
5598fi
5599
e28c595f 5600
e552509b 5601# Check whether --with-cloog-include was given.
81ecdfbb
RW
5602if test "${with_cloog_include+set}" = set; then :
5603 withval=$with_cloog_include;
5604fi
e28c595f 5605
e28c595f 5606
e552509b 5607# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5608if test "${with_cloog_lib+set}" = set; then :
5609 withval=$with_cloog_lib;
5610fi
e28c595f 5611
e28c595f 5612
e552509b
ILT
5613 # Check whether --enable-cloog-backend was given.
5614if test "${enable_cloog_backend+set}" = set; then :
5615 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5616 cloog_backend=isl
5617 elif test "x${enableval}" = "xppl"; then
5618 cloog_backend=ppl
5619 else
5620 cloog_backend=ppl-legacy
5621 fi
5622else
5623 cloog_backend=ppl-legacy
5624fi
5625
5626 # Check whether --enable-cloog-version-check was given.
5627if test "${enable_cloog_version_check+set}" = set; then :
5628 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5629else
5630 ENABLE_CLOOG_CHECK=yes
5631fi
5632
5633
5634 # Initialize clooglibs and clooginc.
5635 case $with_cloog in
5636 no)
5637 clooglibs=
5638 clooginc=
5639 ;;
5640 "" | yes)
5641 ;;
5642 *)
5643 clooglibs="-L$with_cloog/lib"
5644 clooginc="-I$with_cloog/include"
5645 ;;
5646 esac
5647 if test "x${with_cloog_include}" != x ; then
5648 clooginc="-I$with_cloog_include"
5649 fi
5650 if test "x${with_cloog_lib}" != x; then
5651 clooglibs="-L$with_cloog_lib"
5652 fi
5653
5654
5655
5656
5657
1f53ca9a 5658if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5659
5660
5661
5662 if test "x${with_cloog}" = xno; then
5663 graphite_requested=no
5664 elif test "x${with_cloog}" != x \
5665 || test "x${with_cloog_include}" != x \
5666 || test "x${with_cloog_lib}" != x ; then
5667 graphite_requested=yes
5668 else
5669 graphite_requested=no
5670 fi
5671
5672
5673 if test "${graphite_requested}" = yes; then
5674 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5675 fi
1f53ca9a
AO
5676 with_cloog=no
5677fi
e552509b
ILT
5678if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5679 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5680 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5681 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5682fi
5683if test "x$with_cloog" != "xno"; then
1f53ca9a 5684
e552509b
ILT
5685
5686
5687 _cloog_saved_CFLAGS=$CFLAGS
5688 _cloog_saved_CPPFLAGS=$CPPFLAGS
5689 _cloog_saved_LDFLAGS=$LDFLAGS
5690 _cloog_saved_LIBS=$LIBS
5691
5692 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5693
5694 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5695 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5696 LDFLAGS="${LDFLAGS} ${clooglibs}"
5697
5698 case $cloog_backend in
5699 "ppl-legacy")
5700 CFLAGS="${CFLAGS} ${pplinc}"
5701 LDFLAGS="${LDFLAGS} ${ppllibs}"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5703$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5704if test "${gcc_cv_cloog_type+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 LIBS="-lcloog ${_cloog_saved_LIBS}"
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h. */
5710#include "cloog/cloog.h"
5711int
5712main ()
5713{
5714#ifndef CLOOG_PPL_BACKEND
5715 choke me
5716 #endif
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_link "$LINENO"; then :
5722 gcc_cv_cloog_type="PPL Legacy"
5723else
5724 gcc_cv_cloog_type=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
e28c595f 5728fi
e552509b
ILT
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5730$as_echo "$gcc_cv_cloog_type" >&6; }
5731 ;;
5732 "isl")
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5734$as_echo_n "checking for installed CLooG ISL... " >&6; }
5735if test "${gcc_cv_cloog_type+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737else
5738 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741#include "cloog/cloog.h"
5742int
5743main ()
5744{
5745cloog_version ()
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_link "$LINENO"; then :
5751 gcc_cv_cloog_type="ISL"
5752else
5753 gcc_cv_cloog_type=no
e28c595f 5754fi
e552509b
ILT
5755rm -f core conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
e28c595f 5757fi
e552509b
ILT
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5759$as_echo "$gcc_cv_cloog_type" >&6; }
5760 ;;
5761 "ppl")
5762 CFLAGS="${CFLAGS} ${pplinc}"
5763 LDFLAGS="${LDFLAGS} ${ppllibs}"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5765$as_echo_n "checking for installed CLooG PPL... " >&6; }
5766if test "${gcc_cv_cloog_type+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
e28c595f 5768else
e552509b
ILT
5769 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772#include "cloog/cloog.h"
5773 #include "cloog/ppl/cloog.h"
5774int
5775main ()
5776{
5777cloog_version ()
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_link "$LINENO"; then :
5783 gcc_cv_cloog_type="PPL"
5784else
5785 gcc_cv_cloog_type=no
81ecdfbb 5786fi
e552509b
ILT
5787rm -f core conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5791$as_echo "$gcc_cv_cloog_type" >&6; }
5792 ;;
5793 *)
5794 gcc_cv_cloog_type=""
5795 esac
5796
5797 case $gcc_cv_cloog_type in
5798 "PPL Legacy")
5799 clooginc="${clooginc}"
5800 clooglibs="${clooglibs} -lcloog"
5801 cloog_org=no
5802 ;;
5803 "ISL")
5804 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5805 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5806 cloog_org=yes
5807 ;;
5808 "PPL")
5809 clooginc="${clooginc} ${_cloogorginc}"
5810 clooglibs="${clooglibs} -lcloog-ppl"
5811 cloog_org=yes
5812 ;;
5813 *)
5814 clooglibs=
5815 clooginc=
5816 cloog_org=
5817 ;;
5818 esac
81ecdfbb 5819
e552509b
ILT
5820 LIBS=$_cloog_saved_LIBS
5821 CFLAGS=$_cloog_saved_CFLAGS
5822 CPPFLAGS=$_cloog_saved_CPPFLAGS
5823 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5824
e552509b
ILT
5825
5826
5827
5828
5829 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5830 _cloog_saved_CFLAGS=$CFLAGS
5831 _cloog_saved_LDFLAGS=$LDFLAGS
5832
5833 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5834 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5835
5836 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5838$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
5839if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844#include "cloog/cloog.h"
5845int
5846main ()
5847{
5848#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
5849 || CLOOG_VERSION_MINOR != 16 \
5850 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
5851 choke me
5852 #endif
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"; then :
5858 gcc_cv_cloog_ct_0_14_0=yes
5859else
5860 gcc_cv_cloog_ct_0_14_0=no
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5865$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5866 elif test "${cloog_org}" = no ; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5868$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5869if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871else
81ecdfbb 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5873/* end confdefs.h. */
5874#include "cloog/cloog.h"
5875int
5876main ()
5877{
e552509b
ILT
5878#if CLOOG_VERSION_MAJOR != 0 \
5879 || CLOOG_VERSION_MINOR != 15 \
5880 || CLOOG_VERSION_REVISION < 5
5881 choke me
5882 #endif
e28c595f
JM
5883 ;
5884 return 0;
5885}
5886_ACEOF
a009f2e7
RW
5887if ac_fn_c_try_compile "$LINENO"; then :
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h. */
5890#include "cloog/cloog.h"
5891int
5892main ()
5893{
e552509b
ILT
5894#if CLOOG_VERSION_MAJOR != 0 \
5895 || CLOOG_VERSION_MINOR != 15 \
5896 || CLOOG_VERSION_REVISION < 9
5897 choke me
5898 #endif
a009f2e7
RW
5899 ;
5900 return 0;
5901}
5902_ACEOF
81ecdfbb 5903if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5904 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5905else
e552509b 5906 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5909else
e552509b 5910 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5911fi
81ecdfbb 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5913fi
e552509b
ILT
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5915$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5916 fi
5917
5918 CFLAGS=$_cloog_saved_CFLAGS
5919 LDFLAGS=$_cloog_saved_LDFLAGS
5920 fi
5921
5922
5923
e28c595f 5924
e28c595f
JM
5925
5926
5927
8d8eef9a
RW
5928 if test "x${with_cloog}" = xno; then
5929 graphite_requested=no
5930 elif test "x${with_cloog}" != x \
e552509b
ILT
5931 || test "x${with_cloog_include}" != x \
5932 || test "x${with_cloog_lib}" != x ; then
5933 graphite_requested=yes
5934 else
5935 graphite_requested=no
5936 fi
5937
5938
5939
5940 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5941 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5942 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5943 clooglibs=
5944 clooginc=
5945 fi
5946
5947 if test "${graphite_requested}" = yes \
5948 && test "x${clooglibs}" = x \
5949 && test "x${clooginc}" = x ; then
5950
8d8eef9a 5951 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5952 fi
5953
5954
5955fi
5956
700d40ca
ILT
5957# Check for LTO support.
5958# Check whether --enable-lto was given.
5959if test "${enable_lto+set}" = set; then :
5960 enableval=$enable_lto; enable_lto=$enableval
5961else
5962 enable_lto=yes; default_enable_lto=yes
5963fi
5964
5965
143754cd 5966
e49e5c92
DK
5967
5968
5969target_elf=no
5970case $target in
5971 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5972 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5973 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5974 target_elf=no
5975 ;;
5976 *)
5977 target_elf=yes
5978 ;;
5979esac
5980
5981if test $target_elf = yes; then :
74cea91b
DK
5982 # ELF platforms build the lto-plugin always.
5983 build_lto_plugin=yes
e49e5c92 5984
e49e5c92
DK
5985else
5986 if test x"$default_enable_lto" = x"yes" ; then
29821356 5987 case $target in
dbbe5f95 5988 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
74cea91b 5989 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5990 *) enable_lto=no ;;
5991 esac
e49e5c92 5992 else
29821356
RW
5993 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5994 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5995 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5996 # warn during gcc/ subconfigure; unless you're bootstrapping with
5997 # -flto it won't be needed until after installation anyway.
5998 case $target in
a8eb3f0a 5999 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6000 *) if test x"$enable_lto" = x"yes"; then
6001 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6002 fi
6003 ;;
6004 esac
6005 fi
a8eb3f0a 6006 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6007 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6008 case $target in
74cea91b 6009 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6010 *) ;;
6011 esac
74cea91b 6012
e49e5c92
DK
6013fi
6014
700d40ca 6015
e28c595f 6016
947f426e 6017# By default, C is the only stage 1 language.
9b134994 6018stage1_languages=,c,
1d39f329 6019
e8a5fa9c 6020# Target libraries that we bootstrap.
2aa2364a 6021bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6022
9e07f89d
NN
6023# Figure out what language subdirectories are present.
6024# Look if the user specified --enable-languages="..."; if not, use
6025# the environment variable $LANGUAGES if defined. $LANGUAGES might
6026# go away some day.
6027# NB: embedded tabs in this IF block -- do not untabify
6028if test -d ${srcdir}/gcc; then
6029 if test x"${enable_languages+set}" != xset; then
6030 if test x"${LANGUAGES+set}" = xset; then
6031 enable_languages="${LANGUAGES}"
6032 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6033 else
6034 enable_languages=all
6035 fi
6036 else
6037 if test x"${enable_languages}" = x ||
6038 test x"${enable_languages}" = xyes;
6039 then
6040 echo configure.in: --enable-languages needs at least one language argument 1>&2
6041 exit 1
6042 fi
6043 fi
6044 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6045
096f7d00
DE
6046 # 'f95' is the old name for the 'fortran' language. We issue a warning
6047 # and make the substitution.
6048 case ,${enable_languages}, in
6049 *,f95,*)
6050 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6051 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6052 ;;
6053 esac
6054
9e07f89d
NN
6055 # First scan to see if an enabled language requires some other language.
6056 # We assume that a given config-lang.in will list all the language
6057 # front ends it requires, even if some are required indirectly.
6058 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6059 case ${lang_frag} in
6060 ..) ;;
6061 # The odd quoting in the next line works around
6062 # an apparent bug in bash 1.12 on linux.
6063 ${srcdir}/gcc/[*]/config-lang.in) ;;
6064 *)
e552509b
ILT
6065 # From the config-lang.in, get $language, $lang_requires, and
6066 # $lang_requires_boot_languages.
9e07f89d
NN
6067 language=
6068 lang_requires=
e552509b 6069 lang_requires_boot_languages=
9e07f89d 6070 . ${lang_frag}
e552509b 6071 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6072 case ,${enable_languages}, in
6073 *,$other,*) ;;
6074 *,all,*) ;;
6075 *,$language,*)
6076 echo " \`$other' language required by \`$language'; enabling" 1>&2
6077 enable_languages="${enable_languages},${other}"
6078 ;;
6079 esac
6080 done
e552509b
ILT
6081 for other in ${lang_requires_boot_languages} ; do
6082 if test "$other" != "c"; then
6083 case ,${enable_stage1_languages}, in
6084 *,$other,*) ;;
6085 *,all,*) ;;
6086 *)
6087 case ,${enable_languages}, in
6088 *,$language,*)
6089 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6090 enable_stage1_languages="$enable_stage1_languages,${other}"
6091 ;;
6092 esac
6093 ;;
6094 esac
6095 fi
6096 done
9e07f89d
NN
6097 ;;
6098 esac
6099 done
6100
9b134994 6101 new_enable_languages=,c,
700d40ca
ILT
6102
6103 # If LTO is enabled, add the LTO front end.
6104 extra_host_libiberty_configure_flags=
6105 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6106 case ,${enable_languages}, in
6107 *,lto,*) ;;
6108 *) enable_languages="${enable_languages},lto" ;;
6109 esac
a8eb3f0a 6110 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6111 configdirs="$configdirs lto-plugin"
6112 extra_host_libiberty_configure_flags=--enable-shared
6113 fi
6114 fi
6115
6116
9e07f89d 6117 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6118 potential_languages=,c,
9e07f89d 6119
9e1a94f4
ILT
6120 enabled_target_libs=
6121 disabled_target_libs=
6122
9e07f89d
NN
6123 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6124 case ${lang_frag} in
6125 ..) ;;
6126 # The odd quoting in the next line works around
6127 # an apparent bug in bash 1.12 on linux.
6128 ${srcdir}/gcc/[*]/config-lang.in) ;;
6129 *)
c6b750e1 6130 # From the config-lang.in, get $language, $target_libs,
1d39f329 6131 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6132 language=
6133 target_libs=
6134 lang_dirs=
64ce424c 6135 subdir_requires=
9b134994
PB
6136 boot_language=no
6137 build_by_default=yes
9e07f89d 6138 . ${lang_frag}
9b134994
PB
6139 if test x${language} = x; then
6140 echo "${lang_frag} doesn't set \$language." 1>&2
6141 exit 1
6142 fi
6143
1f53ca9a
AO
6144 if test "$language" = "c++" \
6145 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6146 boot_language=yes
6147 fi
6148
9b134994
PB
6149 case ,${enable_languages}, in
6150 *,${language},*)
9e07f89d
NN
6151 # Language was explicitly selected; include it.
6152 add_this_lang=yes
6153 ;;
9b134994
PB
6154 *,all,*)
6155 # 'all' was selected, select it if it is a default language
6156 add_this_lang=${build_by_default}
9e07f89d
NN
6157 ;;
6158 *)
6159 add_this_lang=no
6160 ;;
6161 esac
4b1cb4fe 6162
64ce424c 6163 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6164 for i in $subdir_requires; do
3d3adb43 6165 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6166 case ,${enable_languages}, in
6167 *,${language},*)
6168 # Specifically requested language; tell them.
81ecdfbb 6169 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6170 ;;
6171 *)
6172 # Silently disable.
9b134994 6173 add_this_lang=unsupported
64ce424c
PB
6174 ;;
6175 esac
6176 done
6177
9b134994
PB
6178 # Disable Ada if no preexisting GNAT is available.
6179 case ,${enable_languages},:${language}:${have_gnat} in
6180 *,${language},*:ada:no)
6181 # Specifically requested language; tell them.
81ecdfbb 6182 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6183 ;;
6184 *:ada:no)
6185 # Silently disable.
6186 add_this_lang=unsupported
6187 ;;
6188 esac
6189
59f7ec45
HPN
6190 # Disable a language that is unsupported by the target.
6191 case " $unsupported_languages " in
6192 *" $language "*)
9b134994 6193 add_this_lang=unsupported
59f7ec45
HPN
6194 ;;
6195 esac
6196
4b1cb4fe 6197 case $add_this_lang in
9b134994 6198 unsupported)
9e07f89d 6199 # Remove language-dependent dirs.
9e1a94f4
ILT
6200 disabled_target_libs="$disabled_target_libs $target_libs"
6201 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6202 ;;
9b134994
PB
6203 no)
6204 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6205 disabled_target_libs="$disabled_target_libs $target_libs"
6206 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6207 potential_languages="${potential_languages}${language},"
6208 ;;
6209 yes)
6210 new_enable_languages="${new_enable_languages}${language},"
6211 potential_languages="${potential_languages}${language},"
1d39f329 6212 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6213 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6214 case "${boot_language}:,$enable_stage1_languages," in
6215 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6216 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6217 case ",$stage1_languages," in
6218 *,$language,* | ,yes, | ,all,) ;;
6219 *) stage1_languages="${stage1_languages}${language}," ;;
6220 esac
e8a5fa9c
RW
6221 # We need to bootstrap any supporting libraries.
6222 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6223 ;;
6224 esac
6225 ;;
9e07f89d
NN
6226 esac
6227 ;;
6228 esac
6229 done
6230
9e1a94f4
ILT
6231 # Add target libraries which are only needed for disabled languages
6232 # to noconfigdirs.
6233 if test -n "$disabled_target_libs"; then
6234 for dir in $disabled_target_libs; do
6235 case " $enabled_target_libs " in
6236 *" ${dir} "*) ;;
6237 *) noconfigdirs="$noconfigdirs $dir" ;;
6238 esac
6239 done
6240 fi
6241
81ecdfbb
RW
6242 # Check whether --enable-stage1-languages was given.
6243if test "${enable_stage1_languages+set}" = set; then :
6244 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6245 ,no,|,,)
6246 # Set it to something that will have no effect in the loop below
6247 enable_stage1_languages=c ;;
6248 ,yes,)
6249 enable_stage1_languages=`echo $new_enable_languages | \
6250 sed -e "s/^,//" -e "s/,$//" ` ;;
6251 *,all,*)
6252 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6253 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6254 esac
6255
6256 # Add "good" languages from enable_stage1_languages to stage1_languages,
6257 # while "bad" languages go in missing_languages. Leave no duplicates.
6258 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6259 case $potential_languages in
6260 *,$i,*)
6261 case $stage1_languages in
6262 *,$i,*) ;;
6263 *) stage1_languages="$stage1_languages$i," ;;
6264 esac ;;
6265 *)
6266 case $missing_languages in
6267 *,$i,*) ;;
6268 *) missing_languages="$missing_languages$i," ;;
6269 esac ;;
6270 esac
6271 done
81ecdfbb
RW
6272fi
6273
9b134994
PB
6274
6275 # Remove leading/trailing commas that were added for simplicity
6276 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6277 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6278 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6279 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6280
9e07f89d 6281 if test "x$missing_languages" != x; then
81ecdfbb 6282 as_fn_error "
27258dd4 6283The following requested languages could not be built: ${missing_languages}
81ecdfbb 6284Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6285 fi
9e07f89d
NN
6286 if test "x$new_enable_languages" != "x$enable_languages"; then
6287 echo The following languages will be built: ${new_enable_languages}
9b134994 6288 enable_languages="$new_enable_languages"
9e07f89d 6289 fi
9b134994 6290
c6b750e1 6291
81ec575a 6292 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6293fi
6294
a6df5a19
PB
6295# Handle --disable-<component> generically.
6296for dir in $configdirs $build_configdirs $target_configdirs ; do
6297 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6298 varname=`echo $dirname | sed -e s/+/_/g`
6299 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6300 noconfigdirs="$noconfigdirs $dir"
6301 fi
6302done
6303
4f0ef2d8 6304# Check for Boehm's garbage collector
81ecdfbb
RW
6305# Check whether --enable-objc-gc was given.
6306if test "${enable_objc_gc+set}" = set; then :
6307 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6308 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6309 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6310 ;;
6311esac
81ecdfbb
RW
6312fi
6313
4f0ef2d8
CD
6314
6315# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6316case ,${enable_languages},:${enable_objc_gc} in
6317 *,objc,*:yes)
4f0ef2d8
CD
6318 # Keep target-boehm-gc if requested for Objective-C.
6319 ;;
4f0ef2d8 6320 *)
d42c4017
DA
6321 # Otherwise remove target-boehm-gc depending on target-libjava.
6322 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6323 noconfigdirs="$noconfigdirs target-boehm-gc"
6324 fi
4f0ef2d8
CD
6325 ;;
6326esac
6327
caeba88f
AL
6328# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6329# $build_configdirs and $target_configdirs.
9e07f89d
NN
6330# If we have the source for $noconfigdirs entries, add them to $notsupp.
6331
6332notsupp=""
6333for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6334 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6335 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6337 if test -r $srcdir/$dirname/configure ; then
6338 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6339 true
6340 else
6341 notsupp="$notsupp $dir"
6342 fi
6343 fi
6344 fi
caeba88f
AL
6345 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6346 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6347 if test -r $srcdir/$dirname/configure ; then
6348 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6349 true
6350 else
6351 notsupp="$notsupp $dir"
6352 fi
6353 fi
6354 fi
9e07f89d
NN
6355 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6356 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6357 if test -r $srcdir/$dirname/configure ; then
6358 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6359 true
6360 else
6361 notsupp="$notsupp $dir"
6362 fi
6363 fi
6364 fi
6365done
6366
6367# Sometimes the tools are distributed with libiberty but with no other
6368# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6369# Don't let libgcc imply libiberty either.
9e07f89d 6370if test -n "${target_configdirs}" ; then
f86e35b8 6371 libgcc=
9e07f89d
NN
6372 others=
6373 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6374 if test "$i" = "libgcc"; then
6375 libgcc=target-libgcc
6376 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6377 if test -r $srcdir/$i/configure ; then
6378 others=yes;
6379 break;
6380 fi
6381 fi
6382 done
6383 if test -z "${others}" ; then
f86e35b8 6384 target_configdirs=$libgcc
9e07f89d
NN
6385 fi
6386fi
6387
6388# Quietly strip out all directories which aren't configurable in this tree.
6389# This relies on all configurable subdirectories being autoconfiscated, which
6390# is now the case.
6a9cf61e
PB
6391build_configdirs_all="$build_configdirs"
6392build_configdirs=
6393for i in ${build_configdirs_all} ; do
c6b750e1 6394 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6395 if test -f ${srcdir}/$j/configure ; then
6396 build_configdirs="${build_configdirs} $i"
6397 fi
6398done
6399
9e07f89d
NN
6400configdirs_all="$configdirs"
6401configdirs=
6402for i in ${configdirs_all} ; do
6403 if test -f ${srcdir}/$i/configure ; then
6404 configdirs="${configdirs} $i"
6405 fi
6406done
6a9cf61e 6407
9e07f89d
NN
6408target_configdirs_all="$target_configdirs"
6409target_configdirs=
6410for i in ${target_configdirs_all} ; do
c6b750e1 6411 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6412 if test -f ${srcdir}/$j/configure ; then
6413 target_configdirs="${target_configdirs} $i"
6414 fi
6415done
6416
6417# Produce a warning message for the subdirs we can't configure.
6418# This isn't especially interesting in the Cygnus tree, but in the individual
6419# FSF releases, it's important to let people know when their machine isn't
6420# supported by the one or two programs in a package.
6421
6422if test -n "${notsupp}" && test -z "${norecursion}" ; then
6423 # If $appdirs is non-empty, at least one of those directories must still
6424 # be configured, or we error out. (E.g., if the gas release supports a
6425 # specified target in some subdirs but not the gas subdir, we shouldn't
6426 # pretend that all is well.)
6427 if test -n "$appdirs" ; then
6428 for dir in $appdirs ; do
6429 if test -r $dir/Makefile.in ; then
6430 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6431 appdirs=""
6432 break
6433 fi
6a9cf61e 6434 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6435 appdirs=""
6436 break
6437 fi
6438 fi
6439 done
6440 if test -n "$appdirs" ; then
6441 echo "*** This configuration is not supported by this package." 1>&2
6442 exit 1
6443 fi
6444 fi
6445 # Okay, some application will build, or we don't care to check. Still
6446 # notify of subdirs not getting built.
6447 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6448 echo " ${notsupp}" 1>&2
6449 echo " (Any other directories should still work fine.)" 1>&2
6450fi
6451
6452case "$host" in
6453 *msdosdjgpp*)
6454 enable_gdbtk=no ;;
6455esac
6456
18f6b6ee
PB
6457# To find our prefix, in gcc_cv_tool_prefix.
6458
6459# The user is always right.
6460if test "${PATH_SEPARATOR+set}" != set; then
6461 echo "#! /bin/sh" >conf$$.sh
6462 echo "exit 0" >>conf$$.sh
6463 chmod +x conf$$.sh
6464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6465 PATH_SEPARATOR=';'
6466 else
6467 PATH_SEPARATOR=:
6468 fi
6469 rm -f conf$$.sh
6470fi
6471
6472
6473
6474if test "x$exec_prefix" = xNONE; then
6475 if test "x$prefix" = xNONE; then
6476 gcc_cv_tool_prefix=$ac_default_prefix
6477 else
6478 gcc_cv_tool_prefix=$prefix
6479 fi
6480else
6481 gcc_cv_tool_prefix=$exec_prefix
6482fi
6483
6484# If there is no compiler in the tree, use the PATH only. In any
6485# case, if there is no compiler in the tree nobody should use
6486# AS_FOR_TARGET and LD_FOR_TARGET.
6487if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6488 gcc_version=`cat $srcdir/gcc/BASE-VER`
6489 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6490 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6491 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6492 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6493 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6495else
6496 gcc_cv_tool_dirs=
6497fi
6498
6499if test x$build = x$target && test -n "$md_exec_prefix"; then
6500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6501fi
6502
6503
6504
9e07f89d
NN
6505copy_dirs=
6506
c6b750e1 6507
81ecdfbb
RW
6508# Check whether --with-build-sysroot was given.
6509if test "${with_build_sysroot+set}" = set; then :
6510 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6511 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6512 fi
6513else
6514 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6515fi
a19b6204
MM
6516
6517
8a6ee3ab 6518
81ecdfbb
RW
6519
6520# Check whether --with-debug-prefix-map was given.
6521if test "${with_debug_prefix_map+set}" = set; then :
6522 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6523 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6524 for debug_map in $withval; do
6525 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6526 done
6527 fi
6528else
6529 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6530fi
6531
8a6ee3ab
JM
6532
6533
7f6ef0c0
PB
6534# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6535# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6536# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6537# We want to ensure that TARGET libraries (which we know are built with
6538# gcc) are built with "-O2 -g", so include those options when setting
6539# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6540if test "x$CFLAGS_FOR_TARGET" = x; then
6541 CFLAGS_FOR_TARGET=$CFLAGS
6542 case " $CFLAGS " in
6543 *" -O2 "*) ;;
6544 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6545 esac
6546 case " $CFLAGS " in
6547 *" -g "* | *" -g3 "*) ;;
6548 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6549 esac
6550fi
6551
6552
6553if test "x$CXXFLAGS_FOR_TARGET" = x; then
6554 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6555 case " $CXXFLAGS " in
6556 *" -O2 "*) ;;
6557 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6558 esac
6559 case " $CXXFLAGS " in
6560 *" -g "* | *" -g3 "*) ;;
6561 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6562 esac
6563fi
6564
6565
9e07f89d
NN
6566# Handle --with-headers=XXX. If the value is not "yes", the contents of
6567# the named directory are copied to $(tooldir)/sys-include.
6568if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6569 if test x${is_cross_compiler} = xno ; then
6570 echo 1>&2 '***' --with-headers is only supported when cross compiling
6571 exit 1
6572 fi
6573 if test x"${with_headers}" != xyes ; then
18f6b6ee 6574 x=${gcc_cv_tool_prefix}
c6b750e1 6575 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6576 fi
6577fi
6578
6579# Handle --with-libs=XXX. If the value is not "yes", the contents of
6580# the name directories are copied to $(tooldir)/lib. Multiple directories
6581# are permitted.
6582if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6583 if test x${is_cross_compiler} = xno ; then
6584 echo 1>&2 '***' --with-libs is only supported when cross compiling
6585 exit 1
6586 fi
6587 if test x"${with_libs}" != xyes ; then
6588 # Copy the libraries in reverse order, so that files in the first named
6589 # library override files in subsequent libraries.
18f6b6ee 6590 x=${gcc_cv_tool_prefix}
9e07f89d 6591 for l in ${with_libs}; do
c6b750e1 6592 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6593 done
6594 fi
6595fi
6596
700d40ca 6597# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6598#
6599# This is done by determining whether or not the appropriate directory
6600# is available, and by checking whether or not specific configurations
6601# have requested that this magic not happen.
c6b750e1
DJ
6602#
6603# The command line options always override the explicit settings in
2429c060
PB
6604# configure.in, and the settings in configure.in override this magic.
6605#
c6b750e1 6606# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6607# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6608# --without-gnu-ld options for the configure script. Similarly, if
6609# the default is to use the included zlib and you don't want to do that,
6610# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6611
6612if test x${use_gnu_as} = x &&
6613 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6614 with_gnu_as=yes
6615 extra_host_args="$extra_host_args --with-gnu-as"
6616fi
6617
6618if test x${use_gnu_ld} = x &&
93f9b408 6619 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6620 with_gnu_ld=yes
6621 extra_host_args="$extra_host_args --with-gnu-ld"
6622fi
6623
700d40ca
ILT
6624if test x${use_included_zlib} = x &&
6625 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6626 :
6627else
6628 with_system_zlib=yes
6629 extra_host_args="$extra_host_args --with-system-zlib"
6630fi
6631
2429c060
PB
6632# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6633# can detect this case.
6634
6635if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6636 with_newlib=yes
6637 extra_host_args="$extra_host_args --with-newlib"
6638fi
6639
9e07f89d
NN
6640# Handle ${copy_dirs}
6641set fnord ${copy_dirs}
6642shift
6643while test $# != 0 ; do
6644 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6645 :
6646 else
6647 echo Copying $1 to $2
6648
6649 # Use the install script to create the directory and all required
6650 # parent directories.
6651 if test -d $2 ; then
6652 :
6653 else
6654 echo >config.temp
6655 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6656 fi
6657
6658 # Copy the directory, assuming we have tar.
6659 # FIXME: Should we use B in the second tar? Not all systems support it.
6660 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6661
6662 # It is the responsibility of the user to correctly adjust all
6663 # symlinks. If somebody can figure out how to handle them correctly
6664 # here, feel free to add the code.
6665
6666 echo $1 > $2/COPIED
6667 fi
6668 shift; shift
6669done
6670
2429c060
PB
6671# Determine a target-dependent exec_prefix that the installed
6672# gcc will search in. Keep this list sorted by triplet, with
6673# the *-*-osname triplets last.
6674md_exec_prefix=
6675case "${target}" in
6676 alpha*-*-*vms*)
6677 md_exec_prefix=/gnu/lib/gcc-lib
6678 ;;
521ec477 6679 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6680 md_exec_prefix=/dev/env/DJDIR/bin
6681 ;;
521ec477 6682 i[34567]86-*-sco3.2v5*)
2429c060
PB
6683 if test $with_gnu_as = yes; then
6684 md_exec_prefix=/usr/gnu/bin
6685 else
6686 md_exec_prefix=/usr/ccs/bin/elf
6687 fi
6688 ;;
6689
6690 mn10300-*-* | \
6691 powerpc-*-chorusos* | \
6692 powerpc*-*-eabi* | \
6693 powerpc*-*-sysv* | \
6694 powerpc*-*-kaos* | \
6695 s390x-ibm-tpf*)
6696 md_exec_prefix=/usr/ccs/bin
6697 ;;
6698 sparc64-*-elf*)
6699 ;;
6700 v850*-*-*)
6701 md_exec_prefix=/usr/ccs/bin
6702 ;;
8b66833e 6703 xtensa*-*-elf*)
2429c060
PB
6704 ;;
6705
6706 *-*-beos* | \
6707 *-*-elf* | \
6708 *-*-hpux* | \
6709 *-*-netware* | \
6710 *-*-nto-qnx* | \
6711 *-*-rtems* | \
6712 *-*-solaris2* | \
521ec477 6713 *-*-sysv[45]* | \
2429c060
PB
6714 *-*-vxworks* | \
6715 *-wrs-windiss)
6716 md_exec_prefix=/usr/ccs/bin
6717 ;;
6718esac
6719
a0da8069
NN
6720extra_arflags_for_target=
6721extra_nmflags_for_target=
6722extra_ranlibflags_for_target=
6723target_makefile_frag=/dev/null
6724case "${target}" in
77d7106f
AM
6725 spu-*-*)
6726 target_makefile_frag="config/mt-spu"
6727 ;;
429acdec
RS
6728 mips*-sde-elf*)
6729 target_makefile_frag="config/mt-sde"
6730 ;;
f3b1e08e
RS
6731 mipsisa*-*-elfoabi*)
6732 target_makefile_frag="config/mt-mips-elfoabi"
6733 ;;
e7c8859c
RS
6734 mips*-*-*linux* | mips*-*-gnu*)
6735 target_makefile_frag="config/mt-mips-gnu"
6736 ;;
29383458 6737 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6738 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6739 ;;
6740 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6741 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6742 # commands to handle both 32-bit and 64-bit objects. These flags are
6743 # harmless if we're using GNU nm or ar.
6744 extra_arflags_for_target=" -X32_64"
6745 extra_nmflags_for_target=" -B -X32_64"
6746 ;;
92f4e989
JM
6747 *-*-darwin[3-9]*)
6748 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6749 extra_ranlibflags_for_target=" -c"
6750 ;;
a0da8069
NN
6751esac
6752
6753alphaieee_frag=/dev/null
6754case $target in
6755 alpha*-*-*)
6756 # This just makes sure to use the -mieee option to build target libs.
6757 # This should probably be set individually by each library.
6758 alphaieee_frag="config/mt-alphaieee"
6759 ;;
6760esac
6761
6762# If --enable-target-optspace always use -Os instead of -O2 to build
6763# the target libraries, similarly if it is not specified, use -Os
6764# on selected platforms.
6765ospace_frag=/dev/null
6766case "${enable_target_optspace}:${target}" in
6767 yes:*)
6768 ospace_frag="config/mt-ospace"
6769 ;;
6770 :d30v-*)
6771 ospace_frag="config/mt-d30v"
6772 ;;
6773 :m32r-* | :d10v-* | :fr30-*)
6774 ospace_frag="config/mt-ospace"
6775 ;;
6776 no:* | :*)
6777 ;;
6778 *)
6779 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6780 ;;
6781esac
6782
a0da8069
NN
6783# Default to using --with-stabs for certain targets.
6784if test x${with_stabs} = x ; then
6785 case "${target}" in
e31d1ea3 6786 mips*-*-irix[56]*)
a0da8069
NN
6787 ;;
6788 mips*-*-* | alpha*-*-osf*)
6789 with_stabs=yes;
6790 extra_host_args="${extra_host_args} --with-stabs"
6791 ;;
6792 esac
6793fi
6794
6795# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6796# them automatically.
6797case "${host}" in
c6b750e1 6798 hppa*64*-*-hpux11*)
a0da8069
NN
6799 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6800 ;;
6801esac
6802
a0da8069
NN
6803# Some systems (e.g., one of the i386-aix systems the gas testers are
6804# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6805tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6806build_tooldir=${tooldir}
6807
a0da8069
NN
6808# Create a .gdbinit file which runs the one in srcdir
6809# and tells GDB to look there for source files.
6810
6811if test -r ${srcdir}/.gdbinit ; then
6812 case ${srcdir} in
6813 .) ;;
6814 *) cat > ./.gdbinit <<EOF
6815# ${NO_EDIT}
6816dir ${srcdir}
6817dir .
6818source ${srcdir}/.gdbinit
6819EOF
6820 ;;
6821 esac
6822fi
6823
a0da8069
NN
6824# Make sure that the compiler is able to generate an executable. If it
6825# can't, we are probably in trouble. We don't care whether we can run the
6826# executable--we might be using a cross compiler--we only care whether it
6827# can be created. At this point the main configure script has set CC.
6828we_are_ok=no
6829echo "int main () { return 0; }" > conftest.c
6830${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6831if test $? = 0 ; then
6832 if test -s conftest || test -s conftest.exe ; then
6833 we_are_ok=yes
6834 fi
c6b750e1 6835fi
a0da8069
NN
6836case $we_are_ok in
6837 no)
6838 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6839 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6840 rm -f conftest*
6841 exit 1
6842 ;;
6843esac
6844rm -f conftest*
6845
6846# The Solaris /usr/ucb/cc compiler does not appear to work.
6847case "${host}" in
6848 sparc-sun-solaris2*)
6849 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6850 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6851 could_use=
6852 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6853 if test -d /opt/cygnus/bin ; then
6854 if test "$could_use" = "" ; then
6855 could_use="/opt/cygnus/bin"
6856 else
6857 could_use="$could_use or /opt/cygnus/bin"
6858 fi
6859 fi
6860 if test "$could_use" = "" ; then
6861 echo "Warning: compilation may fail because you're using"
6862 echo "/usr/ucb/cc. You should change your PATH or CC "
6863 echo "variable and rerun configure."
6864 else
6865 echo "Warning: compilation may fail because you're using"
6866 echo "/usr/ucb/cc, when you should use the C compiler from"
6867 echo "$could_use. You should change your"
6868 echo "PATH or CC variable and rerun configure."
6869 fi
6870 fi
6871 ;;
6872esac
6873
3bbd2f8f 6874# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6875case "${host}" in
6876 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6877 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6878 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6879 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6880esac
6881
3bbd2f8f 6882# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6883# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6884# built executables to PATH.
3bbd2f8f
AL
6885if test "$RPATH_ENVVAR" = PATH; then
6886 GCC_SHLIB_SUBDIR=/shlib
6887else
6888 GCC_SHLIB_SUBDIR=
6889fi
6890
a0da8069
NN
6891# Record target_configdirs and the configure arguments for target and
6892# build configuration in Makefile.
6893target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6894build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6895
2aa2364a
JR
6896# If we are building libgomp, bootstrap it.
6897if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6898 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6899fi
6900
a0da8069
NN
6901# Determine whether gdb needs tk/tcl or not.
6902# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6903# and in that case we want gdb to be built without tk. Ugh!
6904# In fact I believe gdb is the *only* package directly dependent on tk,
6905# so we should be able to put the 'maybe's in unconditionally and
6906# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6907# 100% sure that that's safe though.
c180f501 6908
675c6968 6909gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6910case "$enable_gdbtk" in
6911 no)
6912 GDB_TK="" ;;
c180f501
AC
6913 yes)
6914 GDB_TK="${gdb_tk}" ;;
a0da8069 6915 *)
c180f501
AC
6916 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6917 # distro. Eventually someone will fix this and move Insight, nee
6918 # gdbtk to a separate directory.
6919 if test -d ${srcdir}/gdb/gdbtk ; then
6920 GDB_TK="${gdb_tk}"
6921 else
6922 GDB_TK=""
6923 fi
6924 ;;
a0da8069 6925esac
907be67c
DJ
6926CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6927INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6928
6bd3dfaa 6929# Strip out unwanted targets.
dd12c3a8
NN
6930
6931# While at that, we remove Makefiles if we were started for recursive
6932# configuration, so that the top-level Makefile reconfigures them,
6933# like we used to do when configure itself was recursive.
dd12c3a8 6934
06a51eac
RW
6935# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6936# but now we're fixing up the Makefile ourselves with the additional
6937# commands passed to AC_CONFIG_FILES. Use separate variables
6938# extrasub-{build,host,target} not because there is any reason to split
6939# the substitutions up that way, but only to remain below the limit of
6940# 99 commands in a script, for HP-UX sed.
6941# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6942
81ecdfbb
RW
6943# Check whether --enable-bootstrap was given.
6944if test "${enable_bootstrap+set}" = set; then :
6945 enableval=$enable_bootstrap;
319cab08 6946else
9cb3fa6f 6947 enable_bootstrap=default
81ecdfbb
RW
6948fi
6949
319cab08 6950
9cb3fa6f
PB
6951# Issue errors and warnings for invalid/strange bootstrap combinations.
6952case "$configdirs" in
6953 *gcc*) have_compiler=yes ;;
6954 *) have_compiler=no ;;
6955esac
6956
6957case "$have_compiler:$host:$target:$enable_bootstrap" in
6958 *:*:*:no) ;;
6959
0aed8855 6960 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6961 # and we are in a native configuration.
6962 yes:$build:$build:default)
0aed8855 6963 enable_bootstrap=yes ;;
9cb3fa6f
PB
6964
6965 *:*:*:default)
6966 enable_bootstrap=no ;;
6967
6968 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6969 yes:$build:$build:yes)
9cb3fa6f
PB
6970 ;;
6971
6972 # Other configurations, but we have a compiler. Assume the user knows
6973 # what he's doing.
80911fe1 6974 yes:*:*:yes)
81ecdfbb
RW
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6976$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6977 ;;
6978
6979 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6980 no:*:*:yes)
81ecdfbb 6981 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6982
6983 # Fail if wrong command line
6984 *)
81ecdfbb 6985 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6986 ;;
6987esac
6988
4385ad3c
RW
6989case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6990 *,c++,*:yes:yes) ;;
6991 *:yes:yes)
6992 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6993 ;;
6994esac
6995
16b1ad29
RW
6996case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6997 yes:yes:*\ gold\ *:*,c++,*) ;;
6998 yes:yes:*\ gold\ *:*)
6999 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7000 ;;
7001esac
7002
9cb3fa6f 7003# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7004case $enable_bootstrap in
319cab08 7005 yes)
96655cc4
AO
7006 bootstrap_suffix=bootstrap
7007 BUILD_CONFIG=bootstrap-debug
7008 ;;
319cab08 7009 no)
96655cc4
AO
7010 bootstrap_suffix=no-bootstrap
7011 BUILD_CONFIG=
7012 ;;
319cab08
PB
7013esac
7014
96655cc4
AO
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7017
7018
7019# Check whether --with-build-config was given.
7020if test "${with_build_config+set}" = set; then :
7021 withval=$with_build_config; case $with_build_config in
7022 yes) with_build_config= ;;
7023 no) with_build_config= BUILD_CONFIG= ;;
7024 esac
7025fi
7026
7027
7028if test "x${with_build_config}" != x; then
7029 BUILD_CONFIG=$with_build_config
7030else
7031 case $BUILD_CONFIG in
7032 bootstrap-debug)
7033 if echo "int f (void) { return 0; }" > conftest.c &&
7034 ${CC} -c conftest.c &&
7035 mv conftest.o conftest.o.g0 &&
7036 ${CC} -c -g conftest.c &&
7037 mv conftest.o conftest.o.g &&
a009f2e7 7038 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7039 :
7040 else
7041 BUILD_CONFIG=
7042 fi
7043 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7044 ;;
7045 esac
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048$as_echo "$BUILD_CONFIG" >&6; }
7049
7050
06a51eac 7051extrasub_build=
6a9cf61e 7052for module in ${build_configdirs} ; do
498d4a71
CF
7053 if test -z "${no_recursion}" \
7054 && test -f ${build_subdir}/${module}/Makefile; then
7055 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7056 rm -f ${build_subdir}/${module}/Makefile
7057 fi
06a51eac 7058 extrasub_build="$extrasub_build
498d4a71
CF
7059/^@if build-$module\$/d
7060/^@endif build-$module\$/d
7061/^@if build-$module-$bootstrap_suffix\$/d
7062/^@endif build-$module-$bootstrap_suffix\$/d"
7063done
06a51eac 7064extrasub_host=
498d4a71 7065for module in ${configdirs} ; do
80911fe1 7066 if test -z "${no_recursion}"; then
8cf39b1b 7067 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7068 if test -f ${file}; then
7069 echo 1>&2 "*** removing ${file} to force reconfigure"
7070 rm -f ${file}
7071 fi
7072 done
498d4a71 7073 fi
06a51eac 7074 extrasub_host="$extrasub_host
498d4a71
CF
7075/^@if $module\$/d
7076/^@endif $module\$/d
7077/^@if $module-$bootstrap_suffix\$/d
7078/^@endif $module-$bootstrap_suffix\$/d"
7079done
06a51eac 7080extrasub_target=
498d4a71
CF
7081for module in ${target_configdirs} ; do
7082 if test -z "${no_recursion}" \
7083 && test -f ${target_subdir}/${module}/Makefile; then
7084 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7085 rm -f ${target_subdir}/${module}/Makefile
7086 fi
e8a5fa9c
RW
7087
7088 # We only bootstrap target libraries listed in bootstrap_target_libs.
7089 case $bootstrap_target_libs in
7090 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7091 *) target_bootstrap_suffix=no-bootstrap ;;
7092 esac
7093
06a51eac 7094 extrasub_target="$extrasub_target
498d4a71
CF
7095/^@if target-$module\$/d
7096/^@endif target-$module\$/d
e8a5fa9c
RW
7097/^@if target-$module-$target_bootstrap_suffix\$/d
7098/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7099done
7100
06a51eac
RW
7101# Do the final fixup along with target modules.
7102extrasub_target="$extrasub_target
6bd3dfaa 7103/^@if /,/^@endif /d"
a0da8069
NN
7104
7105# Create the serialization dependencies. This uses a temporary file.
7106
81ecdfbb
RW
7107# Check whether --enable-serial-configure was given.
7108if test "${enable_serial_configure+set}" = set; then :
7109 enableval=$enable_serial_configure;
7110fi
e6bfb94a
AO
7111
7112
1047cb91
DD
7113case ${enable_serial_configure} in
7114 yes)
7115 enable_serial_build_configure=yes
7116 enable_serial_host_configure=yes
7117 enable_serial_target_configure=yes
7118 ;;
7119esac
7120
a0da8069
NN
7121# These force 'configure's to be done one at a time, to avoid problems
7122# with contention over a shared config.cache.
7123rm -f serdep.tmp
e6bfb94a 7124echo '# serdep.tmp' > serdep.tmp
a0da8069 7125olditem=
1047cb91 7126test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7127for item in ${build_configdirs} ; do
7128 case ${olditem} in
7129 "") ;;
e6bfb94a 7130 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7131 esac
7132 olditem=${item}
7133done
7134olditem=
1047cb91 7135test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7136for item in ${configdirs} ; do
7137 case ${olditem} in
7138 "") ;;
e6bfb94a 7139 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7140 esac
7141 olditem=${item}
7142done
7143olditem=
1047cb91 7144test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7145for item in ${target_configdirs} ; do
7146 case ${olditem} in
7147 "") ;;
e6bfb94a 7148 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7149 esac
7150 olditem=${item}
7151done
7152serialization_dependencies=serdep.tmp
7153
7154
e6bfb94a 7155# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7156# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7157# might not want to pass down to subconfigures. The exception being
7158# --cache-file=/dev/null, which is used to turn off the use of cache
7159# files altogether, and which should be passed on to subconfigures.
7160# Also strip program-prefix, program-suffix, and program-transform-name,
7161# so that we can pass down a consistent program-transform-name.
c6b750e1 7162baseargs=
65b4571a 7163tbaseargs=
c6b750e1
DJ
7164keep_next=no
7165skip_next=no
7166eval "set -- $ac_configure_args"
18f6b6ee
PB
7167for ac_arg
7168do
c6b750e1
DJ
7169 if test X"$skip_next" = X"yes"; then
7170 skip_next=no
7171 continue
7172 fi
7173 if test X"$keep_next" = X"yes"; then
7174 case $ac_arg in
7175 *\'*)
7176 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7177 esac
7178 baseargs="$baseargs '$ac_arg'"
65b4571a 7179 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7180 keep_next=no
7181 continue
7182 fi
7183
7184 # Handle separated arguments. Based on the logic generated by
7185 # autoconf 2.59.
7186 case $ac_arg in
7187 *=* | --config-cache | -C | -disable-* | --disable-* \
7188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7190 | -with-* | --with-* | -without-* | --without-* | --x)
7191 separate_arg=no
7192 ;;
7193 -*)
7194 separate_arg=yes
7195 ;;
7196 *)
7197 separate_arg=no
7198 ;;
7199 esac
7200
65b4571a
AO
7201 skip_targ=no
7202 case $ac_arg in
7203
7204 --with-* | --without-*)
7205 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7206
7207 case $libopt in
7208 *[-_]include)
7209 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7210 ;;
7211 *[-_]lib)
7212 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7213 ;;
7214 *)
7215 lib=$libopt
7216 ;;
7217 esac
7218
7219
7220 case $lib in
7221 mpc | mpfr | gmp | ppl | cloog)
7222 # If we're processing --with-$lib, --with-$lib-include or
7223 # --with-$lib-lib, for one of the libs above, and target is
7224 # different from host, don't pass the current argument to any
7225 # target library's configure.
7226 if test x$is_cross_compiler = xyes; then
7227 skip_targ=yes
7228 fi
7229 ;;
7230 esac
7231 ;;
7232 esac
7233
c6b750e1 7234 case "$ac_arg" in
30167e0a
NC
7235 --cache-file=/dev/null | \
7236 -cache-file=/dev/null )
7237 # Handled here to avoid the test to skip args below.
7238 baseargs="$baseargs '$ac_arg'"
65b4571a 7239 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7240 # Assert: $separate_arg should always be no.
7241 keep_next=$separate_arg
7242 ;;
c6b750e1
DJ
7243 --no*)
7244 continue
7245 ;;
7246 --c* | \
7247 --sr* | \
7248 --ho* | \
7249 --bu* | \
7250 --t* | \
7251 --program-* | \
7252 -cache_file* | \
7253 -srcdir* | \
7254 -host* | \
7255 -build* | \
7256 -target* | \
7257 -program-prefix* | \
7258 -program-suffix* | \
7259 -program-transform-name* )
7260 skip_next=$separate_arg
7261 continue
7262 ;;
7263 -*)
7264 # An option. Add it.
7265 case $ac_arg in
7266 *\'*)
7267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7268 esac
7269 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7270 if test X"$skip_targ" = Xno; then
7271 tbaseargs="$tbaseargs '$ac_arg'"
7272 fi
c6b750e1
DJ
7273 keep_next=$separate_arg
7274 ;;
7275 *)
7276 # Either a variable assignment, or a nonopt (triplet). Don't
7277 # pass it down; let the Makefile handle this.
7278 continue
7279 ;;
7280 esac
7281done
7282# Remove the initial space we just introduced and, as these will be
7283# expanded by make, quote '$'.
7284baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7285
f27d4f92
DJ
7286# Add in --program-transform-name, after --program-prefix and
7287# --program-suffix have been applied to it. Autoconf has already
7288# doubled dollar signs and backslashes in program_transform_name; we want
7289# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7290# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7291# Also, because we want to override the logic in subdir configure scripts to
7292# choose program_transform_name, replace any s,x,x, with s,y,y,.
7293sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7294${program_transform_name}
7295EOF_SED
7296gcc_transform_name=`cat conftestsed.out`
7297rm -f conftestsed.out
7298baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7299tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7300if test "$silent" = yes; then
7301 baseargs="$baseargs --silent"
65b4571a 7302 tbaseargs="$tbaseargs --silent"
2444379b 7303fi
34a0f3cf 7304baseargs="$baseargs --disable-option-checking"
65b4571a 7305tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7306
4074d5f2
RW
7307# Record and document user additions to sub configure arguments.
7308
7309
7310
7311
a0da8069
NN
7312# For the build-side libraries, we just need to pretend we're native,
7313# and not use the same cache file. Multilibs are neither needed nor
7314# desired.
4074d5f2 7315build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7316
7317# For host modules, accept cache file option, or specification as blank.
7318case "${cache_file}" in
7319"") # empty
7320 cache_file_option="" ;;
7321/* | [A-Za-z]:[\\/]* ) # absolute path
7322 cache_file_option="--cache-file=${cache_file}" ;;
7323*) # relative path
7324 cache_file_option="--cache-file=../${cache_file}" ;;
7325esac
7326
82252c06
NN
7327# Host dirs don't like to share a cache file either, horribly enough.
7328# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7329host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7330
65b4571a 7331target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7332
7333# Passing a --with-cross-host argument lets the target libraries know
7334# whether they are being built with a cross-compiler or being built
7335# native. However, it would be better to use other mechanisms to make the
7336# sorts of decisions they want to make on this basis. Please consider
7337# this option to be deprecated. FIXME.
7338if test x${is_cross_compiler} = xyes ; then
c6b750e1 7339 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7340fi
7341
938d2b74
RW
7342# Default to --enable-multilib.
7343if test x${enable_multilib} = x ; then
a0da8069 7344 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7345fi
a0da8069
NN
7346
7347# Pass --with-newlib if appropriate. Note that target_configdirs has
7348# changed from the earlier setting of with_newlib.
7349if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7350 target_configargs="--with-newlib ${target_configargs}"
7351fi
7352
95036d20
NN
7353# Different target subdirs use different values of certain variables
7354# (notably CXX). Worse, multilibs use *lots* of different values.
7355# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7356# it doesn't automatically accept command-line overrides of them.
7357# This means it's not safe for target subdirs to share a cache file,
7358# which is disgusting, but there you have it. Hopefully this can be
7359# fixed in future. It's still worthwhile to use a cache file for each
7360# directory. I think.
7361
ae380b45
MS
7362# Pass the appropriate --build, --host, --target and --cache-file arguments.
7363# We need to pass --target, as newer autoconf's requires consistency
7364# for target_alias and gcc doesn't manage it consistently.
4b900473 7365target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7366
a0da8069
NN
7367FLAGS_FOR_TARGET=
7368case " $target_configdirs " in
7369 *" newlib "*)
7370 case " $target_configargs " in
7371 *" --with-newlib "*)
7372 case "$target" in
1f53ca9a
AO
7373 *-cygwin*)
7374 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7375 ;;
a0da8069
NN
7376 esac
7377
7378 # If we're not building GCC, don't discard standard headers.
7379 if test -d ${srcdir}/gcc; then
7380 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7381
7382 if test "${build}" != "${host}"; then
7383 # On Canadian crosses, CC_FOR_TARGET will have already been set
7384 # by `configure', so we won't have an opportunity to add -Bgcc/
7385 # to it. This is right: we don't want to search that directory
7386 # for binaries, but we want the header files in there, so add
7387 # them explicitly.
e552509b 7388 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7389
7390 # Someone might think of using the pre-installed headers on
7391 # Canadian crosses, in case the installed compiler is not fully
7392 # compatible with the compiler being built. In this case, it
7393 # would be better to flag an error than risking having
7394 # incompatible object files being constructed. We can't
7395 # guarantee that an error will be flagged, but let's hope the
7396 # compiler will do it, when presented with incompatible header
7397 # files.
7398 fi
7399 fi
7400
7401 case "${target}-${is_cross_compiler}" in
ec11bdc6 7402 i[3456789]86-*-linux*-no)
a0da8069
NN
7403 # Here host == target, so we don't need to build gcc,
7404 # so we don't want to discard standard headers.
7405 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7406 ;;
7407 *)
7408 # If we're building newlib, use its generic headers last, but search
7409 # for any libc-related directories first (so make it the last -B
7410 # switch).
7411 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7412
7413 # If we're building libgloss, find the startup file, simulator library
7414 # and linker script.
7415 case " $target_configdirs " in
7416 *" libgloss "*)
7417 # Look for startup file, simulator library and maybe linker script.
7418 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7419 # Look for libnosys.a in case the target needs it.
7420 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7421 # Most targets have the linker script in the source directory.
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7423 ;;
7424 esac
a0da8069
NN
7425 ;;
7426 esac
7427 ;;
7428 esac
7429 ;;
7430esac
1f53ca9a 7431
45055374 7432case "$target" in
1f53ca9a
AO
7433 x86_64-*mingw* | *-w64-mingw*)
7434 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7435 # however, use a symlink named 'mingw' in ${prefix} .
7436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7437 ;;
7438 *-mingw*)
7439 # MinGW can't be handled as Cygwin above since it does not use newlib.
7440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
7441 ;;
45055374 7442esac
a0da8069 7443
5fbad20a
DD
7444# Allow the user to override the flags for
7445# our build compiler if desired.
c66487f8
NC
7446if test x"${build}" = x"${host}" ; then
7447 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7448 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7449 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7450fi
5fbad20a 7451
a0da8069
NN
7452# On Canadian crosses, we'll be searching the right directories for
7453# the previously-installed cross compiler, so don't bother to add
7454# flags for directories within the install tree of the compiler
7455# being built; programs in there won't even run.
7456if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7457 # Search for pre-installed headers if nothing else fits.
bba45b8b 7458 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
7459fi
7460
7461if test "x${use_gnu_ld}" = x &&
7462 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7463 # Arrange for us to find uninstalled linker scripts.
b00612cc 7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7465fi
7466
a481dbb7
DD
7467# Search for other target-specific linker scripts and such.
7468case "${target}" in
4e206d7e
DB
7469 mep*)
7470 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7471 ;;
7472esac
7473
a0da8069 7474# Makefile fragments.
3e707e94
PB
7475for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7476do
7477 eval fragval=\$$frag
7478 if test $fragval != /dev/null; then
7479 eval $frag=${srcdir}/$fragval
7480 fi
7481done
a0da8069
NN
7482
7483
7484
7485
7486
7487# Miscellanea: directories, flags, etc.
7488
7489
7490
7491
7492
7493
7494
3bbd2f8f 7495
6a9cf61e 7496# Build module lists & subconfigure args.
a0da8069
NN
7497
7498
7499
be01d343
PB
7500# Host module lists & subconfigure args.
7501
7502
7503
911e63d0 7504
be01d343
PB
7505# Target module lists & subconfigure args.
7506
7507
7508
7509# Build tools.
7510
7511
7512
1576798e
PB
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
e552509b 7527
be01d343
PB
7528# Generate default definitions for YACC, M4, LEX and other programs that run
7529# on the build machine. These are used if the Makefile can't locate these
7530# programs in objdir.
7531MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7532
7533for ac_prog in 'bison -y' byacc yacc
7534do
c6b750e1 7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7536set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538$as_echo_n "checking for $ac_word... " >&6; }
7539if test "${ac_cv_prog_YACC+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
be01d343
PB
7541else
7542 if test -n "$YACC"; then
7543 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7544else
c6b750e1
DJ
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7552 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7554 break 2
7555 fi
7556done
81ecdfbb
RW
7557 done
7558IFS=$as_save_IFS
c6b750e1 7559
be01d343
PB
7560fi
7561fi
c6b750e1 7562YACC=$ac_cv_prog_YACC
be01d343 7563if test -n "$YACC"; then
81ecdfbb
RW
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7565$as_echo "$YACC" >&6; }
be01d343 7566else
81ecdfbb
RW
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
be01d343
PB
7569fi
7570
81ecdfbb 7571
c6b750e1 7572 test -n "$YACC" && break
be01d343
PB
7573done
7574test -n "$YACC" || YACC="$MISSING bison -y"
7575
7576case " $build_configdirs " in
7577 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7578 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7579esac
7580
7581for ac_prog in bison
7582do
c6b750e1 7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7584set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
7587if test "${ac_cv_prog_BISON+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
be01d343
PB
7589else
7590 if test -n "$BISON"; then
7591 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7592else
c6b750e1
DJ
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7600 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7602 break 2
7603 fi
7604done
81ecdfbb
RW
7605 done
7606IFS=$as_save_IFS
c6b750e1 7607
be01d343
PB
7608fi
7609fi
c6b750e1 7610BISON=$ac_cv_prog_BISON
be01d343 7611if test -n "$BISON"; then
81ecdfbb
RW
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7613$as_echo "$BISON" >&6; }
be01d343 7614else
81ecdfbb
RW
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
be01d343
PB
7617fi
7618
81ecdfbb 7619
c6b750e1 7620 test -n "$BISON" && break
be01d343
PB
7621done
7622test -n "$BISON" || BISON="$MISSING bison"
7623
7624case " $build_configdirs " in
7625 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7626esac
7627
7628for ac_prog in gm4 gnum4 m4
7629do
c6b750e1 7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7631set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if test "${ac_cv_prog_M4+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
be01d343
PB
7636else
7637 if test -n "$M4"; then
7638 ac_cv_prog_M4="$M4" # Let the user override the test.
7639else
c6b750e1
DJ
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7647 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7649 break 2
7650 fi
7651done
81ecdfbb
RW
7652 done
7653IFS=$as_save_IFS
c6b750e1 7654
be01d343
PB
7655fi
7656fi
c6b750e1 7657M4=$ac_cv_prog_M4
be01d343 7658if test -n "$M4"; then
81ecdfbb
RW
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7660$as_echo "$M4" >&6; }
be01d343 7661else
81ecdfbb
RW
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
be01d343
PB
7664fi
7665
81ecdfbb 7666
c6b750e1 7667 test -n "$M4" && break
be01d343
PB
7668done
7669test -n "$M4" || M4="$MISSING m4"
7670
7671case " $build_configdirs " in
7672 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7673esac
7674
7675for ac_prog in flex lex
7676do
c6b750e1 7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7678set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
7681if test "${ac_cv_prog_LEX+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
be01d343
PB
7683else
7684 if test -n "$LEX"; then
7685 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7686else
c6b750e1
DJ
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7694 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7696 break 2
7697 fi
7698done
81ecdfbb
RW
7699 done
7700IFS=$as_save_IFS
c6b750e1 7701
be01d343
PB
7702fi
7703fi
c6b750e1 7704LEX=$ac_cv_prog_LEX
be01d343 7705if test -n "$LEX"; then
81ecdfbb
RW
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7707$as_echo "$LEX" >&6; }
be01d343 7708else
81ecdfbb
RW
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
be01d343
PB
7711fi
7712
81ecdfbb 7713
c6b750e1 7714 test -n "$LEX" && break
be01d343
PB
7715done
7716test -n "$LEX" || LEX="$MISSING flex"
7717
7718case " $build_configdirs " in
7719 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7720 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7721esac
7722
7723for ac_prog in flex
7724do
c6b750e1 7725 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7726set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728$as_echo_n "checking for $ac_word... " >&6; }
7729if test "${ac_cv_prog_FLEX+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
be01d343
PB
7731else
7732 if test -n "$FLEX"; then
7733 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7734else
c6b750e1
DJ
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7742 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7744 break 2
7745 fi
7746done
81ecdfbb
RW
7747 done
7748IFS=$as_save_IFS
c6b750e1 7749
be01d343
PB
7750fi
7751fi
c6b750e1 7752FLEX=$ac_cv_prog_FLEX
be01d343 7753if test -n "$FLEX"; then
81ecdfbb
RW
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7755$as_echo "$FLEX" >&6; }
be01d343 7756else
81ecdfbb
RW
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
be01d343
PB
7759fi
7760
81ecdfbb 7761
c6b750e1 7762 test -n "$FLEX" && break
be01d343
PB
7763done
7764test -n "$FLEX" || FLEX="$MISSING flex"
7765
7766case " $build_configdirs " in
7767 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7768esac
7769
7770for ac_prog in makeinfo
7771do
c6b750e1 7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7773set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
be01d343
PB
7778else
7779 if test -n "$MAKEINFO"; then
7780 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7781else
c6b750e1
DJ
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7789 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7791 break 2
7792 fi
7793done
81ecdfbb
RW
7794 done
7795IFS=$as_save_IFS
c6b750e1 7796
be01d343
PB
7797fi
7798fi
c6b750e1 7799MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7800if test -n "$MAKEINFO"; then
81ecdfbb
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7802$as_echo "$MAKEINFO" >&6; }
be01d343 7803else
81ecdfbb
RW
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
be01d343
PB
7806fi
7807
81ecdfbb 7808
c6b750e1 7809 test -n "$MAKEINFO" && break
be01d343
PB
7810done
7811test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7812
7813case " $build_configdirs " in
7814 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7815 *)
7816
10ad8ef3 7817 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7818 # higher, else we use the "missing" dummy.
7819 if ${MAKEINFO} --version \
10ad8ef3 7820 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7821 :
7822 else
7823 MAKEINFO="$MISSING makeinfo"
7824 fi
7825 ;;
7826
7827esac
a0da8069 7828
be01d343 7829# FIXME: expect and dejagnu may become build tools?
a0da8069 7830
be01d343
PB
7831for ac_prog in expect
7832do
c6b750e1 7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7834set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if test "${ac_cv_prog_EXPECT+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
be01d343
PB
7839else
7840 if test -n "$EXPECT"; then
7841 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7842else
c6b750e1
DJ
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7850 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7852 break 2
7853 fi
7854done
81ecdfbb
RW
7855 done
7856IFS=$as_save_IFS
c6b750e1 7857
be01d343
PB
7858fi
7859fi
c6b750e1 7860EXPECT=$ac_cv_prog_EXPECT
be01d343 7861if test -n "$EXPECT"; then
81ecdfbb
RW
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7863$as_echo "$EXPECT" >&6; }
be01d343 7864else
81ecdfbb
RW
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
be01d343 7867fi
a0da8069 7868
81ecdfbb 7869
c6b750e1 7870 test -n "$EXPECT" && break
be01d343
PB
7871done
7872test -n "$EXPECT" || EXPECT="expect"
a0da8069 7873
be01d343
PB
7874case " $configdirs " in
7875 *" expect "*)
7876 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7877 ;;
7878esac
a0da8069 7879
be01d343
PB
7880for ac_prog in runtest
7881do
c6b750e1 7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7883set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885$as_echo_n "checking for $ac_word... " >&6; }
7886if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
be01d343
PB
7888else
7889 if test -n "$RUNTEST"; then
7890 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7891else
c6b750e1
DJ
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7899 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7901 break 2
7902 fi
7903done
81ecdfbb
RW
7904 done
7905IFS=$as_save_IFS
c6b750e1 7906
be01d343
PB
7907fi
7908fi
c6b750e1 7909RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7910if test -n "$RUNTEST"; then
81ecdfbb
RW
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7912$as_echo "$RUNTEST" >&6; }
be01d343 7913else
81ecdfbb
RW
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915$as_echo "no" >&6; }
be01d343 7916fi
a0da8069 7917
81ecdfbb 7918
c6b750e1 7919 test -n "$RUNTEST" && break
be01d343
PB
7920done
7921test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7922
be01d343
PB
7923case " $configdirs " in
7924 *" dejagnu "*)
6b89cc21 7925 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7926 ;;
7927esac
a0da8069
NN
7928
7929
a0da8069 7930# Host tools.
859789af
AC
7931ncn_tool_prefix=
7932test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7933ncn_target_tool_prefix=
7934test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7935
9a819804
AO
7936
7937
7938if test -n "$AR"; then
7939 ac_cv_prog_AR=$AR
7940elif test -n "$ac_cv_prog_AR"; then
7941 AR=$ac_cv_prog_AR
7942fi
7943
7944if test -n "$ac_cv_prog_AR"; then
7945 for ncn_progname in ar; do
7946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7947set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if test "${ac_cv_prog_AR+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
9a819804
AO
7952else
7953 if test -n "$AR"; then
7954 ac_cv_prog_AR="$AR" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7963 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7965 break 2
7966 fi
7967done
81ecdfbb
RW
7968 done
7969IFS=$as_save_IFS
9a819804
AO
7970
7971fi
7972fi
7973AR=$ac_cv_prog_AR
7974if test -n "$AR"; then
81ecdfbb
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7976$as_echo "$AR" >&6; }
9a819804 7977else
81ecdfbb
RW
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
9a819804
AO
7980fi
7981
81ecdfbb 7982
9a819804
AO
7983 done
7984fi
7985
7986for ncn_progname in ar; do
05cbd757
PB
7987 if test -n "$ncn_tool_prefix"; then
7988 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7989set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if test "${ac_cv_prog_AR+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
859789af
AC
7994else
7995 if test -n "$AR"; then
7996 ac_cv_prog_AR="$AR" # Let the user override the test.
7997else
c6b750e1
DJ
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8005 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8007 break 2
8008 fi
8009done
81ecdfbb
RW
8010 done
8011IFS=$as_save_IFS
c6b750e1 8012
859789af
AC
8013fi
8014fi
c6b750e1 8015AR=$ac_cv_prog_AR
859789af 8016if test -n "$AR"; then
81ecdfbb
RW
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018$as_echo "$AR" >&6; }
859789af 8019else
81ecdfbb
RW
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
859789af
AC
8022fi
8023
81ecdfbb 8024
05cbd757
PB
8025 fi
8026 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8028set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030$as_echo_n "checking for $ac_word... " >&6; }
8031if test "${ac_cv_prog_AR+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
859789af 8033else
05cbd757
PB
8034 if test -n "$AR"; then
8035 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8036else
c6b750e1
DJ
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8044 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8046 break 2
8047 fi
8048done
81ecdfbb
RW
8049 done
8050IFS=$as_save_IFS
c6b750e1 8051
859789af
AC
8052fi
8053fi
c6b750e1 8054AR=$ac_cv_prog_AR
05cbd757 8055if test -n "$AR"; then
81ecdfbb
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057$as_echo "$AR" >&6; }
859789af 8058else
81ecdfbb
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060$as_echo "no" >&6; }
859789af 8061fi
c6b750e1 8062
81ecdfbb 8063
05cbd757
PB
8064 fi
8065 test -n "$ac_cv_prog_AR" && break
8066done
8067
8068if test -z "$ac_cv_prog_AR" ; then
8069 set dummy ar
8070 if test $build = $host ; then
8071 AR="$2"
859789af 8072 else
05cbd757 8073 AR="${ncn_tool_prefix}$2"
859789af 8074 fi
859789af
AC
8075fi
8076
9a819804
AO
8077
8078
8079if test -n "$AS"; then
8080 ac_cv_prog_AS=$AS
8081elif test -n "$ac_cv_prog_AS"; then
8082 AS=$ac_cv_prog_AS
8083fi
8084
8085if test -n "$ac_cv_prog_AS"; then
8086 for ncn_progname in as; do
8087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8088set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090$as_echo_n "checking for $ac_word... " >&6; }
8091if test "${ac_cv_prog_AS+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
9a819804
AO
8093else
8094 if test -n "$AS"; then
8095 ac_cv_prog_AS="$AS" # Let the user override the test.
8096else
8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8104 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8106 break 2
8107 fi
8108done
81ecdfbb
RW
8109 done
8110IFS=$as_save_IFS
9a819804
AO
8111
8112fi
8113fi
8114AS=$ac_cv_prog_AS
8115if test -n "$AS"; then
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8117$as_echo "$AS" >&6; }
9a819804 8118else
81ecdfbb
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120$as_echo "no" >&6; }
9a819804
AO
8121fi
8122
81ecdfbb 8123
9a819804
AO
8124 done
8125fi
8126
8127for ncn_progname in as; do
05cbd757
PB
8128 if test -n "$ncn_tool_prefix"; then
8129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8130set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if test "${ac_cv_prog_AS+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
859789af
AC
8135else
8136 if test -n "$AS"; then
8137 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8138else
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8146 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8148 break 2
8149 fi
8150done
81ecdfbb
RW
8151 done
8152IFS=$as_save_IFS
c6b750e1 8153
859789af
AC
8154fi
8155fi
c6b750e1 8156AS=$ac_cv_prog_AS
859789af 8157if test -n "$AS"; then
81ecdfbb
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8159$as_echo "$AS" >&6; }
859789af 8160else
81ecdfbb
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
859789af
AC
8163fi
8164
81ecdfbb 8165
05cbd757
PB
8166 fi
8167 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8169set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if test "${ac_cv_prog_AS+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
859789af 8174else
05cbd757
PB
8175 if test -n "$AS"; then
8176 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8177else
c6b750e1
DJ
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8185 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8187 break 2
8188 fi
8189done
81ecdfbb
RW
8190 done
8191IFS=$as_save_IFS
c6b750e1 8192
859789af
AC
8193fi
8194fi
c6b750e1 8195AS=$ac_cv_prog_AS
05cbd757 8196if test -n "$AS"; then
81ecdfbb
RW
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198$as_echo "$AS" >&6; }
859789af 8199else
81ecdfbb
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
859789af 8202fi
c6b750e1 8203
81ecdfbb 8204
05cbd757
PB
8205 fi
8206 test -n "$ac_cv_prog_AS" && break
8207done
8208
8209if test -z "$ac_cv_prog_AS" ; then
8210 set dummy as
8211 if test $build = $host ; then
8212 AS="$2"
859789af 8213 else
05cbd757 8214 AS="${ncn_tool_prefix}$2"
859789af 8215 fi
859789af
AC
8216fi
8217
9a819804
AO
8218
8219
8220if test -n "$DLLTOOL"; then
8221 ac_cv_prog_DLLTOOL=$DLLTOOL
8222elif test -n "$ac_cv_prog_DLLTOOL"; then
8223 DLLTOOL=$ac_cv_prog_DLLTOOL
8224fi
8225
8226if test -n "$ac_cv_prog_DLLTOOL"; then
8227 for ncn_progname in dlltool; do
8228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8229set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231$as_echo_n "checking for $ac_word... " >&6; }
8232if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
9a819804
AO
8234else
8235 if test -n "$DLLTOOL"; then
8236 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8245 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8247 break 2
8248 fi
8249done
81ecdfbb
RW
8250 done
8251IFS=$as_save_IFS
9a819804
AO
8252
8253fi
8254fi
8255DLLTOOL=$ac_cv_prog_DLLTOOL
8256if test -n "$DLLTOOL"; then
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8258$as_echo "$DLLTOOL" >&6; }
9a819804 8259else
81ecdfbb
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
9a819804
AO
8262fi
8263
81ecdfbb 8264
9a819804
AO
8265 done
8266fi
8267
8268for ncn_progname in dlltool; do
05cbd757
PB
8269 if test -n "$ncn_tool_prefix"; then
8270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273$as_echo_n "checking for $ac_word... " >&6; }
8274if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
859789af
AC
8276else
8277 if test -n "$DLLTOOL"; then
8278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8279else
c6b750e1
DJ
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8287 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8289 break 2
8290 fi
8291done
81ecdfbb
RW
8292 done
8293IFS=$as_save_IFS
c6b750e1 8294
859789af
AC
8295fi
8296fi
c6b750e1 8297DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8298if test -n "$DLLTOOL"; then
81ecdfbb
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8300$as_echo "$DLLTOOL" >&6; }
859789af 8301else
81ecdfbb
RW
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
859789af
AC
8304fi
8305
81ecdfbb 8306
05cbd757
PB
8307 fi
8308 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8310set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312$as_echo_n "checking for $ac_word... " >&6; }
8313if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
859789af 8315else
05cbd757
PB
8316 if test -n "$DLLTOOL"; then
8317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8318else
c6b750e1
DJ
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8326 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8328 break 2
8329 fi
8330done
81ecdfbb
RW
8331 done
8332IFS=$as_save_IFS
c6b750e1 8333
859789af
AC
8334fi
8335fi
c6b750e1 8336DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8337if test -n "$DLLTOOL"; then
81ecdfbb
RW
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8339$as_echo "$DLLTOOL" >&6; }
859789af 8340else
81ecdfbb
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
859789af 8343fi
c6b750e1 8344
81ecdfbb 8345
05cbd757
PB
8346 fi
8347 test -n "$ac_cv_prog_DLLTOOL" && break
8348done
8349
8350if test -z "$ac_cv_prog_DLLTOOL" ; then
8351 set dummy dlltool
8352 if test $build = $host ; then
8353 DLLTOOL="$2"
859789af 8354 else
05cbd757 8355 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8356 fi
859789af
AC
8357fi
8358
9a819804
AO
8359
8360
8361if test -n "$LD"; then
8362 ac_cv_prog_LD=$LD
8363elif test -n "$ac_cv_prog_LD"; then
8364 LD=$ac_cv_prog_LD
8365fi
8366
8367if test -n "$ac_cv_prog_LD"; then
8368 for ncn_progname in ld; do
8369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8370set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372$as_echo_n "checking for $ac_word... " >&6; }
8373if test "${ac_cv_prog_LD+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
9a819804
AO
8375else
8376 if test -n "$LD"; then
8377 ac_cv_prog_LD="$LD" # Let the user override the test.
8378else
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8386 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8388 break 2
8389 fi
8390done
81ecdfbb
RW
8391 done
8392IFS=$as_save_IFS
9a819804
AO
8393
8394fi
8395fi
8396LD=$ac_cv_prog_LD
8397if test -n "$LD"; then
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8399$as_echo "$LD" >&6; }
9a819804 8400else
81ecdfbb
RW
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402$as_echo "no" >&6; }
9a819804
AO
8403fi
8404
81ecdfbb 8405
9a819804
AO
8406 done
8407fi
8408
8409for ncn_progname in ld; do
05cbd757
PB
8410 if test -n "$ncn_tool_prefix"; then
8411 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8412set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
8415if test "${ac_cv_prog_LD+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
859789af
AC
8417else
8418 if test -n "$LD"; then
8419 ac_cv_prog_LD="$LD" # Let the user override the test.
8420else
c6b750e1
DJ
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8428 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8430 break 2
8431 fi
8432done
81ecdfbb
RW
8433 done
8434IFS=$as_save_IFS
c6b750e1 8435
859789af
AC
8436fi
8437fi
c6b750e1 8438LD=$ac_cv_prog_LD
859789af 8439if test -n "$LD"; then
81ecdfbb
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8441$as_echo "$LD" >&6; }
859789af 8442else
81ecdfbb
RW
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
859789af
AC
8445fi
8446
81ecdfbb 8447
05cbd757
PB
8448 fi
8449 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if test "${ac_cv_prog_LD+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
859789af 8456else
05cbd757
PB
8457 if test -n "$LD"; then
8458 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8459else
c6b750e1
DJ
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8467 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8469 break 2
8470 fi
8471done
81ecdfbb
RW
8472 done
8473IFS=$as_save_IFS
c6b750e1 8474
859789af
AC
8475fi
8476fi
c6b750e1 8477LD=$ac_cv_prog_LD
05cbd757 8478if test -n "$LD"; then
81ecdfbb
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8480$as_echo "$LD" >&6; }
859789af 8481else
81ecdfbb
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
859789af 8484fi
c6b750e1 8485
81ecdfbb 8486
05cbd757
PB
8487 fi
8488 test -n "$ac_cv_prog_LD" && break
8489done
8490
8491if test -z "$ac_cv_prog_LD" ; then
8492 set dummy ld
8493 if test $build = $host ; then
8494 LD="$2"
859789af 8495 else
05cbd757 8496 LD="${ncn_tool_prefix}$2"
859789af 8497 fi
859789af
AC
8498fi
8499
9a819804
AO
8500
8501
8502if test -n "$LIPO"; then
8503 ac_cv_prog_LIPO=$LIPO
8504elif test -n "$ac_cv_prog_LIPO"; then
8505 LIPO=$ac_cv_prog_LIPO
8506fi
8507
8508if test -n "$ac_cv_prog_LIPO"; then
8509 for ncn_progname in lipo; do
8510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8511set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513$as_echo_n "checking for $ac_word... " >&6; }
8514if test "${ac_cv_prog_LIPO+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
9a819804
AO
8516else
8517 if test -n "$LIPO"; then
8518 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8519else
8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8527 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8529 break 2
8530 fi
8531done
81ecdfbb
RW
8532 done
8533IFS=$as_save_IFS
9a819804
AO
8534
8535fi
8536fi
8537LIPO=$ac_cv_prog_LIPO
8538if test -n "$LIPO"; then
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8540$as_echo "$LIPO" >&6; }
9a819804 8541else
81ecdfbb
RW
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
9a819804
AO
8544fi
8545
81ecdfbb 8546
9a819804
AO
8547 done
8548fi
8549
8550for ncn_progname in lipo; do
be01d343
PB
8551 if test -n "$ncn_tool_prefix"; then
8552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8553set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_prog_LIPO+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
be01d343
PB
8558else
8559 if test -n "$LIPO"; then
8560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561else
c6b750e1
DJ
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8569 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8571 break 2
8572 fi
8573done
81ecdfbb
RW
8574 done
8575IFS=$as_save_IFS
c6b750e1 8576
be01d343
PB
8577fi
8578fi
c6b750e1 8579LIPO=$ac_cv_prog_LIPO
be01d343 8580if test -n "$LIPO"; then
81ecdfbb
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8582$as_echo "$LIPO" >&6; }
be01d343 8583else
81ecdfbb
RW
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
be01d343
PB
8586fi
8587
81ecdfbb 8588
be01d343
PB
8589 fi
8590 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8592set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594$as_echo_n "checking for $ac_word... " >&6; }
8595if test "${ac_cv_prog_LIPO+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
be01d343
PB
8597else
8598 if test -n "$LIPO"; then
8599 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8600else
c6b750e1
DJ
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8608 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8610 break 2
8611 fi
8612done
81ecdfbb
RW
8613 done
8614IFS=$as_save_IFS
c6b750e1 8615
be01d343
PB
8616fi
8617fi
c6b750e1 8618LIPO=$ac_cv_prog_LIPO
be01d343 8619if test -n "$LIPO"; then
81ecdfbb
RW
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8621$as_echo "$LIPO" >&6; }
be01d343 8622else
81ecdfbb
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624$as_echo "no" >&6; }
be01d343 8625fi
c6b750e1 8626
81ecdfbb 8627
be01d343
PB
8628 fi
8629 test -n "$ac_cv_prog_LIPO" && break
8630done
8631
8632if test -z "$ac_cv_prog_LIPO" ; then
8633 set dummy lipo
8634 if test $build = $host ; then
8635 LIPO="$2"
8636 else
8637 LIPO="${ncn_tool_prefix}$2"
8638 fi
8639fi
8640
9a819804
AO
8641
8642
8643if test -n "$NM"; then
8644 ac_cv_prog_NM=$NM
8645elif test -n "$ac_cv_prog_NM"; then
8646 NM=$ac_cv_prog_NM
8647fi
8648
8649if test -n "$ac_cv_prog_NM"; then
8650 for ncn_progname in nm; do
8651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8652set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654$as_echo_n "checking for $ac_word... " >&6; }
8655if test "${ac_cv_prog_NM+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
859789af
AC
8657else
8658 if test -n "$NM"; then
8659 ac_cv_prog_NM="$NM" # Let the user override the test.
8660else
c6b750e1
DJ
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8668 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8670 break 2
8671 fi
8672done
81ecdfbb
RW
8673 done
8674IFS=$as_save_IFS
c6b750e1 8675
859789af
AC
8676fi
8677fi
c6b750e1 8678NM=$ac_cv_prog_NM
859789af 8679if test -n "$NM"; then
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8681$as_echo "$NM" >&6; }
859789af 8682else
81ecdfbb
RW
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
859789af
AC
8685fi
8686
81ecdfbb 8687
9a819804
AO
8688 done
8689fi
8690
8691for ncn_progname in nm; do
8692 if test -n "$ncn_tool_prefix"; then
8693 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8694set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if test "${ac_cv_prog_NM+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
859789af 8699else
05cbd757
PB
8700 if test -n "$NM"; then
8701 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8702else
c6b750e1
DJ
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8710 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8712 break 2
8713 fi
8714done
81ecdfbb
RW
8715 done
8716IFS=$as_save_IFS
c6b750e1 8717
859789af
AC
8718fi
8719fi
c6b750e1 8720NM=$ac_cv_prog_NM
05cbd757 8721if test -n "$NM"; then
81ecdfbb
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8723$as_echo "$NM" >&6; }
859789af 8724else
81ecdfbb
RW
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
859789af 8727fi
c6b750e1 8728
81ecdfbb 8729
05cbd757 8730 fi
9a819804
AO
8731 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8733set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_NM+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
9a819804
AO
8738else
8739 if test -n "$NM"; then
8740 ac_cv_prog_NM="$NM" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8749 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8751 break 2
8752 fi
8753done
81ecdfbb
RW
8754 done
8755IFS=$as_save_IFS
9a819804
AO
8756
8757fi
8758fi
8759NM=$ac_cv_prog_NM
8760if test -n "$NM"; then
81ecdfbb
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8762$as_echo "$NM" >&6; }
9a819804 8763else
81ecdfbb
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
9a819804
AO
8766fi
8767
81ecdfbb 8768
9a819804
AO
8769 fi
8770 test -n "$ac_cv_prog_NM" && break
8771done
8772
8773if test -z "$ac_cv_prog_NM" ; then
8774 set dummy nm
8775 if test $build = $host ; then
8776 NM="$2"
8777 else
8778 NM="${ncn_tool_prefix}$2"
8779 fi
8780fi
8781
8782
8783
8784if test -n "$RANLIB"; then
8785 ac_cv_prog_RANLIB=$RANLIB
8786elif test -n "$ac_cv_prog_RANLIB"; then
8787 RANLIB=$ac_cv_prog_RANLIB
8788fi
8789
8790if test -n "$ac_cv_prog_RANLIB"; then
8791 for ncn_progname in ranlib; do
8792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795$as_echo_n "checking for $ac_word... " >&6; }
8796if test "${ac_cv_prog_RANLIB+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
9a819804
AO
8798else
8799 if test -n "$RANLIB"; then
8800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8809 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8811 break 2
8812 fi
8813done
81ecdfbb
RW
8814 done
8815IFS=$as_save_IFS
9a819804
AO
8816
8817fi
8818fi
8819RANLIB=$ac_cv_prog_RANLIB
8820if test -n "$RANLIB"; then
81ecdfbb
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8822$as_echo "$RANLIB" >&6; }
9a819804 8823else
81ecdfbb
RW
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825$as_echo "no" >&6; }
9a819804
AO
8826fi
8827
81ecdfbb 8828
9a819804
AO
8829 done
8830fi
859789af 8831
9a819804 8832for ncn_progname in ranlib; do
05cbd757
PB
8833 if test -n "$ncn_tool_prefix"; then
8834 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8835set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837$as_echo_n "checking for $ac_word... " >&6; }
8838if test "${ac_cv_prog_RANLIB+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
859789af
AC
8840else
8841 if test -n "$RANLIB"; then
8842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8843else
c6b750e1
DJ
8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8851 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8853 break 2
8854 fi
8855done
81ecdfbb
RW
8856 done
8857IFS=$as_save_IFS
c6b750e1 8858
859789af
AC
8859fi
8860fi
c6b750e1 8861RANLIB=$ac_cv_prog_RANLIB
859789af 8862if test -n "$RANLIB"; then
81ecdfbb
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8864$as_echo "$RANLIB" >&6; }
859789af 8865else
81ecdfbb
RW
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
859789af
AC
8868fi
8869
81ecdfbb 8870
05cbd757
PB
8871 fi
8872 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8874set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if test "${ac_cv_prog_RANLIB+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
859789af 8879else
05cbd757
PB
8880 if test -n "$RANLIB"; then
8881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8882else
c6b750e1
DJ
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8890 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8892 break 2
8893 fi
8894done
81ecdfbb
RW
8895 done
8896IFS=$as_save_IFS
c6b750e1 8897
859789af
AC
8898fi
8899fi
c6b750e1 8900RANLIB=$ac_cv_prog_RANLIB
05cbd757 8901if test -n "$RANLIB"; then
81ecdfbb
RW
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8903$as_echo "$RANLIB" >&6; }
859789af 8904else
81ecdfbb
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
859789af 8907fi
c6b750e1 8908
81ecdfbb 8909
859789af 8910 fi
05cbd757
PB
8911 test -n "$ac_cv_prog_RANLIB" && break
8912done
8913
8914if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8915 RANLIB="true"
859789af
AC
8916fi
8917
9a819804
AO
8918
8919
8920if test -n "$STRIP"; then
8921 ac_cv_prog_STRIP=$STRIP
8922elif test -n "$ac_cv_prog_STRIP"; then
8923 STRIP=$ac_cv_prog_STRIP
8924fi
8925
8926if test -n "$ac_cv_prog_STRIP"; then
8927 for ncn_progname in strip; do
8928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8929set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931$as_echo_n "checking for $ac_word... " >&6; }
8932if test "${ac_cv_prog_STRIP+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
9a819804
AO
8934else
8935 if test -n "$STRIP"; then
8936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8937else
8938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939for as_dir in $PATH
8940do
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8945 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8947 break 2
8948 fi
8949done
81ecdfbb
RW
8950 done
8951IFS=$as_save_IFS
9a819804
AO
8952
8953fi
8954fi
8955STRIP=$ac_cv_prog_STRIP
8956if test -n "$STRIP"; then
81ecdfbb
RW
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8958$as_echo "$STRIP" >&6; }
9a819804 8959else
81ecdfbb
RW
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961$as_echo "no" >&6; }
9a819804
AO
8962fi
8963
81ecdfbb 8964
9a819804
AO
8965 done
8966fi
8967
8968for ncn_progname in strip; do
be01d343
PB
8969 if test -n "$ncn_tool_prefix"; then
8970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8971set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973$as_echo_n "checking for $ac_word... " >&6; }
8974if test "${ac_cv_prog_STRIP+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
be01d343
PB
8976else
8977 if test -n "$STRIP"; then
8978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979else
c6b750e1
DJ
8980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981for as_dir in $PATH
8982do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8987 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8989 break 2
8990 fi
8991done
81ecdfbb
RW
8992 done
8993IFS=$as_save_IFS
c6b750e1 8994
be01d343
PB
8995fi
8996fi
c6b750e1 8997STRIP=$ac_cv_prog_STRIP
be01d343 8998if test -n "$STRIP"; then
81ecdfbb
RW
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9000$as_echo "$STRIP" >&6; }
be01d343 9001else
81ecdfbb
RW
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
be01d343
PB
9004fi
9005
81ecdfbb 9006
be01d343
PB
9007 fi
9008 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if test "${ac_cv_prog_STRIP+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
be01d343
PB
9015else
9016 if test -n "$STRIP"; then
9017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9018else
c6b750e1
DJ
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9026 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9028 break 2
9029 fi
9030done
81ecdfbb
RW
9031 done
9032IFS=$as_save_IFS
c6b750e1 9033
be01d343
PB
9034fi
9035fi
c6b750e1 9036STRIP=$ac_cv_prog_STRIP
be01d343 9037if test -n "$STRIP"; then
81ecdfbb
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9039$as_echo "$STRIP" >&6; }
be01d343 9040else
81ecdfbb
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
be01d343 9043fi
c6b750e1 9044
81ecdfbb 9045
be01d343
PB
9046 fi
9047 test -n "$ac_cv_prog_STRIP" && break
9048done
9049
9050if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9051 STRIP="true"
be01d343
PB
9052fi
9053
9a819804
AO
9054
9055
9056if test -n "$WINDRES"; then
9057 ac_cv_prog_WINDRES=$WINDRES
9058elif test -n "$ac_cv_prog_WINDRES"; then
9059 WINDRES=$ac_cv_prog_WINDRES
9060fi
9061
9062if test -n "$ac_cv_prog_WINDRES"; then
9063 for ncn_progname in windres; do
9064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067$as_echo_n "checking for $ac_word... " >&6; }
9068if test "${ac_cv_prog_WINDRES+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9a819804
AO
9070else
9071 if test -n "$WINDRES"; then
9072 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9073else
9074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075for as_dir in $PATH
9076do
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9081 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9083 break 2
9084 fi
9085done
81ecdfbb
RW
9086 done
9087IFS=$as_save_IFS
9a819804
AO
9088
9089fi
9090fi
9091WINDRES=$ac_cv_prog_WINDRES
9092if test -n "$WINDRES"; then
81ecdfbb
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9094$as_echo "$WINDRES" >&6; }
9a819804 9095else
81ecdfbb
RW
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097$as_echo "no" >&6; }
9a819804
AO
9098fi
9099
81ecdfbb 9100
9a819804
AO
9101 done
9102fi
9103
9104for ncn_progname in windres; do
05cbd757
PB
9105 if test -n "$ncn_tool_prefix"; then
9106 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9107set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109$as_echo_n "checking for $ac_word... " >&6; }
9110if test "${ac_cv_prog_WINDRES+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
859789af
AC
9112else
9113 if test -n "$WINDRES"; then
9114 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9115else
c6b750e1
DJ
9116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117for as_dir in $PATH
9118do
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9123 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9125 break 2
9126 fi
9127done
81ecdfbb
RW
9128 done
9129IFS=$as_save_IFS
c6b750e1 9130
859789af
AC
9131fi
9132fi
c6b750e1 9133WINDRES=$ac_cv_prog_WINDRES
859789af 9134if test -n "$WINDRES"; then
81ecdfbb
RW
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9136$as_echo "$WINDRES" >&6; }
859789af 9137else
81ecdfbb
RW
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139$as_echo "no" >&6; }
859789af
AC
9140fi
9141
81ecdfbb 9142
05cbd757
PB
9143 fi
9144 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9146set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148$as_echo_n "checking for $ac_word... " >&6; }
9149if test "${ac_cv_prog_WINDRES+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
859789af 9151else
05cbd757
PB
9152 if test -n "$WINDRES"; then
9153 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9154else
c6b750e1
DJ
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9162 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9164 break 2
9165 fi
9166done
81ecdfbb
RW
9167 done
9168IFS=$as_save_IFS
c6b750e1 9169
859789af
AC
9170fi
9171fi
c6b750e1 9172WINDRES=$ac_cv_prog_WINDRES
05cbd757 9173if test -n "$WINDRES"; then
81ecdfbb
RW
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9175$as_echo "$WINDRES" >&6; }
859789af 9176else
81ecdfbb
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178$as_echo "no" >&6; }
859789af 9179fi
c6b750e1 9180
81ecdfbb 9181
05cbd757
PB
9182 fi
9183 test -n "$ac_cv_prog_WINDRES" && break
9184done
9185
9186if test -z "$ac_cv_prog_WINDRES" ; then
9187 set dummy windres
9188 if test $build = $host ; then
9189 WINDRES="$2"
859789af 9190 else
05cbd757 9191 WINDRES="${ncn_tool_prefix}$2"
859789af 9192 fi
859789af
AC
9193fi
9194
9a819804
AO
9195
9196
0c24b341
NC
9197if test -n "$WINDMC"; then
9198 ac_cv_prog_WINDMC=$WINDMC
9199elif test -n "$ac_cv_prog_WINDMC"; then
9200 WINDMC=$ac_cv_prog_WINDMC
9201fi
9202
9203if test -n "$ac_cv_prog_WINDMC"; then
9204 for ncn_progname in windmc; do
9205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9206set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208$as_echo_n "checking for $ac_word... " >&6; }
9209if test "${ac_cv_prog_WINDMC+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
0c24b341
NC
9211else
9212 if test -n "$WINDMC"; then
9213 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9214else
9215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216for as_dir in $PATH
9217do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9222 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9224 break 2
9225 fi
9226done
81ecdfbb
RW
9227 done
9228IFS=$as_save_IFS
0c24b341
NC
9229
9230fi
9231fi
9232WINDMC=$ac_cv_prog_WINDMC
9233if test -n "$WINDMC"; then
81ecdfbb
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9235$as_echo "$WINDMC" >&6; }
0c24b341 9236else
81ecdfbb
RW
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238$as_echo "no" >&6; }
0c24b341
NC
9239fi
9240
81ecdfbb 9241
0c24b341
NC
9242 done
9243fi
9244
9245for ncn_progname in windmc; do
9246 if test -n "$ncn_tool_prefix"; then
9247 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
9251if test "${ac_cv_prog_WINDMC+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
0c24b341
NC
9253else
9254 if test -n "$WINDMC"; then
9255 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9256else
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9264 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9266 break 2
9267 fi
9268done
81ecdfbb
RW
9269 done
9270IFS=$as_save_IFS
0c24b341
NC
9271
9272fi
9273fi
9274WINDMC=$ac_cv_prog_WINDMC
9275if test -n "$WINDMC"; then
81ecdfbb
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9277$as_echo "$WINDMC" >&6; }
0c24b341 9278else
81ecdfbb
RW
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
0c24b341
NC
9281fi
9282
81ecdfbb 9283
0c24b341
NC
9284 fi
9285 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9287set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289$as_echo_n "checking for $ac_word... " >&6; }
9290if test "${ac_cv_prog_WINDMC+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
0c24b341
NC
9292else
9293 if test -n "$WINDMC"; then
9294 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9295else
9296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297for as_dir in $PATH
9298do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9303 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9305 break 2
9306 fi
9307done
81ecdfbb
RW
9308 done
9309IFS=$as_save_IFS
0c24b341
NC
9310
9311fi
9312fi
9313WINDMC=$ac_cv_prog_WINDMC
9314if test -n "$WINDMC"; then
81ecdfbb
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9316$as_echo "$WINDMC" >&6; }
0c24b341 9317else
81ecdfbb
RW
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319$as_echo "no" >&6; }
0c24b341
NC
9320fi
9321
81ecdfbb 9322
0c24b341
NC
9323 fi
9324 test -n "$ac_cv_prog_WINDMC" && break
9325done
9326
9327if test -z "$ac_cv_prog_WINDMC" ; then
9328 set dummy windmc
9329 if test $build = $host ; then
9330 WINDMC="$2"
9331 else
9332 WINDMC="${ncn_tool_prefix}$2"
9333 fi
9334fi
9335
9336
9337
9a819804
AO
9338if test -n "$OBJCOPY"; then
9339 ac_cv_prog_OBJCOPY=$OBJCOPY
9340elif test -n "$ac_cv_prog_OBJCOPY"; then
9341 OBJCOPY=$ac_cv_prog_OBJCOPY
9342fi
9343
9344if test -n "$ac_cv_prog_OBJCOPY"; then
9345 for ncn_progname in objcopy; do
9346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349$as_echo_n "checking for $ac_word... " >&6; }
9350if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9a819804
AO
9352else
9353 if test -n "$OBJCOPY"; then
9354 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9363 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9365 break 2
9366 fi
9367done
81ecdfbb
RW
9368 done
9369IFS=$as_save_IFS
9a819804
AO
9370
9371fi
9372fi
9373OBJCOPY=$ac_cv_prog_OBJCOPY
9374if test -n "$OBJCOPY"; then
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9376$as_echo "$OBJCOPY" >&6; }
9a819804 9377else
81ecdfbb
RW
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379$as_echo "no" >&6; }
9a819804
AO
9380fi
9381
81ecdfbb 9382
9a819804
AO
9383 done
9384fi
9385
9386for ncn_progname in objcopy; do
05cbd757
PB
9387 if test -n "$ncn_tool_prefix"; then
9388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9389set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391$as_echo_n "checking for $ac_word... " >&6; }
9392if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
859789af
AC
9394else
9395 if test -n "$OBJCOPY"; then
9396 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9397else
c6b750e1
DJ
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9405 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9407 break 2
9408 fi
9409done
81ecdfbb
RW
9410 done
9411IFS=$as_save_IFS
c6b750e1 9412
859789af
AC
9413fi
9414fi
c6b750e1 9415OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9416if test -n "$OBJCOPY"; then
81ecdfbb
RW
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9418$as_echo "$OBJCOPY" >&6; }
859789af 9419else
81ecdfbb
RW
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421$as_echo "no" >&6; }
859789af
AC
9422fi
9423
81ecdfbb 9424
05cbd757
PB
9425 fi
9426 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9428set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430$as_echo_n "checking for $ac_word... " >&6; }
9431if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
859789af 9433else
05cbd757
PB
9434 if test -n "$OBJCOPY"; then
9435 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9436else
c6b750e1
DJ
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9444 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9446 break 2
9447 fi
9448done
81ecdfbb
RW
9449 done
9450IFS=$as_save_IFS
c6b750e1 9451
859789af
AC
9452fi
9453fi
c6b750e1 9454OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9455if test -n "$OBJCOPY"; then
81ecdfbb
RW
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9457$as_echo "$OBJCOPY" >&6; }
859789af 9458else
81ecdfbb
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
859789af 9461fi
c6b750e1 9462
81ecdfbb 9463
05cbd757
PB
9464 fi
9465 test -n "$ac_cv_prog_OBJCOPY" && break
9466done
9467
9468if test -z "$ac_cv_prog_OBJCOPY" ; then
9469 set dummy objcopy
9470 if test $build = $host ; then
9471 OBJCOPY="$2"
859789af 9472 else
05cbd757 9473 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9474 fi
859789af
AC
9475fi
9476
9a819804
AO
9477
9478
9479if test -n "$OBJDUMP"; then
9480 ac_cv_prog_OBJDUMP=$OBJDUMP
9481elif test -n "$ac_cv_prog_OBJDUMP"; then
9482 OBJDUMP=$ac_cv_prog_OBJDUMP
9483fi
9484
9485if test -n "$ac_cv_prog_OBJDUMP"; then
9486 for ncn_progname in objdump; do
9487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490$as_echo_n "checking for $ac_word... " >&6; }
9491if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9a819804
AO
9493else
9494 if test -n "$OBJDUMP"; then
9495 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9496else
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9504 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9506 break 2
9507 fi
9508done
81ecdfbb
RW
9509 done
9510IFS=$as_save_IFS
9a819804
AO
9511
9512fi
9513fi
9514OBJDUMP=$ac_cv_prog_OBJDUMP
9515if test -n "$OBJDUMP"; then
81ecdfbb
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9517$as_echo "$OBJDUMP" >&6; }
9a819804 9518else
81ecdfbb
RW
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520$as_echo "no" >&6; }
9a819804
AO
9521fi
9522
81ecdfbb 9523
9a819804
AO
9524 done
9525fi
9526
9527for ncn_progname in objdump; do
05cbd757
PB
9528 if test -n "$ncn_tool_prefix"; then
9529 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9530set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532$as_echo_n "checking for $ac_word... " >&6; }
9533if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
859789af
AC
9535else
9536 if test -n "$OBJDUMP"; then
9537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538else
c6b750e1
DJ
9539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540for as_dir in $PATH
9541do
9542 IFS=$as_save_IFS
9543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9546 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9548 break 2
9549 fi
9550done
81ecdfbb
RW
9551 done
9552IFS=$as_save_IFS
c6b750e1 9553
859789af
AC
9554fi
9555fi
c6b750e1 9556OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9557if test -n "$OBJDUMP"; then
81ecdfbb
RW
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9559$as_echo "$OBJDUMP" >&6; }
859789af 9560else
81ecdfbb
RW
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562$as_echo "no" >&6; }
859789af
AC
9563fi
9564
81ecdfbb 9565
05cbd757
PB
9566 fi
9567 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9569set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571$as_echo_n "checking for $ac_word... " >&6; }
9572if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
859789af 9574else
05cbd757
PB
9575 if test -n "$OBJDUMP"; then
9576 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9577else
c6b750e1
DJ
9578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in $PATH
9580do
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9585 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9587 break 2
9588 fi
9589done
81ecdfbb
RW
9590 done
9591IFS=$as_save_IFS
c6b750e1 9592
859789af
AC
9593fi
9594fi
c6b750e1 9595OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9596if test -n "$OBJDUMP"; then
81ecdfbb
RW
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9598$as_echo "$OBJDUMP" >&6; }
859789af 9599else
81ecdfbb
RW
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601$as_echo "no" >&6; }
859789af 9602fi
c6b750e1 9603
81ecdfbb 9604
05cbd757
PB
9605 fi
9606 test -n "$ac_cv_prog_OBJDUMP" && break
9607done
9608
9609if test -z "$ac_cv_prog_OBJDUMP" ; then
9610 set dummy objdump
9611 if test $build = $host ; then
9612 OBJDUMP="$2"
859789af 9613 else
05cbd757 9614 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9615 fi
859789af
AC
9616fi
9617
a0da8069
NN
9618
9619
9620
9621
9622
be01d343 9623# Target tools.
c6b750e1 9624
81ecdfbb
RW
9625# Check whether --with-build-time-tools was given.
9626if test "${with_build_time_tools+set}" = set; then :
9627 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9628 x/*) ;;
9629 *)
9630 with_build_time_tools=
81ecdfbb
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9632$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9633 ;;
9634 esac
859789af 9635else
2429c060 9636 with_build_time_tools=
81ecdfbb
RW
9637fi
9638
859789af 9639
9a819804
AO
9640
9641
9642if test -n "$CC_FOR_TARGET"; then
9643 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9644elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9645 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9646fi
9647
9648if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9649 for ncn_progname in cc gcc; do
9650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653$as_echo_n "checking for $ac_word... " >&6; }
9654if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9a819804
AO
9656else
9657 if test -n "$CC_FOR_TARGET"; then
9658 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9659else
9660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9667 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9669 break 2
9670 fi
9671done
81ecdfbb
RW
9672 done
9673IFS=$as_save_IFS
9a819804
AO
9674
9675fi
9676fi
9677CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9678if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9680$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9681else
81ecdfbb
RW
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683$as_echo "no" >&6; }
9a819804
AO
9684fi
9685
81ecdfbb 9686
9a819804
AO
9687 done
9688fi
9689
9690if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9691 for ncn_progname in cc gcc; do
81ecdfbb
RW
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9693$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9694 if test -x $with_build_time_tools/${ncn_progname}; then
9695 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697$as_echo "yes" >&6; }
cac3d6c4 9698 break
2429c060 9699 else
81ecdfbb
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701$as_echo "no" >&6; }
cac3d6c4
CM
9702 fi
9703 done
55db4b87
PB
9704fi
9705
2429c060
PB
9706if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9707 for ncn_progname in cc gcc; do
9708 if test -n "$ncn_target_tool_prefix"; then
9709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9710set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712$as_echo_n "checking for $ac_word... " >&6; }
9713if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
55db4b87
PB
9715else
9716 if test -n "$CC_FOR_TARGET"; then
9717 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9718else
c6b750e1
DJ
9719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720for as_dir in $PATH
9721do
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9726 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9728 break 2
9729 fi
9730done
81ecdfbb
RW
9731 done
9732IFS=$as_save_IFS
c6b750e1 9733
55db4b87
PB
9734fi
9735fi
c6b750e1 9736CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9737if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9739$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9740else
81ecdfbb
RW
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742$as_echo "no" >&6; }
55db4b87
PB
9743fi
9744
81ecdfbb 9745
2429c060
PB
9746 fi
9747 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9749set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751$as_echo_n "checking for $ac_word... " >&6; }
9752if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
55db4b87 9754else
05cbd757
PB
9755 if test -n "$CC_FOR_TARGET"; then
9756 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9757else
c6b750e1
DJ
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9765 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9767 break 2
9768 fi
9769done
81ecdfbb
RW
9770 done
9771IFS=$as_save_IFS
c6b750e1 9772
55db4b87
PB
9773fi
9774fi
c6b750e1 9775CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9776if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9778$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9779else
81ecdfbb
RW
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
55db4b87 9782fi
c6b750e1 9783
81ecdfbb 9784
2429c060
PB
9785 fi
9786 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9787 done
9788fi
c6b750e1 9789
05cbd757
PB
9790if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9791 set dummy cc gcc
9792 if test $build = $target ; then
9793 CC_FOR_TARGET="$2"
55db4b87 9794 else
05cbd757 9795 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9796 fi
d3f5afc4
MS
9797else
9798 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9799fi
9800
9a819804
AO
9801
9802
9803if test -n "$CXX_FOR_TARGET"; then
9804 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9805elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9806 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9807fi
9808
9809if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9810 for ncn_progname in c++ g++ cxx gxx; do
9811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9812set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
9815if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9a819804
AO
9817else
9818 if test -n "$CXX_FOR_TARGET"; then
9819 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9820else
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9828 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9830 break 2
9831 fi
9832done
81ecdfbb
RW
9833 done
9834IFS=$as_save_IFS
9a819804
AO
9835
9836fi
9837fi
9838CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9839if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9841$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9842else
81ecdfbb
RW
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9a819804
AO
9845fi
9846
81ecdfbb 9847
9a819804
AO
9848 done
9849fi
9850
9851if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9852 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9854$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9855 if test -x $with_build_time_tools/${ncn_progname}; then
9856 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9858$as_echo "yes" >&6; }
2429c060
PB
9859 break
9860 else
81ecdfbb
RW
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862$as_echo "no" >&6; }
2429c060
PB
9863 fi
9864 done
9865fi
9866
9867if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9868 for ncn_progname in c++ g++ cxx gxx; do
9869 if test -n "$ncn_target_tool_prefix"; then
9870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9871set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873$as_echo_n "checking for $ac_word... " >&6; }
9874if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9875 $as_echo_n "(cached) " >&6
55db4b87
PB
9876else
9877 if test -n "$CXX_FOR_TARGET"; then
9878 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9879else
c6b750e1
DJ
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9887 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9889 break 2
9890 fi
9891done
81ecdfbb
RW
9892 done
9893IFS=$as_save_IFS
c6b750e1 9894
55db4b87
PB
9895fi
9896fi
c6b750e1 9897CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9898if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9900$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9901else
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
55db4b87
PB
9904fi
9905
81ecdfbb 9906
2429c060
PB
9907 fi
9908 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9910set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912$as_echo_n "checking for $ac_word... " >&6; }
9913if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
55db4b87 9915else
05cbd757
PB
9916 if test -n "$CXX_FOR_TARGET"; then
9917 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9918else
c6b750e1
DJ
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9926 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9928 break 2
9929 fi
9930done
81ecdfbb
RW
9931 done
9932IFS=$as_save_IFS
c6b750e1 9933
55db4b87
PB
9934fi
9935fi
c6b750e1 9936CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9937if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9939$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9940else
81ecdfbb
RW
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942$as_echo "no" >&6; }
55db4b87 9943fi
c6b750e1 9944
81ecdfbb 9945
2429c060
PB
9946 fi
9947 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9948 done
9949fi
c6b750e1 9950
05cbd757
PB
9951if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9952 set dummy c++ g++ cxx gxx
9953 if test $build = $target ; then
9954 CXX_FOR_TARGET="$2"
55db4b87 9955 else
05cbd757 9956 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9957 fi
d3f5afc4
MS
9958else
9959 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9960fi
9961
9a819804
AO
9962
9963
9964if test -n "$GCC_FOR_TARGET"; then
9965 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9966elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9967 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9968fi
9969
9970if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9971 for ncn_progname in gcc; do
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
9976if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9a819804
AO
9978else
9979 if test -n "$GCC_FOR_TARGET"; then
9980 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9981else
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9989 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9991 break 2
9992 fi
9993done
81ecdfbb
RW
9994 done
9995IFS=$as_save_IFS
9a819804
AO
9996
9997fi
9998fi
9999GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10000if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10002$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10003else
81ecdfbb
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005$as_echo "no" >&6; }
9a819804
AO
10006fi
10007
81ecdfbb 10008
9a819804
AO
10009 done
10010fi
10011
10012if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10013 for ncn_progname in gcc; do
81ecdfbb
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10015$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10016 if test -x $with_build_time_tools/${ncn_progname}; then
10017 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10019$as_echo "yes" >&6; }
2429c060
PB
10020 break
10021 else
81ecdfbb
RW
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023$as_echo "no" >&6; }
2429c060
PB
10024 fi
10025 done
10026fi
10027
10028if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10029 for ncn_progname in gcc; do
10030 if test -n "$ncn_target_tool_prefix"; then
10031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10032set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034$as_echo_n "checking for $ac_word... " >&6; }
10035if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
859789af 10037else
2429c060
PB
10038 if test -n "$GCC_FOR_TARGET"; then
10039 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10040else
c6b750e1
DJ
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10048 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10050 break 2
10051 fi
10052done
81ecdfbb
RW
10053 done
10054IFS=$as_save_IFS
c6b750e1 10055
55db4b87
PB
10056fi
10057fi
c6b750e1 10058GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10059if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10061$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10062else
81ecdfbb
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
55db4b87
PB
10065fi
10066
81ecdfbb 10067
2429c060
PB
10068 fi
10069 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10071set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073$as_echo_n "checking for $ac_word... " >&6; }
10074if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
55db4b87 10076else
05cbd757
PB
10077 if test -n "$GCC_FOR_TARGET"; then
10078 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10079else
c6b750e1
DJ
10080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081for as_dir in $PATH
10082do
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10087 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10089 break 2
10090 fi
10091done
81ecdfbb
RW
10092 done
10093IFS=$as_save_IFS
c6b750e1 10094
55db4b87
PB
10095fi
10096fi
c6b750e1 10097GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10098if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10100$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10101else
81ecdfbb
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103$as_echo "no" >&6; }
55db4b87 10104fi
c6b750e1 10105
81ecdfbb 10106
2429c060
PB
10107 fi
10108 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10109 done
10110fi
c6b750e1 10111
05cbd757
PB
10112if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10113 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10114else
10115 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10116fi
10117
9a819804
AO
10118
10119
10120if test -n "$GCJ_FOR_TARGET"; then
10121 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10122elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10123 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10124fi
10125
10126if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10127 for ncn_progname in gcj; do
10128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10129set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131$as_echo_n "checking for $ac_word... " >&6; }
10132if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
9a819804
AO
10134else
10135 if test -n "$GCJ_FOR_TARGET"; then
10136 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10137else
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10145 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10147 break 2
10148 fi
10149done
81ecdfbb
RW
10150 done
10151IFS=$as_save_IFS
9a819804
AO
10152
10153fi
10154fi
10155GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10156if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10158$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10159else
81ecdfbb
RW
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
9a819804
AO
10162fi
10163
81ecdfbb 10164
9a819804
AO
10165 done
10166fi
10167
10168if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10169 for ncn_progname in gcj; do
81ecdfbb
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10171$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10172 if test -x $with_build_time_tools/${ncn_progname}; then
10173 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175$as_echo "yes" >&6; }
2429c060
PB
10176 break
10177 else
81ecdfbb
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
2429c060
PB
10180 fi
10181 done
10182fi
10183
10184if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10185 for ncn_progname in gcj; do
10186 if test -n "$ncn_target_tool_prefix"; then
10187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10188set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190$as_echo_n "checking for $ac_word... " >&6; }
10191if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
55db4b87
PB
10193else
10194 if test -n "$GCJ_FOR_TARGET"; then
10195 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10196else
c6b750e1
DJ
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10204 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10206 break 2
10207 fi
10208done
81ecdfbb
RW
10209 done
10210IFS=$as_save_IFS
c6b750e1 10211
55db4b87
PB
10212fi
10213fi
9a819804
AO
10214GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10215if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10217$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10218else
81ecdfbb
RW
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
9a819804
AO
10221fi
10222
81ecdfbb 10223
9a819804
AO
10224 fi
10225 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10227set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229$as_echo_n "checking for $ac_word... " >&6; }
10230if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
9a819804
AO
10232else
10233 if test -n "$GCJ_FOR_TARGET"; then
10234 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10235else
10236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237for as_dir in $PATH
10238do
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10243 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10245 break 2
10246 fi
10247done
81ecdfbb
RW
10248 done
10249IFS=$as_save_IFS
9a819804
AO
10250
10251fi
10252fi
10253GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10254if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10256$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10257else
81ecdfbb
RW
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259$as_echo "no" >&6; }
9a819804
AO
10260fi
10261
81ecdfbb 10262
9a819804
AO
10263 fi
10264 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10265 done
10266fi
10267
10268if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10269 set dummy gcj
10270 if test $build = $target ; then
10271 GCJ_FOR_TARGET="$2"
10272 else
10273 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10274 fi
d3f5afc4
MS
10275else
10276 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10277fi
10278
10279
10280
10281if test -n "$GFORTRAN_FOR_TARGET"; then
10282 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10283elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10284 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10285fi
10286
9a819804
AO
10287if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10288 for ncn_progname in gfortran; do
10289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10290set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
10293if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
55db4b87 10295else
9a819804
AO
10296 if test -n "$GFORTRAN_FOR_TARGET"; then
10297 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10298else
c6b750e1
DJ
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10306 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10308 break 2
10309 fi
10310done
81ecdfbb
RW
10311 done
10312IFS=$as_save_IFS
c6b750e1 10313
55db4b87
PB
10314fi
10315fi
9a819804
AO
10316GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10317if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10319$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10320else
81ecdfbb
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
55db4b87 10323fi
c6b750e1 10324
81ecdfbb 10325
2429c060
PB
10326 done
10327fi
c6b750e1 10328
9a819804 10329if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10330 for ncn_progname in gfortran; do
81ecdfbb
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10332$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10333 if test -x $with_build_time_tools/${ncn_progname}; then
10334 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336$as_echo "yes" >&6; }
2429c060
PB
10337 break
10338 else
81ecdfbb
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
2429c060
PB
10341 fi
10342 done
10343fi
10344
10345if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10346 for ncn_progname in gfortran; do
10347 if test -n "$ncn_target_tool_prefix"; then
10348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351$as_echo_n "checking for $ac_word... " >&6; }
10352if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
55db4b87
PB
10354else
10355 if test -n "$GFORTRAN_FOR_TARGET"; then
10356 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10357else
c6b750e1
DJ
10358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359for as_dir in $PATH
10360do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10365 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10367 break 2
10368 fi
10369done
81ecdfbb
RW
10370 done
10371IFS=$as_save_IFS
c6b750e1 10372
55db4b87
PB
10373fi
10374fi
c6b750e1 10375GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10376if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10378$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10379else
81ecdfbb
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
55db4b87
PB
10382fi
10383
81ecdfbb 10384
2429c060
PB
10385 fi
10386 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10388set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390$as_echo_n "checking for $ac_word... " >&6; }
10391if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
55db4b87 10393else
05cbd757 10394 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10395 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10396else
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10404 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10406 break 2
10407 fi
10408done
81ecdfbb
RW
10409 done
10410IFS=$as_save_IFS
c6b750e1 10411
55db4b87
PB
10412fi
10413fi
c6b750e1 10414GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10415if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10417$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10418else
81ecdfbb
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420$as_echo "no" >&6; }
55db4b87 10421fi
c6b750e1 10422
81ecdfbb 10423
2429c060
PB
10424 fi
10425 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10426 done
10427fi
c6b750e1 10428
05cbd757
PB
10429if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10430 set dummy gfortran
10431 if test $build = $target ; then
10432 GFORTRAN_FOR_TARGET="$2"
55db4b87 10433 else
05cbd757 10434 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10435 fi
d3f5afc4
MS
10436else
10437 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10438fi
10439
2429c060
PB
10440
10441
e552509b
ILT
10442if test -n "$GOC_FOR_TARGET"; then
10443 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10444elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10445 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10446fi
10447
10448if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10449 for ncn_progname in gccgo; do
10450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10451set dummy ${ncn_progname}; ac_word=$2
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456else
10457 if test -n "$GOC_FOR_TARGET"; then
10458 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472 done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10478if test -n "$GOC_FOR_TARGET"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10480$as_echo "$GOC_FOR_TARGET" >&6; }
10481else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
10484fi
10485
10486
10487 done
10488fi
10489
10490if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10491 for ncn_progname in gccgo; do
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10493$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10494 if test -x $with_build_time_tools/${ncn_progname}; then
10495 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10497$as_echo "yes" >&6; }
10498 break
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
10502 fi
10503 done
10504fi
10505
10506if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10507 for ncn_progname in gccgo; do
10508 if test -n "$ncn_target_tool_prefix"; then
10509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
10513if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 if test -n "$GOC_FOR_TARGET"; then
10517 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531 done
10532IFS=$as_save_IFS
10533
10534fi
10535fi
10536GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10537if test -n "$GOC_FOR_TARGET"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10539$as_echo "$GOC_FOR_TARGET" >&6; }
10540else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
10543fi
10544
10545
10546 fi
10547 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10549set dummy ${ncn_progname}; ac_word=$2
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551$as_echo_n "checking for $ac_word... " >&6; }
10552if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554else
10555 if test -n "$GOC_FOR_TARGET"; then
10556 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10557else
10558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559for as_dir in $PATH
10560do
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10568 fi
10569done
10570 done
10571IFS=$as_save_IFS
10572
10573fi
10574fi
10575GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10576if test -n "$GOC_FOR_TARGET"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10578$as_echo "$GOC_FOR_TARGET" >&6; }
10579else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581$as_echo "no" >&6; }
10582fi
10583
10584
10585 fi
10586 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10587 done
10588fi
10589
10590if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10591 set dummy gccgo
10592 if test $build = $target ; then
10593 GOC_FOR_TARGET="$2"
10594 else
10595 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10596 fi
10597else
10598 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10599fi
10600
10601
10602
2429c060
PB
10603cat > conftest.c << \EOF
10604#ifdef __GNUC__
10605 gcc_yay;
10606#endif
10607EOF
10608if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10609 have_gcc_for_target=yes
859789af 10610else
2429c060
PB
10611 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10612 have_gcc_for_target=no
859789af 10613fi
2429c060
PB
10614rm conftest.c
10615
10616
10617
859789af 10618
2429c060
PB
10619if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10620 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10622$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10623 if test -x $with_build_time_tools/ar; then
10624 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10625 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10627$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10628 else
81ecdfbb
RW
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630$as_echo "no" >&6; }
3a35eeb3 10631 fi
2429c060
PB
10632 elif test $build != $host && test $have_gcc_for_target = yes; then
10633 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10634 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10635 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10636 fi
2429c060 10637fi
c6b750e1 10638if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10639 # Extract the first word of "ar", so it can be a program name with args.
10640set dummy ar; ac_word=$2
81ecdfbb
RW
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
10643if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
859789af 10645else
c6b750e1
DJ
10646 case $AR_FOR_TARGET in
10647 [\\/]* | ?:[\\/]*)
2429c060
PB
10648 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10649 ;;
2429c060 10650 *)
c6b750e1
DJ
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $gcc_cv_tool_dirs
10653do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10658 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10660 break 2
10661 fi
10662done
81ecdfbb
RW
10663 done
10664IFS=$as_save_IFS
c6b750e1 10665
2429c060
PB
10666 ;;
10667esac
859789af 10668fi
c6b750e1 10669AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10670if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10672$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10673else
81ecdfbb
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
859789af 10676fi
05cbd757 10677
81ecdfbb 10678
2429c060
PB
10679fi
10680if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10681
10682
10683if test -n "$AR_FOR_TARGET"; then
10684 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10685elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10686 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10687fi
10688
10689if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10690 for ncn_progname in ar; do
10691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10692set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694$as_echo_n "checking for $ac_word... " >&6; }
10695if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
9a819804
AO
10697else
10698 if test -n "$AR_FOR_TARGET"; then
10699 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10700else
10701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702for as_dir in $PATH
10703do
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10708 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10710 break 2
10711 fi
10712done
81ecdfbb
RW
10713 done
10714IFS=$as_save_IFS
9a819804
AO
10715
10716fi
10717fi
10718AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10719if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10721$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10722else
81ecdfbb
RW
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724$as_echo "no" >&6; }
9a819804
AO
10725fi
10726
81ecdfbb 10727
9a819804
AO
10728 done
10729fi
10730
10731if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10732 for ncn_progname in ar; do
81ecdfbb
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10734$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10735 if test -x $with_build_time_tools/${ncn_progname}; then
10736 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738$as_echo "yes" >&6; }
2429c060
PB
10739 break
10740 else
81ecdfbb
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742$as_echo "no" >&6; }
2429c060
PB
10743 fi
10744 done
859789af
AC
10745fi
10746
2429c060
PB
10747if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10748 for ncn_progname in ar; do
10749 if test -n "$ncn_target_tool_prefix"; then
10750 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10751set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
10754if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
7e0f7140 10756else
2429c060
PB
10757 if test -n "$AR_FOR_TARGET"; then
10758 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10759else
c6b750e1
DJ
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10767 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10769 break 2
10770 fi
10771done
81ecdfbb
RW
10772 done
10773IFS=$as_save_IFS
c6b750e1 10774
7e0f7140
GK
10775fi
10776fi
c6b750e1 10777AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10778if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10780$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10781else
81ecdfbb
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
7e0f7140
GK
10784fi
10785
81ecdfbb 10786
2429c060
PB
10787 fi
10788 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10790set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
10793if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
7e0f7140 10795else
2429c060
PB
10796 if test -n "$AR_FOR_TARGET"; then
10797 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10798else
c6b750e1
DJ
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10806 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10808 break 2
10809 fi
10810done
81ecdfbb
RW
10811 done
10812IFS=$as_save_IFS
c6b750e1 10813
7e0f7140
GK
10814fi
10815fi
c6b750e1 10816AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10817if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10819$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10820else
81ecdfbb
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
7e0f7140 10823fi
c6b750e1 10824
81ecdfbb 10825
2429c060
PB
10826 fi
10827 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10828 done
10829fi
c6b750e1 10830
2429c060
PB
10831if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10832 set dummy ar
7e0f7140 10833 if test $build = $target ; then
2429c060 10834 AR_FOR_TARGET="$2"
7e0f7140 10835 else
2429c060 10836 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10837 fi
d3f5afc4
MS
10838else
10839 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10840fi
10841
3a35eeb3
PB
10842else
10843 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10844fi
10845
10846
10847
10848
10849if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10850 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10852$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10853 if test -x $with_build_time_tools/as; then
10854 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10855 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10857$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10858 else
81ecdfbb
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
3a35eeb3 10861 fi
2429c060
PB
10862 elif test $build != $host && test $have_gcc_for_target = yes; then
10863 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10864 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10865 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10866 fi
10867fi
c6b750e1 10868if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10869 # Extract the first word of "as", so it can be a program name with args.
10870set dummy as; ac_word=$2
81ecdfbb
RW
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872$as_echo_n "checking for $ac_word... " >&6; }
10873if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
2429c060 10875else
c6b750e1
DJ
10876 case $AS_FOR_TARGET in
10877 [\\/]* | ?:[\\/]*)
2429c060
PB
10878 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10879 ;;
2429c060 10880 *)
c6b750e1
DJ
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $gcc_cv_tool_dirs
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10888 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10890 break 2
10891 fi
10892done
81ecdfbb
RW
10893 done
10894IFS=$as_save_IFS
c6b750e1 10895
2429c060
PB
10896 ;;
10897esac
10898fi
c6b750e1 10899AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10900if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10902$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10903else
81ecdfbb
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905$as_echo "no" >&6; }
2429c060
PB
10906fi
10907
81ecdfbb 10908
2429c060
PB
10909fi
10910if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10911
10912
10913if test -n "$AS_FOR_TARGET"; then
10914 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10915elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10916 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10917fi
10918
10919if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10920 for ncn_progname in as; do
10921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
10925if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
9a819804
AO
10927else
10928 if test -n "$AS_FOR_TARGET"; then
10929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10930else
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10938 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10940 break 2
10941 fi
10942done
81ecdfbb
RW
10943 done
10944IFS=$as_save_IFS
9a819804
AO
10945
10946fi
10947fi
10948AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10949if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10951$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10952else
81ecdfbb
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
9a819804
AO
10955fi
10956
81ecdfbb 10957
9a819804
AO
10958 done
10959fi
10960
10961if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10962 for ncn_progname in as; do
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10965 if test -x $with_build_time_tools/${ncn_progname}; then
10966 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968$as_echo "yes" >&6; }
2429c060
PB
10969 break
10970 else
81ecdfbb
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
2429c060
PB
10973 fi
10974 done
10975fi
10976
10977if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10978 for ncn_progname in as; do
10979 if test -n "$ncn_target_tool_prefix"; then
10980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
2429c060
PB
10986else
10987 if test -n "$AS_FOR_TARGET"; then
10988 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10989else
c6b750e1
DJ
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10997 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10999 break 2
11000 fi
11001done
81ecdfbb
RW
11002 done
11003IFS=$as_save_IFS
c6b750e1 11004
2429c060
PB
11005fi
11006fi
c6b750e1 11007AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11008if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11010$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11011else
81ecdfbb
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
2429c060
PB
11014fi
11015
81ecdfbb 11016
2429c060
PB
11017 fi
11018 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
11023if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
2429c060
PB
11025else
11026 if test -n "$AS_FOR_TARGET"; then
11027 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11028else
c6b750e1
DJ
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11036 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11038 break 2
11039 fi
11040done
81ecdfbb
RW
11041 done
11042IFS=$as_save_IFS
c6b750e1 11043
2429c060
PB
11044fi
11045fi
c6b750e1 11046AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11047if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11049$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11050else
81ecdfbb
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
2429c060 11053fi
c6b750e1 11054
81ecdfbb 11055
2429c060
PB
11056 fi
11057 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11058 done
11059fi
c6b750e1 11060
2429c060
PB
11061if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11062 set dummy as
11063 if test $build = $target ; then
11064 AS_FOR_TARGET="$2"
11065 else
11066 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11067 fi
d3f5afc4
MS
11068else
11069 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11070fi
11071
3a35eeb3
PB
11072else
11073 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11074fi
11075
11076
11077
11078
11079if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11080 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11082$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11083 if test -x $with_build_time_tools/dlltool; then
11084 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11085 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11087$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11088 else
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
3a35eeb3 11091 fi
2429c060
PB
11092 elif test $build != $host && test $have_gcc_for_target = yes; then
11093 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11094 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11095 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11096 fi
11097fi
c6b750e1 11098if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11099 # Extract the first word of "dlltool", so it can be a program name with args.
11100set dummy dlltool; ac_word=$2
81ecdfbb
RW
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102$as_echo_n "checking for $ac_word... " >&6; }
11103if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
2429c060 11105else
c6b750e1
DJ
11106 case $DLLTOOL_FOR_TARGET in
11107 [\\/]* | ?:[\\/]*)
2429c060
PB
11108 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11109 ;;
2429c060 11110 *)
c6b750e1
DJ
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112for as_dir in $gcc_cv_tool_dirs
11113do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11118 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11120 break 2
11121 fi
11122done
81ecdfbb
RW
11123 done
11124IFS=$as_save_IFS
c6b750e1 11125
2429c060
PB
11126 ;;
11127esac
11128fi
c6b750e1 11129DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11130if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11132$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11133else
81ecdfbb
RW
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
2429c060
PB
11136fi
11137
81ecdfbb 11138
2429c060
PB
11139fi
11140if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11141
11142
11143if test -n "$DLLTOOL_FOR_TARGET"; then
11144 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11145elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11146 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11147fi
11148
11149if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11150 for ncn_progname in dlltool; do
11151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11152set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154$as_echo_n "checking for $ac_word... " >&6; }
11155if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
9a819804
AO
11157else
11158 if test -n "$DLLTOOL_FOR_TARGET"; then
11159 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11160else
11161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $PATH
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11168 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11170 break 2
11171 fi
11172done
81ecdfbb
RW
11173 done
11174IFS=$as_save_IFS
9a819804
AO
11175
11176fi
11177fi
11178DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11179if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11181$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11182else
81ecdfbb
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
9a819804
AO
11185fi
11186
81ecdfbb 11187
9a819804
AO
11188 done
11189fi
11190
11191if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11192 for ncn_progname in dlltool; do
81ecdfbb
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11195 if test -x $with_build_time_tools/${ncn_progname}; then
11196 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198$as_echo "yes" >&6; }
2429c060
PB
11199 break
11200 else
81ecdfbb
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202$as_echo "no" >&6; }
2429c060
PB
11203 fi
11204 done
11205fi
11206
11207if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11208 for ncn_progname in dlltool; do
11209 if test -n "$ncn_target_tool_prefix"; then
11210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
11214if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
2429c060
PB
11216else
11217 if test -n "$DLLTOOL_FOR_TARGET"; then
11218 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11219else
c6b750e1
DJ
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11227 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11229 break 2
11230 fi
11231done
81ecdfbb
RW
11232 done
11233IFS=$as_save_IFS
c6b750e1 11234
2429c060
PB
11235fi
11236fi
c6b750e1 11237DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11238if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11240$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11241else
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
2429c060
PB
11244fi
11245
81ecdfbb 11246
2429c060
PB
11247 fi
11248 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
11253if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
2429c060
PB
11255else
11256 if test -n "$DLLTOOL_FOR_TARGET"; then
11257 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11258else
c6b750e1
DJ
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11266 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11268 break 2
11269 fi
11270done
81ecdfbb
RW
11271 done
11272IFS=$as_save_IFS
c6b750e1 11273
2429c060
PB
11274fi
11275fi
c6b750e1 11276DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11277if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11279$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11280else
81ecdfbb
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
2429c060 11283fi
c6b750e1 11284
81ecdfbb 11285
2429c060
PB
11286 fi
11287 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11288 done
11289fi
c6b750e1 11290
2429c060
PB
11291if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11292 set dummy dlltool
11293 if test $build = $target ; then
11294 DLLTOOL_FOR_TARGET="$2"
11295 else
11296 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11297 fi
d3f5afc4
MS
11298else
11299 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11300fi
11301
3a35eeb3
PB
11302else
11303 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11304fi
11305
11306
11307
11308
11309if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11310 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11312$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11313 if test -x $with_build_time_tools/ld; then
11314 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11315 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11317$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11318 else
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
3a35eeb3 11321 fi
2429c060
PB
11322 elif test $build != $host && test $have_gcc_for_target = yes; then
11323 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11324 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11325 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11326 fi
11327fi
c6b750e1 11328if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11329 # Extract the first word of "ld", so it can be a program name with args.
11330set dummy ld; ac_word=$2
81ecdfbb
RW
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332$as_echo_n "checking for $ac_word... " >&6; }
11333if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
2429c060 11335else
c6b750e1
DJ
11336 case $LD_FOR_TARGET in
11337 [\\/]* | ?:[\\/]*)
2429c060
PB
11338 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11339 ;;
2429c060 11340 *)
c6b750e1
DJ
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $gcc_cv_tool_dirs
11343do
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11348 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11350 break 2
11351 fi
11352done
81ecdfbb
RW
11353 done
11354IFS=$as_save_IFS
c6b750e1 11355
2429c060
PB
11356 ;;
11357esac
11358fi
c6b750e1 11359LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11360if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11362$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11363else
81ecdfbb
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
2429c060
PB
11366fi
11367
81ecdfbb 11368
2429c060
PB
11369fi
11370if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11371
11372
11373if test -n "$LD_FOR_TARGET"; then
11374 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11375elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11376 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11377fi
11378
11379if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11380 for ncn_progname in ld; do
11381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11382set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384$as_echo_n "checking for $ac_word... " >&6; }
11385if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
9a819804
AO
11387else
11388 if test -n "$LD_FOR_TARGET"; then
11389 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11398 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11400 break 2
11401 fi
11402done
81ecdfbb
RW
11403 done
11404IFS=$as_save_IFS
9a819804
AO
11405
11406fi
11407fi
11408LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11409if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11411$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11412else
81ecdfbb
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
9a819804
AO
11415fi
11416
81ecdfbb 11417
9a819804
AO
11418 done
11419fi
11420
11421if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11422 for ncn_progname in ld; do
81ecdfbb
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11424$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11425 if test -x $with_build_time_tools/${ncn_progname}; then
11426 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428$as_echo "yes" >&6; }
2429c060
PB
11429 break
11430 else
81ecdfbb
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432$as_echo "no" >&6; }
2429c060
PB
11433 fi
11434 done
11435fi
11436
11437if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11438 for ncn_progname in ld; do
11439 if test -n "$ncn_target_tool_prefix"; then
11440 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11441set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443$as_echo_n "checking for $ac_word... " >&6; }
11444if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
2429c060
PB
11446else
11447 if test -n "$LD_FOR_TARGET"; then
11448 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11449else
c6b750e1
DJ
11450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451for as_dir in $PATH
11452do
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11457 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11459 break 2
11460 fi
11461done
81ecdfbb
RW
11462 done
11463IFS=$as_save_IFS
c6b750e1 11464
2429c060
PB
11465fi
11466fi
c6b750e1 11467LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11468if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11470$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11471else
81ecdfbb
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
2429c060
PB
11474fi
11475
81ecdfbb 11476
2429c060
PB
11477 fi
11478 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11480set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482$as_echo_n "checking for $ac_word... " >&6; }
11483if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
2429c060
PB
11485else
11486 if test -n "$LD_FOR_TARGET"; then
11487 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11488else
c6b750e1
DJ
11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11496 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11498 break 2
11499 fi
11500done
81ecdfbb
RW
11501 done
11502IFS=$as_save_IFS
c6b750e1 11503
2429c060
PB
11504fi
11505fi
c6b750e1 11506LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11507if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11509$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11510else
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
2429c060 11513fi
c6b750e1 11514
81ecdfbb 11515
2429c060
PB
11516 fi
11517 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11518 done
11519fi
c6b750e1 11520
2429c060
PB
11521if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11522 set dummy ld
11523 if test $build = $target ; then
11524 LD_FOR_TARGET="$2"
11525 else
11526 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11527 fi
d3f5afc4
MS
11528else
11529 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11530fi
11531
3a35eeb3
PB
11532else
11533 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11534fi
11535
11536
11537
11538
11539if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11540 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11542$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11543 if test -x $with_build_time_tools/lipo; then
11544 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11545 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11547$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11548 else
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
3a35eeb3 11551 fi
2429c060
PB
11552 elif test $build != $host && test $have_gcc_for_target = yes; then
11553 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11554 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11555 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11556 fi
11557fi
9a819804
AO
11558if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11559 # Extract the first word of "lipo", so it can be a program name with args.
11560set dummy lipo; ac_word=$2
81ecdfbb
RW
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562$as_echo_n "checking for $ac_word... " >&6; }
11563if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
9a819804
AO
11565else
11566 case $LIPO_FOR_TARGET in
11567 [\\/]* | ?:[\\/]*)
11568 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11569 ;;
11570 *)
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $gcc_cv_tool_dirs
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11578 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11580 break 2
11581 fi
11582done
81ecdfbb
RW
11583 done
11584IFS=$as_save_IFS
9a819804
AO
11585
11586 ;;
11587esac
11588fi
11589LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11590if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11592$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11593else
81ecdfbb
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595$as_echo "no" >&6; }
9a819804
AO
11596fi
11597
81ecdfbb 11598
9a819804
AO
11599fi
11600if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11601
11602
11603if test -n "$LIPO_FOR_TARGET"; then
11604 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11605elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11606 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11607fi
11608
11609if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11610 for ncn_progname in lipo; do
11611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
11615if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
2429c060 11617else
9a819804
AO
11618 if test -n "$LIPO_FOR_TARGET"; then
11619 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
c6b750e1
DJ
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11628 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11630 break 2
11631 fi
11632done
81ecdfbb
RW
11633 done
11634IFS=$as_save_IFS
c6b750e1 11635
2429c060 11636fi
9a819804
AO
11637fi
11638LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11639if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11641$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11642else
81ecdfbb
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
2429c060
PB
11645fi
11646
81ecdfbb 11647
9a819804 11648 done
2429c060 11649fi
9a819804
AO
11650
11651if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11652 for ncn_progname in lipo; do
81ecdfbb
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11654$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11655 if test -x $with_build_time_tools/${ncn_progname}; then
11656 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658$as_echo "yes" >&6; }
2429c060
PB
11659 break
11660 else
81ecdfbb
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; }
2429c060
PB
11663 fi
11664 done
11665fi
11666
11667if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11668 for ncn_progname in lipo; do
11669 if test -n "$ncn_target_tool_prefix"; then
11670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11671set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673$as_echo_n "checking for $ac_word... " >&6; }
11674if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
2429c060
PB
11676else
11677 if test -n "$LIPO_FOR_TARGET"; then
11678 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11679else
c6b750e1
DJ
11680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681for as_dir in $PATH
11682do
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11687 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11689 break 2
11690 fi
11691done
81ecdfbb
RW
11692 done
11693IFS=$as_save_IFS
c6b750e1 11694
2429c060
PB
11695fi
11696fi
c6b750e1 11697LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11698if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11700$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11701else
81ecdfbb
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
2429c060
PB
11704fi
11705
81ecdfbb 11706
2429c060
PB
11707 fi
11708 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11710set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712$as_echo_n "checking for $ac_word... " >&6; }
11713if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
2429c060
PB
11715else
11716 if test -n "$LIPO_FOR_TARGET"; then
11717 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11718else
c6b750e1
DJ
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11726 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11728 break 2
11729 fi
11730done
81ecdfbb
RW
11731 done
11732IFS=$as_save_IFS
c6b750e1 11733
2429c060
PB
11734fi
11735fi
c6b750e1 11736LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11737if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11739$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11740else
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; }
2429c060 11743fi
c6b750e1 11744
81ecdfbb 11745
2429c060
PB
11746 fi
11747 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11748 done
11749fi
c6b750e1 11750
2429c060
PB
11751if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11752 set dummy lipo
11753 if test $build = $target ; then
11754 LIPO_FOR_TARGET="$2"
11755 else
11756 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11757 fi
d3f5afc4
MS
11758else
11759 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11760fi
11761
3a35eeb3
PB
11762else
11763 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11764fi
11765
11766
11767
11768
11769if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11770 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11772$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11773 if test -x $with_build_time_tools/nm; then
11774 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11775 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11777$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11778 else
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
3a35eeb3 11781 fi
2429c060
PB
11782 elif test $build != $host && test $have_gcc_for_target = yes; then
11783 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11784 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11785 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11786 fi
11787fi
c6b750e1 11788if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11789 # Extract the first word of "nm", so it can be a program name with args.
11790set dummy nm; ac_word=$2
81ecdfbb
RW
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792$as_echo_n "checking for $ac_word... " >&6; }
11793if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
2429c060 11795else
c6b750e1
DJ
11796 case $NM_FOR_TARGET in
11797 [\\/]* | ?:[\\/]*)
2429c060
PB
11798 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11799 ;;
2429c060 11800 *)
c6b750e1
DJ
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $gcc_cv_tool_dirs
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11808 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11810 break 2
11811 fi
11812done
81ecdfbb
RW
11813 done
11814IFS=$as_save_IFS
c6b750e1 11815
2429c060
PB
11816 ;;
11817esac
11818fi
c6b750e1 11819NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11820if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11822$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11823else
81ecdfbb
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
2429c060
PB
11826fi
11827
81ecdfbb 11828
2429c060
PB
11829fi
11830if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11831
11832
11833if test -n "$NM_FOR_TARGET"; then
11834 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11835elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11836 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11837fi
11838
11839if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11840 for ncn_progname in nm; do
11841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11842set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844$as_echo_n "checking for $ac_word... " >&6; }
11845if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
9a819804
AO
11847else
11848 if test -n "$NM_FOR_TARGET"; then
11849 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11850else
11851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $PATH
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11858 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11860 break 2
11861 fi
11862done
81ecdfbb
RW
11863 done
11864IFS=$as_save_IFS
9a819804
AO
11865
11866fi
11867fi
11868NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11869if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11871$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11872else
81ecdfbb
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
9a819804
AO
11875fi
11876
81ecdfbb 11877
9a819804
AO
11878 done
11879fi
11880
11881if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11882 for ncn_progname in nm; do
81ecdfbb
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11884$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11885 if test -x $with_build_time_tools/${ncn_progname}; then
11886 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888$as_echo "yes" >&6; }
2429c060
PB
11889 break
11890 else
81ecdfbb
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
2429c060
PB
11893 fi
11894 done
11895fi
11896
11897if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11898 for ncn_progname in nm; do
11899 if test -n "$ncn_target_tool_prefix"; then
11900 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11901set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
11904if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
859789af 11906else
55db4b87
PB
11907 if test -n "$NM_FOR_TARGET"; then
11908 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11909else
c6b750e1
DJ
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11917 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11919 break 2
11920 fi
11921done
81ecdfbb
RW
11922 done
11923IFS=$as_save_IFS
c6b750e1 11924
859789af
AC
11925fi
11926fi
c6b750e1 11927NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11928if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11930$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11931else
81ecdfbb
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
859789af
AC
11934fi
11935
81ecdfbb 11936
2429c060
PB
11937 fi
11938 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11940set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
11943if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
859789af 11945else
05cbd757
PB
11946 if test -n "$NM_FOR_TARGET"; then
11947 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11948else
c6b750e1
DJ
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11956 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11958 break 2
11959 fi
11960done
81ecdfbb
RW
11961 done
11962IFS=$as_save_IFS
c6b750e1 11963
859789af
AC
11964fi
11965fi
c6b750e1 11966NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11967if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11969$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11970else
81ecdfbb
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
859789af 11973fi
c6b750e1 11974
81ecdfbb 11975
2429c060
PB
11976 fi
11977 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11978 done
11979fi
c6b750e1 11980
05cbd757
PB
11981if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11982 set dummy nm
11983 if test $build = $target ; then
11984 NM_FOR_TARGET="$2"
859789af 11985 else
05cbd757 11986 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11987 fi
d3f5afc4
MS
11988else
11989 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11990fi
11991
3a35eeb3
PB
11992else
11993 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11994fi
11995
11996
11997
11998
11999if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12000 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12002$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12003 if test -x $with_build_time_tools/objdump; then
12004 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12005 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12007$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12008 else
81ecdfbb
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
3a35eeb3 12011 fi
2429c060
PB
12012 elif test $build != $host && test $have_gcc_for_target = yes; then
12013 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12014 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12015 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12016 fi
12017fi
c6b750e1 12018if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12019 # Extract the first word of "objdump", so it can be a program name with args.
12020set dummy objdump; ac_word=$2
81ecdfbb
RW
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022$as_echo_n "checking for $ac_word... " >&6; }
12023if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
2429c060 12025else
c6b750e1
DJ
12026 case $OBJDUMP_FOR_TARGET in
12027 [\\/]* | ?:[\\/]*)
2429c060
PB
12028 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12029 ;;
2429c060 12030 *)
c6b750e1
DJ
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $gcc_cv_tool_dirs
12033do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12038 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12040 break 2
12041 fi
12042done
81ecdfbb
RW
12043 done
12044IFS=$as_save_IFS
c6b750e1 12045
2429c060
PB
12046 ;;
12047esac
12048fi
c6b750e1 12049OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12050if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12052$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12053else
81ecdfbb
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
2429c060
PB
12056fi
12057
81ecdfbb 12058
2429c060
PB
12059fi
12060if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12061
12062
12063if test -n "$OBJDUMP_FOR_TARGET"; then
12064 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12065elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12066 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12067fi
12068
12069if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12070 for ncn_progname in objdump; do
12071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12072set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
9a819804
AO
12077else
12078 if test -n "$OBJDUMP_FOR_TARGET"; then
12079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12088 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12090 break 2
12091 fi
12092done
81ecdfbb
RW
12093 done
12094IFS=$as_save_IFS
9a819804
AO
12095
12096fi
12097fi
12098OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12099if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12101$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12102else
81ecdfbb
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
9a819804
AO
12105fi
12106
81ecdfbb 12107
9a819804
AO
12108 done
12109fi
12110
12111if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12112 for ncn_progname in objdump; do
81ecdfbb
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12114$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12115 if test -x $with_build_time_tools/${ncn_progname}; then
12116 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118$as_echo "yes" >&6; }
2429c060
PB
12119 break
12120 else
81ecdfbb
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122$as_echo "no" >&6; }
2429c060
PB
12123 fi
12124 done
12125fi
12126
12127if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12128 for ncn_progname in objdump; do
12129 if test -n "$ncn_target_tool_prefix"; then
12130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
5ae72758
DJ
12136else
12137 if test -n "$OBJDUMP_FOR_TARGET"; then
12138 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12139else
c6b750e1
DJ
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12147 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12149 break 2
12150 fi
12151done
81ecdfbb
RW
12152 done
12153IFS=$as_save_IFS
c6b750e1 12154
5ae72758
DJ
12155fi
12156fi
c6b750e1 12157OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12158if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12160$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12161else
81ecdfbb
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
5ae72758
DJ
12164fi
12165
81ecdfbb 12166
2429c060
PB
12167 fi
12168 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12170set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172$as_echo_n "checking for $ac_word... " >&6; }
12173if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
5ae72758
DJ
12175else
12176 if test -n "$OBJDUMP_FOR_TARGET"; then
12177 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12178else
c6b750e1
DJ
12179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $PATH
12181do
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12186 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12188 break 2
12189 fi
12190done
81ecdfbb
RW
12191 done
12192IFS=$as_save_IFS
c6b750e1 12193
5ae72758
DJ
12194fi
12195fi
c6b750e1 12196OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12197if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12199$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12200else
81ecdfbb
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
5ae72758 12203fi
c6b750e1 12204
81ecdfbb 12205
2429c060
PB
12206 fi
12207 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12208 done
12209fi
c6b750e1 12210
5ae72758
DJ
12211if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12212 set dummy objdump
12213 if test $build = $target ; then
12214 OBJDUMP_FOR_TARGET="$2"
12215 else
12216 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12217 fi
d3f5afc4
MS
12218else
12219 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12220fi
12221
3a35eeb3
PB
12222else
12223 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12224fi
12225
12226
12227
12228
12229if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12230 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12232$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12233 if test -x $with_build_time_tools/ranlib; then
12234 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12235 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12237$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12238 else
81ecdfbb
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
3a35eeb3 12241 fi
2429c060
PB
12242 elif test $build != $host && test $have_gcc_for_target = yes; then
12243 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12244 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12245 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12246 fi
12247fi
c6b750e1 12248if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12249 # Extract the first word of "ranlib", so it can be a program name with args.
12250set dummy ranlib; ac_word=$2
81ecdfbb
RW
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
12253if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
2429c060 12255else
c6b750e1
DJ
12256 case $RANLIB_FOR_TARGET in
12257 [\\/]* | ?:[\\/]*)
2429c060
PB
12258 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12259 ;;
2429c060 12260 *)
c6b750e1
DJ
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $gcc_cv_tool_dirs
12263do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12268 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12270 break 2
12271 fi
12272done
81ecdfbb
RW
12273 done
12274IFS=$as_save_IFS
c6b750e1 12275
2429c060
PB
12276 ;;
12277esac
12278fi
c6b750e1 12279RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12280if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12282$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12283else
81ecdfbb
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
2429c060
PB
12286fi
12287
81ecdfbb 12288
2429c060
PB
12289fi
12290if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12291
12292
12293if test -n "$RANLIB_FOR_TARGET"; then
12294 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12295elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12296 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12297fi
12298
12299if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12300 for ncn_progname in ranlib; do
12301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12302set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304$as_echo_n "checking for $ac_word... " >&6; }
12305if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
9a819804
AO
12307else
12308 if test -n "$RANLIB_FOR_TARGET"; then
12309 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12310else
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12318 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12320 break 2
12321 fi
12322done
81ecdfbb
RW
12323 done
12324IFS=$as_save_IFS
9a819804
AO
12325
12326fi
12327fi
12328RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12329if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12331$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12332else
81ecdfbb
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
9a819804
AO
12335fi
12336
81ecdfbb 12337
9a819804
AO
12338 done
12339fi
12340
12341if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12342 for ncn_progname in ranlib; do
81ecdfbb
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12344$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12345 if test -x $with_build_time_tools/${ncn_progname}; then
12346 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348$as_echo "yes" >&6; }
2429c060
PB
12349 break
12350 else
81ecdfbb
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
2429c060
PB
12353 fi
12354 done
12355fi
12356
12357if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12358 for ncn_progname in ranlib; do
12359 if test -n "$ncn_target_tool_prefix"; then
12360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12361set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363$as_echo_n "checking for $ac_word... " >&6; }
12364if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
859789af 12366else
55db4b87
PB
12367 if test -n "$RANLIB_FOR_TARGET"; then
12368 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12369else
c6b750e1
DJ
12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in $PATH
12372do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12377 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12379 break 2
12380 fi
12381done
81ecdfbb
RW
12382 done
12383IFS=$as_save_IFS
c6b750e1 12384
859789af
AC
12385fi
12386fi
c6b750e1 12387RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12388if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12390$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12391else
81ecdfbb
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
859789af
AC
12394fi
12395
81ecdfbb 12396
2429c060
PB
12397 fi
12398 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12400set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402$as_echo_n "checking for $ac_word... " >&6; }
12403if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
859789af 12405else
05cbd757
PB
12406 if test -n "$RANLIB_FOR_TARGET"; then
12407 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12408else
c6b750e1
DJ
12409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $PATH
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12416 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12418 break 2
12419 fi
12420done
81ecdfbb
RW
12421 done
12422IFS=$as_save_IFS
c6b750e1 12423
859789af
AC
12424fi
12425fi
c6b750e1 12426RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12427if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12429$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12430else
81ecdfbb
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
859789af 12433fi
c6b750e1 12434
81ecdfbb 12435
2429c060
PB
12436 fi
12437 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12438 done
12439fi
c6b750e1 12440
2429c060
PB
12441if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12442 set dummy ranlib
12443 if test $build = $target ; then
12444 RANLIB_FOR_TARGET="$2"
12445 else
12446 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12447 fi
d3f5afc4
MS
12448else
12449 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12450fi
05cbd757 12451
3a35eeb3
PB
12452else
12453 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12454fi
12455
2429c060
PB
12456
12457
12458
12459if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12460 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12462$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12463 if test -x $with_build_time_tools/strip; then
12464 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12465 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12467$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12468 else
81ecdfbb
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
3a35eeb3 12471 fi
2429c060
PB
12472 elif test $build != $host && test $have_gcc_for_target = yes; then
12473 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12474 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12475 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12476 fi
12477fi
c6b750e1 12478if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12479 # Extract the first word of "strip", so it can be a program name with args.
12480set dummy strip; ac_word=$2
81ecdfbb
RW
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
2429c060 12485else
c6b750e1
DJ
12486 case $STRIP_FOR_TARGET in
12487 [\\/]* | ?:[\\/]*)
2429c060
PB
12488 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12489 ;;
2429c060 12490 *)
c6b750e1
DJ
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in $gcc_cv_tool_dirs
12493do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12498 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12500 break 2
12501 fi
12502done
81ecdfbb
RW
12503 done
12504IFS=$as_save_IFS
c6b750e1 12505
2429c060
PB
12506 ;;
12507esac
12508fi
c6b750e1 12509STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12510if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12512$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12513else
81ecdfbb
RW
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
2429c060
PB
12516fi
12517
81ecdfbb 12518
2429c060
PB
12519fi
12520if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12521
12522
12523if test -n "$STRIP_FOR_TARGET"; then
12524 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12525elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12526 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12527fi
12528
12529if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12530 for ncn_progname in strip; do
12531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534$as_echo_n "checking for $ac_word... " >&6; }
12535if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
9a819804
AO
12537else
12538 if test -n "$STRIP_FOR_TARGET"; then
12539 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12540else
12541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $PATH
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12548 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12550 break 2
12551 fi
12552done
81ecdfbb
RW
12553 done
12554IFS=$as_save_IFS
9a819804
AO
12555
12556fi
12557fi
12558STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12559if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12561$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12562else
81ecdfbb
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564$as_echo "no" >&6; }
9a819804
AO
12565fi
12566
81ecdfbb 12567
9a819804
AO
12568 done
12569fi
12570
12571if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12572 for ncn_progname in strip; do
81ecdfbb
RW
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12574$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12575 if test -x $with_build_time_tools/${ncn_progname}; then
12576 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578$as_echo "yes" >&6; }
2429c060
PB
12579 break
12580 else
81ecdfbb
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
2429c060
PB
12583 fi
12584 done
12585fi
12586
12587if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12588 for ncn_progname in strip; do
12589 if test -n "$ncn_target_tool_prefix"; then
12590 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12591set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
12594if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
7e0f7140
GK
12596else
12597 if test -n "$STRIP_FOR_TARGET"; then
12598 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12607 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12609 break 2
12610 fi
12611done
81ecdfbb
RW
12612 done
12613IFS=$as_save_IFS
c6b750e1 12614
7e0f7140
GK
12615fi
12616fi
c6b750e1 12617STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12618if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12620$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12621else
81ecdfbb
RW
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
7e0f7140
GK
12624fi
12625
81ecdfbb 12626
2429c060
PB
12627 fi
12628 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12630set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632$as_echo_n "checking for $ac_word... " >&6; }
12633if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
7e0f7140
GK
12635else
12636 if test -n "$STRIP_FOR_TARGET"; then
12637 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12638else
c6b750e1
DJ
12639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $PATH
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12646 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12648 break 2
12649 fi
12650done
81ecdfbb
RW
12651 done
12652IFS=$as_save_IFS
c6b750e1 12653
7e0f7140
GK
12654fi
12655fi
c6b750e1 12656STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12657if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12659$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12660else
81ecdfbb
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
7e0f7140 12663fi
c6b750e1 12664
81ecdfbb 12665
2429c060
PB
12666 fi
12667 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12668 done
12669fi
c6b750e1 12670
7e0f7140
GK
12671if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12672 set dummy strip
12673 if test $build = $target ; then
12674 STRIP_FOR_TARGET="$2"
12675 else
12676 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12677 fi
d3f5afc4
MS
12678else
12679 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12680fi
12681
3a35eeb3
PB
12682else
12683 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12684fi
12685
12686
12687
12688
12689if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12690 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12692$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12693 if test -x $with_build_time_tools/windres; then
12694 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12695 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12697$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12698 else
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
3a35eeb3 12701 fi
2429c060
PB
12702 elif test $build != $host && test $have_gcc_for_target = yes; then
12703 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12704 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12705 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12706 fi
12707fi
c6b750e1 12708if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12709 # Extract the first word of "windres", so it can be a program name with args.
12710set dummy windres; ac_word=$2
81ecdfbb
RW
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712$as_echo_n "checking for $ac_word... " >&6; }
12713if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12714 $as_echo_n "(cached) " >&6
2429c060 12715else
c6b750e1
DJ
12716 case $WINDRES_FOR_TARGET in
12717 [\\/]* | ?:[\\/]*)
2429c060
PB
12718 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12719 ;;
2429c060 12720 *)
c6b750e1
DJ
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722for as_dir in $gcc_cv_tool_dirs
12723do
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12728 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12730 break 2
12731 fi
12732done
81ecdfbb
RW
12733 done
12734IFS=$as_save_IFS
c6b750e1 12735
2429c060
PB
12736 ;;
12737esac
12738fi
c6b750e1 12739WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12740if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12742$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12743else
81ecdfbb
RW
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745$as_echo "no" >&6; }
2429c060
PB
12746fi
12747
81ecdfbb 12748
2429c060
PB
12749fi
12750if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12751
12752
12753if test -n "$WINDRES_FOR_TARGET"; then
12754 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12755elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12756 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12757fi
12758
12759if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12760 for ncn_progname in windres; do
12761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12762set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764$as_echo_n "checking for $ac_word... " >&6; }
12765if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
9a819804
AO
12767else
12768 if test -n "$WINDRES_FOR_TARGET"; then
12769 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12770else
12771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $PATH
12773do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12778 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12780 break 2
12781 fi
12782done
81ecdfbb
RW
12783 done
12784IFS=$as_save_IFS
9a819804
AO
12785
12786fi
12787fi
12788WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12789if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12791$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12792else
81ecdfbb
RW
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794$as_echo "no" >&6; }
9a819804
AO
12795fi
12796
81ecdfbb 12797
9a819804
AO
12798 done
12799fi
12800
12801if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12802 for ncn_progname in windres; do
81ecdfbb
RW
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12804$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12805 if test -x $with_build_time_tools/${ncn_progname}; then
12806 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808$as_echo "yes" >&6; }
2429c060
PB
12809 break
12810 else
81ecdfbb
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812$as_echo "no" >&6; }
2429c060
PB
12813 fi
12814 done
12815fi
12816
12817if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12818 for ncn_progname in windres; do
12819 if test -n "$ncn_target_tool_prefix"; then
12820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12821set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823$as_echo_n "checking for $ac_word... " >&6; }
12824if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
859789af 12826else
55db4b87
PB
12827 if test -n "$WINDRES_FOR_TARGET"; then
12828 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12829else
c6b750e1
DJ
12830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831for as_dir in $PATH
12832do
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12835 for ac_exec_ext in '' $ac_executable_extensions; do
12836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12837 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12839 break 2
12840 fi
12841done
81ecdfbb
RW
12842 done
12843IFS=$as_save_IFS
c6b750e1 12844
859789af
AC
12845fi
12846fi
c6b750e1 12847WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12848if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12850$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12851else
81ecdfbb
RW
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853$as_echo "no" >&6; }
859789af
AC
12854fi
12855
81ecdfbb 12856
2429c060
PB
12857 fi
12858 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12860set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
12863if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
859789af 12865else
05cbd757
PB
12866 if test -n "$WINDRES_FOR_TARGET"; then
12867 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12868else
c6b750e1
DJ
12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12876 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12878 break 2
12879 fi
12880done
81ecdfbb
RW
12881 done
12882IFS=$as_save_IFS
c6b750e1 12883
859789af
AC
12884fi
12885fi
c6b750e1 12886WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12887if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12889$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12890else
81ecdfbb
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
859789af 12893fi
c6b750e1 12894
81ecdfbb 12895
2429c060
PB
12896 fi
12897 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12898 done
12899fi
c6b750e1 12900
05cbd757
PB
12901if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12902 set dummy windres
12903 if test $build = $target ; then
12904 WINDRES_FOR_TARGET="$2"
859789af 12905 else
05cbd757 12906 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12907 fi
d3f5afc4
MS
12908else
12909 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12910fi
12911
3a35eeb3
PB
12912else
12913 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12914fi
12915
852e5f18 12916
0c24b341
NC
12917
12918
12919if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12920 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12922$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12923 if test -x $with_build_time_tools/windmc; then
12924 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12925 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12927$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12928 else
81ecdfbb
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
0c24b341
NC
12931 fi
12932 elif test $build != $host && test $have_gcc_for_target = yes; then
12933 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12934 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12935 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12936 fi
12937fi
12938if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12939 # Extract the first word of "windmc", so it can be a program name with args.
12940set dummy windmc; ac_word=$2
81ecdfbb
RW
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942$as_echo_n "checking for $ac_word... " >&6; }
12943if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
0c24b341
NC
12945else
12946 case $WINDMC_FOR_TARGET in
12947 [\\/]* | ?:[\\/]*)
12948 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12949 ;;
12950 *)
12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952for as_dir in $gcc_cv_tool_dirs
12953do
12954 IFS=$as_save_IFS
12955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12958 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12960 break 2
12961 fi
12962done
81ecdfbb
RW
12963 done
12964IFS=$as_save_IFS
0c24b341
NC
12965
12966 ;;
12967esac
12968fi
12969WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12970if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12972$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12973else
81ecdfbb
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
0c24b341
NC
12976fi
12977
81ecdfbb 12978
0c24b341
NC
12979fi
12980if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12981
12982
12983if test -n "$WINDMC_FOR_TARGET"; then
12984 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12985elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12986 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12987fi
12988
12989if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12990 for ncn_progname in windmc; do
12991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12992set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994$as_echo_n "checking for $ac_word... " >&6; }
12995if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
0c24b341
NC
12997else
12998 if test -n "$WINDMC_FOR_TARGET"; then
12999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13000else
13001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13010 break 2
13011 fi
13012done
81ecdfbb
RW
13013 done
13014IFS=$as_save_IFS
0c24b341
NC
13015
13016fi
13017fi
13018WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13019if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13021$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13022else
81ecdfbb
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
0c24b341
NC
13025fi
13026
81ecdfbb 13027
0c24b341
NC
13028 done
13029fi
13030
13031if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13032 for ncn_progname in windmc; do
81ecdfbb
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13034$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13035 if test -x $with_build_time_tools/${ncn_progname}; then
13036 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13038$as_echo "yes" >&6; }
0c24b341
NC
13039 break
13040 else
81ecdfbb
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042$as_echo "no" >&6; }
0c24b341
NC
13043 fi
13044 done
13045fi
13046
13047if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13048 for ncn_progname in windmc; do
13049 if test -n "$ncn_target_tool_prefix"; then
13050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13051set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053$as_echo_n "checking for $ac_word... " >&6; }
13054if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
0c24b341
NC
13056else
13057 if test -n "$WINDMC_FOR_TARGET"; then
13058 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13059else
13060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061for as_dir in $PATH
13062do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13067 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13069 break 2
13070 fi
13071done
81ecdfbb
RW
13072 done
13073IFS=$as_save_IFS
0c24b341
NC
13074
13075fi
13076fi
13077WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13078if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13080$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13081else
81ecdfbb
RW
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083$as_echo "no" >&6; }
0c24b341
NC
13084fi
13085
81ecdfbb 13086
0c24b341
NC
13087 fi
13088 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13090set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092$as_echo_n "checking for $ac_word... " >&6; }
13093if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
0c24b341
NC
13095else
13096 if test -n "$WINDMC_FOR_TARGET"; then
13097 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13098else
13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $PATH
13101do
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13106 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13108 break 2
13109 fi
13110done
81ecdfbb
RW
13111 done
13112IFS=$as_save_IFS
0c24b341
NC
13113
13114fi
13115fi
13116WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13117if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13119$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13120else
81ecdfbb
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
0c24b341
NC
13123fi
13124
81ecdfbb 13125
0c24b341
NC
13126 fi
13127 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13128 done
13129fi
13130
13131if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13132 set dummy windmc
13133 if test $build = $target ; then
13134 WINDMC_FOR_TARGET="$2"
13135 else
13136 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13137 fi
13138else
13139 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13140fi
13141
13142else
13143 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13144fi
13145
13146
be01d343
PB
13147RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13148
81ecdfbb
RW
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13150$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13151if test "x${build}" != "x${host}" ; then
2429c060
PB
13152 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13153 # We already found the complete path
b8025f34 13154 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13156$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13157 else
13158 # Canadian cross, just use what we found
81ecdfbb
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13160$as_echo "pre-installed" >&6; }
2429c060 13161 fi
be01d343
PB
13162else
13163 ok=yes
13164 case " ${configdirs} " in
13165 *" binutils "*) ;;
13166 *) ok=no ;;
13167 esac
c6b750e1 13168
be01d343
PB
13169 if test $ok = yes; then
13170 # An in-tree tool is available and we can use it
13171 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13173$as_echo "just compiled" >&6; }
2429c060
PB
13174 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13175 # We already found the complete path
b8025f34 13176 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13178$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13179 elif test "x$target" = "x$host"; then
13180 # We can use an host tool
13181 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13183$as_echo "host tool" >&6; }
be01d343
PB
13184 else
13185 # We need a cross tool
81ecdfbb
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13187$as_echo "pre-installed" >&6; }
be01d343
PB
13188 fi
13189fi
4b900473 13190
81ecdfbb
RW
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13192$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13193if test "x${build}" != "x${host}" ; then
2429c060
PB
13194 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13195 # We already found the complete path
b8025f34 13196 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13198$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13199 else
13200 # Canadian cross, just use what we found
81ecdfbb
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13202$as_echo "pre-installed" >&6; }
2429c060 13203 fi
be01d343
PB
13204else
13205 ok=yes
13206 case " ${configdirs} " in
13207 *" gas "*) ;;
13208 *) ok=no ;;
13209 esac
c6b750e1 13210
be01d343
PB
13211 if test $ok = yes; then
13212 # An in-tree tool is available and we can use it
13213 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13215$as_echo "just compiled" >&6; }
2429c060
PB
13216 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13217 # We already found the complete path
b8025f34 13218 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13220$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13221 elif test "x$target" = "x$host"; then
13222 # We can use an host tool
13223 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13225$as_echo "host tool" >&6; }
be01d343
PB
13226 else
13227 # We need a cross tool
81ecdfbb
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13229$as_echo "pre-installed" >&6; }
be01d343
PB
13230 fi
13231fi
4b900473 13232
81ecdfbb
RW
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13234$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13235if test "x${build}" != "x${host}" ; then
2429c060
PB
13236 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13237 # We already found the complete path
b8025f34 13238 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13240$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13241 else
13242 # Canadian cross, just use what we found
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13244$as_echo "pre-installed" >&6; }
2429c060 13245 fi
be01d343
PB
13246else
13247 ok=yes
13248 case " ${configdirs} " in
13249 *" gcc "*) ;;
13250 *) ok=no ;;
13251 esac
c6b750e1 13252
be01d343
PB
13253 if test $ok = yes; then
13254 # An in-tree tool is available and we can use it
13255 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13257$as_echo "just compiled" >&6; }
2429c060
PB
13258 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13259 # We already found the complete path
b8025f34 13260 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13262$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13263 elif test "x$target" = "x$host"; then
13264 # We can use an host tool
13265 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13267$as_echo "host tool" >&6; }
be01d343
PB
13268 else
13269 # We need a cross tool
81ecdfbb
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13271$as_echo "pre-installed" >&6; }
be01d343
PB
13272 fi
13273fi
4b900473 13274
81ecdfbb
RW
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13276$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13277if test "x${build}" != "x${host}" ; then
2429c060
PB
13278 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13279 # We already found the complete path
b8025f34 13280 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13282$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13283 else
13284 # Canadian cross, just use what we found
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13286$as_echo "pre-installed" >&6; }
2429c060 13287 fi
be01d343
PB
13288else
13289 ok=yes
13290 case " ${configdirs} " in
13291 *" gcc "*) ;;
13292 *) ok=no ;;
13293 esac
13294 case ,${enable_languages}, in
13295 *,c++,*) ;;
13296 *) ok=no ;;
13297 esac
13298 if test $ok = yes; then
13299 # An in-tree tool is available and we can use it
87cda2cf 13300 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13302$as_echo "just compiled" >&6; }
2429c060
PB
13303 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13304 # We already found the complete path
b8025f34 13305 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13307$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13308 elif test "x$target" = "x$host"; then
13309 # We can use an host tool
13310 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13312$as_echo "host tool" >&6; }
be01d343
PB
13313 else
13314 # We need a cross tool
81ecdfbb
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13316$as_echo "pre-installed" >&6; }
be01d343
PB
13317 fi
13318fi
4b900473 13319
81ecdfbb
RW
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13321$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13322if test "x${build}" != "x${host}" ; then
2429c060
PB
13323 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13324 # We already found the complete path
b8025f34 13325 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13327$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13328 else
13329 # Canadian cross, just use what we found
81ecdfbb
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13331$as_echo "pre-installed" >&6; }
2429c060 13332 fi
be01d343
PB
13333else
13334 ok=yes
13335 case " ${configdirs} " in
13336 *" gcc "*) ;;
13337 *) ok=no ;;
13338 esac
13339 case ,${enable_languages}, in
13340 *,c++,*) ;;
13341 *) ok=no ;;
13342 esac
13343 if test $ok = yes; then
13344 # An in-tree tool is available and we can use it
13345 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
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13347$as_echo "just compiled" >&6; }
2429c060
PB
13348 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13349 # We already found the complete path
b8025f34 13350 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13352$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13353 elif test "x$target" = "x$host"; then
13354 # We can use an host tool
13355 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13357$as_echo "host tool" >&6; }
be01d343
PB
13358 else
13359 # We need a cross tool
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13361$as_echo "pre-installed" >&6; }
be01d343
PB
13362 fi
13363fi
4b900473 13364
81ecdfbb
RW
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13366$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13367if test "x${build}" != "x${host}" ; then
2429c060
PB
13368 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13369 # We already found the complete path
b8025f34 13370 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13372$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13373 else
13374 # Canadian cross, just use what we found
81ecdfbb
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13376$as_echo "pre-installed" >&6; }
2429c060 13377 fi
be01d343
PB
13378else
13379 ok=yes
13380 case " ${configdirs} " in
13381 *" binutils "*) ;;
13382 *) ok=no ;;
13383 esac
c6b750e1 13384
be01d343
PB
13385 if test $ok = yes; then
13386 # An in-tree tool is available and we can use it
13387 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13389$as_echo "just compiled" >&6; }
2429c060
PB
13390 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13391 # We already found the complete path
b8025f34 13392 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13394$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13395 elif test "x$target" = "x$host"; then
13396 # We can use an host tool
13397 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13399$as_echo "host tool" >&6; }
be01d343
PB
13400 else
13401 # We need a cross tool
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13403$as_echo "pre-installed" >&6; }
be01d343
PB
13404 fi
13405fi
4b900473 13406
81ecdfbb
RW
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13408$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13409if test "x${build}" != "x${host}" ; then
2429c060
PB
13410 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13411 # We already found the complete path
b8025f34 13412 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13414$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13415 else
13416 # Canadian cross, just use what we found
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13418$as_echo "pre-installed" >&6; }
2429c060 13419 fi
be01d343
PB
13420else
13421 ok=yes
13422 case " ${configdirs} " in
13423 *" gcc "*) ;;
13424 *) ok=no ;;
13425 esac
c6b750e1 13426
be01d343
PB
13427 if test $ok = yes; then
13428 # An in-tree tool is available and we can use it
13429 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13431$as_echo "just compiled" >&6; }
2429c060
PB
13432 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13433 # We already found the complete path
b8025f34 13434 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13436$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13437 elif test "x$target" = "x$host"; then
13438 # We can use an host tool
13439 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13441$as_echo "host tool" >&6; }
be01d343
PB
13442 else
13443 # We need a cross tool
81ecdfbb
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13445$as_echo "pre-installed" >&6; }
be01d343
PB
13446 fi
13447fi
4b900473 13448
81ecdfbb
RW
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13450$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13451if test "x${build}" != "x${host}" ; then
2429c060
PB
13452 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13453 # We already found the complete path
b8025f34 13454 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13456$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13457 else
13458 # Canadian cross, just use what we found
81ecdfbb
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13460$as_echo "pre-installed" >&6; }
2429c060 13461 fi
be01d343
PB
13462else
13463 ok=yes
13464 case " ${configdirs} " in
13465 *" gcc "*) ;;
13466 *) ok=no ;;
13467 esac
13468 case ,${enable_languages}, in
13469 *,java,*) ;;
13470 *) ok=no ;;
13471 esac
13472 if test $ok = yes; then
13473 # An in-tree tool is available and we can use it
13474 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13476$as_echo "just compiled" >&6; }
2429c060
PB
13477 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13478 # We already found the complete path
b8025f34 13479 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13481$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13482 elif test "x$target" = "x$host"; then
13483 # We can use an host tool
13484 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13486$as_echo "host tool" >&6; }
be01d343
PB
13487 else
13488 # We need a cross tool
81ecdfbb
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13490$as_echo "pre-installed" >&6; }
be01d343
PB
13491 fi
13492fi
4b900473 13493
81ecdfbb
RW
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13495$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13496if test "x${build}" != "x${host}" ; then
2429c060
PB
13497 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13498 # We already found the complete path
b8025f34 13499 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13501$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13502 else
13503 # Canadian cross, just use what we found
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505$as_echo "pre-installed" >&6; }
2429c060 13506 fi
be01d343
PB
13507else
13508 ok=yes
13509 case " ${configdirs} " in
13510 *" gcc "*) ;;
13511 *) ok=no ;;
13512 esac
13513 case ,${enable_languages}, in
13514 *,fortran,*) ;;
13515 *) ok=no ;;
13516 esac
13517 if test $ok = yes; then
13518 # An in-tree tool is available and we can use it
13519 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13521$as_echo "just compiled" >&6; }
2429c060
PB
13522 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13523 # We already found the complete path
b8025f34 13524 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13526$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13527 elif test "x$target" = "x$host"; then
13528 # We can use an host tool
13529 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13531$as_echo "host tool" >&6; }
be01d343
PB
13532 else
13533 # We need a cross tool
81ecdfbb
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13535$as_echo "pre-installed" >&6; }
be01d343
PB
13536 fi
13537fi
4b900473 13538
e552509b
ILT
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13540$as_echo_n "checking where to find the target gccgo... " >&6; }
13541if test "x${build}" != "x${host}" ; then
13542 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13543 # We already found the complete path
13544 ac_dir=`dirname $GOC_FOR_TARGET`
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13546$as_echo "pre-installed in $ac_dir" >&6; }
13547 else
13548 # Canadian cross, just use what we found
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13550$as_echo "pre-installed" >&6; }
13551 fi
13552else
13553 ok=yes
13554 case " ${configdirs} " in
13555 *" gcc "*) ;;
13556 *) ok=no ;;
13557 esac
13558 case ,${enable_languages}, in
13559 *,go,*) ;;
13560 *) ok=no ;;
13561 esac
13562 if test $ok = yes; then
13563 # An in-tree tool is available and we can use it
13564 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13566$as_echo "just compiled" >&6; }
13567 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13568 # We already found the complete path
13569 ac_dir=`dirname $GOC_FOR_TARGET`
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13571$as_echo "pre-installed in $ac_dir" >&6; }
13572 elif test "x$target" = "x$host"; then
13573 # We can use an host tool
13574 GOC_FOR_TARGET='$(GOC)'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13576$as_echo "host tool" >&6; }
13577 else
13578 # We need a cross tool
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13580$as_echo "pre-installed" >&6; }
13581 fi
13582fi
13583
81ecdfbb
RW
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13585$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13586if test "x${build}" != "x${host}" ; then
2429c060
PB
13587 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13588 # We already found the complete path
b8025f34 13589 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13591$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13592 else
13593 # Canadian cross, just use what we found
81ecdfbb
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13595$as_echo "pre-installed" >&6; }
2429c060 13596 fi
be01d343
PB
13597else
13598 ok=yes
13599 case " ${configdirs} " in
13600 *" ld "*) ;;
13601 *) ok=no ;;
13602 esac
c6b750e1 13603
be01d343
PB
13604 if test $ok = yes; then
13605 # An in-tree tool is available and we can use it
13606 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13608$as_echo "just compiled" >&6; }
2429c060
PB
13609 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13610 # We already found the complete path
b8025f34 13611 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13613$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13614 elif test "x$target" = "x$host"; then
13615 # We can use an host tool
13616 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13618$as_echo "host tool" >&6; }
be01d343
PB
13619 else
13620 # We need a cross tool
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13622$as_echo "pre-installed" >&6; }
be01d343
PB
13623 fi
13624fi
4b900473 13625
81ecdfbb
RW
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13627$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13628if test "x${build}" != "x${host}" ; then
2429c060
PB
13629 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13630 # We already found the complete path
b8025f34 13631 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13634 else
13635 # Canadian cross, just use what we found
81ecdfbb
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637$as_echo "pre-installed" >&6; }
2429c060 13638 fi
be01d343 13639else
2429c060
PB
13640 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13641 # We already found the complete path
b8025f34 13642 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13645 elif test "x$target" = "x$host"; then
be01d343
PB
13646 # We can use an host tool
13647 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13649$as_echo "host tool" >&6; }
be01d343
PB
13650 else
13651 # We need a cross tool
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13653$as_echo "pre-installed" >&6; }
be01d343
PB
13654 fi
13655fi
4b900473 13656
81ecdfbb
RW
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13658$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13659if test "x${build}" != "x${host}" ; then
2429c060
PB
13660 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13661 # We already found the complete path
b8025f34 13662 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13664$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13665 else
13666 # Canadian cross, just use what we found
81ecdfbb
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13668$as_echo "pre-installed" >&6; }
2429c060 13669 fi
be01d343
PB
13670else
13671 ok=yes
13672 case " ${configdirs} " in
13673 *" binutils "*) ;;
13674 *) ok=no ;;
13675 esac
c6b750e1 13676
be01d343
PB
13677 if test $ok = yes; then
13678 # An in-tree tool is available and we can use it
13679 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13681$as_echo "just compiled" >&6; }
2429c060
PB
13682 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
b8025f34 13684 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13687 elif test "x$target" = "x$host"; then
13688 # We can use an host tool
13689 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13691$as_echo "host tool" >&6; }
be01d343
PB
13692 else
13693 # We need a cross tool
81ecdfbb
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695$as_echo "pre-installed" >&6; }
be01d343
PB
13696 fi
13697fi
4b900473 13698
81ecdfbb
RW
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13700$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13701if test "x${build}" != "x${host}" ; then
2429c060
PB
13702 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
b8025f34 13704 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13707 else
13708 # Canadian cross, just use what we found
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710$as_echo "pre-installed" >&6; }
2429c060 13711 fi
be01d343
PB
13712else
13713 ok=yes
13714 case " ${configdirs} " in
13715 *" binutils "*) ;;
13716 *) ok=no ;;
13717 esac
c6b750e1 13718
be01d343
PB
13719 if test $ok = yes; then
13720 # An in-tree tool is available and we can use it
13721 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13723$as_echo "just compiled" >&6; }
2429c060
PB
13724 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13725 # We already found the complete path
b8025f34 13726 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13729 elif test "x$target" = "x$host"; then
13730 # We can use an host tool
13731 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13733$as_echo "host tool" >&6; }
be01d343
PB
13734 else
13735 # We need a cross tool
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737$as_echo "pre-installed" >&6; }
be01d343
PB
13738 fi
13739fi
4b900473 13740
81ecdfbb
RW
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13742$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13743if test "x${build}" != "x${host}" ; then
2429c060
PB
13744 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
b8025f34 13746 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13749 else
13750 # Canadian cross, just use what we found
81ecdfbb
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752$as_echo "pre-installed" >&6; }
2429c060 13753 fi
be01d343
PB
13754else
13755 ok=yes
13756 case " ${configdirs} " in
13757 *" binutils "*) ;;
13758 *) ok=no ;;
13759 esac
c6b750e1 13760
be01d343
PB
13761 if test $ok = yes; then
13762 # An in-tree tool is available and we can use it
13763 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13765$as_echo "just compiled" >&6; }
2429c060
PB
13766 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13767 # We already found the complete path
b8025f34 13768 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13770$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13771 elif test "x$target" = "x$host"; then
13772 # We can use an host tool
13773 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13775$as_echo "host tool" >&6; }
be01d343
PB
13776 else
13777 # We need a cross tool
81ecdfbb
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779$as_echo "pre-installed" >&6; }
be01d343
PB
13780 fi
13781fi
4b900473 13782
81ecdfbb
RW
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13784$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13785if test "x${build}" != "x${host}" ; then
2429c060
PB
13786 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13787 # We already found the complete path
b8025f34 13788 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13791 else
13792 # Canadian cross, just use what we found
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13794$as_echo "pre-installed" >&6; }
2429c060 13795 fi
be01d343
PB
13796else
13797 ok=yes
13798 case " ${configdirs} " in
13799 *" binutils "*) ;;
13800 *) ok=no ;;
13801 esac
c6b750e1 13802
be01d343
PB
13803 if test $ok = yes; then
13804 # An in-tree tool is available and we can use it
9b980aa1 13805 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13807$as_echo "just compiled" >&6; }
2429c060
PB
13808 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13809 # We already found the complete path
b8025f34 13810 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13812$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13813 elif test "x$target" = "x$host"; then
13814 # We can use an host tool
13815 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13817$as_echo "host tool" >&6; }
be01d343
PB
13818 else
13819 # We need a cross tool
81ecdfbb
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821$as_echo "pre-installed" >&6; }
be01d343
PB
13822 fi
13823fi
4b900473 13824
81ecdfbb
RW
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13826$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13827if test "x${build}" != "x${host}" ; then
2429c060
PB
13828 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13829 # We already found the complete path
b8025f34 13830 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13832$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13833 else
13834 # Canadian cross, just use what we found
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13836$as_echo "pre-installed" >&6; }
2429c060 13837 fi
be01d343
PB
13838else
13839 ok=yes
13840 case " ${configdirs} " in
13841 *" binutils "*) ;;
13842 *) ok=no ;;
13843 esac
c6b750e1 13844
be01d343
PB
13845 if test $ok = yes; then
13846 # An in-tree tool is available and we can use it
13847 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13849$as_echo "just compiled" >&6; }
2429c060
PB
13850 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13851 # We already found the complete path
b8025f34 13852 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13854$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13855 elif test "x$target" = "x$host"; then
13856 # We can use an host tool
13857 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13859$as_echo "host tool" >&6; }
be01d343
PB
13860 else
13861 # We need a cross tool
81ecdfbb
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13863$as_echo "pre-installed" >&6; }
be01d343 13864 fi
a0da8069 13865fi
54752a6b 13866
81ecdfbb
RW
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13868$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13869if test "x${build}" != "x${host}" ; then
13870 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13871 # We already found the complete path
13872 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13875 else
13876 # Canadian cross, just use what we found
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13878$as_echo "pre-installed" >&6; }
0c24b341
NC
13879 fi
13880else
13881 ok=yes
13882 case " ${configdirs} " in
13883 *" binutils "*) ;;
13884 *) ok=no ;;
13885 esac
13886
13887 if test $ok = yes; then
13888 # An in-tree tool is available and we can use it
13889 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13891$as_echo "just compiled" >&6; }
0c24b341
NC
13892 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13897 elif test "x$target" = "x$host"; then
13898 # We can use an host tool
13899 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13901$as_echo "host tool" >&6; }
0c24b341
NC
13902 else
13903 # We need a cross tool
81ecdfbb
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905$as_echo "pre-installed" >&6; }
0c24b341
NC
13906 fi
13907fi
13908
54752a6b
NN
13909
13910
be01d343 13911
4b900473 13912
a0da8069
NN
13913# Certain tools may need extra flags.
13914AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13915RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13916NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13917
be01d343
PB
13918# When building target libraries, except in a Canadian cross, we use
13919# the same toolchain as the compiler we just built.
13920COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13921COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13922COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13923if test $host = $build; then
13924 case " $configdirs " in
13925 *" gcc "*)
13926 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13927 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13928 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13929 ;;
13930 esac
13931fi
13932
13933
13934
13935
13936
81ecdfbb
RW
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13938$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13939# Check whether --enable-maintainer-mode was given.
13940if test "${enable_maintainer_mode+set}" = set; then :
13941 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13942else
13943 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13944fi
13945
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13947$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13948
13949
13950if test "$USE_MAINTAINER_MODE" = yes; then
13951 MAINTAINER_MODE_TRUE=
13952 MAINTAINER_MODE_FALSE='#'
13953else
13954 MAINTAINER_MODE_TRUE='#'
13955 MAINTAINER_MODE_FALSE=
c6b750e1 13956fi
3d5e36ae
AO
13957MAINT=$MAINTAINER_MODE_TRUE
13958
1d39f329
NN
13959# ---------------------
13960# GCC bootstrap support
13961# ---------------------
13962
13963# Stage specific cflags for build.
13964stage1_cflags="-g"
13965case $build in
13966 vax-*-*)
13967 case ${GCC} in
13968 yes) stage1_cflags="-g -Wa,-J" ;;
13969 *) stage1_cflags="-g -J" ;;
13970 esac ;;
1d39f329
NN
13971esac
13972
1d89b610 13973# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13974if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13975 saved_CFLAGS="$CFLAGS"
13976
13977 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13978 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13980$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13982/* end confdefs.h. */
13983
2038f525
PB
13984#if (__GNUC__ < 3) \
13985 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13986 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13987#error http://gcc.gnu.org/PR29382
13988#endif
13989
c6b750e1
DJ
13990int
13991main ()
13992{
13993
13994 ;
13995 return 0;
13996}
13997_ACEOF
81ecdfbb
RW
13998if ac_fn_c_try_compile "$LINENO"; then :
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14001else
81ecdfbb
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003$as_echo "no" >&6; }
c6b750e1 14004fi
81ecdfbb 14005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14006
14007 CFLAGS="$saved_CFLAGS"
14008fi
14009
14010
1d39f329 14011
8a0d8a5c 14012# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14013# Check whether --enable-stage1-checking was given.
14014if test "${enable_stage1_checking+set}" = set; then :
14015 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14016else
5566c1fa 14017 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14018 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14019else
5566c1fa 14020 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14021fi
81ecdfbb 14022fi
8a0d8a5c
PB
14023
14024
c6b750e1 14025
81ecdfbb
RW
14026# Enable -Werror in bootstrap stage2 and later.
14027# Check whether --enable-werror was given.
14028if test "${enable_werror+set}" = set; then :
14029 enableval=$enable_werror;
1d39f329 14030else
a0323144 14031 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14032 enable_werror=yes
79fcd0ec
PB
14033else
14034 enable_werror=no
14035fi
81ecdfbb
RW
14036fi
14037
1a6f2dc7
NN
14038case ${enable_werror} in
14039 yes) stage2_werror_flag="--enable-werror-always" ;;
14040 *) stage2_werror_flag="" ;;
1d39f329
NN
14041esac
14042
14043
e8a5fa9c
RW
14044# Specify what files to not compare during bootstrap.
14045
14046compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14047case "$target" in
14048 hppa*64*-*-hpux*) ;;
14049 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14050esac
1f53ca9a
AO
14051case " $configdirs " in
14052*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14053esac
e8a5fa9c
RW
14054
14055
81ecdfbb
RW
14056ac_config_files="$ac_config_files Makefile"
14057
c6b750e1 14058cat >confcache <<\_ACEOF
a0da8069
NN
14059# This file is a shell script that caches the results of configure
14060# tests run on this system so they can be shared between configure
c6b750e1
DJ
14061# scripts and configure runs, see configure's option --config-cache.
14062# It is not useful on other systems. If it contains results you don't
14063# want to keep, you may remove or edit it.
a0da8069 14064#
c6b750e1
DJ
14065# config.status only pays attention to the cache file if you give it
14066# the --recheck option to rerun configure.
a0da8069 14067#
c6b750e1
DJ
14068# `ac_cv_env_foo' variables (set or unset) will be overridden when
14069# loading this file, other *unset* `ac_cv_foo' will be assigned the
14070# following values.
14071
14072_ACEOF
14073
a0da8069
NN
14074# The following way of writing the cache mishandles newlines in values,
14075# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14076# So, we kill variables containing newlines.
a0da8069
NN
14077# Ultrix sh set writes to stderr and can't be redirected directly,
14078# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14079(
14080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14081 eval ac_val=\$$ac_var
14082 case $ac_val in #(
14083 *${as_nl}*)
14084 case $ac_var in #(
14085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14087 esac
14088 case $ac_var in #(
14089 _ | IFS | as_nl) ;; #(
14090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14091 *) { eval $ac_var=; unset $ac_var;} ;;
14092 esac ;;
14093 esac
14094 done
14095
c6b750e1 14096 (set) 2>&1 |
81ecdfbb
RW
14097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14098 *${as_nl}ac_space=\ *)
14099 # `set' does not quote correctly, so add quotes: double-quote
14100 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14101 sed -n \
14102 "s/'/'\\\\''/g;
14103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14104 ;; #(
c6b750e1
DJ
14105 *)
14106 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14108 ;;
81ecdfbb
RW
14109 esac |
14110 sort
14111) |
c6b750e1 14112 sed '
81ecdfbb 14113 /^ac_cv_env_/b end
c6b750e1 14114 t clear
81ecdfbb 14115 :clear
c6b750e1
DJ
14116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14117 t end
81ecdfbb
RW
14118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14119 :end' >>confcache
14120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14121 if test -w "$cache_file"; then
14122 test "x$cache_file" != "x/dev/null" &&
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14124$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14125 cat confcache >$cache_file
a0da8069 14126 else
81ecdfbb
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14128$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14129 fi
852e5f18 14130fi
a0da8069 14131rm -f confcache
852e5f18 14132
a0da8069
NN
14133test "x$prefix" = xNONE && prefix=$ac_default_prefix
14134# Let make expand exec_prefix.
14135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14136
a0da8069
NN
14137# Transform confdefs.h into DEFS.
14138# Protect against shell expansion while executing Makefile rules.
14139# Protect against Makefile macro expansion.
c6b750e1
DJ
14140#
14141# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14142# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14143# look for a macro that doesn't take arguments.
81ecdfbb
RW
14144ac_script='
14145:mline
14146/\\$/{
14147 N
14148 s,\\\n,,
14149 b mline
14150}
c6b750e1 14151t clear
81ecdfbb
RW
14152:clear
14153s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14154t quote
81ecdfbb 14155s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14156t quote
81ecdfbb
RW
14157b any
14158:quote
14159s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14160s/\[/\\&/g
14161s/\]/\\&/g
14162s/\$/$$/g
14163H
14164:any
14165${
14166 g
14167 s/^\n//
14168 s/\n/ /g
14169 p
14170}
14171'
14172DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14173
14174
14175ac_libobjs=
14176ac_ltlibobjs=
14177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14178 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14180 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14182 # will be set to the directory where LIBOBJS objects are built.
14183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14185done
14186LIBOBJS=$ac_libobjs
852e5f18 14187
c6b750e1 14188LTLIBOBJS=$ac_ltlibobjs
376a0e54 14189
cac3d6c4 14190
c6b750e1
DJ
14191
14192: ${CONFIG_STATUS=./config.status}
81ecdfbb 14193ac_write_fail=0
c6b750e1
DJ
14194ac_clean_files_save=$ac_clean_files
14195ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14197$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14198as_write_fail=0
14199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14200#! $SHELL
14201# Generated by $as_me.
a0da8069 14202# Run this file to recreate the current configuration.
a0da8069 14203# Compiler output produced by configure, useful for debugging
c6b750e1 14204# configure, is in config.log if it exists.
376a0e54 14205
c6b750e1
DJ
14206debug=false
14207ac_cs_recheck=false
14208ac_cs_silent=false
c6b750e1 14209
81ecdfbb
RW
14210SHELL=\${CONFIG_SHELL-$SHELL}
14211export SHELL
14212_ASEOF
14213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14214## -------------------- ##
14215## M4sh Initialization. ##
14216## -------------------- ##
14217
14218# Be more Bourne compatible
14219DUALCASE=1; export DUALCASE # for MKS sh
14220if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14221 emulate sh
14222 NULLCMD=:
81ecdfbb 14223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14224 # is contrary to our usage. Disable this feature.
14225 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14226 setopt NO_GLOB_SUBST
14227else
14228 case `(set -o) 2>/dev/null` in #(
14229 *posix*) :
14230 set -o posix ;; #(
14231 *) :
14232 ;;
14233esac
c6b750e1 14234fi
c6b750e1 14235
81ecdfbb
RW
14236
14237as_nl='
14238'
14239export as_nl
14240# Printing a long string crashes Solaris 7 /usr/bin/printf.
14241as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14244# Prefer a ksh shell builtin over an external printf program on Solaris,
14245# but without wasting forks for bash or zsh.
14246if test -z "$BASH_VERSION$ZSH_VERSION" \
14247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14248 as_echo='print -r --'
14249 as_echo_n='print -rn --'
14250elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14251 as_echo='printf %s\n'
14252 as_echo_n='printf %s'
14253else
14254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14256 as_echo_n='/usr/ucb/echo -n'
14257 else
14258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14259 as_echo_n_body='eval
14260 arg=$1;
14261 case $arg in #(
14262 *"$as_nl"*)
14263 expr "X$arg" : "X\\(.*\\)$as_nl";
14264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14265 esac;
14266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14267 '
14268 export as_echo_n_body
14269 as_echo_n='sh -c $as_echo_n_body as_echo'
14270 fi
14271 export as_echo_body
14272 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14273fi
14274
81ecdfbb
RW
14275# The user is always right.
14276if test "${PATH_SEPARATOR+set}" != set; then
14277 PATH_SEPARATOR=:
14278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14280 PATH_SEPARATOR=';'
14281 }
14282fi
14283
14284
14285# IFS
14286# We need space, tab and new line, in precisely that order. Quoting is
14287# there to prevent editors from complaining about space-tab.
14288# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14289# splitting by setting IFS to empty value.)
14290IFS=" "" $as_nl"
14291
14292# Find who we are. Look in the path if we contain no directory separator.
14293case $0 in #((
14294 *[\\/]* ) as_myself=$0 ;;
14295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296for as_dir in $PATH
14297do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14301 done
14302IFS=$as_save_IFS
14303
14304 ;;
14305esac
14306# We did not find ourselves, most probably we were run as `sh COMMAND'
14307# in which case we are not to be found in the path.
14308if test "x$as_myself" = x; then
14309 as_myself=$0
14310fi
14311if test ! -f "$as_myself"; then
14312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14313 exit 1
14314fi
c6b750e1 14315
81ecdfbb
RW
14316# Unset variables that we do not need and which cause bugs (e.g. in
14317# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14318# suppresses any "Segmentation fault" message there. '((' could
14319# trigger a bug in pdksh 5.2.14.
14320for as_var in BASH_ENV ENV MAIL MAILPATH
14321do eval test x\${$as_var+set} = xset \
14322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14323done
c6b750e1
DJ
14324PS1='$ '
14325PS2='> '
14326PS4='+ '
14327
14328# NLS nuisances.
81ecdfbb
RW
14329LC_ALL=C
14330export LC_ALL
14331LANGUAGE=C
14332export LANGUAGE
14333
14334# CDPATH.
14335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336
14337
14338# as_fn_error ERROR [LINENO LOG_FD]
14339# ---------------------------------
14340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14342# script with status $?, using 1 if that was 0.
14343as_fn_error ()
14344{
14345 as_status=$?; test $as_status -eq 0 && as_status=1
14346 if test "$3"; then
14347 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14349 fi
81ecdfbb
RW
14350 $as_echo "$as_me: error: $1" >&2
14351 as_fn_exit $as_status
14352} # as_fn_error
14353
14354
14355# as_fn_set_status STATUS
14356# -----------------------
14357# Set $? to STATUS, without forking.
14358as_fn_set_status ()
14359{
14360 return $1
14361} # as_fn_set_status
14362
14363# as_fn_exit STATUS
14364# -----------------
14365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14366as_fn_exit ()
14367{
14368 set +e
14369 as_fn_set_status $1
14370 exit $1
14371} # as_fn_exit
14372
14373# as_fn_unset VAR
14374# ---------------
14375# Portably unset VAR.
14376as_fn_unset ()
14377{
14378 { eval $1=; unset $1;}
14379}
14380as_unset=as_fn_unset
14381# as_fn_append VAR VALUE
14382# ----------------------
14383# Append the text in VALUE to the end of the definition contained in VAR. Take
14384# advantage of any shell optimizations that allow amortized linear growth over
14385# repeated appends, instead of the typical quadratic growth present in naive
14386# implementations.
14387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14388 eval 'as_fn_append ()
14389 {
14390 eval $1+=\$2
14391 }'
14392else
14393 as_fn_append ()
14394 {
14395 eval $1=\$$1\$2
14396 }
14397fi # as_fn_append
14398
14399# as_fn_arith ARG...
14400# ------------------
14401# Perform arithmetic evaluation on the ARGs, and store the result in the
14402# global $as_val. Take advantage of shells that can avoid forks. The arguments
14403# must be portable across $(()) and expr.
14404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14405 eval 'as_fn_arith ()
14406 {
14407 as_val=$(( $* ))
14408 }'
14409else
14410 as_fn_arith ()
14411 {
14412 as_val=`expr "$@" || test $? -eq 1`
14413 }
14414fi # as_fn_arith
14415
c6b750e1 14416
81ecdfbb
RW
14417if expr a : '\(a\)' >/dev/null 2>&1 &&
14418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14419 as_expr=expr
14420else
14421 as_expr=false
14422fi
14423
81ecdfbb 14424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14425 as_basename=basename
14426else
14427 as_basename=false
14428fi
14429
81ecdfbb
RW
14430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14431 as_dirname=dirname
14432else
14433 as_dirname=false
14434fi
c6b750e1 14435
81ecdfbb 14436as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14438 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14440$as_echo X/"$0" |
14441 sed '/^.*\/\([^/][^/]*\)\/*$/{
14442 s//\1/
14443 q
14444 }
14445 /^X\/\(\/\/\)$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\/\(\/\).*/{
14450 s//\1/
14451 q
14452 }
14453 s/.*/./; q'`
c6b750e1 14454
c6b750e1
DJ
14455# Avoid depending upon Character Ranges.
14456as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14458as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14459as_cr_digits='0123456789'
14460as_cr_alnum=$as_cr_Letters$as_cr_digits
14461
81ecdfbb
RW
14462ECHO_C= ECHO_N= ECHO_T=
14463case `echo -n x` in #(((((
14464-n*)
14465 case `echo 'xy\c'` in
14466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14467 xy) ECHO_C='\c';;
14468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14469 ECHO_T=' ';;
14470 esac;;
14471*)
14472 ECHO_N='-n';;
c6b750e1
DJ
14473esac
14474
81ecdfbb
RW
14475rm -f conf$$ conf$$.exe conf$$.file
14476if test -d conf$$.dir; then
14477 rm -f conf$$.dir/conf$$.file
c6b750e1 14478else
81ecdfbb
RW
14479 rm -f conf$$.dir
14480 mkdir conf$$.dir 2>/dev/null
c6b750e1 14481fi
81ecdfbb
RW
14482if (echo >conf$$.file) 2>/dev/null; then
14483 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14484 as_ln_s='ln -s'
81ecdfbb
RW
14485 # ... but there are two gotchas:
14486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14488 # In both cases, we have to default to `cp -p'.
14489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14490 as_ln_s='cp -p'
14491 elif ln conf$$.file conf$$ 2>/dev/null; then
14492 as_ln_s=ln
14493 else
14494 as_ln_s='cp -p'
c6b750e1 14495 fi
c6b750e1
DJ
14496else
14497 as_ln_s='cp -p'
14498fi
81ecdfbb
RW
14499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14500rmdir conf$$.dir 2>/dev/null
14501
14502
14503# as_fn_mkdir_p
14504# -------------
14505# Create "$as_dir" as a directory, including parents if necessary.
14506as_fn_mkdir_p ()
14507{
14508
14509 case $as_dir in #(
14510 -*) as_dir=./$as_dir;;
14511 esac
14512 test -d "$as_dir" || eval $as_mkdir_p || {
14513 as_dirs=
14514 while :; do
14515 case $as_dir in #(
14516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14517 *) as_qdir=$as_dir;;
14518 esac
14519 as_dirs="'$as_qdir' $as_dirs"
14520 as_dir=`$as_dirname -- "$as_dir" ||
14521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522 X"$as_dir" : 'X\(//\)[^/]' \| \
14523 X"$as_dir" : 'X\(//\)$' \| \
14524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14525$as_echo X"$as_dir" |
14526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)[^/].*/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\/\)$/{
14535 s//\1/
14536 q
14537 }
14538 /^X\(\/\).*/{
14539 s//\1/
14540 q
14541 }
14542 s/.*/./; q'`
14543 test -d "$as_dir" && break
14544 done
14545 test -z "$as_dirs" || eval "mkdir $as_dirs"
14546 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14547
c6b750e1 14548
81ecdfbb 14549} # as_fn_mkdir_p
c6b750e1 14550if mkdir -p . 2>/dev/null; then
81ecdfbb 14551 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14552else
14553 test -d ./-p && rmdir ./-p
14554 as_mkdir_p=false
14555fi
14556
81ecdfbb
RW
14557if test -x / >/dev/null 2>&1; then
14558 as_test_x='test -x'
14559else
14560 if ls -dL / >/dev/null 2>&1; then
14561 as_ls_L_option=L
14562 else
14563 as_ls_L_option=
14564 fi
14565 as_test_x='
14566 eval sh -c '\''
14567 if test -d "$1"; then
14568 test -d "$1/.";
14569 else
14570 case $1 in #(
14571 -*)set "./$1";;
14572 esac;
14573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14574 ???[sx]*):;;*)false;;esac;fi
14575 '\'' sh
14576 '
14577fi
14578as_executable_p=$as_test_x
c6b750e1
DJ
14579
14580# Sed expression to map a string onto a valid CPP name.
14581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582
14583# Sed expression to map a string onto a valid variable name.
14584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14585
14586
c6b750e1 14587exec 6>&1
81ecdfbb
RW
14588## ----------------------------------- ##
14589## Main body of $CONFIG_STATUS script. ##
14590## ----------------------------------- ##
14591_ASEOF
14592test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14593
14594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14596# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14597# values after options handling.
14598ac_log="
c6b750e1 14599This file was extended by $as_me, which was
81ecdfbb 14600generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14601
14602 CONFIG_FILES = $CONFIG_FILES
14603 CONFIG_HEADERS = $CONFIG_HEADERS
14604 CONFIG_LINKS = $CONFIG_LINKS
14605 CONFIG_COMMANDS = $CONFIG_COMMANDS
14606 $ $0 $@
14607
81ecdfbb
RW
14608on `(hostname || uname -n) 2>/dev/null | sed 1q`
14609"
14610
c6b750e1
DJ
14611_ACEOF
14612
81ecdfbb
RW
14613case $ac_config_files in *"
14614"*) set x $ac_config_files; shift; ac_config_files=$*;;
14615esac
c6b750e1 14616
c6b750e1 14617
c6b750e1 14618
81ecdfbb
RW
14619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620# Files that config.status was made for.
14621config_files="$ac_config_files"
c6b750e1 14622
81ecdfbb 14623_ACEOF
c6b750e1 14624
81ecdfbb 14625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14626ac_cs_usage="\
81ecdfbb
RW
14627\`$as_me' instantiates files and other configuration actions
14628from templates according to the current configuration. Unless the files
14629and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14630
81ecdfbb 14631Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14632
14633 -h, --help print this help, then exit
81ecdfbb
RW
14634 -V, --version print version number and configuration settings, then exit
14635 -q, --quiet, --silent
14636 do not print progress messages
c6b750e1
DJ
14637 -d, --debug don't remove temporary files
14638 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14639 --file=FILE[:TEMPLATE]
14640 instantiate the configuration file FILE
c6b750e1
DJ
14641
14642Configuration files:
14643$config_files
14644
81ecdfbb 14645Report bugs to the package provider."
c6b750e1 14646
81ecdfbb
RW
14647_ACEOF
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14649ac_cs_version="\\
14650config.status
81ecdfbb
RW
14651configured by $0, generated by GNU Autoconf 2.64,
14652 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14653
81ecdfbb 14654Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14655This config.status script is free software; the Free Software Foundation
14656gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14657
14658ac_pwd='$ac_pwd'
14659srcdir='$srcdir'
14660INSTALL='$INSTALL'
8e957354 14661AWK='$AWK'
81ecdfbb 14662test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14663_ACEOF
14664
81ecdfbb
RW
14665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14667ac_need_defaults=:
14668while test $# != 0
a0da8069 14669do
c6b750e1
DJ
14670 case $1 in
14671 --*=*)
81ecdfbb
RW
14672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14674 ac_shift=:
14675 ;;
81ecdfbb 14676 *)
c6b750e1
DJ
14677 ac_option=$1
14678 ac_optarg=$2
14679 ac_shift=shift
14680 ;;
c6b750e1
DJ
14681 esac
14682
14683 case $ac_option in
14684 # Handling of the options.
a0da8069 14685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14686 ac_cs_recheck=: ;;
81ecdfbb
RW
14687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14688 $as_echo "$ac_cs_version"; exit ;;
14689 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14690 debug=: ;;
14691 --file | --fil | --fi | --f )
14692 $ac_shift
81ecdfbb
RW
14693 case $ac_optarg in
14694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14695 esac
14696 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14697 ac_need_defaults=false;;
81ecdfbb
RW
14698 --he | --h | --help | --hel | -h )
14699 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14702 ac_cs_silent=: ;;
14703
14704 # This is an error.
81ecdfbb
RW
14705 -*) as_fn_error "unrecognized option: \`$1'
14706Try \`$0 --help' for more information." ;;
c6b750e1 14707
81ecdfbb
RW
14708 *) as_fn_append ac_config_targets " $1"
14709 ac_need_defaults=false ;;
c6b750e1 14710
376a0e54 14711 esac
c6b750e1 14712 shift
376a0e54
CM
14713done
14714
c6b750e1 14715ac_configure_extra_args=
376a0e54 14716
c6b750e1
DJ
14717if $ac_cs_silent; then
14718 exec 6>/dev/null
14719 ac_configure_extra_args="$ac_configure_extra_args --silent"
14720fi
376a0e54 14721
c6b750e1 14722_ACEOF
81ecdfbb 14723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14724if \$ac_cs_recheck; then
81ecdfbb
RW
14725 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14726 shift
14727 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14728 CONFIG_SHELL='$SHELL'
14729 export CONFIG_SHELL
14730 exec "\$@"
c6b750e1
DJ
14731fi
14732
14733_ACEOF
81ecdfbb
RW
14734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735exec 5>>config.log
14736{
14737 echo
14738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739## Running $as_me. ##
14740_ASBOX
14741 $as_echo "$ac_log"
14742} >&5
c6b750e1 14743
81ecdfbb
RW
14744_ACEOF
14745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14746#
14747# INIT-COMMANDS
14748#
14749extrasub_build="$extrasub_build"
14750 extrasub_host="$extrasub_host"
14751 extrasub_target="$extrasub_target"
14752
81ecdfbb 14753_ACEOF
c6b750e1 14754
81ecdfbb 14755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14756
81ecdfbb 14757# Handling of arguments.
c6b750e1
DJ
14758for ac_config_target in $ac_config_targets
14759do
81ecdfbb
RW
14760 case $ac_config_target in
14761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14762
14763 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14764 esac
14765done
14766
81ecdfbb 14767
c6b750e1
DJ
14768# If the user did not use the arguments to specify the items to instantiate,
14769# then the envvar interface is used. Set only those that are not.
14770# We use the long form for the default assignment because of an extremely
14771# bizarre bug on SunOS 4.1.3.
14772if $ac_need_defaults; then
14773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14774fi
14775
14776# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14777# simply because there is no reason against having it here, and in addition,
c6b750e1 14778# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14779# Hook for its removal unless debugging.
14780# Note that there is a small window in which the directory will not be cleaned:
14781# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14782$debug ||
14783{
81ecdfbb
RW
14784 tmp=
14785 trap 'exit_status=$?
14786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14787' 0
14788 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14789}
c6b750e1
DJ
14790# Create a (secure) tmp directory for tmp files.
14791
14792{
81ecdfbb 14793 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14794 test -n "$tmp" && test -d "$tmp"
14795} ||
14796{
81ecdfbb
RW
14797 tmp=./conf$$-$RANDOM
14798 (umask 077 && mkdir "$tmp")
14799} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14800
14801# Set up the scripts for CONFIG_FILES section.
14802# No need to generate them if there are no CONFIG_FILES.
14803# This happens for instance with `./config.status config.h'.
14804if test -n "$CONFIG_FILES"; then
14805
14806if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14807 ac_cs_awk_getline=:
14808 ac_cs_awk_pipe_init=
14809 ac_cs_awk_read_file='
14810 while ((getline aline < (F[key])) > 0)
14811 print(aline)
14812 close(F[key])'
14813 ac_cs_awk_pipe_fini=
14814else
14815 ac_cs_awk_getline=false
14816 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14817 ac_cs_awk_read_file='
14818 print "|#_!!_#|"
14819 print "cat " F[key] " &&"
14820 '$ac_cs_awk_pipe_init
14821 # The final `:' finishes the AND list.
14822 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14823fi
14824ac_cr=`echo X | tr X '\015'`
14825# On cygwin, bash can eat \r inside `` if the user requested igncr.
14826# But we know of no other shell where ac_cr would be empty at this
14827# point, so we can use a bashism as a fallback.
14828if test "x$ac_cr" = x; then
14829 eval ac_cr=\$\'\\r\'
14830fi
14831ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14832if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14833 ac_cs_awk_cr='\r'
14834else
14835 ac_cs_awk_cr=$ac_cr
14836fi
14837
14838echo 'BEGIN {' >"$tmp/subs1.awk" &&
14839_ACEOF
14840
14841# Create commands to substitute file output variables.
c6b750e1 14842{
81ecdfbb
RW
14843 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14844 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14845 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14846 echo "_ACAWK" &&
14847 echo "_ACEOF"
14848} >conf$$files.sh &&
14849. ./conf$$files.sh ||
14850 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14851rm -f conf$$files.sh
c6b750e1 14852
81ecdfbb
RW
14853{
14854 echo "cat >conf$$subs.awk <<_ACEOF" &&
14855 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14856 echo "_ACEOF"
14857} >conf$$subs.sh ||
14858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14859ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14860ac_delim='%!_!# '
14861for ac_last_try in false false false false false :; do
14862 . ./conf$$subs.sh ||
14863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14864
14865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14866 if test $ac_delim_n = $ac_delim_num; then
14867 break
14868 elif $ac_last_try; then
14869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870 else
14871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14872 fi
14873done
14874rm -f conf$$subs.sh
14875
14876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14878_ACEOF
81ecdfbb
RW
14879sed -n '
14880h
14881s/^/S["/; s/!.*/"]=/
14882p
14883g
14884s/^[^!]*!//
14885:repl
14886t repl
14887s/'"$ac_delim"'$//
14888t delim
14889:nl
14890h
14891s/\(.\{148\}\).*/\1/
14892t more1
14893s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14894p
14895n
14896b repl
14897:more1
14898s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14899p
14900g
14901s/.\{148\}//
14902t nl
14903:delim
14904h
14905s/\(.\{148\}\).*/\1/
14906t more2
14907s/["\\]/\\&/g; s/^/"/; s/$/"/
14908p
14909b
14910:more2
14911s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14912p
14913g
14914s/.\{148\}//
14915t delim
14916' <conf$$subs.awk | sed '
14917/^[^""]/{
14918 N
14919 s/\n//
14920}
14921' >>$CONFIG_STATUS || ac_write_fail=1
14922rm -f conf$$subs.awk
14923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924_ACAWK
14925cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14926 for (key in S) S_is_set[key] = 1
14927 FS = "\a"
14928 \$ac_cs_awk_pipe_init
14929}
14930{
14931 line = $ 0
14932 nfields = split(line, field, "@")
14933 substed = 0
14934 len = length(field[1])
14935 for (i = 2; i < nfields; i++) {
14936 key = field[i]
14937 keylen = length(key)
14938 if (S_is_set[key]) {
14939 value = S[key]
14940 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14941 len += length(value) + length(field[++i])
14942 substed = 1
14943 } else
14944 len += 1 + keylen
14945 }
14946 if (nfields == 3 && !substed) {
14947 key = field[2]
14948 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14949 \$ac_cs_awk_read_file
14950 next
14951 }
14952 }
14953 print line
14954}
14955\$ac_cs_awk_pipe_fini
14956_ACAWK
14957_ACEOF
14958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14961else
14962 cat
14963fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14964 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14965_ACEOF
14966
14967# VPATH may cause trouble with some makes, so we remove $(srcdir),
14968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14969# trailing colons and then remove the whole line if VPATH becomes empty
14970# (actually we leave an empty line to preserve line numbers).
14971if test "x$srcdir" = x.; then
14972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14973s/:*\$(srcdir):*/:/
14974s/:*\${srcdir}:*/:/
14975s/:*@srcdir@:*/:/
14976s/^\([^=]*=[ ]*\):*/\1/
14977s/:*$//
14978s/^[^=]*=[ ]*$//
14979}'
14980fi
c6b750e1 14981
81ecdfbb
RW
14982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983fi # test -n "$CONFIG_FILES"
c6b750e1 14984
c6b750e1 14985
81ecdfbb
RW
14986eval set X " :F $CONFIG_FILES "
14987shift
14988for ac_tag
14989do
14990 case $ac_tag in
14991 :[FHLC]) ac_mode=$ac_tag; continue;;
14992 esac
14993 case $ac_mode$ac_tag in
14994 :[FHL]*:*);;
14995 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14996 :[FH]-) ac_tag=-:-;;
14997 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14998 esac
14999 ac_save_IFS=$IFS
15000 IFS=:
15001 set x $ac_tag
15002 IFS=$ac_save_IFS
15003 shift
15004 ac_file=$1
15005 shift
252b5132 15006
81ecdfbb
RW
15007 case $ac_mode in
15008 :L) ac_source=$1;;
15009 :[FH])
15010 ac_file_inputs=
15011 for ac_f
15012 do
15013 case $ac_f in
15014 -) ac_f="$tmp/stdin";;
15015 *) # Look for the file first in the build tree, then in the source tree
15016 # (if the path is not absolute). The absolute path cannot be DOS-style,
15017 # because $ac_f cannot contain `:'.
15018 test -f "$ac_f" ||
15019 case $ac_f in
15020 [\\/$]*) false;;
15021 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15022 esac ||
15023 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15024 esac
15025 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15026 as_fn_append ac_file_inputs " '$ac_f'"
15027 done
c6b750e1 15028
81ecdfbb
RW
15029 # Let's still pretend it is `configure' which instantiates (i.e., don't
15030 # use $as_me), people would be surprised to read:
15031 # /* config.h. Generated by config.status. */
15032 configure_input='Generated from '`
15033 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15034 `' by configure.'
15035 if test x"$ac_file" != x-; then
15036 configure_input="$ac_file. $configure_input"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15038$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15039 fi
81ecdfbb
RW
15040 # Neutralize special characters interpreted by sed in replacement strings.
15041 case $configure_input in #(
15042 *\&* | *\|* | *\\* )
15043 ac_sed_conf_input=`$as_echo "$configure_input" |
15044 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15045 *) ac_sed_conf_input=$configure_input;;
15046 esac
cac3d6c4 15047
81ecdfbb
RW
15048 case $ac_tag in
15049 *:-:* | *:-) cat >"$tmp/stdin" \
15050 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15051 esac
15052 ;;
a0da8069 15053 esac
252b5132 15054
81ecdfbb 15055 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15057 X"$ac_file" : 'X\(//\)[^/]' \| \
15058 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15060$as_echo X"$ac_file" |
15061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\/\)[^/].*/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\/\)$/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\).*/{
15074 s//\1/
15075 q
15076 }
15077 s/.*/./; q'`
15078 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15079 ac_builddir=.
252b5132 15080
81ecdfbb
RW
15081case "$ac_dir" in
15082.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15083*)
15084 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15085 # A ".." for each directory in $ac_dir_suffix.
15086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15087 case $ac_top_builddir_sub in
15088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15090 esac ;;
15091esac
15092ac_abs_top_builddir=$ac_pwd
15093ac_abs_builddir=$ac_pwd$ac_dir_suffix
15094# for backward compatibility:
15095ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15096
15097case $srcdir in
81ecdfbb 15098 .) # We are building in place.
c6b750e1 15099 ac_srcdir=.
81ecdfbb
RW
15100 ac_top_srcdir=$ac_top_builddir_sub
15101 ac_abs_top_srcdir=$ac_pwd ;;
15102 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15103 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15104 ac_top_srcdir=$srcdir
15105 ac_abs_top_srcdir=$srcdir ;;
15106 *) # Relative name.
15107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15108 ac_top_srcdir=$ac_top_build_prefix$srcdir
15109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15110esac
81ecdfbb 15111ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15112
252b5132 15113
81ecdfbb
RW
15114 case $ac_mode in
15115 :F)
15116 #
15117 # CONFIG_FILE
15118 #
c6b750e1
DJ
15119
15120 case $INSTALL in
15121 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15122 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15123 esac
81ecdfbb 15124_ACEOF
252b5132 15125
81ecdfbb
RW
15126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127# If the template does not know about datarootdir, expand it.
15128# FIXME: This hack should be removed a few years after 2.60.
15129ac_datarootdir_hack=; ac_datarootdir_seen=
15130ac_sed_dataroot='
15131/datarootdir/ {
15132 p
15133 q
15134}
15135/@datadir@/p
15136/@docdir@/p
15137/@infodir@/p
15138/@localedir@/p
15139/@mandir@/p'
15140case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141*datarootdir*) ac_datarootdir_seen=yes;;
15142*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15145_ACEOF
81ecdfbb
RW
15146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147 ac_datarootdir_hack='
15148 s&@datadir@&$datadir&g
15149 s&@docdir@&$docdir&g
15150 s&@infodir@&$infodir&g
15151 s&@localedir@&$localedir&g
15152 s&@mandir@&$mandir&g
15153 s&\\\${datarootdir}&$datarootdir&g' ;;
15154esac
15155_ACEOF
15156
15157# Neutralize VPATH when `$srcdir' = `.'.
15158# Shell code in configure.ac might set extrasub.
15159# FIXME: do we really want to maintain this feature?
15160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15162$extrasub
15163_ACEOF
81ecdfbb 15164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15165:t
15166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15167s|@configure_input@|$ac_sed_conf_input|;t t
15168s&@top_builddir@&$ac_top_builddir_sub&;t t
15169s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170s&@srcdir@&$ac_srcdir&;t t
15171s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172s&@top_srcdir@&$ac_top_srcdir&;t t
15173s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174s&@builddir@&$ac_builddir&;t t
15175s&@abs_builddir@&$ac_abs_builddir&;t t
15176s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177s&@INSTALL@&$ac_INSTALL&;t t
15178$ac_datarootdir_hack
15179"
15180eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15181if $ac_cs_awk_getline; then
15182 $AWK -f "$tmp/subs.awk"
15183else
15184 $AWK -f "$tmp/subs.awk" | $SHELL
15185fi >$tmp/out \
15186 || as_fn_error "could not create $ac_file" "$LINENO" 5
15187
15188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192which seems to be undefined. Please make sure it is defined." >&5
15193$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194which seems to be undefined. Please make sure it is defined." >&2;}
15195
15196 rm -f "$tmp/stdin"
15197 case $ac_file in
15198 -) cat "$tmp/out" && rm -f "$tmp/out";;
15199 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15200 esac \
15201 || as_fn_error "could not create $ac_file" "$LINENO" 5
15202 ;;
c148b4cb 15203
c148b4cb 15204
c148b4cb 15205
81ecdfbb
RW
15206 esac
15207
06a51eac
RW
15208
15209 case $ac_file$ac_mode in
15210 "Makefile":F) sed "$extrasub_build" Makefile |
15211 sed "$extrasub_host" |
15212 sed "$extrasub_target" > mf$$
15213 mv -f mf$$ Makefile ;;
15214
15215 esac
81ecdfbb
RW
15216done # for ac_tag
15217
15218
15219as_fn_exit 0
c6b750e1 15220_ACEOF
c6b750e1
DJ
15221ac_clean_files=$ac_clean_files_save
15222
81ecdfbb
RW
15223test $ac_write_fail = 0 ||
15224 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15225
c6b750e1
DJ
15226
15227# configure is writing to config.log, and then calls config.status.
15228# config.status does its own redirection, appending to config.log.
15229# Unfortunately, on DOS this fails, as config.log is still kept open
15230# by configure, so config.status won't be able to write to it; its
15231# output is simply discarded. So we exec the FD to /dev/null,
15232# effectively closing config.log, so it can be properly (re)opened and
15233# appended to by config.status. When coming back to configure, we
15234# need to make the FD available again.
15235if test "$no_create" != yes; then
15236 ac_cs_success=:
15237 ac_config_status_args=
15238 test "$silent" = yes &&
15239 ac_config_status_args="$ac_config_status_args --quiet"
15240 exec 5>/dev/null
15241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242 exec 5>>config.log
15243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15244 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15245 $ac_cs_success || as_fn_exit $?
15246fi
15247if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15249$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15250fi
c148b4cb 15251
This page took 1.533594 seconds and 4 git commands to generate.