Set alignment of common plugin symbol to 1 for For ELF targets.
[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
744enable_libada
745enable_libssp
746enable_build_with_cxx
747with_mpc
748with_mpc_include
749with_mpc_lib
750with_mpfr_dir
751with_mpfr
752with_mpfr_include
753with_mpfr_lib
754with_gmp_dir
755with_gmp
756with_gmp_include
757with_gmp_lib
758with_host_libstdcxx
759with_stage1_ldflags
760with_stage1_libs
81ecdfbb 761with_boot_libs
143754cd 762with_boot_ldflags
81ecdfbb
RW
763with_ppl
764with_ppl_include
765with_ppl_lib
766enable_ppl_version_check
767with_cloog
768with_cloog_include
769with_cloog_lib
e552509b 770enable_cloog_backend
81ecdfbb 771enable_cloog_version_check
700d40ca 772enable_lto
81ecdfbb
RW
773enable_stage1_languages
774enable_objc_gc
775with_build_sysroot
776with_debug_prefix_map
777enable_bootstrap
96655cc4 778with_build_config
81ecdfbb
RW
779enable_serial_configure
780with_build_time_tools
781enable_maintainer_mode
782enable_stage1_checking
783enable_werror
81ecdfbb
RW
784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CXX
794CXXFLAGS
795CCC
4074d5f2
RW
796build_configargs
797host_configargs
798target_configargs
81ecdfbb
RW
799AR
800AS
801DLLTOOL
802LD
803LIPO
804NM
805RANLIB
806STRIP
807WINDRES
808WINDMC
809OBJCOPY
810OBJDUMP
811CC_FOR_TARGET
812CXX_FOR_TARGET
813GCC_FOR_TARGET
814GCJ_FOR_TARGET
815GFORTRAN_FOR_TARGET
e552509b 816GOC_FOR_TARGET
81ecdfbb
RW
817AR_FOR_TARGET
818AS_FOR_TARGET
819DLLTOOL_FOR_TARGET
820LD_FOR_TARGET
821LIPO_FOR_TARGET
822NM_FOR_TARGET
823OBJDUMP_FOR_TARGET
824RANLIB_FOR_TARGET
825STRIP_FOR_TARGET
826WINDRES_FOR_TARGET
827WINDMC_FOR_TARGET'
828
a0da8069
NN
829
830# Initialize some variables set by options.
c6b750e1
DJ
831ac_init_help=
832ac_init_version=false
81ecdfbb
RW
833ac_unrecognized_opts=
834ac_unrecognized_sep=
a0da8069
NN
835# The variables have the same names as the options, with
836# dashes changed to underlines.
c6b750e1 837cache_file=/dev/null
a0da8069 838exec_prefix=NONE
a0da8069 839no_create=
a0da8069
NN
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
a0da8069
NN
848verbose=
849x_includes=NONE
850x_libraries=NONE
c6b750e1
DJ
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 857# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
a0da8069
NN
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
a0da8069
NN
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
81ecdfbb
RW
868docdir='${datarootdir}/doc/${PACKAGE}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
252b5132 877
a0da8069 878ac_prev=
81ecdfbb 879ac_dashdash=
a0da8069
NN
880for ac_option
881do
a0da8069
NN
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
81ecdfbb 884 eval $ac_prev=\$ac_option
a0da8069
NN
885 ac_prev=
886 continue
887 fi
252b5132 888
81ecdfbb
RW
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
a0da8069
NN
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
81ecdfbb
RW
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
a0da8069
NN
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 903 bindir=$ac_optarg ;;
a0da8069
NN
904
905 -build | --build | --buil | --bui | --bu)
c6b750e1 906 ac_prev=build_alias ;;
a0da8069 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 908 build_alias=$ac_optarg ;;
a0da8069
NN
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
a0da8069 919
81ecdfbb 920 -datadir | --datadir | --datadi | --datad)
a0da8069 921 ac_prev=datadir ;;
81ecdfbb 922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 923 datadir=$ac_optarg ;;
a0da8069 924
81ecdfbb
RW
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
a0da8069 932 -disable-* | --disable-*)
81ecdfbb 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 934 # Reject names that are not valid shell variable names.
81ecdfbb
RW
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
a0da8069
NN
957
958 -enable-* | --enable-*)
81ecdfbb 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 960 # Reject names that are not valid shell variable names.
81ecdfbb
RW
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
a0da8069 971 esac
81ecdfbb 972 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
c6b750e1 981 exec_prefix=$ac_optarg ;;
a0da8069
NN
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
c6b750e1
DJ
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
a0da8069
NN
993
994 -host | --host | --hos | --ho)
c6b750e1 995 ac_prev=host_alias ;;
a0da8069 996 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 997 host_alias=$ac_optarg ;;
a0da8069 998
81ecdfbb
RW
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
a0da8069
NN
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1010 includedir=$ac_optarg ;;
a0da8069
NN
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1015 infodir=$ac_optarg ;;
a0da8069
NN
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1020 libdir=$ac_optarg ;;
a0da8069
NN
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1027 libexecdir=$ac_optarg ;;
a0da8069 1028
81ecdfbb
RW
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
a0da8069 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1035 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1039 localstatedir=$ac_optarg ;;
a0da8069
NN
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1044 mandir=$ac_optarg ;;
a0da8069
NN
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1051 | --no-cr | --no-c | -n)
a0da8069
NN
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1065 oldincludedir=$ac_optarg ;;
a0da8069
NN
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1070 prefix=$ac_optarg ;;
a0da8069
NN
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1077 program_prefix=$ac_optarg ;;
a0da8069
NN
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1084 program_suffix=$ac_optarg ;;
a0da8069
NN
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1101 program_transform_name=$ac_optarg ;;
a0da8069 1102
81ecdfbb
RW
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
a0da8069
NN
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
c6b750e1 1121 sbindir=$ac_optarg ;;
a0da8069
NN
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
c6b750e1 1132 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
c6b750e1 1137 site=$ac_optarg ;;
a0da8069
NN
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1142 srcdir=$ac_optarg ;;
a0da8069
NN
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1149 sysconfdir=$ac_optarg ;;
a0da8069
NN
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1152 ac_prev=target_alias ;;
a0da8069 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1154 target_alias=$ac_optarg ;;
a0da8069
NN
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
c6b750e1
DJ
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
a0da8069
NN
1161
1162 -with-* | --with-*)
81ecdfbb 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
a0da8069 1175 esac
81ecdfbb 1176 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1177
1178 -without-* | --without-*)
81ecdfbb 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1180 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
a0da8069
NN
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1203 x_includes=$ac_optarg ;;
a0da8069
NN
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1210 x_libraries=$ac_optarg ;;
a0da8069 1211
81ecdfbb
RW
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information."
a0da8069
NN
1214 ;;
1215
c6b750e1
DJ
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1224 export $ac_envvar ;;
1225
a0da8069 1226 *)
c6b750e1 1227 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1232 ;;
1233
1234 esac
1235done
1236
1237if test -n "$ac_prev"; then
c6b750e1 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1239 as_fn_error "missing argument to $ac_option"
a0da8069 1240fi
a0da8069 1241
81ecdfbb
RW
1242if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1247 esac
81ecdfbb 1248fi
a0da8069 1249
81ecdfbb
RW
1250# Check all directory arguments for consistency.
1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
a0da8069 1255do
81ecdfbb
RW
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
c6b750e1 1264 case $ac_val in
81ecdfbb
RW
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1267 esac
81ecdfbb 1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1269done
1270
c6b750e1
DJ
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
376a0e54 1277
c6b750e1
DJ
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
81ecdfbb 1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
a0da8069 1293
a0da8069 1294
81ecdfbb
RW
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1301
1302
a0da8069
NN
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
81ecdfbb
RW
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
a0da8069 1330 srcdir=$ac_confdir
81ecdfbb 1331 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
81ecdfbb
RW
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
6d0cd39e
AM
1355case $srcdir in
1356 *" "*)
1357 as_fn_error "path to source, $srcdir, contains spaces"
1358 ;;
1359esac
9cc8ae67
PB
1360ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1361
81ecdfbb
RW
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
c6b750e1
DJ
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures this package to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
c6b750e1
DJ
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1398 [$ac_default_prefix]
c6b750e1 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1400 [PREFIX]
c6b750e1
DJ
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
81ecdfbb
RW
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1429_ACEOF
1430
1431 cat <<\_ACEOF
1432
1433Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442_ACEOF
a0da8069 1443fi
a0da8069 1444
c6b750e1
DJ
1445if test -n "$ac_init_help"; then
1446
1447 cat <<\_ACEOF
1448
1449Optional Features:
81ecdfbb 1450 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
e6de499b 1453 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
521ec477
DD
1454 --enable-libada build libada directory
1455 --enable-libssp build libssp directory
e8a5fa9c 1456 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f 1457 --disable-ppl-version-check disable check for PPL version
e552509b
ILT
1458 --enable-cloog-backend=backend
1459 isl: The cloog.org isl backend
1460 ppl-legacy: The legacy ppl backend - default
1461 ppl: The cloog.org ppl backend
1462 --disable-cloog-version-check
1463 disable check for CLooG version
700d40ca 1464 --enable-lto enable link time optimization support
521ec477 1465 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1466 stage1. Mostly useful for compiler development.
521ec477
DD
1467 --enable-objc-gc enable use of Boehm's garbage collector with the
1468 GNU Objective-C runtime
1469 --enable-bootstrap enable bootstrapping [yes if native build]
1470 --enable-serial-[{host,target,build}-]configure
1471 force sequential configuration of
c6b750e1 1472 sub-packages for the host, target or build
521ec477 1473 machine, or all sub-packages
c6b750e1
DJ
1474 --enable-maintainer-mode enable make rules and dependencies not useful
1475 (and sometimes confusing) to the casual installer
521ec477
DD
1476 --enable-stage1-checking[=all] choose additional checking for stage1
1477 of the compiler
c6b750e1
DJ
1478 --enable-werror enable -Werror in bootstrap stage2 and later
1479
1480Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1484 --with-mpc=PATH specify prefix directory for installed MPC package.
1485 Equivalent to --with-mpc-include=PATH/include
1486 plus --with-mpc-lib=PATH/lib
1487 --with-mpc-include=PATH
1488 specify directory for installed MPC include files
1489 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1490 --with-mpfr-dir=PATH this option has been REMOVED
1491 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1492 Equivalent to --with-mpfr-include=PATH/include
1493 plus --with-mpfr-lib=PATH/lib
1494 --with-mpfr-include=PATH
521ec477
DD
1495 specify directory for installed MPFR include files
1496 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1497 --with-gmp-dir=PATH this option has been REMOVED
1498 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1499 Equivalent to --with-gmp-include=PATH/include
1500 plus --with-gmp-lib=PATH/lib
521ec477
DD
1501 --with-gmp-include=PATH specify directory for installed GMP include files
1502 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1503 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1504 when linking with PPL
e8a5fa9c
RW
1505 --with-stage1-ldflags=FLAGS Linker flags for stage1
1506 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1507 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1508 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1509 --with-ppl=PATH Specify prefix directory for the installed PPL package
1510 Equivalent to --with-ppl-include=PATH/include
1511 plus --with-ppl-lib=PATH/lib
1512 --with-ppl-include=PATH Specify directory for installed PPL include files
1513 --with-ppl-lib=PATH Specify the directory for the installed PPL library
e552509b
ILT
1514 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1515 package. Equivalent to
1516 --with-cloog-include=PATH/include plus
1517 --with-cloog-lib=PATH/lib
1518 --with-cloog-include=PATH
1519 Specify directory for installed CLooG include files
1520 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1521 library
521ec477 1522 --with-build-sysroot=SYSROOT
c6b750e1 1523 use sysroot as the system root during the build
8a6ee3ab
JM
1524 --with-debug-prefix-map='A=B C=D ...'
1525 map A to B, C to D ... in debug information
96655cc4
AO
1526--with-build-config='NAME NAME2...'
1527 Use config/NAME.mk build configuration
521ec477 1528 --with-build-time-tools=PATH
c6b750e1 1529 use given path to find target tools during the build
c6b750e1
DJ
1530
1531Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
81ecdfbb
RW
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
4074d5f2
RW
1541 build_configargs
1542 additional configure arguments for build directories
1543 host_configargs
1544 additional configure arguments for host directories
1545 target_configargs
1546 additional configure arguments for target directories
9a819804
AO
1547 AR AR for the host
1548 AS AS for the host
1549 DLLTOOL DLLTOOL for the host
1550 LD LD for the host
1551 LIPO LIPO for the host
1552 NM NM for the host
1553 RANLIB RANLIB for the host
1554 STRIP STRIP for the host
1555 WINDRES WINDRES for the host
0c24b341 1556 WINDMC WINDMC for the host
9a819804
AO
1557 OBJCOPY OBJCOPY for the host
1558 OBJDUMP OBJDUMP for the host
1559 CC_FOR_TARGET
1560 CC for the target
1561 CXX_FOR_TARGET
1562 CXX for the target
1563 GCC_FOR_TARGET
1564 GCC for the target
1565 GCJ_FOR_TARGET
1566 GCJ for the target
1567 GFORTRAN_FOR_TARGET
1568 GFORTRAN for the target
e552509b
ILT
1569 GOC_FOR_TARGET
1570 GOC for the target
9a819804
AO
1571 AR_FOR_TARGET
1572 AR for the target
1573 AS_FOR_TARGET
1574 AS for the target
1575 DLLTOOL_FOR_TARGET
1576 DLLTOOL for the target
1577 LD_FOR_TARGET
1578 LD for the target
1579 LIPO_FOR_TARGET
1580 LIPO for the target
1581 NM_FOR_TARGET
1582 NM for the target
1583 OBJDUMP_FOR_TARGET
1584 OBJDUMP for the target
1585 RANLIB_FOR_TARGET
1586 RANLIB for the target
1587 STRIP_FOR_TARGET
1588 STRIP for the target
1589 WINDRES_FOR_TARGET
1590 WINDRES for the target
0c24b341
NC
1591 WINDMC_FOR_TARGET
1592 WINDMC for the target
c6b750e1
DJ
1593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
81ecdfbb 1597Report bugs to the package provider.
c6b750e1 1598_ACEOF
81ecdfbb 1599ac_status=$?
c6b750e1
DJ
1600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
c6b750e1 1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
c6b750e1
DJ
1608 ac_builddir=.
1609
81ecdfbb
RW
1610case "$ac_dir" in
1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612*)
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620esac
1621ac_abs_top_builddir=$ac_pwd
1622ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623# for backward compatibility:
1624ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1625
1626case $srcdir in
81ecdfbb 1627 .) # We are building in place.
c6b750e1 1628 ac_srcdir=.
81ecdfbb
RW
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1632 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1639esac
81ecdfbb
RW
1640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1650 else
81ecdfbb
RW
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1654 done
1655fi
1656
81ecdfbb 1657test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1658if $ac_init_version; then
1659 cat <<\_ACEOF
81ecdfbb
RW
1660configure
1661generated by GNU Autoconf 2.64
c6b750e1 1662
81ecdfbb 1663Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
1666_ACEOF
81ecdfbb 1667 exit
c6b750e1 1668fi
81ecdfbb
RW
1669
1670## ------------------------ ##
1671## Autoconf initialization. ##
1672## ------------------------ ##
1673
1674# ac_fn_c_try_compile LINENO
1675# --------------------------
1676# Try to compile conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_compile ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext
1681 if { { ac_try="$ac_compile"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1709
1710} # ac_fn_c_try_compile
1711
1712# ac_fn_cxx_try_compile LINENO
1713# ----------------------------
1714# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_cxx_try_compile ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_cxx_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1747
1748} # ac_fn_cxx_try_compile
1749
1750# ac_fn_c_try_link LINENO
1751# -----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_link ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 $as_test_x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794} # ac_fn_c_try_link
1795cat >config.log <<_ACEOF
c6b750e1
DJ
1796This file contains any messages produced by compilers while
1797running configure, to aid debugging if configure makes a mistake.
1798
1799It was created by $as_me, which was
81ecdfbb 1800generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1801
1802 $ $0 $@
1803
1804_ACEOF
81ecdfbb 1805exec 5>>config.log
c6b750e1
DJ
1806{
1807cat <<_ASUNAME
1808## --------- ##
1809## Platform. ##
1810## --------- ##
1811
1812hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1813uname -m = `(uname -m) 2>/dev/null || echo unknown`
1814uname -r = `(uname -r) 2>/dev/null || echo unknown`
1815uname -s = `(uname -s) 2>/dev/null || echo unknown`
1816uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817
1818/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1819/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1820
1821/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1822/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1823/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1824/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1825/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1826/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1827/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1828
1829_ASUNAME
1830
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1836 $as_echo "PATH: $as_dir"
1837 done
1838IFS=$as_save_IFS
c6b750e1
DJ
1839
1840} >&5
1841
1842cat >&5 <<_ACEOF
1843
1844
1845## ----------- ##
1846## Core tests. ##
1847## ----------- ##
1848
1849_ACEOF
1850
1851
1852# Keep a trace of the command line.
1853# Strip out --no-create and --no-recursion so they do not pile up.
1854# Strip out --silent because we don't want to record it for future runs.
1855# Also quote any args containing shell meta-characters.
1856# Make two passes to allow for proper duplicate-argument suppression.
1857ac_configure_args=
1858ac_configure_args0=
1859ac_configure_args1=
c6b750e1
DJ
1860ac_must_keep_next=false
1861for ac_pass in 1 2
1862do
1863 for ac_arg
1864 do
1865 case $ac_arg in
1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1868 | -silent | --silent | --silen | --sile | --sil)
1869 continue ;;
81ecdfbb
RW
1870 *\'*)
1871 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1872 esac
1873 case $ac_pass in
81ecdfbb 1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1875 2)
81ecdfbb 1876 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1877 if test $ac_must_keep_next = true; then
1878 ac_must_keep_next=false # Got value, back to normal.
1879 else
1880 case $ac_arg in
1881 *=* | --config-cache | -C | -disable-* | --disable-* \
1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1884 | -with-* | --with-* | -without-* | --without-* | --x)
1885 case "$ac_configure_args0 " in
1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1887 esac
1888 ;;
1889 -* ) ac_must_keep_next=true ;;
1890 esac
1891 fi
81ecdfbb 1892 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1893 ;;
1894 esac
1895 done
1896done
81ecdfbb
RW
1897{ ac_configure_args0=; unset ac_configure_args0;}
1898{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1899
1900# When interrupted or exit'd, cleanup temporary files, and complete
1901# config.log. We remove comments because anyway the quotes in there
1902# would cause problems or look ugly.
81ecdfbb
RW
1903# WARNING: Use '\'' to represent an apostrophe within the trap.
1904# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1905trap 'exit_status=$?
1906 # Save into config.log some information that might help in debugging.
1907 {
1908 echo
1909
1910 cat <<\_ASBOX
1911## ---------------- ##
1912## Cache variables. ##
1913## ---------------- ##
1914_ASBOX
1915 echo
1916 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1917(
1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in #(
1921 *${as_nl}*)
1922 case $ac_var in #(
1923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1926 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1930 esac ;;
1931 esac
1932 done
c6b750e1 1933 (set) 2>&1 |
81ecdfbb
RW
1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space=\ *)
c6b750e1 1936 sed -n \
81ecdfbb
RW
1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939 ;; #(
c6b750e1 1940 *)
81ecdfbb 1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1942 ;;
81ecdfbb
RW
1943 esac |
1944 sort
1945)
c6b750e1
DJ
1946 echo
1947
1948 cat <<\_ASBOX
1949## ----------------- ##
1950## Output variables. ##
1951## ----------------- ##
1952_ASBOX
1953 echo
1954 for ac_var in $ac_subst_vars
1955 do
81ecdfbb
RW
1956 eval ac_val=\$$ac_var
1957 case $ac_val in
1958 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1959 esac
1960 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1961 done | sort
1962 echo
1963
1964 if test -n "$ac_subst_files"; then
1965 cat <<\_ASBOX
81ecdfbb
RW
1966## ------------------- ##
1967## File substitutions. ##
1968## ------------------- ##
c6b750e1
DJ
1969_ASBOX
1970 echo
1971 for ac_var in $ac_subst_files
1972 do
81ecdfbb
RW
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1978 done | sort
1979 echo
1980 fi
1981
1982 if test -s confdefs.h; then
1983 cat <<\_ASBOX
1984## ----------- ##
1985## confdefs.h. ##
1986## ----------- ##
1987_ASBOX
1988 echo
81ecdfbb 1989 cat confdefs.h
c6b750e1
DJ
1990 echo
1991 fi
1992 test "$ac_signal" != 0 &&
81ecdfbb
RW
1993 $as_echo "$as_me: caught signal $ac_signal"
1994 $as_echo "$as_me: exit $exit_status"
c6b750e1 1995 } >&5
81ecdfbb
RW
1996 rm -f core *.core core.conftest.* &&
1997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1998 exit $exit_status
81ecdfbb 1999' 0
c6b750e1 2000for ac_signal in 1 2 13 15; do
81ecdfbb 2001 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2002done
2003ac_signal=0
2004
2005# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2006rm -f -r conftest* confdefs.h
2007
2008$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2009
2010# Predefined preprocessor variables.
2011
2012cat >>confdefs.h <<_ACEOF
2013#define PACKAGE_NAME "$PACKAGE_NAME"
2014_ACEOF
2015
c6b750e1
DJ
2016cat >>confdefs.h <<_ACEOF
2017#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2018_ACEOF
2019
c6b750e1
DJ
2020cat >>confdefs.h <<_ACEOF
2021#define PACKAGE_VERSION "$PACKAGE_VERSION"
2022_ACEOF
2023
c6b750e1
DJ
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_STRING "$PACKAGE_STRING"
2026_ACEOF
2027
c6b750e1
DJ
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2030_ACEOF
2031
81ecdfbb
RW
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_URL "$PACKAGE_URL"
2034_ACEOF
2035
c6b750e1
DJ
2036
2037# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2038# Prefer an explicitly selected file to automatically selected ones.
2039ac_site_file1=NONE
2040ac_site_file2=NONE
2041if test -n "$CONFIG_SITE"; then
2042 ac_site_file1=$CONFIG_SITE
2043elif test "x$prefix" != xNONE; then
2044 ac_site_file1=$prefix/share/config.site
2045 ac_site_file2=$prefix/etc/config.site
2046else
2047 ac_site_file1=$ac_default_prefix/share/config.site
2048 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2049fi
81ecdfbb
RW
2050for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051do
2052 test "x$ac_site_file" = xNONE && continue
a0da8069 2053 if test -r "$ac_site_file"; then
81ecdfbb
RW
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2056 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2057 . "$ac_site_file"
2058 fi
2059done
2060
2061if test -r "$cache_file"; then
c6b750e1
DJ
2062 # Some versions of bash will fail to source /dev/null (special
2063 # files actually), so we avoid doing that.
2064 if test -f "$cache_file"; then
81ecdfbb
RW
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2067 case $cache_file in
81ecdfbb
RW
2068 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069 *) . "./$cache_file";;
c6b750e1
DJ
2070 esac
2071 fi
a0da8069 2072else
81ecdfbb
RW
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2075 >$cache_file
2076fi
2077
2078# Check that the precious variables saved in the cache have kept the same
2079# value.
2080ac_cache_corrupted=false
81ecdfbb 2081for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2082 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2083 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2084 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2085 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2086 case $ac_old_set,$ac_new_set in
2087 set,)
81ecdfbb
RW
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2090 ac_cache_corrupted=: ;;
2091 ,set)
81ecdfbb
RW
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2093$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2094 ac_cache_corrupted=: ;;
2095 ,);;
2096 *)
2097 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2098 # differences in whitespace do not lead to failure.
2099 ac_old_val_w=`echo x $ac_old_val`
2100 ac_new_val_w=`echo x $ac_new_val`
2101 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2103$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104 ac_cache_corrupted=:
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108 eval $ac_var=\$ac_old_val
2109 fi
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2111$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2113$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2114 fi;;
2115 esac
2116 # Pass precious variables to config.status.
2117 if test "$ac_new_set" = set; then
2118 case $ac_new_val in
81ecdfbb 2119 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2120 *) ac_arg=$ac_var=$ac_new_val ;;
2121 esac
2122 case " $ac_configure_args " in
2123 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2124 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2125 esac
2126 fi
2127done
2128if $ac_cache_corrupted; then
81ecdfbb
RW
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2132$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2134fi
81ecdfbb
RW
2135## -------------------- ##
2136## Main body of script. ##
2137## -------------------- ##
a0da8069
NN
2138
2139ac_ext=c
a0da8069 2140ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144
2145
2146
2147
c6b750e1
DJ
2148
2149
34a0f3cf 2150
c6b750e1 2151
5b553f7e
RW
2152
2153progname=$0
2154# if PWD already has a value, it is probably wrong.
2155if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2156
2157# Export original configure arguments for use by sub-configures.
2158# Quote arguments with shell meta charatcers.
2159TOPLEVEL_CONFIGURE_ARGUMENTS=
2160set -- "$progname" "$@"
2161for ac_arg
2162do
2163 case "$ac_arg" in
2164 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2165 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2166 # if the argument is of the form -foo=baz, quote the baz part only
2167 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2168 *) ;;
2169 esac
2170 # Add the quoted argument to the list.
2171 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2172done
2173if test "$silent" = yes; then
2174 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2175fi
2176# Remove the initial space we just introduced and, as these will be
2177# expanded by make, quote '$'.
2178TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2179
c6b750e1
DJ
2180
2181# Find the build, host, and target systems.
a0da8069 2182ac_aux_dir=
81ecdfbb
RW
2183for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184 for ac_t in install-sh install.sh shtool; do
2185 if test -f "$ac_dir/$ac_t"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/$ac_t -c"
2188 break 2
2189 fi
2190 done
a0da8069
NN
2191done
2192if test -z "$ac_aux_dir"; then
81ecdfbb 2193 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2194fi
81ecdfbb
RW
2195
2196# These three variables are undocumented and unsupported,
2197# and are intended to be withdrawn in a future Autoconf release.
2198# They can cause serious problems if a builder's source tree is in a directory
2199# whose full name contains unusual characters.
2200ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2201ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2202ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2203
a0da8069 2204
c6b750e1 2205# Make sure we can run config.sub.
81ecdfbb
RW
2206$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2207 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2208
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2210$as_echo_n "checking build system type... " >&6; }
2211if test "${ac_cv_build+set}" = set; then :
2212 $as_echo_n "(cached) " >&6
2213else
2214 ac_build_alias=$build_alias
2215test "x$ac_build_alias" = x &&
2216 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2217test "x$ac_build_alias" = x &&
2218 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2219ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2220 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2221
2222fi
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2224$as_echo "$ac_cv_build" >&6; }
2225case $ac_cv_build in
2226*-*-*) ;;
2227*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2228esac
c6b750e1 2229build=$ac_cv_build
81ecdfbb
RW
2230ac_save_IFS=$IFS; IFS='-'
2231set x $ac_cv_build
2232shift
2233build_cpu=$1
2234build_vendor=$2
2235shift; shift
2236# Remember, the first character of IFS is used to create $*,
2237# except with old shells:
2238build_os=$*
2239IFS=$ac_save_IFS
2240case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2241
a0da8069 2242
c6b750e1
DJ
2243 case ${build_alias} in
2244 "") build_noncanonical=${build} ;;
2245 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2246esac
2247
2248
cac3d6c4 2249
c6b750e1
DJ
2250 case ${host_alias} in
2251 "") host_noncanonical=${build_noncanonical} ;;
2252 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2253esac
2254
cac3d6c4 2255
c6b750e1
DJ
2256
2257 case ${target_alias} in
2258 "") target_noncanonical=${host_noncanonical} ;;
2259 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2260esac
2261
cac3d6c4 2262
c6b750e1
DJ
2263
2264
2265test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2267 NONENONEs,x,x, &&
c6b750e1 2268 program_transform_name=s,y,y,
cac3d6c4 2269
81ecdfbb
RW
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2271$as_echo_n "checking host system type... " >&6; }
2272if test "${ac_cv_host+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
cac3d6c4 2274else
81ecdfbb
RW
2275 if test "x$host_alias" = x; then
2276 ac_cv_host=$ac_cv_build
2277else
2278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2279 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2280fi
c6b750e1
DJ
2281
2282fi
81ecdfbb
RW
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2284$as_echo "$ac_cv_host" >&6; }
2285case $ac_cv_host in
2286*-*-*) ;;
2287*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2288esac
c6b750e1 2289host=$ac_cv_host
81ecdfbb
RW
2290ac_save_IFS=$IFS; IFS='-'
2291set x $ac_cv_host
2292shift
2293host_cpu=$1
2294host_vendor=$2
2295shift; shift
2296# Remember, the first character of IFS is used to create $*,
2297# except with old shells:
2298host_os=$*
2299IFS=$ac_save_IFS
2300case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2301
2302
81ecdfbb
RW
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2304$as_echo_n "checking target system type... " >&6; }
2305if test "${ac_cv_target+set}" = set; then :
2306 $as_echo_n "(cached) " >&6
c6b750e1 2307else
81ecdfbb
RW
2308 if test "x$target_alias" = x; then
2309 ac_cv_target=$ac_cv_host
2310else
2311 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2313fi
c6b750e1 2314
cac3d6c4 2315fi
81ecdfbb
RW
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2317$as_echo "$ac_cv_target" >&6; }
2318case $ac_cv_target in
2319*-*-*) ;;
2320*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2321esac
c6b750e1 2322target=$ac_cv_target
81ecdfbb
RW
2323ac_save_IFS=$IFS; IFS='-'
2324set x $ac_cv_target
2325shift
2326target_cpu=$1
2327target_vendor=$2
2328shift; shift
2329# Remember, the first character of IFS is used to create $*,
2330# except with old shells:
2331target_os=$*
2332IFS=$ac_save_IFS
2333case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2334
2335
2336# The aliases save the names the user supplied, while $host etc.
2337# will get canonicalized.
2338test -n "$target_alias" &&
2339 test "$program_prefix$program_suffix$program_transform_name" = \
2340 NONENONEs,x,x, &&
2341 program_prefix=${target_alias}-
81ecdfbb 2342
a0da8069 2343test "$program_prefix" != NONE &&
81ecdfbb 2344 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2345# Use a double $ so make ignores it.
2346test "$program_suffix" != NONE &&
81ecdfbb
RW
2347 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2348# Double any \ or $.
c6b750e1 2349# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2350ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2351program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2352
a0da8069
NN
2353
2354
e5c3f801
NN
2355# Get 'install' or 'install-sh' and its variants.
2356# Find a good install program. We prefer a C program (faster),
2357# so one script is as good as another. But avoid the broken or
2358# incompatible versions:
2359# SysV /etc/install, /usr/sbin/install
2360# SunOS /usr/etc/install
2361# IRIX /sbin/install
2362# AIX /bin/install
c6b750e1 2363# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2367# OS/2's system install, which has a completely different semantic
e5c3f801 2368# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2369# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2371$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2372if test -z "$INSTALL"; then
81ecdfbb
RW
2373if test "${ac_cv_path_install+set}" = set; then :
2374 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2375else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2381 # Account for people who put trailing slashes in PATH elements.
2382case $as_dir/ in #((
2383 ./ | .// | /[cC]/* | \
c6b750e1 2384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2386 /usr/ucb/* ) ;;
2387 *)
2388 # OSF1 and SCO ODT 3.0 have their own names for install.
2389 # Don't use installbsd from OSF since it installs stuff as root
2390 # by default.
2391 for ac_prog in ginstall scoinst install; do
2392 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2394 if test $ac_prog = install &&
c6b750e1 2395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2396 # AIX install. It has an incompatible calling convention.
2397 :
c6b750e1
DJ
2398 elif test $ac_prog = install &&
2399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # program-specific install script used by HP pwplus--don't use.
2401 :
e5c3f801 2402 else
58c85be7
RW
2403 rm -rf conftest.one conftest.two conftest.dir
2404 echo one > conftest.one
2405 echo two > conftest.two
2406 mkdir conftest.dir
2407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2408 test -s conftest.one && test -s conftest.two &&
2409 test -s conftest.dir/conftest.one &&
2410 test -s conftest.dir/conftest.two
2411 then
2412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2413 break 3
2414 fi
e5c3f801
NN
2415 fi
2416 fi
2417 done
c6b750e1
DJ
2418 done
2419 ;;
2420esac
81ecdfbb
RW
2421
2422 done
2423IFS=$as_save_IFS
c6b750e1 2424
58c85be7 2425rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2426
2427fi
2428 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2429 INSTALL=$ac_cv_path_install
e5c3f801 2430 else
58c85be7
RW
2431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for INSTALL within a source directory, because that will
e5c3f801 2433 # break other packages using the cache if that directory is
58c85be7 2434 # removed, or if the value is a relative name.
c6b750e1 2435 INSTALL=$ac_install_sh
e5c3f801
NN
2436 fi
2437fi
81ecdfbb
RW
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2439$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2440
2441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2442# It thinks the first close brace ends the variable substitution.
2443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2444
c6b750e1 2445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2446
2447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448
81ecdfbb
RW
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2450$as_echo_n "checking whether ln works... " >&6; }
2451if test "${acx_cv_prog_LN+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
656fdd47
PB
2453else
2454 rm -f conftestdata_t
2455echo >conftestdata_f
2456if ln conftestdata_f conftestdata_t 2>/dev/null
2457then
2458 acx_cv_prog_LN=ln
2459else
2460 acx_cv_prog_LN=no
2461fi
2462rm -f conftestdata_f conftestdata_t
2463
2464fi
2465if test $acx_cv_prog_LN = no; then
2466 LN="cp"
81ecdfbb
RW
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2468$as_echo "no, using $LN" >&6; }
656fdd47
PB
2469else
2470 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2472$as_echo "yes" >&6; }
656fdd47
PB
2473fi
2474
81ecdfbb
RW
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2476$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2477LN_S=$as_ln_s
2478if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480$as_echo "yes" >&6; }
cac3d6c4 2481else
81ecdfbb
RW
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2483$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2484fi
2485
8e957354
PB
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2487$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2488if test "${ac_cv_path_SED+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490else
2491 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2492 for ac_i in 1 2 3 4 5 6 7; do
2493 ac_script="$ac_script$as_nl$ac_script"
2494 done
2495 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2496 { ac_script=; unset ac_script;}
2497 if test -z "$SED"; then
2498 ac_path_SED_found=false
2499 # Loop through the user's path and test for each of PROGNAME-LIST
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_prog in sed gsed; do
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2508 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2509# Check for GNU ac_path_SED and select it if it is found.
2510 # Check for GNU $ac_path_SED
2511case `"$ac_path_SED" --version 2>&1` in
2512*GNU*)
2513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2514*)
2515 ac_count=0
2516 $as_echo_n 0123456789 >"conftest.in"
2517 while :
2518 do
2519 cat "conftest.in" "conftest.in" >"conftest.tmp"
2520 mv "conftest.tmp" "conftest.in"
2521 cp "conftest.in" "conftest.nl"
2522 $as_echo '' >> "conftest.nl"
2523 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2525 as_fn_arith $ac_count + 1 && ac_count=$as_val
2526 if test $ac_count -gt ${ac_path_SED_max-0}; then
2527 # Best one so far, save it but keep looking for a better one
2528 ac_cv_path_SED="$ac_path_SED"
2529 ac_path_SED_max=$ac_count
2530 fi
2531 # 10*(2^10) chars as input seems more than enough
2532 test $ac_count -gt 10 && break
2533 done
2534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2535esac
2536
2537 $ac_path_SED_found && break 3
2538 done
2539 done
2540 done
2541IFS=$as_save_IFS
2542 if test -z "$ac_cv_path_SED"; then
2543 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2544 fi
2545else
2546 ac_cv_path_SED=$SED
2547fi
2548
2549fi
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2551$as_echo "$ac_cv_path_SED" >&6; }
2552 SED="$ac_cv_path_SED"
2553 rm -f conftest.sed
2554
2555for ac_prog in gawk mawk nawk awk
2556do
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558set dummy $ac_prog; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if test "${ac_cv_prog_AWK+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563else
2564 if test -n "$AWK"; then
2565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_AWK="$ac_prog"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578done
2579 done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584AWK=$ac_cv_prog_AWK
2585if test -n "$AWK"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2587$as_echo "$AWK" >&6; }
2588else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593
2594 test -n "$AWK" && break
2595done
2596
e5c3f801 2597
252b5132 2598### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2599### If we are on Windows, search for the shell. This will permit people
2600### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2601### without also having to set CONFIG_SHELL. This code will work when
2602### using bash, which sets OSTYPE.
2603case "${OSTYPE}" in
2604*win32*)
a0da8069
NN
2605 if test x${CONFIG_SHELL} = x ; then
2606 if test ! -f /bin/sh ; then
2607 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2608 CONFIG_SHELL=${SHELL}
2609 export CONFIG_SHELL
2610 else
2611 for prog in sh sh.exe bash bash.exe; do
2612 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2613 for dir in $PATH; do
2614 test -z "$dir" && dir=.
2615 if test -f $dir/$prog; then
2616 CONFIG_SHELL=$dir/$prog
2617 export CONFIG_SHELL
2618 break
2619 fi
2620 done
2621 IFS="$save_ifs"
2622 test -n "${CONFIG_SHELL}" && break
2623 done
2624 fi
2625 fi
2626 fi
2627 ;;
2628esac
2629
2630config_shell=${CONFIG_SHELL-/bin/sh}
2631
a0da8069 2632moveifchange=${srcdir}/move-if-change
252b5132 2633
0fdbe983
DJ
2634srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2635
2636# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2637# a relative path.
2638if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2639 INSTALL="${srcpwd}/install-sh -c"
2640fi
2641
a0da8069
NN
2642# Set srcdir to "." if that's what it is.
2643# This is important for multilib support.
2644pwd=`${PWDCMD-pwd}`
a0da8069
NN
2645if test "${pwd}" = "${srcpwd}" ; then
2646 srcdir=.
252b5132
RH
2647fi
2648
a0da8069 2649topsrcdir=$srcpwd
252b5132 2650
a0da8069 2651extra_host_args=
afefada0 2652
a0da8069
NN
2653### To add a new directory to the tree, first choose whether it is a target
2654### or a host dependent tool. Then put it into the appropriate list
2655### (library or tools, host or target), doing a dependency sort.
252b5132 2656
c6b750e1 2657# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2658# configdirs, or target_configdirs; see the serialization section below.
252b5132 2659
c6b750e1
DJ
2660# Dependency sorting is only needed when *configuration* must be done in
2661# a particular order. In all cases a dependency should be specified in
a0da8069 2662# the Makefile, whether or not it's implicitly specified here.
252b5132 2663
a0da8069
NN
2664# Double entries in build_configdirs, configdirs, or target_configdirs may
2665# cause circular dependencies and break everything horribly.
252b5132 2666
6a9cf61e
PB
2667# these library is used by various programs built for the build
2668# environment
2669#
2670build_libs="build-libiberty"
2671
2672# these tools are built for the build environment
ee025550 2673build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2674
a0da8069
NN
2675# these libraries are used by various programs built for the host environment
2676#
1f53ca9a 2677host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2678
a0da8069
NN
2679# these tools are built for the host environment
2680# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2681# know that we are building the simulator.
2682# binutils, gas and ld appear in that order because it makes sense to run
2683# "make check" in that particular order.
e6de499b 2684# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2685host_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
2686
2687# libgcj represents the runtime libraries only used by gcj.
2688libgcj="target-libffi \
a0da8069
NN
2689 target-zlib \
2690 target-qthreads \
2691 target-libjava"
2692
2693# these libraries are built for the target environment, and are built after
2694# the host libraries and the host tools (which may be a cross compiler)
2695#
b1299c4e
DJ
2696target_libraries="target-libgcc \
2697 target-libiberty \
a0da8069
NN
2698 target-libgloss \
2699 target-newlib \
cff87f51 2700 target-libgomp \
b9459e83 2701 target-libstdc++-v3 \
4b1cb4fe 2702 target-libmudflap \
bb780410 2703 target-libssp \
e552509b 2704 target-libquadmath \
4b1cb4fe 2705 target-libgfortran \
4f0ef2d8 2706 target-boehm-gc \
83326456 2707 ${libgcj} \
a2592b1b 2708 target-libobjc \
e552509b
ILT
2709 target-libada \
2710 target-libgo"
a0da8069 2711
9c14acb8
NN
2712# these tools are built using the target libraries, and are intended to
2713# run only in the target environment
a0da8069 2714#
9c14acb8 2715# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2716# list belongs in this list. those programs are also very likely
2717# candidates for the "native_only" list which follows
2718#
a3dd767d 2719target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2720
a0da8069 2721################################################################################
252b5132 2722
a0da8069
NN
2723## All tools belong in one of the four categories, and are assigned above
2724## We assign ${configdirs} this way to remove all embedded newlines. This
2725## is important because configure will choke if they ever get through.
2726## ${configdirs} is directories we build using the host tools.
2727## ${target_configdirs} is directories we build using the target tools.
a0da8069 2728configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2729target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2730build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2731
9cc8ae67
PB
2732
2733
a0da8069 2734################################################################################
252b5132 2735
a0da8069 2736srcname="gnu development package"
252b5132 2737
a0da8069
NN
2738# This gets set non-empty for some net releases of packages.
2739appdirs=""
252b5132 2740
a0da8069
NN
2741# Define is_cross_compiler to save on calls to 'test'.
2742is_cross_compiler=
2743if test x"${host}" = x"${target}" ; then
2744 is_cross_compiler=no
252b5132 2745else
a0da8069 2746 is_cross_compiler=yes
c6b750e1 2747fi
252b5132 2748
9175bfc0 2749# Find the build and target subdir names.
dd12c3a8 2750
66a79c16
DJ
2751# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2752# have matching libraries, they should use host libraries: Makefile.tpl
2753# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2754# However, they still use the build modules, because the corresponding
2755# host modules (e.g. bison) are only built for the host when bootstrap
2756# finishes. So:
2757# - build_subdir is where we find build modules, and never changes.
2758# - build_libsubdir is where we find build libraries, and can be overridden.
2759
2760# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2761build_subdir="build-${build_noncanonical}"
c6b750e1 2762
81ecdfbb
RW
2763# Check whether --with-build-libsubdir was given.
2764if test "${with_build_libsubdir+set}" = set; then :
2765 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2766else
2767 build_libsubdir="$build_subdir"
81ecdfbb
RW
2768fi
2769
b00612cc
PB
2770# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2771if ( test $srcdir = . && test -d gcc ) \
2772 || test -d $srcdir/../host-${host_noncanonical}; then
2773 host_subdir="host-${host_noncanonical}"
2774else
2775 host_subdir=.
2776fi
dd12c3a8
NN
2777# No prefix.
2778target_subdir=${target_noncanonical}
c6b750e1 2779
2fd0b40b
RW
2780# Be sure to cover against remnants of an in-tree build.
2781if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2782 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2783Use a pristine source tree when building in a separate tree" "$LINENO" 5
2784fi
252b5132 2785
a0da8069
NN
2786# Skipdirs are removed silently.
2787skipdirs=
2788# Noconfigdirs are removed loudly.
2789noconfigdirs=""
252b5132 2790
a0da8069
NN
2791use_gnu_ld=
2792# Make sure we don't let GNU ld be added if we didn't want it.
2793if test x$with_gnu_ld = xno ; then
2794 use_gnu_ld=no
93f9b408 2795 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2796fi
2797
a0da8069
NN
2798use_gnu_as=
2799# Make sure we don't let GNU as be added if we didn't want it.
2800if test x$with_gnu_as = xno ; then
2801 use_gnu_as=no
2802 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2803fi
2804
700d40ca
ILT
2805use_included_zlib=
2806# Make sure we don't let ZLIB be added if we didn't want it.
2807if test x$with_system_zlib = xyes ; then
2808 use_included_zlib=no
2809 noconfigdirs="$noconfigdirs zlib"
2810fi
2811
c6b750e1 2812# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2813# it's not even worth trying to configure, much less build, that tool.
252b5132 2814
a0da8069
NN
2815case ${with_x} in
2816 yes | "") ;; # the default value for this tree is that X11 is available
2817 no)
675c6968 2818 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2819 # We won't be able to build gdbtk without X.
c6b750e1 2820 enable_gdbtk=no
a0da8069
NN
2821 ;;
2822 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2823esac
252b5132 2824
a0da8069 2825# Some tools are only suitable for building in a "native" situation.
c6b750e1 2826# Remove these if host!=target.
701628f5 2827native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 2828
a0da8069
NN
2829# Similarly, some are only suitable for cross toolchains.
2830# Remove these if host=target.
2831cross_only="target-libgloss target-newlib target-opcodes"
2832
2833case $is_cross_compiler in
2834 no) skipdirs="${skipdirs} ${cross_only}" ;;
2835 yes) skipdirs="${skipdirs} ${native_only}" ;;
2836esac
252b5132 2837
a0da8069
NN
2838# If both --with-headers and --with-libs are specified, default to
2839# --without-newlib.
32be62b5
RS
2840if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2841 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2842 if test x"${with_newlib}" = x ; then
2843 with_newlib=no
2844 fi
252b5132
RH
2845fi
2846
a0da8069
NN
2847# Recognize --with-newlib/--without-newlib.
2848case ${with_newlib} in
2849 no) skipdirs="${skipdirs} target-newlib" ;;
2850 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2851esac
252b5132 2852
93f9b408 2853# Handle --enable-gold.
e6de499b
NC
2854# --enable-gold Build only gold
2855# --disable-gold [default] Build only ld
2856# --enable-gold=both Build both gold and ld, ld is default
2857# --enable-gold=both/ld Same
2858# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
93f9b408 2859
81ecdfbb
RW
2860# Check whether --enable-gold was given.
2861if test "${enable_gold+set}" = set; then :
2862 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2863else
2864 ENABLE_GOLD=no
81ecdfbb
RW
2865fi
2866
e6de499b
NC
2867 case "${ENABLE_GOLD}" in
2868 yes|both|both/gold|both/ld)
2869 # Check for ELF target.
2870 is_elf=no
2871 case "${target}" in
2872 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2873 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2874 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2875 case "${target}" in
2876 *-*-linux*aout* | *-*-linux*oldld*)
2877 ;;
2878 *)
2879 is_elf=yes
2880 ;;
2881 esac
2882 esac
2883
2884 if test "$is_elf" = "yes"; then
2885 # Check for target supported by gold.
93f9b408 2886 case "${target}" in
e6de499b
NC
2887 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2888 case "${ENABLE_GOLD}" in
2889 both*)
2890 configdirs="$configdirs gold"
2891 ;;
2892 *)
3cac54d2 2893 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
e6de499b
NC
2894 ;;
2895 esac
2896 ENABLE_GOLD=yes
93f9b408
ILT
2897 ;;
2898 esac
e6de499b
NC
2899 fi
2900 ;;
2901 no)
2902 ;;
2903 *)
2904 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2905 ;;
93f9b408
ILT
2906 esac
2907
a0da8069 2908# Configure extra directories which are host specific
252b5132 2909
a0da8069
NN
2910case "${host}" in
2911 *-cygwin*)
2912 configdirs="$configdirs libtermcap" ;;
2913esac
252b5132 2914
59f7ec45
HPN
2915# A target can indicate whether a language isn't supported for some reason.
2916# Only spaces may be used in this macro; not newlines or tabs.
2917unsupported_languages=
2918
c6b750e1 2919# Remove more programs from consideration, based on the host or
a0da8069
NN
2920# target this usually means that a port of the program doesn't
2921# exist yet.
252b5132 2922
a0da8069
NN
2923case "${host}" in
2924 hppa*64*-*-*)
2925 noconfigdirs="$noconfigdirs byacc"
2926 ;;
ec11bdc6 2927 i[3456789]86-*-vsta)
675c6968 2928 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2929 ;;
ec11bdc6 2930 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2931 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2932 ;;
2d1e8239
NC
2933 x86_64-*-mingw*)
2934 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2935 ;;
ec11bdc6 2936 i[3456789]86-*-mingw32*)
675c6968 2937 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2938 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2939 ;;
ec11bdc6 2940 i[3456789]86-*-beos*)
675c6968 2941 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2942 ;;
a0da8069 2943 *-*-cygwin*)
a92834c8 2944 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2945 ;;
2946 *-*-netbsd*)
a92834c8 2947 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2948 ;;
2949 ppc*-*-pe)
675c6968 2950 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2951 ;;
2952 powerpc-*-beos*)
675c6968 2953 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2954 ;;
a0da8069 2955esac
252b5132 2956
4b1cb4fe 2957
81ecdfbb
RW
2958# Check whether --enable-libada was given.
2959if test "${enable_libada+set}" = set; then :
2960 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2961else
2962 ENABLE_LIBADA=yes
81ecdfbb
RW
2963fi
2964
a2592b1b 2965if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2966 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2967fi
2968
81ecdfbb
RW
2969# Check whether --enable-libssp was given.
2970if test "${enable_libssp+set}" = set; then :
2971 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2972else
2973 ENABLE_LIBSSP=yes
81ecdfbb
RW
2974fi
2975
5f128533 2976
a0da8069
NN
2977# Save it here so that, even in case of --enable-libgcj, if the Java
2978# front-end isn't enabled, we still get libgcj disabled.
2979libgcj_saved=$libgcj
2980case $enable_libgcj in
2981yes)
2982 # If we reset it here, it won't get added to noconfigdirs in the
2983 # target-specific build rules, so it will be forcibly enabled
2984 # (unless the Java language itself isn't enabled).
2985 libgcj=
2986 ;;
2987no)
2988 # Make sure we get it printed in the list of not supported target libs.
2989 noconfigdirs="$noconfigdirs ${libgcj}"
2990 ;;
2991esac
252b5132 2992
4b1cb4fe 2993
a6df5a19
PB
2994# Disable libmudflap on some systems.
2995if test x$enable_libmudflap = x ; then
3e707e94 2996 case "${target}" in
29383458 2997 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2998 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2999 ;;
3000 *-*-freebsd*)
3001 # Enable libmudflap by default in FreeBSD.
3002 ;;
3003 *)
3004 # Disable it by default everywhere else.
3005 noconfigdirs="$noconfigdirs target-libmudflap"
3006 ;;
3007 esac
a6df5a19 3008fi
4b1cb4fe 3009
a6df5a19
PB
3010# Disable libgomp on non POSIX hosted systems.
3011if test x$enable_libgomp = x ; then
b3ded179
PB
3012 # Enable libgomp by default on hosted POSIX systems.
3013 case "${target}" in
29383458 3014 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3015 ;;
3016 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3017 ;;
64ce424c 3018 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3019 ;;
3020 *-*-darwin* | *-*-aix*)
3021 ;;
3022 *)
3023 noconfigdirs="$noconfigdirs target-libgomp"
3024 ;;
3025 esac
a6df5a19 3026fi
b3ded179 3027
691bb5a1
DD
3028# Default libgloss CPU subdirectory.
3029libgloss_dir="$target_cpu"
4b1cb4fe 3030
a0da8069
NN
3031case "${target}" in
3032 *-*-chorusos)
54d1c879 3033 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3034 ;;
24741ab2 3035 powerpc-*-darwin*)
9d39db92 3036 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3037 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3038 ;;
85bd1942
TG
3039 i[3456789]86-*-darwin*)
3040 noconfigdirs="$noconfigdirs ld gprof"
3041 noconfigdirs="$noconfigdirs sim target-rda"
3042 ;;
e8a5fa9c 3043 x86_64-*-darwin[912]*)
652dec25
TG
3044 noconfigdirs="$noconfigdirs ld gas gprof"
3045 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3046 ;;
04d1ab34 3047 *-*-darwin*)
d320aacb 3048 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3049 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3050 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3051 ;;
a0da8069 3052 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3053 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3054 ;;
de0b4a87 3055 *-*-freebsd*)
4b1cb4fe
DD
3056 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3057 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3058 && test -f /usr/local/include/gmp.h; then
3059 with_gmp=/usr/local
3060 fi
3061
3062 # Skip some stuff that's unsupported on some FreeBSD configurations.
3063 case "${target}" in
3064 i*86-*-*) ;;
3065 alpha*-*-*) ;;
143754cd 3066 x86_64-*-*) ;;
4b1cb4fe 3067 *)
54d1c879 3068 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3069 ;;
3070 esac
3071 ;;
f8a495c8
NC
3072 *-*-kaos*)
3073 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3074 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3075 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3076 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3077 noconfigdirs="$noconfigdirs target-libgloss"
3078 ;;
a0da8069
NN
3079 *-*-netbsd*)
3080 # Skip some stuff on all NetBSD configurations.
3081 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3082
3083 # Skip some stuff that's unsupported on some NetBSD configurations.
3084 case "${target}" in
3085 i*86-*-netbsdelf*) ;;
5b474aa8 3086 arm*-*-netbsdelf*) ;;
a0da8069 3087 *)
54d1c879 3088 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3089 ;;
3090 esac
3091 ;;
2a3124ca 3092 *-*-netware*)
54d1c879 3093 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3094 ;;
3095 *-*-rtems*)
a009f2e7 3096 skipdirs="${skipdirs} target-libiberty"
54d1c879 3097 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3098 ;;
1587117a
EC
3099 # The tpf target doesn't support gdb yet.
3100 *-*-tpf*)
54d1c879 3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3102 ;;
c1968181 3103 *-*-uclinux*)
54d1c879 3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3105 ;;
a0da8069 3106 *-*-vxworks*)
54d1c879 3107 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3108 ;;
3109 alpha*-dec-osf*)
3110 # ld works, but does not support shared libraries.
3111 # newlib is not 64 bit ready. I'm not sure about fileutils.
3112 # gas doesn't generate exception information.
3113 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3114 ;;
3115 alpha*-*-*vms*)
d594eacc 3116 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3117 ;;
3118 alpha*-*-linux*)
3119 # newlib is not 64 bit ready
3120 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3121 ;;
a0da8069
NN
3122 alpha*-*-*)
3123 # newlib is not 64 bit ready
54d1c879 3124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3125 ;;
4a18bd6b 3126 am33_2.0-*-linux*)
54d1c879 3127 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3128 ;;
a0da8069 3129 sh-*-linux*)
54d1c879 3130 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3131 ;;
a0da8069 3132 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3133 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3134 noconfigdirs="$noconfigdirs target-examples"
3135 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3136 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3137 noconfigdirs="$noconfigdirs expect dejagnu"
3138 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3139 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3140 noconfigdirs="$noconfigdirs target-newlib"
3141 case "${host}" in
3142 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3143 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3144 ;;
3145 esac
691bb5a1 3146 libgloss_dir=wince
a0da8069
NN
3147 ;;
3148 arc-*-*)
54d1c879 3149 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3150 ;;
caeba88f 3151 arm-semi-aof )
caeba88f 3152 ;;
a0da8069 3153 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3154 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3155 libgloss_dir=arm
a0da8069 3156 ;;
11b04d1f 3157 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3158 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3159 libgloss_dir=arm
a0da8069 3160 ;;
bd70a46f 3161 arm*-*-linux-gnueabi)
6d18b86b 3162 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3163 case ${with_newlib} in
3164 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3165 esac
691bb5a1 3166 libgloss_dir=arm
bd70a46f 3167 ;;
df4a6958 3168 arm*-*-symbianelf*)
54d1c879 3169 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3170 libgloss_dir=arm
df4a6958 3171 ;;
a0da8069 3172 arm-*-pe*)
54d1c879 3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3174 ;;
a0da8069 3175 thumb-*-coff)
54d1c879 3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3177 ;;
3178 thumb-*-elf)
54d1c879 3179 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3180 ;;
a0da8069 3181 thumb-*-pe)
54d1c879 3182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3183 ;;
3184 arm-*-riscix*)
54d1c879 3185 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3186 ;;
3187 avr-*-*)
266df637 3188 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3189 ;;
376a0e54 3190 bfin-*-*)
df51e4e1
JZ
3191 unsupported_languages="$unsupported_languages java"
3192 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3193 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3194 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3195 fi
3196 ;;
a0da8069 3197 c4x-*-* | tic4x-*-*)
54d1c879 3198 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3199 ;;
3200 c54x*-*-* | tic54x-*-*)
54d1c879 3201 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3202 ;;
52310858
NC
3203 cr16-*-*)
3204 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3205 ;;
c7e66c6d 3206 cris-*-* | crisv32-*-*)
59f7ec45 3207 unsupported_languages="$unsupported_languages java"
c7e66c6d 3208 case "${target}" in
2faa2958 3209 *-*-aout)
096f7d00 3210 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3211 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3212 *-*-elf)
5e818318 3213 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3214 *-*-linux*)
5e818318 3215 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3216 *)
096f7d00 3217 unsupported_languages="$unsupported_languages fortran"
54d1c879 3218 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3219 esac
691bb5a1 3220 libgloss_dir=cris
a0da8069 3221 ;;
3e707e94 3222 crx-*-*)
54d1c879 3223 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3224 ;;
a0da8069 3225 d10v-*-*)
54d1c879 3226 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3227 ;;
3228 d30v-*-*)
54d1c879 3229 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3230 ;;
691bb5a1
DD
3231 ep9312-*-elf | ep9312-*-coff)
3232 libgloss_dir=arm
3233 ;;
a0da8069 3234 fr30-*-elf*)
54d1c879 3235 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3236 ;;
3237 frv-*-*)
54d1c879 3238 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3239 ;;
20135e4c
NC
3240 moxie-*-*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3242 noconfigdirs="$noconfigdirs gprof"
3243 ;;
a0da8069 3244 h8300*-*-*)
54d1c879 3245 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3246 ;;
3247 h8500-*-*)
54d1c879 3248 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3249 ;;
caeba88f 3250 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3251 ;;
a0da8069
NN
3252 hppa*64*-*-linux* | parisc*64*-*-linux*)
3253 # In this case, it's because the hppa64-linux target is for
3254 # the kernel only at this point and has no libc, and thus no
3255 # headers, crt*.o, etc., all of which are needed by these.
3256 noconfigdirs="$noconfigdirs target-zlib"
3257 ;;
5dcac624
DA
3258 parisc*-*-linux* | hppa*-*-linux*)
3259 ;;
a0da8069 3260 hppa*-*-*elf* | \
a0da8069
NN
3261 hppa*-*-lites* | \
3262 hppa*-*-openbsd* | \
3263 hppa*64*-*-*)
54d1c879 3264 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3265 ;;
3266 hppa*-hp-hpux11*)
3267 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3268 ;;
691bb5a1
DD
3269 hppa*-*-pro*)
3270 libgloss_dir=pa
3271 ;;
a0da8069
NN
3272 hppa*-*-*)
3273 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3274 # build on HP-UX 10.20.
54d1c879 3275 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3276 ;;
b07c2aad 3277 i960-*-*)
54d1c879 3278 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3279 ;;
a0da8069
NN
3280 ia64*-*-elf*)
3281 # No gdb support yet.
675c6968 3282 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3283 ;;
3284 ia64*-**-hpux*)
3285 # No gdb or ld support yet.
54d1c879 3286 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3287 ;;
19e99079
NC
3288 ia64*-*-*vms*)
3289 # No gdb or ld support yet.
3290 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3291 ;;
caeba88f 3292 i370-*-opened*)
caeba88f 3293 ;;
ec11bdc6 3294 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3295 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3296 libgloss_dir=i386
a0da8069 3297 ;;
ec11bdc6 3298 i[3456789]86-*-linux*)
a0da8069
NN
3299 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3300 # not build java stuff by default.
3301 case "${target}" in
3302 *-*-*libc1*)
54d1c879 3303 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3304 esac
3305
3306 # This section makes it possible to build newlib natively on linux.
3307 # If we are using a cross compiler then don't configure newlib.
3308 if test x${is_cross_compiler} != xno ; then
bba45b8b 3309 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3310 fi
3311 noconfigdirs="$noconfigdirs target-libgloss"
3312 # If we are not using a cross compiler, do configure newlib.
3313 # Note however, that newlib will only be configured in this situation
3314 # if the --with-newlib option has been given, because otherwise
3315 # 'target-newlib' will appear in skipdirs.
3316 ;;
1f53ca9a
AO
3317 i[3456789]86-w64-mingw*)
3318 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3319 ;;
3320 i[3456789]86-*-mingw*)
45055374
CV
3321 target_configdirs="$target_configdirs target-winsup"
3322 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3323 ;;
2d1e8239 3324 x86_64-*-mingw*)
2d1e8239 3325 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3326 ;;
a0da8069
NN
3327 *-*-cygwin*)
3328 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3329 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3330 # always build newlib if winsup directory is present.
45055374 3331 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3332 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3333 elif test -d "$srcdir/newlib"; then
45055374 3334 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3335 fi
c6b750e1 3336 ;;
caeba88f
AL
3337 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3338 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3339 ;;
ec11bdc6 3340 i[3456789]86-*-pe)
54d1c879 3341 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3342 ;;
ec11bdc6 3343 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3344 # The linker does not yet know about weak symbols in COFF,
3345 # and is not configured to handle mixed ELF and COFF.
54d1c879 3346 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3347 ;;
ec11bdc6 3348 i[3456789]86-*-sco*)
54d1c879 3349 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3350 ;;
ec11bdc6 3351 i[3456789]86-*-solaris2*)
a0da8069
NN
3352 noconfigdirs="$noconfigdirs target-libgloss"
3353 ;;
ec11bdc6 3354 i[3456789]86-*-sysv4*)
54d1c879 3355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3356 ;;
ec11bdc6 3357 i[3456789]86-*-beos*)
54d1c879 3358 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3359 ;;
b59bea8a 3360 i[3456789]86-*-rdos*)
2429c060
PB
3361 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3362 ;;
b07c2aad 3363 m32r-*-*)
54d1c879 3364 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3365 ;;
a0da8069 3366 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3367 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3368 libgloss_dir=m68hc11
a0da8069
NN
3369 ;;
3370 m68k-*-elf*)
54d1c879 3371 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3372 ;;
3373 m68k-*-coff*)
54d1c879 3374 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3375 ;;
691bb5a1
DD
3376 m68*-*-* | fido-*-*)
3377 libgloss_dir=m68k
3378 ;;
a0da8069
NN
3379 mcore-*-pe*)
3380 # The EPOC C++ environment does not support exceptions or rtti,
3381 # and so building libstdc++-v3 tends not to always work.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 mmix-*-*)
59f7ec45 3385 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3386 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3387 ;;
3388 mn10200-*-*)
54d1c879 3389 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3390 ;;
3391 mn10300-*-*)
54d1c879 3392 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3393 ;;
4970f871 3394 mt-*-*)
cdb9b172
AH
3395 noconfigdirs="$noconfigdirs sim"
3396 ;;
a0da8069
NN
3397 powerpc-*-aix*)
3398 # copied from rs6000-*-* entry
e8a5fa9c 3399 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3400 ;;
3401 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3402 target_configdirs="$target_configdirs target-winsup"
54d1c879 3403 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3404 # always build newlib.
3405 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3406 ;;
3407 # This is temporary until we can link against shared libraries
3408 powerpcle-*-solaris*)
54d1c879 3409 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3410 libgloss_dir=rs6000
a0da8069
NN
3411 ;;
3412 powerpc-*-beos*)
54d1c879 3413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3414 ;;
a0da8069 3415 powerpc-*-eabi)
54d1c879 3416 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3417 libgloss_dir=rs6000
caeba88f
AL
3418 ;;
3419 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3420 libgloss_dir=rs6000
a0da8069 3421 ;;
a0da8069 3422 rs6000-*-lynxos*)
54d1c879 3423 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3424 ;;
3425 rs6000-*-aix*)
e8a5fa9c 3426 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3427 ;;
3428 rs6000-*-*)
54d1c879 3429 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3430 ;;
3431 m68k-apollo-*)
54d1c879 3432 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3433 ;;
25a07265 3434 microblaze*)
29821356 3435 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3436 ;;
5bd8be13
RS
3437 mips*-sde-elf*)
3438 skipdirs="$skipdirs target-libiberty"
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3440 if test x$with_newlib = xyes; then
3441 noconfigdirs="$noconfigdirs gprof"
3442 fi
3443 libgloss_dir=mips
3444 ;;
a0da8069 3445 mips*-*-irix5*)
54d1c879 3446 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3447 ;;
3448 mips*-*-irix6*)
a0da8069
NN
3449 # Linking libjava exceeds command-line length limits on at least
3450 # IRIX 6.2, but not on IRIX 6.5.
3451 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3452 # <oldham@codesourcery.com>
54d1c879 3453 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3454 ;;
a0da8069 3455 mips*-*-bsd*)
54d1c879 3456 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3457 ;;
a0da8069
NN
3458 mips*-*-linux*)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 mips*-*-*)
54d1c879 3462 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3463 libgloss_dir=mips
a0da8069
NN
3464 ;;
3465 romp-*-*)
54d1c879 3466 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3467 ;;
dbf85af7 3468 sh-*-* | sh64-*-*)
a0da8069 3469 case "${host}" in
ec11bdc6
DD
3470 i[3456789]86-*-vsta) ;; # don't add gprof back in
3471 i[3456789]86-*-go32*) ;; # don't add gprof back in
3472 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3473 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3474 esac
e8a5fa9c
RW
3475 case "${target}" in
3476 sh*-*-elf)
3477 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3478 *)
3479 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3480 esac
a0da8069 3481 ;;
691bb5a1
DD
3482 sparclet-*-aout* | sparc86x-*-*)
3483 libgloss_dir=sparc
3484 ;;
a0da8069 3485 sparc-*-elf*)
54d1c879 3486 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3487 ;;
3488 sparc64-*-elf*)
54d1c879 3489 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3490 libgloss_dir=sparc
a0da8069
NN
3491 ;;
3492 sparclite-*-*)
54d1c879 3493 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3494 libgloss_dir=sparc
a0da8069
NN
3495 ;;
3496 sparc-*-sunos4*)
54d1c879 3497 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3498 if test x${is_cross_compiler} != xno ; then
3499 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3500 else
3501 use_gnu_ld=no
3502 fi
3503 ;;
e3c770b1 3504 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3505 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3506 ;;
a0da8069
NN
3507 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3508 ;;
619a3713
JM
3509 tic6x-*-*)
3510 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3511 ;;
a0da8069 3512 v810-*-*)
54d1c879 3513 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3514 ;;
1cd986c5
NC
3515 v850*-*-*)
3516 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3517 ;;
3518 vax-*-vms)
54d1c879 3519 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3520 ;;
3521 vax-*-*)
54d1c879 3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3523 ;;
8b66833e 3524 xtensa*-*-*)
54d1c879 3525 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3526 ;;
a0da8069 3527 ip2k-*-*)
54d1c879 3528 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3529 ;;
29383458 3530 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-lynxos*)
54d1c879 3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3535 ;;
a0da8069 3536 *-*-*)
54d1c879 3537 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3538 ;;
3539esac
252b5132 3540
a0da8069
NN
3541# If we aren't building newlib, then don't build libgloss, since libgloss
3542# depends upon some newlib header files.
3543case "${noconfigdirs}" in
3544 *target-libgloss*) ;;
3545 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3546esac
3547
a0da8069
NN
3548# Work in distributions that contain no compiler tools, like Autoconf.
3549tentative_cc=""
3550host_makefile_frag=/dev/null
3551if test -d ${srcdir}/config ; then
3552case "${host}" in
3553 m68k-hp-hpux*)
3554 # Avoid "too much defining" errors from HPUX compiler.
3555 tentative_cc="cc -Wp,-H256000"
3556 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3557 # If it's HP/UX ar, this should be harmless.
3558 RANLIB="ar ts"
3559 ;;
3560 m68k-apollo-sysv*)
3561 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3562 ;;
3563 m68k-apollo-bsd*)
3564 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3565 # chokes on bfd, the compiler won't let you assign integers to enums, and
3566 # other problems. Defining CC to gcc is a questionable way to say "don't use
3567 # the apollo compiler" (the preferred version of GCC could be called cc,
3568 # or whatever), but I'm not sure leaving CC as cc is any better...
3569 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3570 # Used to have BISON=yacc.
3571 tentative_cc=gcc
3572 ;;
3573 m88k-dg-dgux*)
3574 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3575 ;;
3576 m88k-harris-cxux*)
3577 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3578 tentative_cc="cc -Xa"
3579 host_makefile_frag="config/mh-cxux"
3580 ;;
3581 m88k-motorola-sysv*)
3582 ;;
3583 mips*-dec-ultrix*)
3584 tentative_cc="cc -Wf,-XNg1000"
3585 host_makefile_frag="config/mh-decstation"
3586 ;;
3587 mips*-nec-sysv4*)
3588 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3589 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3590 host_makefile_frag="config/mh-necv4"
3591 ;;
3592 mips*-sgi-irix4*)
3593 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3594 # environment. Also bump switch table size so that cp-parse will
3595 # compile. Bump string length limit so linker builds.
3596 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3597 ;;
3598 mips*-*-sysv4*)
3599 host_makefile_frag="config/mh-sysv4"
3600 ;;
3601 mips*-*-sysv*)
3602 # This is for a MIPS running RISC/os 4.52C.
3603
3604 # This is needed for GDB, but needs to be in the top-level make because
3605 # if a library is compiled with the bsd headers and gets linked with the
3606 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3607 # a different size).
3608 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3609 # known except to select the sysv environment. Could we use /proc instead?
3610 # These "sysv environments" and "bsd environments" often end up being a pain.
3611 #
3612 # This is not part of CFLAGS because perhaps not all C compilers have this
3613 # option.
3614 tentative_cc="cc -systype sysv"
3615 ;;
3616 i370-ibm-opened*)
3617 tentative_cc="c89"
3618 ;;
ec11bdc6 3619 i[3456789]86-*-sysv5*)
a0da8069
NN
3620 host_makefile_frag="config/mh-sysv5"
3621 ;;
ec11bdc6 3622 i[3456789]86-*-dgux*)
a0da8069
NN
3623 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3624 host_makefile_frag="config/mh-dgux386"
3625 ;;
ec11bdc6 3626 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3627 # The MetaWare compiler will generate a copyright message unless you
3628 # turn it off by adding the -Hnocopyr flag.
3629 tentative_cc="cc -Hnocopyr"
3630 ;;
ec11bdc6 3631 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3632 # for an NCR 3000 (i486/SVR4) system.
3633 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3634 # This compiler not only emits obnoxious copyright messages every time
3635 # you run it, but it chokes and dies on a whole bunch of GNU source
3636 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3637 tentative_cc="/usr/ccs/ATT/cc"
3638 host_makefile_frag="config/mh-ncr3000"
3639 ;;
ec11bdc6 3640 i[3456789]86-*-sco3.2v5*)
a0da8069 3641 ;;
ec11bdc6 3642 i[3456789]86-*-sco*)
a0da8069
NN
3643 # The native C compiler botches some simple uses of const. Unfortunately,
3644 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3645 tentative_cc="cc -Dconst="
3646 host_makefile_frag="config/mh-sco"
3647 ;;
ec11bdc6 3648 i[3456789]86-*-udk*)
a0da8069
NN
3649 host_makefile_frag="config/mh-sysv5"
3650 ;;
ec11bdc6 3651 i[3456789]86-*-solaris2*)
a0da8069
NN
3652 host_makefile_frag="config/mh-sysv4"
3653 ;;
ec11bdc6 3654 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3655 host_makefile_frag="config/mh-djgpp"
3656 ;;
3657 *-cygwin*)
e33b51a6 3658
81ecdfbb
RW
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3660$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3661echo a >cygwin-cat-check
1f53ca9a 3662if test `cat cygwin-cat-check` = a ; then
8ade07e9 3663 rm cygwin-cat-check
81ecdfbb
RW
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665$as_echo "yes" >&6; }
e33b51a6 3666else
8ade07e9 3667 rm cygwin-cat-check
81ecdfbb
RW
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
3670 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3671 Please either mount the build directory in binary mode or run the following
3672 commands before running any configure script:
3673set -o igncr
3674export SHELLOPTS
81ecdfbb 3675 " "$LINENO" 5
e33b51a6 3676fi
e33b51a6 3677
a0da8069
NN
3678 host_makefile_frag="config/mh-cygwin"
3679 ;;
8a1599ab 3680 *-mingw*)
84e7906e 3681 host_makefile_frag="config/mh-mingw"
2d1e8239 3682 ;;
a0da8069
NN
3683 *-interix*)
3684 host_makefile_frag="config/mh-interix"
3685 ;;
3686 vax-*-ultrix2*)
3687 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3688 tentative_cc=gcc
3689 ;;
3690 *-*-solaris2*)
3691 host_makefile_frag="config/mh-solaris"
3692 ;;
3693 m68k-sun-sunos*)
3694 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3695 # without overflowing the jump tables (-J says to use a 32 bit table)
3696 tentative_cc="cc -J"
3697 ;;
da888c87 3698 hppa*-hp-hpux10*)
a0da8069 3699 tentative_cc="cc -Wp,-H256000"
da888c87 3700 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3701 ;;
da888c87
PB
3702 hppa*-hp-hpux* | hppa*-*-hiux*)
3703 tentative_cc="cc -Wp,-H256000"
3704 host_makefile_frag="config/mh-pa"
3705 ;;
3706 hppa*-*)
3707 host_makefile_frag="config/mh-pa"
3708 ;;
3709 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3710 tentative_cc="cc -Wp,-H256000"
3711 ;;
3712 rs6000-*-lynxos*)
3713 # /bin/cc is less than useful for our purposes. Always use GCC
3714 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3715 host_makefile_frag="config/mh-lynxrs6k"
3716 ;;
e552509b
ILT
3717 *-*-darwin*)
3718 host_makefile_frag="config/mh-darwin"
0df3d27f 3719 ;;
f6d183c0
PB
3720 powerpc-*-aix*)
3721 host_makefile_frag="config/mh-ppc-aix"
3722 ;;
3723 rs6000-*-aix*)
3724 host_makefile_frag="config/mh-ppc-aix"
3725 ;;
a0da8069
NN
3726 *-*-lynxos*)
3727 # /bin/cc is less than useful for our purposes. Always use GCC
3728 tentative_cc="/bin/gcc"
3729 ;;
3730 *-*-sysv4*)
3731 host_makefile_frag="config/mh-sysv4"
3732 ;;
fe69863c
DD
3733 # This is placed last to prevent interfering with the cases above.
3734 i[3456789]86-*-*)
3735 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3736 host_makefile_frag="config/mh-x86omitfp"
3737 ;;
a0da8069
NN
3738esac
3739fi
3740
9e07f89d
NN
3741# If we aren't going to be using gcc, see if we can extract a definition
3742# of CC from the fragment.
3743# Actually, use the 'pre-extracted' version above.
3744if test -z "${CC}" && test "${build}" = "${host}" ; then
3745 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3746 found=
3747 for dir in $PATH; do
3748 test -z "$dir" && dir=.
3749 if test -f $dir/gcc; then
3750 found=yes
3751 break
3752 fi
3753 done
3754 IFS="$save_ifs"
3755 if test -z "${found}" && test -n "${tentative_cc}" ; then
3756 CC=$tentative_cc
3757 fi
3758fi
3759
3760if test "${build}" != "${host}" ; then
1576798e
PB
3761 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3762 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3763 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3764 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3765 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3766 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3767 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3768 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3769 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3770 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3771 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3772 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3773 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3774else
3775 AR_FOR_BUILD="\$(AR)"
3776 AS_FOR_BUILD="\$(AS)"
512b7dfb 3777 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3778 CXX_FOR_BUILD="\$(CXX)"
3779 GCJ_FOR_BUILD="\$(GCJ)"
3780 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3781 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3782 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3783 LD_FOR_BUILD="\$(LD)"
3784 NM_FOR_BUILD="\$(NM)"
3785 RANLIB_FOR_BUILD="\$(RANLIB)"
3786 WINDRES_FOR_BUILD="\$(WINDRES)"
3787 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3788fi
3789
3790ac_ext=c
c6b750e1
DJ
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
3800if test "${ac_cv_prog_CC+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3802else
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3815 break 2
3816 fi
3817done
81ecdfbb
RW
3818 done
3819IFS=$as_save_IFS
c6b750e1
DJ
3820
3821fi
3822fi
3823CC=$ac_cv_prog_CC
3824if test -n "$CC"; then
81ecdfbb
RW
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826$as_echo "$CC" >&6; }
c6b750e1 3827else
81ecdfbb
RW
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
c6b750e1
DJ
3830fi
3831
81ecdfbb 3832
c6b750e1
DJ
3833fi
3834if test -z "$ac_cv_prog_CC"; then
3835 ac_ct_CC=$CC
6a9cf61e 3836 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3837set dummy gcc; ac_word=$2
81ecdfbb
RW
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
3840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3842else
3843 if test -n "$ac_ct_CC"; then
3844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3853 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3855 break 2
3856 fi
3857done
81ecdfbb
RW
3858 done
3859IFS=$as_save_IFS
c6b750e1
DJ
3860
3861fi
3862fi
3863ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3867else
81ecdfbb
RW
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
c6b750e1
DJ
3870fi
3871
81ecdfbb
RW
3872 if test "x$ac_ct_CC" = x; then
3873 CC=""
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876yes:)
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879ac_tool_warned=yes ;;
3880esac
3881 CC=$ac_ct_CC
3882 fi
c6b750e1
DJ
3883else
3884 CC="$ac_cv_prog_CC"
3885fi
3886
3887if test -z "$CC"; then
81ecdfbb
RW
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3890set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if test "${ac_cv_prog_CC+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
9e07f89d
NN
3895else
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898else
c6b750e1
DJ
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3906 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3908 break 2
3909 fi
3910done
81ecdfbb
RW
3911 done
3912IFS=$as_save_IFS
c6b750e1 3913
9e07f89d
NN
3914fi
3915fi
c6b750e1 3916CC=$ac_cv_prog_CC
9e07f89d 3917if test -n "$CC"; then
81ecdfbb
RW
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919$as_echo "$CC" >&6; }
c6b750e1 3920else
81ecdfbb
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
c6b750e1
DJ
3923fi
3924
c6b750e1 3925
81ecdfbb 3926 fi
c6b750e1 3927fi
9e07f89d
NN
3928if test -z "$CC"; then
3929 # Extract the first word of "cc", so it can be a program name with args.
3930set dummy cc; ac_word=$2
81ecdfbb
RW
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if test "${ac_cv_prog_CC+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
9e07f89d
NN
3935else
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938else
9e07f89d 3939 ac_prog_rejected=no
c6b750e1
DJ
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948 ac_prog_rejected=yes
3949 continue
3950 fi
3951 ac_cv_prog_CC="cc"
81ecdfbb 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3953 break 2
3954 fi
3955done
81ecdfbb
RW
3956 done
3957IFS=$as_save_IFS
c6b750e1 3958
9e07f89d
NN
3959if test $ac_prog_rejected = yes; then
3960 # We found a bogon in the path, so make sure we never use it.
3961 set dummy $ac_cv_prog_CC
3962 shift
c6b750e1 3963 if test $# != 0; then
9e07f89d
NN
3964 # We chose a different compiler from the bogus one.
3965 # However, it has the same basename, so the bogon will be chosen
3966 # first if we set CC to just the basename; use the full file name.
3967 shift
c6b750e1 3968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3969 fi
3970fi
3971fi
3972fi
c6b750e1 3973CC=$ac_cv_prog_CC
9e07f89d 3974if test -n "$CC"; then
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976$as_echo "$CC" >&6; }
9e07f89d 3977else
81ecdfbb
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
9e07f89d
NN
3980fi
3981
81ecdfbb 3982
c6b750e1
DJ
3983fi
3984if test -z "$CC"; then
3985 if test -n "$ac_tool_prefix"; then
81ecdfbb 3986 for ac_prog in cl.exe
c6b750e1
DJ
3987 do
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
9e07f89d
NN
3994else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997else
c6b750e1
DJ
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4007 break 2
376a0e54 4008 fi
c6b750e1 4009done
81ecdfbb
RW
4010 done
4011IFS=$as_save_IFS
cac3d6c4 4012
c6b750e1
DJ
4013fi
4014fi
4015CC=$ac_cv_prog_CC
4016if test -n "$CC"; then
81ecdfbb
RW
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018$as_echo "$CC" >&6; }
cac3d6c4 4019else
81ecdfbb
RW
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
9e07f89d 4022fi
cac3d6c4 4023
81ecdfbb 4024
c6b750e1
DJ
4025 test -n "$CC" && break
4026 done
cac3d6c4 4027fi
c6b750e1
DJ
4028if test -z "$CC"; then
4029 ac_ct_CC=$CC
81ecdfbb 4030 for ac_prog in cl.exe
c6b750e1
DJ
4031do
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
cac3d6c4 4038else
c6b750e1
DJ
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4041else
c6b750e1
DJ
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4049 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4051 break 2
4052 fi
4053done
81ecdfbb
RW
4054 done
4055IFS=$as_save_IFS
c6b750e1 4056
cac3d6c4
CM
4057fi
4058fi
c6b750e1
DJ
4059ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4063else
81ecdfbb
RW
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
cac3d6c4 4066fi
376a0e54 4067
81ecdfbb 4068
c6b750e1
DJ
4069 test -n "$ac_ct_CC" && break
4070done
4071
81ecdfbb
RW
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
4080esac
4081 CC=$ac_ct_CC
4082 fi
c6b750e1
DJ
4083fi
4084
4085fi
4086
4087
81ecdfbb
RW
4088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090as_fn_error "no acceptable C compiler found in \$PATH
4091See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4092
4093# Provide some information about the compiler.
81ecdfbb
RW
4094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095set X $ac_compile
4096ac_compiler=$2
4097for ac_option in --version -v -V -qversion; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104$as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4106 ac_status=$?
81ecdfbb
RW
4107 if test -s conftest.err; then
4108 sed '10a\
4109... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
4112 rm -f conftest.er1 conftest.err
4113 fi
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116done
c6b750e1 4117
81ecdfbb 4118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4119/* end confdefs.h. */
4120
4121int
4122main ()
4123{
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129ac_clean_files_save=$ac_clean_files
81ecdfbb 4130ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4131# Try to create an executable without -o first, disregard a.out.
4132# It will help us diagnose broken compilers, and finding out an intuition
4133# of exeext.
81ecdfbb
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135$as_echo_n "checking for C compiler default output file name... " >&6; }
4136ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137
4138# The possible output files:
4139ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140
4141ac_rmfiles=
4142for ac_file in $ac_files
4143do
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 esac
4148done
4149rm -f $ac_rmfiles
4150
4151if { { ac_try="$ac_link_default"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157$as_echo "$ac_try_echo"; } >&5
4158 (eval "$ac_link_default") 2>&5
c6b750e1 4159 ac_status=$?
81ecdfbb
RW
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }; then :
4162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4164# in a Makefile. We should not override ac_cv_exeext if it was cached,
4165# so that the user can short-circuit this test for compilers unknown to
4166# Autoconf.
4167for ac_file in $ac_files ''
c6b750e1
DJ
4168do
4169 test -f "$ac_file" || continue
4170 case $ac_file in
81ecdfbb 4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4172 ;;
4173 [ab].out )
4174 # We found the default executable, but exeext='' is most
4175 # certainly right.
4176 break;;
4177 *.* )
81ecdfbb
RW
4178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4179 then :; else
4180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4181 fi
4182 # We set ac_cv_exeext here because the later test for it is not
4183 # safe: cross compilers may not add the suffix if given an `-o'
4184 # argument, so we may need to know it at that point already.
4185 # Even if this section looks crufty: it has the advantage of
4186 # actually working.
c6b750e1
DJ
4187 break;;
4188 * )
4189 break;;
4190 esac
4191done
81ecdfbb
RW
4192test "$ac_cv_exeext" = no && ac_cv_exeext=
4193
c6b750e1 4194else
81ecdfbb
RW
4195 ac_file=''
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4198$as_echo "$ac_file" >&6; }
4199if test -z "$ac_file"; then :
4200 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
81ecdfbb
RW
4203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205{ as_fn_set_status 77
4206as_fn_error "C compiler cannot create executables
4207See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4208fi
c6b750e1 4209ac_exeext=$ac_cv_exeext
c6b750e1 4210
81ecdfbb 4211# Check that the compiler produces executables we can run. If not, either
c6b750e1 4212# the compiler is broken, or we cross compile.
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4214$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4215# If not cross compiling, check that we can run a simple program.
4216if test "$cross_compiling" != yes; then
4217 if { ac_try='./$ac_file'
81ecdfbb
RW
4218 { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223$as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
c6b750e1 4225 ac_status=$?
81ecdfbb
RW
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }; }; then
c6b750e1
DJ
4228 cross_compiling=no
4229 else
4230 if test "$cross_compiling" = maybe; then
4231 cross_compiling=yes
4232 else
81ecdfbb
RW
4233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235as_fn_error "cannot run C compiled programs.
c6b750e1 4236If you meant to cross compile, use \`--host'.
81ecdfbb 4237See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4238 fi
4239 fi
4240fi
81ecdfbb
RW
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4242$as_echo "yes" >&6; }
c6b750e1 4243
81ecdfbb 4244rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4245ac_clean_files=$ac_clean_files_save
81ecdfbb 4246# Check that the compiler produces executables we can run. If not, either
c6b750e1 4247# the compiler is broken, or we cross compile.
81ecdfbb
RW
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4249$as_echo_n "checking whether we are cross compiling... " >&6; }
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4251$as_echo "$cross_compiling" >&6; }
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4254$as_echo_n "checking for suffix of executables... " >&6; }
4255if { { ac_try="$ac_link"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_link") 2>&5
c6b750e1 4263 ac_status=$?
81ecdfbb
RW
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
c6b750e1
DJ
4266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4268# work properly (i.e., refer to `conftest.exe'), while it won't with
4269# `rm'.
4270for ac_file in conftest.exe conftest conftest.*; do
4271 test -f "$ac_file" || continue
4272 case $ac_file in
81ecdfbb 4273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4275 break;;
4276 * ) break;;
4277 esac
4278done
4279else
81ecdfbb
RW
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282as_fn_error "cannot compute suffix of executables: cannot compile and link
4283See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4284fi
c6b750e1 4285rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4287$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4288
4289rm -f conftest.$ac_ext
4290EXEEXT=$ac_cv_exeext
4291ac_exeext=$EXEEXT
81ecdfbb
RW
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4293$as_echo_n "checking for suffix of object files... " >&6; }
4294if test "${ac_cv_objext+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
c6b750e1 4296else
81ecdfbb 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4298/* end confdefs.h. */
4299
4300int
4301main ()
4302{
4303
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308rm -f conftest.o conftest.obj
81ecdfbb
RW
4309if { { ac_try="$ac_compile"
4310case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315$as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compile") 2>&5
c6b750e1 4317 ac_status=$?
81ecdfbb
RW
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; then :
4320 for ac_file in conftest.o conftest.obj conftest.*; do
4321 test -f "$ac_file" || continue;
c6b750e1 4322 case $ac_file in
81ecdfbb 4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4325 break;;
4326 esac
4327done
cac3d6c4 4328else
81ecdfbb 4329 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
81ecdfbb
RW
4332{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334as_fn_error "cannot compute suffix of object files: cannot compile
4335See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4336fi
c6b750e1
DJ
4337rm -f conftest.$ac_cv_objext conftest.$ac_ext
4338fi
81ecdfbb
RW
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4340$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4341OBJEXT=$ac_cv_objext
4342ac_objext=$OBJEXT
81ecdfbb
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4344$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4345if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
c6b750e1 4347else
81ecdfbb 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4349/* end confdefs.h. */
4350
4351int
4352main ()
4353{
4354#ifndef __GNUC__
4355 choke me
4356#endif
4357
4358 ;
4359 return 0;
4360}
4361_ACEOF
81ecdfbb 4362if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4363 ac_compiler_gnu=yes
4364else
81ecdfbb 4365 ac_compiler_gnu=no
c6b750e1 4366fi
81ecdfbb 4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4368ac_cv_c_compiler_gnu=$ac_compiler_gnu
4369
4370fi
81ecdfbb
RW
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4372$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4373if test $ac_compiler_gnu = yes; then
4374 GCC=yes
4375else
4376 GCC=
4377fi
c6b750e1
DJ
4378ac_test_CFLAGS=${CFLAGS+set}
4379ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4381$as_echo_n "checking whether $CC accepts -g... " >&6; }
4382if test "${ac_cv_prog_cc_g+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384else
4385 ac_save_c_werror_flag=$ac_c_werror_flag
4386 ac_c_werror_flag=yes
4387 ac_cv_prog_cc_g=no
4388 CFLAGS="-g"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4390/* end confdefs.h. */
4391
4392int
4393main ()
4394{
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
81ecdfbb 4400if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4401 ac_cv_prog_cc_g=yes
4402else
81ecdfbb
RW
4403 CFLAGS=""
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406
4407int
4408main ()
4409{
4410
4411 ;
4412 return 0;
4413}
4414_ACEOF
4415if ac_fn_c_try_compile "$LINENO"; then :
4416
4417else
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4419 CFLAGS="-g"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h. */
cac3d6c4 4422
81ecdfbb
RW
4423int
4424main ()
4425{
4426
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_prog_cc_g=yes
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4435fi
81ecdfbb 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4437fi
81ecdfbb
RW
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_c_werror_flag=$ac_save_c_werror_flag
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4442$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4443if test "$ac_test_CFLAGS" = set; then
c6b750e1 4444 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4445elif test $ac_cv_prog_cc_g = yes; then
4446 if test "$GCC" = yes; then
4447 CFLAGS="-g -O2"
4448 else
4449 CFLAGS="-g"
4450 fi
4451else
4452 if test "$GCC" = yes; then
4453 CFLAGS="-O2"
4454 else
4455 CFLAGS=
4456 fi
4457fi
81ecdfbb
RW
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4459$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4460if test "${ac_cv_prog_cc_c89+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
c6b750e1 4462else
81ecdfbb 4463 ac_cv_prog_cc_c89=no
c6b750e1 4464ac_save_CC=$CC
81ecdfbb 4465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4466/* end confdefs.h. */
4467#include <stdarg.h>
4468#include <stdio.h>
4469#include <sys/types.h>
4470#include <sys/stat.h>
4471/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4472struct buf { int x; };
4473FILE * (*rcsopen) (struct buf *, struct stat *, int);
4474static char *e (p, i)
4475 char **p;
4476 int i;
4477{
4478 return p[i];
4479}
4480static char *f (char * (*g) (char **, int), char **p, ...)
4481{
4482 char *s;
4483 va_list v;
4484 va_start (v,p);
4485 s = g (p, va_arg (v,int));
4486 va_end (v);
4487 return s;
4488}
4489
4490/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4491 function prototypes and stuff, but not '\xHH' hex character constants.
4492 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4493 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4495 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4496 that's true only with -std. */
c6b750e1
DJ
4497int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4498
81ecdfbb
RW
4499/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4500 inside strings and character constants. */
4501#define FOO(x) 'x'
4502int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4503
c6b750e1
DJ
4504int test (int i, double x);
4505struct s1 {int (*f) (int a);};
4506struct s2 {int (*f) (double a);};
4507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4508int argc;
4509char **argv;
4510int
4511main ()
4512{
4513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514 ;
4515 return 0;
4516}
4517_ACEOF
81ecdfbb
RW
4518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4520do
4521 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4524fi
81ecdfbb
RW
4525rm -f core conftest.err conftest.$ac_objext
4526 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4527done
81ecdfbb 4528rm -f conftest.$ac_ext
c6b750e1
DJ
4529CC=$ac_save_CC
4530
4531fi
81ecdfbb
RW
4532# AC_CACHE_VAL
4533case "x$ac_cv_prog_cc_c89" in
4534 x)
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536$as_echo "none needed" >&6; } ;;
4537 xno)
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539$as_echo "unsupported" >&6; } ;;
c6b750e1 4540 *)
81ecdfbb
RW
4541 CC="$CC $ac_cv_prog_cc_c89"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4543$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4544esac
81ecdfbb 4545if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4546
c6b750e1
DJ
4547fi
4548
c6b750e1
DJ
4549ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4554
81ecdfbb 4555ac_ext=cpp
18f6b6ee
PB
4556ac_cpp='$CXXCPP $CPPFLAGS'
4557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4560if test -z "$CXX"; then
4561 if test -n "$CCC"; then
4562 CXX=$CCC
4563 else
4564 if test -n "$ac_tool_prefix"; then
4565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4566 do
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570$as_echo_n "checking for $ac_word... " >&6; }
4571if test "${ac_cv_prog_CXX+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4573else
4574 if test -n "$CXX"; then
4575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4586 break 2
4587 fi
4588done
81ecdfbb
RW
4589 done
4590IFS=$as_save_IFS
512b7dfb 4591
18f6b6ee
PB
4592fi
4593fi
4594CXX=$ac_cv_prog_CXX
4595if test -n "$CXX"; then
81ecdfbb
RW
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4597$as_echo "$CXX" >&6; }
18f6b6ee 4598else
81ecdfbb
RW
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
18f6b6ee
PB
4601fi
4602
81ecdfbb 4603
18f6b6ee
PB
4604 test -n "$CXX" && break
4605 done
4606fi
4607if test -z "$CXX"; then
4608 ac_ct_CXX=$CXX
81ecdfbb 4609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4610do
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4617else
4618 if test -n "$ac_ct_CXX"; then
4619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4628 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4630 break 2
512b7dfb 4631 fi
18f6b6ee 4632done
81ecdfbb
RW
4633 done
4634IFS=$as_save_IFS
512b7dfb 4635
18f6b6ee
PB
4636fi
4637fi
4638ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4639if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4641$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4642else
81ecdfbb
RW
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
18f6b6ee
PB
4645fi
4646
81ecdfbb 4647
18f6b6ee
PB
4648 test -n "$ac_ct_CXX" && break
4649done
18f6b6ee 4650
81ecdfbb
RW
4651 if test "x$ac_ct_CXX" = x; then
4652 CXX="g++"
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655yes:)
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658ac_tool_warned=yes ;;
4659esac
4660 CXX=$ac_ct_CXX
4661 fi
18f6b6ee
PB
4662fi
4663
81ecdfbb
RW
4664 fi
4665fi
18f6b6ee 4666# Provide some information about the compiler.
81ecdfbb
RW
4667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4668set X $ac_compile
4669ac_compiler=$2
4670for ac_option in --version -v -V -qversion; do
4671 { { ac_try="$ac_compiler $ac_option >&5"
4672case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675esac
4676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677$as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4679 ac_status=$?
81ecdfbb
RW
4680 if test -s conftest.err; then
4681 sed '10a\
4682... rest of stderr output deleted ...
4683 10q' conftest.err >conftest.er1
4684 cat conftest.er1 >&5
4685 rm -f conftest.er1 conftest.err
4686 fi
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }
4689done
18f6b6ee 4690
81ecdfbb
RW
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4692$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4693if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
18f6b6ee 4695else
81ecdfbb 4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4697/* end confdefs.h. */
4698
4699int
4700main ()
4701{
4702#ifndef __GNUC__
4703 choke me
4704#endif
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
81ecdfbb 4710if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4711 ac_compiler_gnu=yes
4712else
81ecdfbb 4713 ac_compiler_gnu=no
18f6b6ee 4714fi
81ecdfbb 4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4716ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4717
4718fi
81ecdfbb
RW
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4720$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4721if test $ac_compiler_gnu = yes; then
4722 GXX=yes
4723else
4724 GXX=
4725fi
18f6b6ee
PB
4726ac_test_CXXFLAGS=${CXXFLAGS+set}
4727ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4729$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4730if test "${ac_cv_prog_cxx_g+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4734 ac_cxx_werror_flag=yes
4735 ac_cv_prog_cxx_g=no
4736 CXXFLAGS="-g"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4738/* end confdefs.h. */
4739
4740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
81ecdfbb 4748if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4749 ac_cv_prog_cxx_g=yes
4750else
81ecdfbb
RW
4751 CXXFLAGS=""
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4753/* end confdefs.h. */
81ecdfbb 4754
18f6b6ee
PB
4755int
4756main ()
4757{
81ecdfbb 4758
18f6b6ee
PB
4759 ;
4760 return 0;
4761}
4762_ACEOF
81ecdfbb 4763if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4764
81ecdfbb
RW
4765else
4766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767 CXXFLAGS="-g"
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4769/* end confdefs.h. */
81ecdfbb 4770
18f6b6ee
PB
4771int
4772main ()
4773{
81ecdfbb 4774
18f6b6ee
PB
4775 ;
4776 return 0;
4777}
4778_ACEOF
81ecdfbb
RW
4779if ac_fn_cxx_try_compile "$LINENO"; then :
4780 ac_cv_prog_cxx_g=yes
18f6b6ee 4781fi
81ecdfbb
RW
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4790$as_echo "$ac_cv_prog_cxx_g" >&6; }
4791if test "$ac_test_CXXFLAGS" = set; then
4792 CXXFLAGS=$ac_save_CXXFLAGS
4793elif test $ac_cv_prog_cxx_g = yes; then
4794 if test "$GXX" = yes; then
4795 CXXFLAGS="-g -O2"
4796 else
4797 CXXFLAGS="-g"
4798 fi
4799else
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-O2"
4802 else
4803 CXXFLAGS=
4804 fi
18f6b6ee 4805fi
18f6b6ee
PB
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813# We must set the default linker to the linker used by gcc for the correct
4814# operation of libtool. If LD is not defined and we are using gcc, try to
4815# set the LD default to the ld used by gcc.
4816if test -z "$LD"; then
4817 if test "$GCC" = yes; then
4818 case $build in
4819 *-*-mingw*)
4820 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4821 *)
4822 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4823 esac
4824 case $gcc_prog_ld in
4825 # Accept absolute paths.
4826 [\\/]* | [A-Za-z]:[\\/]*)
4827 LD="$gcc_prog_ld" ;;
4828 esac
4829 fi
512b7dfb
PB
4830fi
4831
4832
4833
4834
c6b750e1 4835if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4836 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4837set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839$as_echo_n "checking for $ac_word... " >&6; }
4840if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
9e07f89d 4842else
512b7dfb
PB
4843 if test -n "$GNATBIND"; then
4844 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4845else
c6b750e1
DJ
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4853 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4855 break 2
4856 fi
4857done
81ecdfbb
RW
4858 done
4859IFS=$as_save_IFS
c6b750e1 4860
9e07f89d
NN
4861fi
4862fi
512b7dfb
PB
4863GNATBIND=$ac_cv_prog_GNATBIND
4864if test -n "$GNATBIND"; then
81ecdfbb
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4866$as_echo "$GNATBIND" >&6; }
9e07f89d 4867else
81ecdfbb
RW
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
9e07f89d
NN
4870fi
4871
81ecdfbb 4872
c6b750e1 4873fi
512b7dfb
PB
4874if test -z "$ac_cv_prog_GNATBIND"; then
4875 ac_ct_GNATBIND=$GNATBIND
4876 # Extract the first word of "gnatbind", so it can be a program name with args.
4877set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
9e07f89d 4882else
512b7dfb
PB
4883 if test -n "$ac_ct_GNATBIND"; then
4884 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4885else
c6b750e1
DJ
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4893 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4895 break 2
4896 fi
4897done
81ecdfbb
RW
4898 done
4899IFS=$as_save_IFS
c6b750e1 4900
9e07f89d
NN
4901fi
4902fi
512b7dfb
PB
4903ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4904if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4906$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4907else
81ecdfbb
RW
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
9e07f89d
NN
4910fi
4911
81ecdfbb
RW
4912 if test "x$ac_ct_GNATBIND" = x; then
4913 GNATBIND="no"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 GNATBIND=$ac_ct_GNATBIND
4922 fi
24ff9987 4923else
512b7dfb 4924 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4925fi
4926
7df2cd5d 4927if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4928 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4929set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
7df2cd5d 4934else
512b7dfb
PB
4935 if test -n "$GNATMAKE"; then
4936 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4945 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4947 break 2
4948 fi
4949done
81ecdfbb
RW
4950 done
4951IFS=$as_save_IFS
7df2cd5d
PB
4952
4953fi
4954fi
512b7dfb
PB
4955GNATMAKE=$ac_cv_prog_GNATMAKE
4956if test -n "$GNATMAKE"; then
81ecdfbb
RW
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4958$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4959else
81ecdfbb
RW
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
7df2cd5d
PB
4962fi
4963
81ecdfbb 4964
7df2cd5d 4965fi
512b7dfb
PB
4966if test -z "$ac_cv_prog_GNATMAKE"; then
4967 ac_ct_GNATMAKE=$GNATMAKE
4968 # Extract the first word of "gnatmake", so it can be a program name with args.
4969set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
7df2cd5d 4974else
512b7dfb
PB
4975 if test -n "$ac_ct_GNATMAKE"; then
4976 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4985 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4987 break 2
4988 fi
4989done
81ecdfbb
RW
4990 done
4991IFS=$as_save_IFS
7df2cd5d 4992
7df2cd5d
PB
4993fi
4994fi
512b7dfb
PB
4995ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4996if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4998$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4999else
81ecdfbb
RW
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
7df2cd5d
PB
5002fi
5003
81ecdfbb
RW
5004 if test "x$ac_ct_GNATMAKE" = x; then
5005 GNATMAKE="no"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011ac_tool_warned=yes ;;
5012esac
5013 GNATMAKE=$ac_ct_GNATMAKE
5014 fi
7df2cd5d 5015else
512b7dfb 5016 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5017fi
5018
81ecdfbb
RW
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5020$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5021if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
9e07f89d
NN
5023else
5024 cat >conftest.adb <<EOF
5025procedure conftest is begin null; end conftest;
5026EOF
5027acx_cv_cc_gcc_supports_ada=no
5028# There is a bug in old released versions of GCC which causes the
5029# driver to exit successfully when the appropriate language module
5030# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5031# Therefore we must check for the error message as well as an
5032# unsuccessful exit.
b8908782
DD
5033# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5034# given a .adb file, but produce no object file. So we must check
5035# if an object file was really produced to guard against this.
9e07f89d 5036errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5037if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5038 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5039fi
5040rm -f conftest.*
5041fi
81ecdfbb
RW
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5043$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5044
512b7dfb 5045if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5046 have_gnat=yes
5047else
5048 have_gnat=no
5049fi
5050
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5052$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5053if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
b8908782
DD
5055else
5056 echo abfoo >t1
5057 echo cdfoo >t2
5058 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5059 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5060 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5061 :
5062 else
5063 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5064 fi
5065 fi
b8908782
DD
5066 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5067 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5068 :
b8908782
DD
5069 else
5070 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5071 fi
5072 fi
5073 rm t1 t2
5074
5075fi
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5077$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5078do_compare="$gcc_cv_prog_cmp_skip"
5079
5080
9e07f89d 5081
e8a5fa9c 5082# See if we are building gcc with C++.
81ecdfbb
RW
5083# Check whether --enable-build-with-cxx was given.
5084if test "${enable_build_with_cxx+set}" = set; then :
5085 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5086else
5087 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5088fi
5089
e8a5fa9c 5090
d5f2ee2e
KG
5091# Used for setting $lt_cv_objdir
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5093$as_echo_n "checking for objdir... " >&6; }
5094if test "${lt_cv_objdir+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096else
5097 rm -f .libs 2>/dev/null
5098mkdir .libs 2>/dev/null
5099if test -d .libs; then
5100 lt_cv_objdir=.libs
5101else
5102 # MS-DOS does not allow filenames that begin with a dot.
5103 lt_cv_objdir=_libs
5104fi
5105rmdir .libs 2>/dev/null
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5108$as_echo "$lt_cv_objdir" >&6; }
5109objdir=$lt_cv_objdir
5110
5111
5112
5113
5114
5115cat >>confdefs.h <<_ACEOF
5116#define LT_OBJDIR "$lt_cv_objdir/"
5117_ACEOF
5118
5119
5120
e8a5fa9c 5121# Check for GMP, MPFR and MPC
d9b76ff9 5122gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5123gmpinc=
4b900473 5124have_gmp=no
e8a5fa9c
RW
5125
5126# Specify a location for mpc
5127# check for this first so it ends up on the link line before mpfr.
5128
81ecdfbb
RW
5129# Check whether --with-mpc was given.
5130if test "${with_mpc+set}" = set; then :
5131 withval=$with_mpc;
5132fi
e8a5fa9c 5133
e8a5fa9c 5134
e552509b 5135# Check whether --with-mpc-include was given.
81ecdfbb
RW
5136if test "${with_mpc_include+set}" = set; then :
5137 withval=$with_mpc_include;
5138fi
e8a5fa9c 5139
e8a5fa9c 5140
e552509b 5141# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5142if test "${with_mpc_lib+set}" = set; then :
5143 withval=$with_mpc_lib;
5144fi
e8a5fa9c 5145
e8a5fa9c
RW
5146
5147if test "x$with_mpc" != x; then
d9b76ff9
KG
5148 gmplibs="-L$with_mpc/lib $gmplibs"
5149 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5150fi
5151if test "x$with_mpc_include" != x; then
d9b76ff9 5152 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5153fi
5154if test "x$with_mpc_lib" != x; then
d9b76ff9 5155 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5156fi
5157if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5158 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5159 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5160 # Do not test the mpc version. Assume that it is sufficient, since
5161 # it is in the source tree, and the library has not been built yet
5162 # but it would be included on the link line in the version check below
5163 # hence making the test fail.
d9b76ff9 5164 have_gmp=yes
e8a5fa9c 5165fi
4b900473 5166
11b04d1f
DD
5167# Specify a location for mpfr
5168# check for this first so it ends up on the link line before gmp.
c6b750e1 5169
81ecdfbb
RW
5170# Check whether --with-mpfr-dir was given.
5171if test "${with_mpfr_dir+set}" = set; then :
5172 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5173Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5174fi
5175
11b04d1f
DD
5176
5177
81ecdfbb
RW
5178# Check whether --with-mpfr was given.
5179if test "${with_mpfr+set}" = set; then :
5180 withval=$with_mpfr;
5181fi
c6b750e1 5182
11b04d1f 5183
e552509b 5184# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5185if test "${with_mpfr_include+set}" = set; then :
5186 withval=$with_mpfr_include;
5187fi
c6b750e1 5188
8a0d8a5c 5189
e552509b 5190# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5191if test "${with_mpfr_lib+set}" = set; then :
5192 withval=$with_mpfr_lib;
5193fi
8a0d8a5c 5194
11b04d1f
DD
5195
5196if test "x$with_mpfr" != x; then
5197 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5198 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5199fi
8a0d8a5c 5200if test "x$with_mpfr_include" != x; then
d9b76ff9 5201 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5202fi
5203if test "x$with_mpfr_lib" != x; then
5204 gmplibs="-L$with_mpfr_lib $gmplibs"
5205fi
4b900473 5206if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5207 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5208 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5209 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5210 # Do not test the mpfr version. Assume that it is sufficient, since
5211 # it is in the source tree, and the library has not been built yet
5212 # but it would be included on the link line in the version check below
5213 # hence making the test fail.
5214 have_gmp=yes
5215fi
11b04d1f 5216
4b1cb4fe 5217# Specify a location for gmp
c6b750e1 5218
81ecdfbb
RW
5219# Check whether --with-gmp-dir was given.
5220if test "${with_gmp_dir+set}" = set; then :
5221 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5222Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5223fi
5224
4b1cb4fe
DD
5225
5226
81ecdfbb
RW
5227# Check whether --with-gmp was given.
5228if test "${with_gmp+set}" = set; then :
5229 withval=$with_gmp;
5230fi
c6b750e1 5231
4b1cb4fe 5232
e552509b 5233# Check whether --with-gmp-include was given.
81ecdfbb
RW
5234if test "${with_gmp_include+set}" = set; then :
5235 withval=$with_gmp_include;
5236fi
c6b750e1 5237
8a0d8a5c 5238
e552509b 5239# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5240if test "${with_gmp_lib+set}" = set; then :
5241 withval=$with_gmp_lib;
5242fi
8a0d8a5c
PB
5243
5244
4b1cb4fe 5245
11b04d1f
DD
5246if test "x$with_gmp" != x; then
5247 gmplibs="-L$with_gmp/lib $gmplibs"
5248 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5249fi
8a0d8a5c
PB
5250if test "x$with_gmp_include" != x; then
5251 gmpinc="-I$with_gmp_include $gmpinc"
5252fi
5253if test "x$with_gmp_lib" != x; then
5254 gmplibs="-L$with_gmp_lib $gmplibs"
5255fi
4b900473 5256if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5257 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5258 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5259 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5260 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5261 # Do not test the gmp version. Assume that it is sufficient, since
5262 # it is in the source tree, and the library has not been built yet
5263 # but it would be included on the link line in the version check below
5264 # hence making the test fail.
5265 have_gmp=yes
5266fi
4b1cb4fe 5267
ceb92e78 5268if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5269 have_gmp=yes
5270 saved_CFLAGS="$CFLAGS"
5271 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5272 # Check for the recommended and required versions of GMP.
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5274$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5275
5276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5277/* end confdefs.h. */
5278#include "gmp.h"
5279int
5280main ()
5281{
5282
5283 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5284 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5285 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5286 choke me
5287 #endif
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
5293if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5295/* end confdefs.h. */
a6b5846e 5296#include <gmp.h>
c6b750e1
DJ
5297int
5298main ()
5299{
4b1cb4fe 5300
a6b5846e
KG
5301 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5302 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5303 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5304 choke me
5305 #endif
c6b750e1
DJ
5306
5307 ;
5308 return 0;
5309}
5310_ACEOF
81ecdfbb
RW
5311if ac_fn_c_try_compile "$LINENO"; then :
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313$as_echo "yes" >&6; }
a6b5846e
KG
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5316$as_echo "buggy but acceptable" >&6; }
5317fi
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5319else
81ecdfbb
RW
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5322fi
81ecdfbb 5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5324
e8a5fa9c 5325 # If we have GMP, check the MPFR version.
4b900473 5326 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5327 # Check for the recommended and required versions of MPFR.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5329$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5331/* end confdefs.h. */
9b134994 5332#include <gmp.h>
4b900473 5333 #include <mpfr.h>
c6b750e1
DJ
5334int
5335main ()
5336{
9b134994 5337
ef699244 5338 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5339 choke me
5340 #endif
c6b750e1
DJ
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
81ecdfbb
RW
5346if ac_fn_c_try_compile "$LINENO"; then :
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5348/* end confdefs.h. */
4b1cb4fe 5349#include <gmp.h>
4b900473 5350 #include <mpfr.h>
c6b750e1
DJ
5351int
5352main ()
5353{
9dbaa842 5354
a6b5846e 5355 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5356 choke me
5357 #endif
e8a5fa9c
RW
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
81ecdfbb
RW
5363if ac_fn_c_try_compile "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365$as_echo "yes" >&6; }
e8a5fa9c 5366else
81ecdfbb
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5368$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5369fi
81ecdfbb 5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5371else
81ecdfbb
RW
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5374fi
81ecdfbb 5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5376 fi
5377
5378 # Check for the MPC header version.
d9b76ff9 5379 if test x"$have_gmp" = xyes ; then
a6b5846e 5380 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5382$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5384/* end confdefs.h. */
5385#include <mpc.h>
5386int
5387main ()
5388{
5389
a6b5846e
KG
5390 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5391 choke me
5392 #endif
5393
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"; then :
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h. */
5401#include <mpc.h>
5402int
5403main ()
5404{
5405
5406 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5407 choke me
5408 #endif
5409
5410 ;
5411 return 0;
5412}
5413_ACEOF
81ecdfbb
RW
5414if ac_fn_c_try_compile "$LINENO"; then :
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5416$as_echo "yes" >&6; }
a6b5846e
KG
5417else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5419$as_echo "buggy but acceptable" >&6; }
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5422else
81ecdfbb 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5424$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5425fi
81ecdfbb 5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5427 fi
5428
5429 # Now check the MPFR library.
5430 if test x"$have_gmp" = xyes; then
5431 saved_LIBS="$LIBS"
5432 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5434$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5436/* end confdefs.h. */
d9b76ff9 5437#include <mpc.h>
e8a5fa9c
RW
5438int
5439main ()
5440{
5441
5442 mpfr_t n;
5443 mpfr_t x;
d9b76ff9 5444 mpc_t c;
e8a5fa9c
RW
5445 int t;
5446 mpfr_init (n);
5447 mpfr_init (x);
5448 mpfr_atan2 (n, n, x, GMP_RNDN);
5449 mpfr_erfc (n, x, GMP_RNDN);
5450 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5451 mpfr_clear(n);
5452 mpfr_clear(x);
5453 mpc_init2 (c, 53);
5454 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5455 mpc_cosh (c, c, MPC_RNDNN);
5456 mpc_pow (c, c, c, MPC_RNDNN);
5457 mpc_acosh (c, c, MPC_RNDNN);
5458 mpc_clear (c);
c6b750e1
DJ
5459
5460 ;
5461 return 0;
5462}
5463_ACEOF
81ecdfbb
RW
5464if ac_fn_c_try_link "$LINENO"; then :
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466$as_echo "yes" >&6; }
c6b750e1 5467else
81ecdfbb
RW
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5470fi
81ecdfbb
RW
5471rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5473 LIBS="$saved_LIBS"
5474 fi
5475
4b900473 5476 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5477
a6b5846e
KG
5478# The library versions listed in the error message below should match
5479# the HARD-minimums enforced above.
4b900473 5480 if test x$have_gmp != xyes; then
a6b5846e 5481 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5482Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5483their locations. Source code for these libraries can be found at
5484their respective hosting sites as well as at
5485ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5486http://gcc.gnu.org/install/prerequisites.html for additional info. If
5487you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5488make sure that you have installed both the libraries and the header
5489files. They may be located in separate packages." "$LINENO" 5
4b900473 5490 fi
9dbaa842
DD
5491fi
5492
e8a5fa9c
RW
5493# Flags needed for both GMP, MPFR and/or MPC.
5494
5495
5496
4b1cb4fe
DD
5497
5498
5499
29383458
JM
5500# Allow host libstdc++ to be specified for static linking with PPL.
5501
81ecdfbb
RW
5502# Check whether --with-host-libstdcxx was given.
5503if test "${with_host_libstdcxx+set}" = set; then :
5504 withval=$with_host_libstdcxx;
5505fi
29383458 5506
29383458
JM
5507
5508case $with_host_libstdcxx in
5509 no|yes)
81ecdfbb 5510 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5511 ;;
5512esac
e28c595f 5513
e8a5fa9c
RW
5514# Linker flags to use for stage1 or when not boostrapping.
5515
81ecdfbb
RW
5516# Check whether --with-stage1-ldflags was given.
5517if test "${with_stage1_ldflags+set}" = set; then :
5518 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5519 stage1_ldflags=
5520 else
5521 stage1_ldflags=$withval
5522 fi
5523else
5524 stage1_ldflags=
81ecdfbb
RW
5525fi
5526
e8a5fa9c
RW
5527
5528
5529# Libraries to use for stage1 or when not bootstrapping.
5530
81ecdfbb
RW
5531# Check whether --with-stage1-libs was given.
5532if test "${with_stage1_libs+set}" = set; then :
5533 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5534 stage1_libs=
5535 else
5536 stage1_libs=$withval
5537 fi
5538else
5539 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5540fi
5541
e8a5fa9c
RW
5542
5543
e8a5fa9c
RW
5544# Libraries to use for stage2 and later builds. This defaults to the
5545# argument passed to --with-host-libstdcxx.
5546
81ecdfbb
RW
5547# Check whether --with-boot-libs was given.
5548if test "${with_boot_libs+set}" = set; then :
5549 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5550 poststage1_libs=
5551 else
5552 poststage1_libs=$withval
5553 fi
5554else
5555 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5556fi
5557
e8a5fa9c
RW
5558
5559
143754cd
NC
5560# Linker flags to use for stage2 and later builds.
5561
5562# Check whether --with-boot-ldflags was given.
5563if test "${with_boot_ldflags+set}" = set; then :
5564 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5565 poststage1_ldflags=
5566 else
5567 poststage1_ldflags=$withval
5568 fi
5569else
5570 poststage1_ldflags=
5571 # With --enable-build-with-cxx, default to linking libstdc++ and
5572 # libgcc statically. But if the user explicitly specified the
5573 # libraries to use, trust that they are doing what they want.
5574 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5575 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5576 fi
5577fi
5578
5579
5580
e28c595f 5581# Check for PPL
e8a5fa9c 5582ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5583pplinc=
5584
5585
81ecdfbb
RW
5586# Check whether --with-ppl was given.
5587if test "${with_ppl+set}" = set; then :
5588 withval=$with_ppl;
81ecdfbb 5589fi
e28c595f 5590
e28c595f 5591
e552509b 5592# Check whether --with-ppl-include was given.
81ecdfbb
RW
5593if test "${with_ppl_include+set}" = set; then :
5594 withval=$with_ppl_include;
5595fi
5596
e28c595f 5597
e552509b 5598# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5599if test "${with_ppl_lib+set}" = set; then :
5600 withval=$with_ppl_lib;
5601fi
e28c595f 5602
e28c595f 5603
29383458
JM
5604case $with_ppl in
5605 no)
5606 ppllibs=
5607 ;;
1f53ca9a
AO
5608 "" | yes)
5609 ;;
29383458 5610 *)
e8a5fa9c 5611 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5612 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5613 ;;
5614esac
e28c595f
JM
5615if test "x$with_ppl_include" != x; then
5616 pplinc="-I$with_ppl_include $pplinc"
5617fi
5618if test "x$with_ppl_lib" != x; then
e8a5fa9c 5619 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5620fi
5621if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5622 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
1f53ca9a
AO
5623 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5624 enable_ppl_version_check=no
e28c595f
JM
5625fi
5626
81ecdfbb
RW
5627# Check whether --enable-ppl-version-check was given.
5628if test "${enable_ppl_version_check+set}" = set; then :
5629 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5630else
5631 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5632fi
5633
e28c595f 5634
1f53ca9a 5635if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5636 saved_CFLAGS="$CFLAGS"
5637 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5639$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5641/* end confdefs.h. */
5642#include "ppl_c.h"
5643int
5644main ()
5645{
5646
a009f2e7 5647 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5648 choke me
5649 #endif
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
81ecdfbb
RW
5655if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657$as_echo "yes" >&6; }
e28c595f 5658else
81ecdfbb 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5660$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5661fi
81ecdfbb 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5663 CFLAGS="$saved_CFLAGS"
5664fi
5665
5666# Flags needed for PPL
5667
5668
5669
5670
5671# Check for CLOOG
e552509b 5672
e28c595f
JM
5673
5674
81ecdfbb
RW
5675# Check whether --with-cloog was given.
5676if test "${with_cloog+set}" = set; then :
5677 withval=$with_cloog;
81ecdfbb
RW
5678fi
5679
e28c595f 5680
e552509b 5681# Check whether --with-cloog-include was given.
81ecdfbb
RW
5682if test "${with_cloog_include+set}" = set; then :
5683 withval=$with_cloog_include;
5684fi
e28c595f 5685
e28c595f 5686
e552509b 5687# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5688if test "${with_cloog_lib+set}" = set; then :
5689 withval=$with_cloog_lib;
5690fi
e28c595f 5691
e28c595f 5692
e552509b
ILT
5693 # Check whether --enable-cloog-backend was given.
5694if test "${enable_cloog_backend+set}" = set; then :
5695 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5696 cloog_backend=isl
5697 elif test "x${enableval}" = "xppl"; then
5698 cloog_backend=ppl
5699 else
5700 cloog_backend=ppl-legacy
5701 fi
5702else
5703 cloog_backend=ppl-legacy
5704fi
5705
5706 # Check whether --enable-cloog-version-check was given.
5707if test "${enable_cloog_version_check+set}" = set; then :
5708 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5709else
5710 ENABLE_CLOOG_CHECK=yes
5711fi
5712
5713
5714 # Initialize clooglibs and clooginc.
5715 case $with_cloog in
5716 no)
5717 clooglibs=
5718 clooginc=
5719 ;;
5720 "" | yes)
5721 ;;
5722 *)
5723 clooglibs="-L$with_cloog/lib"
5724 clooginc="-I$with_cloog/include"
5725 ;;
5726 esac
5727 if test "x${with_cloog_include}" != x ; then
5728 clooginc="-I$with_cloog_include"
5729 fi
5730 if test "x${with_cloog_lib}" != x; then
5731 clooglibs="-L$with_cloog_lib"
5732 fi
5733
5734
5735
5736
5737
1f53ca9a
AO
5738if test "x$with_ppl" = "xno"; then
5739 with_cloog=no
5740fi
e552509b
ILT
5741if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5742 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5743 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5744 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5745fi
5746if test "x$with_cloog" != "xno"; then
1f53ca9a 5747
e552509b
ILT
5748
5749
5750 _cloog_saved_CFLAGS=$CFLAGS
5751 _cloog_saved_CPPFLAGS=$CPPFLAGS
5752 _cloog_saved_LDFLAGS=$LDFLAGS
5753 _cloog_saved_LIBS=$LIBS
5754
5755 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5756
5757 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5758 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5759 LDFLAGS="${LDFLAGS} ${clooglibs}"
5760
5761 case $cloog_backend in
5762 "ppl-legacy")
5763 CFLAGS="${CFLAGS} ${pplinc}"
5764 LDFLAGS="${LDFLAGS} ${ppllibs}"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5766$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5767if test "${gcc_cv_cloog_type+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769else
5770 LIBS="-lcloog ${_cloog_saved_LIBS}"
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h. */
5773#include "cloog/cloog.h"
5774int
5775main ()
5776{
5777#ifndef CLOOG_PPL_BACKEND
5778 choke me
5779 #endif
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784if ac_fn_c_try_link "$LINENO"; then :
5785 gcc_cv_cloog_type="PPL Legacy"
5786else
5787 gcc_cv_cloog_type=no
5788fi
5789rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
e28c595f 5791fi
e552509b
ILT
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5793$as_echo "$gcc_cv_cloog_type" >&6; }
5794 ;;
5795 "isl")
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5797$as_echo_n "checking for installed CLooG ISL... " >&6; }
5798if test "${gcc_cv_cloog_type+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800else
5801 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804#include "cloog/cloog.h"
5805int
5806main ()
5807{
5808cloog_version ()
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_link "$LINENO"; then :
5814 gcc_cv_cloog_type="ISL"
5815else
5816 gcc_cv_cloog_type=no
e28c595f 5817fi
e552509b
ILT
5818rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
e28c595f 5820fi
e552509b
ILT
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5822$as_echo "$gcc_cv_cloog_type" >&6; }
5823 ;;
5824 "ppl")
5825 CFLAGS="${CFLAGS} ${pplinc}"
5826 LDFLAGS="${LDFLAGS} ${ppllibs}"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5828$as_echo_n "checking for installed CLooG PPL... " >&6; }
5829if test "${gcc_cv_cloog_type+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
e28c595f 5831else
e552509b
ILT
5832 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h. */
5835#include "cloog/cloog.h"
5836 #include "cloog/ppl/cloog.h"
5837int
5838main ()
5839{
5840cloog_version ()
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_link "$LINENO"; then :
5846 gcc_cv_cloog_type="PPL"
5847else
5848 gcc_cv_cloog_type=no
81ecdfbb 5849fi
e552509b
ILT
5850rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5854$as_echo "$gcc_cv_cloog_type" >&6; }
5855 ;;
5856 *)
5857 gcc_cv_cloog_type=""
5858 esac
5859
5860 case $gcc_cv_cloog_type in
5861 "PPL Legacy")
5862 clooginc="${clooginc}"
5863 clooglibs="${clooglibs} -lcloog"
5864 cloog_org=no
5865 ;;
5866 "ISL")
5867 clooginc="${clooginc} ${_cloogorginc}"
5868 clooglibs="${clooglibs} -lcloog-isl"
5869 cloog_org=yes
5870 ;;
5871 "PPL")
5872 clooginc="${clooginc} ${_cloogorginc}"
5873 clooglibs="${clooglibs} -lcloog-ppl"
5874 cloog_org=yes
5875 ;;
5876 *)
5877 clooglibs=
5878 clooginc=
5879 cloog_org=
5880 ;;
5881 esac
81ecdfbb 5882
e552509b
ILT
5883 LIBS=$_cloog_saved_LIBS
5884 CFLAGS=$_cloog_saved_CFLAGS
5885 CPPFLAGS=$_cloog_saved_CPPFLAGS
5886 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5887
e552509b
ILT
5888
5889
5890
5891
5892 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5893 _cloog_saved_CFLAGS=$CFLAGS
5894 _cloog_saved_LDFLAGS=$LDFLAGS
5895
5896 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5897 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5898
5899 if test "${cloog_org}" = yes ; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5901$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5902if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h. */
5907#include "cloog/cloog.h"
5908int
5909main ()
5910{
5911#if CLOOG_VERSION_MAJOR != 0 \
5912 || CLOOG_VERSION_MINOR != 14 \
5913 || CLOOG_VERSION_REVISION < 0
5914 choke me
5915 #endif
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921 gcc_cv_cloog_ct_0_14_0=yes
5922else
5923 gcc_cv_cloog_ct_0_14_0=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5928$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5929 elif test "${cloog_org}" = no ; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5931$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5932if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934else
81ecdfbb 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5936/* end confdefs.h. */
5937#include "cloog/cloog.h"
5938int
5939main ()
5940{
e552509b
ILT
5941#if CLOOG_VERSION_MAJOR != 0 \
5942 || CLOOG_VERSION_MINOR != 15 \
5943 || CLOOG_VERSION_REVISION < 5
5944 choke me
5945 #endif
e28c595f
JM
5946 ;
5947 return 0;
5948}
5949_ACEOF
a009f2e7
RW
5950if ac_fn_c_try_compile "$LINENO"; then :
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953#include "cloog/cloog.h"
5954int
5955main ()
5956{
e552509b
ILT
5957#if CLOOG_VERSION_MAJOR != 0 \
5958 || CLOOG_VERSION_MINOR != 15 \
5959 || CLOOG_VERSION_REVISION < 9
5960 choke me
5961 #endif
a009f2e7
RW
5962 ;
5963 return 0;
5964}
5965_ACEOF
81ecdfbb 5966if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5967 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5968else
e552509b 5969 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5972else
e552509b 5973 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5974fi
81ecdfbb 5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5976fi
e552509b
ILT
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5978$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5979 fi
5980
5981 CFLAGS=$_cloog_saved_CFLAGS
5982 LDFLAGS=$_cloog_saved_LDFLAGS
5983 fi
5984
5985
5986
e28c595f 5987
e28c595f
JM
5988
5989
5990
e552509b
ILT
5991 if test "x${with_cloog}" != x \
5992 || test "x${with_cloog_include}" != x \
5993 || test "x${with_cloog_lib}" != x ; then
5994 graphite_requested=yes
5995 else
5996 graphite_requested=no
5997 fi
5998
5999
6000
6001 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6002 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6003 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6004 clooglibs=
6005 clooginc=
6006 fi
6007
6008 if test "${graphite_requested}" = yes \
6009 && test "x${clooglibs}" = x \
6010 && test "x${clooginc}" = x ; then
6011
6012 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6013 fi
6014
6015
6016fi
6017
700d40ca
ILT
6018# Check for LTO support.
6019# Check whether --enable-lto was given.
6020if test "${enable_lto+set}" = set; then :
6021 enableval=$enable_lto; enable_lto=$enableval
6022else
6023 enable_lto=yes; default_enable_lto=yes
6024fi
6025
6026
143754cd 6027
e49e5c92
DK
6028
6029
6030target_elf=no
6031case $target in
6032 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6033 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6034 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6035 target_elf=no
6036 ;;
6037 *)
6038 target_elf=yes
6039 ;;
6040esac
6041
6042if test $target_elf = yes; then :
74cea91b
DK
6043 # ELF platforms build the lto-plugin always.
6044 build_lto_plugin=yes
e49e5c92 6045
e49e5c92
DK
6046else
6047 if test x"$default_enable_lto" = x"yes" ; then
29821356 6048 case $target in
a8eb3f0a 6049 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6050 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6051 *) enable_lto=no ;;
6052 esac
e49e5c92 6053 else
29821356
RW
6054 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6055 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6056 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6057 # warn during gcc/ subconfigure; unless you're bootstrapping with
6058 # -flto it won't be needed until after installation anyway.
6059 case $target in
a8eb3f0a 6060 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6061 *) if test x"$enable_lto" = x"yes"; then
6062 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6063 fi
6064 ;;
6065 esac
6066 fi
a8eb3f0a 6067 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6068 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6069 case $target in
74cea91b 6070 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6071 *) ;;
6072 esac
74cea91b 6073
e49e5c92
DK
6074fi
6075
700d40ca 6076
e28c595f 6077
947f426e 6078# By default, C is the only stage 1 language.
9b134994 6079stage1_languages=,c,
1d39f329 6080
e8a5fa9c 6081# Target libraries that we bootstrap.
2aa2364a 6082bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6083
9e07f89d
NN
6084# Figure out what language subdirectories are present.
6085# Look if the user specified --enable-languages="..."; if not, use
6086# the environment variable $LANGUAGES if defined. $LANGUAGES might
6087# go away some day.
6088# NB: embedded tabs in this IF block -- do not untabify
6089if test -d ${srcdir}/gcc; then
6090 if test x"${enable_languages+set}" != xset; then
6091 if test x"${LANGUAGES+set}" = xset; then
6092 enable_languages="${LANGUAGES}"
6093 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6094 else
6095 enable_languages=all
6096 fi
6097 else
6098 if test x"${enable_languages}" = x ||
6099 test x"${enable_languages}" = xyes;
6100 then
6101 echo configure.in: --enable-languages needs at least one language argument 1>&2
6102 exit 1
6103 fi
6104 fi
6105 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6106
096f7d00
DE
6107 # 'f95' is the old name for the 'fortran' language. We issue a warning
6108 # and make the substitution.
6109 case ,${enable_languages}, in
6110 *,f95,*)
6111 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6112 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6113 ;;
6114 esac
6115
9e07f89d
NN
6116 # First scan to see if an enabled language requires some other language.
6117 # We assume that a given config-lang.in will list all the language
6118 # front ends it requires, even if some are required indirectly.
6119 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6120 case ${lang_frag} in
6121 ..) ;;
6122 # The odd quoting in the next line works around
6123 # an apparent bug in bash 1.12 on linux.
6124 ${srcdir}/gcc/[*]/config-lang.in) ;;
6125 *)
e552509b
ILT
6126 # From the config-lang.in, get $language, $lang_requires, and
6127 # $lang_requires_boot_languages.
9e07f89d
NN
6128 language=
6129 lang_requires=
e552509b 6130 lang_requires_boot_languages=
9e07f89d 6131 . ${lang_frag}
e552509b 6132 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6133 case ,${enable_languages}, in
6134 *,$other,*) ;;
6135 *,all,*) ;;
6136 *,$language,*)
6137 echo " \`$other' language required by \`$language'; enabling" 1>&2
6138 enable_languages="${enable_languages},${other}"
6139 ;;
6140 esac
6141 done
e552509b
ILT
6142 for other in ${lang_requires_boot_languages} ; do
6143 if test "$other" != "c"; then
6144 case ,${enable_stage1_languages}, in
6145 *,$other,*) ;;
6146 *,all,*) ;;
6147 *)
6148 case ,${enable_languages}, in
6149 *,$language,*)
6150 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6151 enable_stage1_languages="$enable_stage1_languages,${other}"
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 fi
6157 done
9e07f89d
NN
6158 ;;
6159 esac
6160 done
6161
9b134994 6162 new_enable_languages=,c,
700d40ca
ILT
6163
6164 # If LTO is enabled, add the LTO front end.
6165 extra_host_libiberty_configure_flags=
6166 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6167 case ,${enable_languages}, in
6168 *,lto,*) ;;
6169 *) enable_languages="${enable_languages},lto" ;;
6170 esac
a8eb3f0a 6171 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6172 configdirs="$configdirs lto-plugin"
6173 extra_host_libiberty_configure_flags=--enable-shared
6174 fi
6175 fi
6176
6177
9e07f89d 6178 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6179 potential_languages=,c,
9e07f89d
NN
6180
6181 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6182 case ${lang_frag} in
6183 ..) ;;
6184 # The odd quoting in the next line works around
6185 # an apparent bug in bash 1.12 on linux.
6186 ${srcdir}/gcc/[*]/config-lang.in) ;;
6187 *)
c6b750e1 6188 # From the config-lang.in, get $language, $target_libs,
1d39f329 6189 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6190 language=
6191 target_libs=
6192 lang_dirs=
64ce424c 6193 subdir_requires=
9b134994
PB
6194 boot_language=no
6195 build_by_default=yes
9e07f89d 6196 . ${lang_frag}
9b134994
PB
6197 if test x${language} = x; then
6198 echo "${lang_frag} doesn't set \$language." 1>&2
6199 exit 1
6200 fi
6201
1f53ca9a
AO
6202 if test "$language" = "c++" \
6203 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6204 boot_language=yes
6205 fi
6206
9b134994
PB
6207 case ,${enable_languages}, in
6208 *,${language},*)
9e07f89d
NN
6209 # Language was explicitly selected; include it.
6210 add_this_lang=yes
6211 ;;
9b134994
PB
6212 *,all,*)
6213 # 'all' was selected, select it if it is a default language
6214 add_this_lang=${build_by_default}
9e07f89d
NN
6215 ;;
6216 *)
6217 add_this_lang=no
6218 ;;
6219 esac
4b1cb4fe 6220
64ce424c 6221 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6222 for i in $subdir_requires; do
3d3adb43 6223 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6224 case ,${enable_languages}, in
6225 *,${language},*)
6226 # Specifically requested language; tell them.
81ecdfbb 6227 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6228 ;;
6229 *)
6230 # Silently disable.
9b134994 6231 add_this_lang=unsupported
64ce424c
PB
6232 ;;
6233 esac
6234 done
6235
9b134994
PB
6236 # Disable Ada if no preexisting GNAT is available.
6237 case ,${enable_languages},:${language}:${have_gnat} in
6238 *,${language},*:ada:no)
6239 # Specifically requested language; tell them.
81ecdfbb 6240 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6241 ;;
6242 *:ada:no)
6243 # Silently disable.
6244 add_this_lang=unsupported
6245 ;;
6246 esac
6247
59f7ec45
HPN
6248 # Disable a language that is unsupported by the target.
6249 case " $unsupported_languages " in
6250 *" $language "*)
9b134994 6251 add_this_lang=unsupported
59f7ec45
HPN
6252 ;;
6253 esac
6254
4b1cb4fe 6255 case $add_this_lang in
9b134994 6256 unsupported)
9e07f89d 6257 # Remove language-dependent dirs.
1d39f329
NN
6258 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6259 ;;
9b134994
PB
6260 no)
6261 # Remove language-dependent dirs; still show language as supported.
6262 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6263 potential_languages="${potential_languages}${language},"
6264 ;;
6265 yes)
6266 new_enable_languages="${new_enable_languages}${language},"
6267 potential_languages="${potential_languages}${language},"
1d39f329 6268 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
f8dc745f
RW
6269 case "${boot_language}:,$enable_stage1_languages," in
6270 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6271 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6272 case ",$stage1_languages," in
6273 *,$language,* | ,yes, | ,all,) ;;
6274 *) stage1_languages="${stage1_languages}${language}," ;;
6275 esac
e8a5fa9c
RW
6276 # We need to bootstrap any supporting libraries.
6277 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6278 ;;
6279 esac
6280 ;;
9e07f89d
NN
6281 esac
6282 ;;
6283 esac
6284 done
6285
81ecdfbb
RW
6286 # Check whether --enable-stage1-languages was given.
6287if test "${enable_stage1_languages+set}" = set; then :
6288 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6289 ,no,|,,)
6290 # Set it to something that will have no effect in the loop below
6291 enable_stage1_languages=c ;;
6292 ,yes,)
6293 enable_stage1_languages=`echo $new_enable_languages | \
6294 sed -e "s/^,//" -e "s/,$//" ` ;;
6295 *,all,*)
6296 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6297 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6298 esac
6299
6300 # Add "good" languages from enable_stage1_languages to stage1_languages,
6301 # while "bad" languages go in missing_languages. Leave no duplicates.
6302 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6303 case $potential_languages in
6304 *,$i,*)
6305 case $stage1_languages in
6306 *,$i,*) ;;
6307 *) stage1_languages="$stage1_languages$i," ;;
6308 esac ;;
6309 *)
6310 case $missing_languages in
6311 *,$i,*) ;;
6312 *) missing_languages="$missing_languages$i," ;;
6313 esac ;;
6314 esac
6315 done
81ecdfbb
RW
6316fi
6317
9b134994
PB
6318
6319 # Remove leading/trailing commas that were added for simplicity
6320 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6321 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6322 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6323 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6324
9e07f89d 6325 if test "x$missing_languages" != x; then
81ecdfbb 6326 as_fn_error "
27258dd4 6327The following requested languages could not be built: ${missing_languages}
81ecdfbb 6328Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6329 fi
9e07f89d
NN
6330 if test "x$new_enable_languages" != "x$enable_languages"; then
6331 echo The following languages will be built: ${new_enable_languages}
9b134994 6332 enable_languages="$new_enable_languages"
9e07f89d 6333 fi
9b134994 6334
c6b750e1 6335
81ec575a 6336 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6337fi
6338
a6df5a19
PB
6339# Handle --disable-<component> generically.
6340for dir in $configdirs $build_configdirs $target_configdirs ; do
6341 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6342 varname=`echo $dirname | sed -e s/+/_/g`
6343 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6344 noconfigdirs="$noconfigdirs $dir"
6345 fi
6346done
6347
4f0ef2d8 6348# Check for Boehm's garbage collector
81ecdfbb
RW
6349# Check whether --enable-objc-gc was given.
6350if test "${enable_objc_gc+set}" = set; then :
6351 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6352 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6353 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6354 ;;
6355esac
81ecdfbb
RW
6356fi
6357
4f0ef2d8
CD
6358
6359# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6360case ,${enable_languages},:${enable_objc_gc} in
6361 *,objc,*:yes)
4f0ef2d8
CD
6362 # Keep target-boehm-gc if requested for Objective-C.
6363 ;;
4f0ef2d8 6364 *)
d42c4017
DA
6365 # Otherwise remove target-boehm-gc depending on target-libjava.
6366 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6367 noconfigdirs="$noconfigdirs target-boehm-gc"
6368 fi
4f0ef2d8
CD
6369 ;;
6370esac
6371
caeba88f
AL
6372# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6373# $build_configdirs and $target_configdirs.
9e07f89d
NN
6374# If we have the source for $noconfigdirs entries, add them to $notsupp.
6375
6376notsupp=""
6377for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6378 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6379 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6380 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6381 if test -r $srcdir/$dirname/configure ; then
6382 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6383 true
6384 else
6385 notsupp="$notsupp $dir"
6386 fi
6387 fi
6388 fi
caeba88f
AL
6389 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6390 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6391 if test -r $srcdir/$dirname/configure ; then
6392 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6393 true
6394 else
6395 notsupp="$notsupp $dir"
6396 fi
6397 fi
6398 fi
9e07f89d
NN
6399 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6400 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6401 if test -r $srcdir/$dirname/configure ; then
6402 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6403 true
6404 else
6405 notsupp="$notsupp $dir"
6406 fi
6407 fi
6408 fi
6409done
6410
6411# Sometimes the tools are distributed with libiberty but with no other
6412# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6413# Don't let libgcc imply libiberty either.
9e07f89d 6414if test -n "${target_configdirs}" ; then
f86e35b8 6415 libgcc=
9e07f89d
NN
6416 others=
6417 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6418 if test "$i" = "libgcc"; then
6419 libgcc=target-libgcc
6420 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6421 if test -r $srcdir/$i/configure ; then
6422 others=yes;
6423 break;
6424 fi
6425 fi
6426 done
6427 if test -z "${others}" ; then
f86e35b8 6428 target_configdirs=$libgcc
9e07f89d
NN
6429 fi
6430fi
6431
6432# Quietly strip out all directories which aren't configurable in this tree.
6433# This relies on all configurable subdirectories being autoconfiscated, which
6434# is now the case.
6a9cf61e
PB
6435build_configdirs_all="$build_configdirs"
6436build_configdirs=
6437for i in ${build_configdirs_all} ; do
c6b750e1 6438 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6439 if test -f ${srcdir}/$j/configure ; then
6440 build_configdirs="${build_configdirs} $i"
6441 fi
6442done
6443
9e07f89d
NN
6444configdirs_all="$configdirs"
6445configdirs=
6446for i in ${configdirs_all} ; do
6447 if test -f ${srcdir}/$i/configure ; then
6448 configdirs="${configdirs} $i"
6449 fi
6450done
6a9cf61e 6451
9e07f89d
NN
6452target_configdirs_all="$target_configdirs"
6453target_configdirs=
6454for i in ${target_configdirs_all} ; do
c6b750e1 6455 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6456 if test -f ${srcdir}/$j/configure ; then
6457 target_configdirs="${target_configdirs} $i"
6458 fi
6459done
6460
6461# Produce a warning message for the subdirs we can't configure.
6462# This isn't especially interesting in the Cygnus tree, but in the individual
6463# FSF releases, it's important to let people know when their machine isn't
6464# supported by the one or two programs in a package.
6465
6466if test -n "${notsupp}" && test -z "${norecursion}" ; then
6467 # If $appdirs is non-empty, at least one of those directories must still
6468 # be configured, or we error out. (E.g., if the gas release supports a
6469 # specified target in some subdirs but not the gas subdir, we shouldn't
6470 # pretend that all is well.)
6471 if test -n "$appdirs" ; then
6472 for dir in $appdirs ; do
6473 if test -r $dir/Makefile.in ; then
6474 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6475 appdirs=""
6476 break
6477 fi
6a9cf61e 6478 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6479 appdirs=""
6480 break
6481 fi
6482 fi
6483 done
6484 if test -n "$appdirs" ; then
6485 echo "*** This configuration is not supported by this package." 1>&2
6486 exit 1
6487 fi
6488 fi
6489 # Okay, some application will build, or we don't care to check. Still
6490 # notify of subdirs not getting built.
6491 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6492 echo " ${notsupp}" 1>&2
6493 echo " (Any other directories should still work fine.)" 1>&2
6494fi
6495
6496case "$host" in
6497 *msdosdjgpp*)
6498 enable_gdbtk=no ;;
6499esac
6500
18f6b6ee
PB
6501# To find our prefix, in gcc_cv_tool_prefix.
6502
6503# The user is always right.
6504if test "${PATH_SEPARATOR+set}" != set; then
6505 echo "#! /bin/sh" >conf$$.sh
6506 echo "exit 0" >>conf$$.sh
6507 chmod +x conf$$.sh
6508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6509 PATH_SEPARATOR=';'
6510 else
6511 PATH_SEPARATOR=:
6512 fi
6513 rm -f conf$$.sh
6514fi
6515
6516
6517
6518if test "x$exec_prefix" = xNONE; then
6519 if test "x$prefix" = xNONE; then
6520 gcc_cv_tool_prefix=$ac_default_prefix
6521 else
6522 gcc_cv_tool_prefix=$prefix
6523 fi
6524else
6525 gcc_cv_tool_prefix=$exec_prefix
6526fi
6527
6528# If there is no compiler in the tree, use the PATH only. In any
6529# case, if there is no compiler in the tree nobody should use
6530# AS_FOR_TARGET and LD_FOR_TARGET.
6531if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6532 gcc_version=`cat $srcdir/gcc/BASE-VER`
6533 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6534 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6535 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6537 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6538 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6539else
6540 gcc_cv_tool_dirs=
6541fi
6542
6543if test x$build = x$target && test -n "$md_exec_prefix"; then
6544 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6545fi
6546
6547
6548
9e07f89d
NN
6549copy_dirs=
6550
c6b750e1 6551
81ecdfbb
RW
6552# Check whether --with-build-sysroot was given.
6553if test "${with_build_sysroot+set}" = set; then :
6554 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6555 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6556 fi
6557else
6558 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6559fi
a19b6204
MM
6560
6561
8a6ee3ab 6562
81ecdfbb
RW
6563
6564# Check whether --with-debug-prefix-map was given.
6565if test "${with_debug_prefix_map+set}" = set; then :
6566 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6567 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6568 for debug_map in $withval; do
6569 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6570 done
6571 fi
6572else
6573 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6574fi
6575
8a6ee3ab
JM
6576
6577
7f6ef0c0
PB
6578# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6579# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6580# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6581# We want to ensure that TARGET libraries (which we know are built with
6582# gcc) are built with "-O2 -g", so include those options when setting
6583# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6584if test "x$CFLAGS_FOR_TARGET" = x; then
6585 CFLAGS_FOR_TARGET=$CFLAGS
6586 case " $CFLAGS " in
6587 *" -O2 "*) ;;
6588 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6589 esac
6590 case " $CFLAGS " in
6591 *" -g "* | *" -g3 "*) ;;
6592 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6593 esac
6594fi
6595
6596
6597if test "x$CXXFLAGS_FOR_TARGET" = x; then
6598 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6599 case " $CXXFLAGS " in
6600 *" -O2 "*) ;;
6601 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6602 esac
6603 case " $CXXFLAGS " in
6604 *" -g "* | *" -g3 "*) ;;
6605 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6606 esac
6607fi
6608
6609
9e07f89d
NN
6610# Handle --with-headers=XXX. If the value is not "yes", the contents of
6611# the named directory are copied to $(tooldir)/sys-include.
6612if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6613 if test x${is_cross_compiler} = xno ; then
6614 echo 1>&2 '***' --with-headers is only supported when cross compiling
6615 exit 1
6616 fi
6617 if test x"${with_headers}" != xyes ; then
18f6b6ee 6618 x=${gcc_cv_tool_prefix}
c6b750e1 6619 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6620 fi
6621fi
6622
6623# Handle --with-libs=XXX. If the value is not "yes", the contents of
6624# the name directories are copied to $(tooldir)/lib. Multiple directories
6625# are permitted.
6626if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6627 if test x${is_cross_compiler} = xno ; then
6628 echo 1>&2 '***' --with-libs is only supported when cross compiling
6629 exit 1
6630 fi
6631 if test x"${with_libs}" != xyes ; then
6632 # Copy the libraries in reverse order, so that files in the first named
6633 # library override files in subsequent libraries.
18f6b6ee 6634 x=${gcc_cv_tool_prefix}
9e07f89d 6635 for l in ${with_libs}; do
c6b750e1 6636 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6637 done
6638 fi
6639fi
6640
700d40ca 6641# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6642#
6643# This is done by determining whether or not the appropriate directory
6644# is available, and by checking whether or not specific configurations
6645# have requested that this magic not happen.
c6b750e1
DJ
6646#
6647# The command line options always override the explicit settings in
2429c060
PB
6648# configure.in, and the settings in configure.in override this magic.
6649#
c6b750e1 6650# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6651# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6652# --without-gnu-ld options for the configure script. Similarly, if
6653# the default is to use the included zlib and you don't want to do that,
6654# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6655
6656if test x${use_gnu_as} = x &&
6657 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6658 with_gnu_as=yes
6659 extra_host_args="$extra_host_args --with-gnu-as"
6660fi
6661
6662if test x${use_gnu_ld} = x &&
93f9b408 6663 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6664 with_gnu_ld=yes
6665 extra_host_args="$extra_host_args --with-gnu-ld"
6666fi
6667
700d40ca
ILT
6668if test x${use_included_zlib} = x &&
6669 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6670 :
6671else
6672 with_system_zlib=yes
6673 extra_host_args="$extra_host_args --with-system-zlib"
6674fi
6675
2429c060
PB
6676# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6677# can detect this case.
6678
6679if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6680 with_newlib=yes
6681 extra_host_args="$extra_host_args --with-newlib"
6682fi
6683
9e07f89d
NN
6684# Handle ${copy_dirs}
6685set fnord ${copy_dirs}
6686shift
6687while test $# != 0 ; do
6688 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6689 :
6690 else
6691 echo Copying $1 to $2
6692
6693 # Use the install script to create the directory and all required
6694 # parent directories.
6695 if test -d $2 ; then
6696 :
6697 else
6698 echo >config.temp
6699 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6700 fi
6701
6702 # Copy the directory, assuming we have tar.
6703 # FIXME: Should we use B in the second tar? Not all systems support it.
6704 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6705
6706 # It is the responsibility of the user to correctly adjust all
6707 # symlinks. If somebody can figure out how to handle them correctly
6708 # here, feel free to add the code.
6709
6710 echo $1 > $2/COPIED
6711 fi
6712 shift; shift
6713done
6714
2429c060
PB
6715# Determine a target-dependent exec_prefix that the installed
6716# gcc will search in. Keep this list sorted by triplet, with
6717# the *-*-osname triplets last.
6718md_exec_prefix=
6719case "${target}" in
6720 alpha*-*-*vms*)
6721 md_exec_prefix=/gnu/lib/gcc-lib
6722 ;;
521ec477 6723 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6724 md_exec_prefix=/dev/env/DJDIR/bin
6725 ;;
521ec477 6726 i[34567]86-*-sco3.2v5*)
2429c060
PB
6727 if test $with_gnu_as = yes; then
6728 md_exec_prefix=/usr/gnu/bin
6729 else
6730 md_exec_prefix=/usr/ccs/bin/elf
6731 fi
6732 ;;
6733
6734 mn10300-*-* | \
6735 powerpc-*-chorusos* | \
6736 powerpc*-*-eabi* | \
6737 powerpc*-*-sysv* | \
6738 powerpc*-*-kaos* | \
6739 s390x-ibm-tpf*)
6740 md_exec_prefix=/usr/ccs/bin
6741 ;;
6742 sparc64-*-elf*)
6743 ;;
6744 v850*-*-*)
6745 md_exec_prefix=/usr/ccs/bin
6746 ;;
8b66833e 6747 xtensa*-*-elf*)
2429c060
PB
6748 ;;
6749
6750 *-*-beos* | \
6751 *-*-elf* | \
6752 *-*-hpux* | \
6753 *-*-netware* | \
6754 *-*-nto-qnx* | \
6755 *-*-rtems* | \
6756 *-*-solaris2* | \
521ec477 6757 *-*-sysv[45]* | \
2429c060
PB
6758 *-*-vxworks* | \
6759 *-wrs-windiss)
6760 md_exec_prefix=/usr/ccs/bin
6761 ;;
6762esac
6763
a0da8069
NN
6764extra_arflags_for_target=
6765extra_nmflags_for_target=
6766extra_ranlibflags_for_target=
6767target_makefile_frag=/dev/null
6768case "${target}" in
4e206d7e
DB
6769 mep*-*-*)
6770 target_makefile_frag="config/mt-mep"
6771 ;;
77d7106f
AM
6772 spu-*-*)
6773 target_makefile_frag="config/mt-spu"
6774 ;;
429acdec
RS
6775 mips*-sde-elf*)
6776 target_makefile_frag="config/mt-sde"
6777 ;;
f3b1e08e
RS
6778 mipsisa*-*-elfoabi*)
6779 target_makefile_frag="config/mt-mips-elfoabi"
6780 ;;
e7c8859c
RS
6781 mips*-*-*linux* | mips*-*-gnu*)
6782 target_makefile_frag="config/mt-mips-gnu"
6783 ;;
2a3124ca 6784 *-*-netware*)
a0da8069
NN
6785 target_makefile_frag="config/mt-netware"
6786 ;;
29383458 6787 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6788 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6789 ;;
6790 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6791 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6792 # commands to handle both 32-bit and 64-bit objects. These flags are
6793 # harmless if we're using GNU nm or ar.
6794 extra_arflags_for_target=" -X32_64"
6795 extra_nmflags_for_target=" -B -X32_64"
6796 ;;
92f4e989
JM
6797 *-*-darwin[3-9]*)
6798 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6799 extra_ranlibflags_for_target=" -c"
6800 ;;
6801 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6802 target_makefile_frag="config/mt-wince"
6803 ;;
6804esac
6805
6806alphaieee_frag=/dev/null
6807case $target in
6808 alpha*-*-*)
6809 # This just makes sure to use the -mieee option to build target libs.
6810 # This should probably be set individually by each library.
6811 alphaieee_frag="config/mt-alphaieee"
6812 ;;
6813esac
6814
6815# If --enable-target-optspace always use -Os instead of -O2 to build
6816# the target libraries, similarly if it is not specified, use -Os
6817# on selected platforms.
6818ospace_frag=/dev/null
6819case "${enable_target_optspace}:${target}" in
6820 yes:*)
6821 ospace_frag="config/mt-ospace"
6822 ;;
6823 :d30v-*)
6824 ospace_frag="config/mt-d30v"
6825 ;;
6826 :m32r-* | :d10v-* | :fr30-*)
6827 ospace_frag="config/mt-ospace"
6828 ;;
6829 no:* | :*)
6830 ;;
6831 *)
6832 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6833 ;;
6834esac
6835
a0da8069
NN
6836# Default to using --with-stabs for certain targets.
6837if test x${with_stabs} = x ; then
6838 case "${target}" in
e31d1ea3 6839 mips*-*-irix[56]*)
a0da8069
NN
6840 ;;
6841 mips*-*-* | alpha*-*-osf*)
6842 with_stabs=yes;
6843 extra_host_args="${extra_host_args} --with-stabs"
6844 ;;
6845 esac
6846fi
6847
6848# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6849# them automatically.
6850case "${host}" in
c6b750e1 6851 hppa*64*-*-hpux11*)
a0da8069
NN
6852 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6853 ;;
6854esac
6855
a0da8069
NN
6856# Some systems (e.g., one of the i386-aix systems the gas testers are
6857# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6858tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6859build_tooldir=${tooldir}
6860
a0da8069
NN
6861# Create a .gdbinit file which runs the one in srcdir
6862# and tells GDB to look there for source files.
6863
6864if test -r ${srcdir}/.gdbinit ; then
6865 case ${srcdir} in
6866 .) ;;
6867 *) cat > ./.gdbinit <<EOF
6868# ${NO_EDIT}
6869dir ${srcdir}
6870dir .
6871source ${srcdir}/.gdbinit
6872EOF
6873 ;;
6874 esac
6875fi
6876
a0da8069
NN
6877# Make sure that the compiler is able to generate an executable. If it
6878# can't, we are probably in trouble. We don't care whether we can run the
6879# executable--we might be using a cross compiler--we only care whether it
6880# can be created. At this point the main configure script has set CC.
6881we_are_ok=no
6882echo "int main () { return 0; }" > conftest.c
6883${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6884if test $? = 0 ; then
6885 if test -s conftest || test -s conftest.exe ; then
6886 we_are_ok=yes
6887 fi
c6b750e1 6888fi
a0da8069
NN
6889case $we_are_ok in
6890 no)
6891 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6892 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6893 rm -f conftest*
6894 exit 1
6895 ;;
6896esac
6897rm -f conftest*
6898
6899# The Solaris /usr/ucb/cc compiler does not appear to work.
6900case "${host}" in
6901 sparc-sun-solaris2*)
6902 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6903 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6904 could_use=
6905 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6906 if test -d /opt/cygnus/bin ; then
6907 if test "$could_use" = "" ; then
6908 could_use="/opt/cygnus/bin"
6909 else
6910 could_use="$could_use or /opt/cygnus/bin"
6911 fi
6912 fi
6913 if test "$could_use" = "" ; then
6914 echo "Warning: compilation may fail because you're using"
6915 echo "/usr/ucb/cc. You should change your PATH or CC "
6916 echo "variable and rerun configure."
6917 else
6918 echo "Warning: compilation may fail because you're using"
6919 echo "/usr/ucb/cc, when you should use the C compiler from"
6920 echo "$could_use. You should change your"
6921 echo "PATH or CC variable and rerun configure."
6922 fi
6923 fi
6924 ;;
6925esac
6926
3bbd2f8f 6927# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6928case "${host}" in
6929 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6930 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6931 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6932 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6933esac
6934
3bbd2f8f 6935# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6936# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6937# built executables to PATH.
3bbd2f8f
AL
6938if test "$RPATH_ENVVAR" = PATH; then
6939 GCC_SHLIB_SUBDIR=/shlib
6940else
6941 GCC_SHLIB_SUBDIR=
6942fi
6943
a0da8069
NN
6944# Record target_configdirs and the configure arguments for target and
6945# build configuration in Makefile.
6946target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6947build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6948
2aa2364a
JR
6949# If we are building libgomp, bootstrap it.
6950if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6951 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6952fi
6953
a0da8069
NN
6954# Determine whether gdb needs tk/tcl or not.
6955# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6956# and in that case we want gdb to be built without tk. Ugh!
6957# In fact I believe gdb is the *only* package directly dependent on tk,
6958# so we should be able to put the 'maybe's in unconditionally and
6959# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6960# 100% sure that that's safe though.
c180f501 6961
675c6968 6962gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6963case "$enable_gdbtk" in
6964 no)
6965 GDB_TK="" ;;
c180f501
AC
6966 yes)
6967 GDB_TK="${gdb_tk}" ;;
a0da8069 6968 *)
c180f501
AC
6969 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6970 # distro. Eventually someone will fix this and move Insight, nee
6971 # gdbtk to a separate directory.
6972 if test -d ${srcdir}/gdb/gdbtk ; then
6973 GDB_TK="${gdb_tk}"
6974 else
6975 GDB_TK=""
6976 fi
6977 ;;
a0da8069 6978esac
907be67c
DJ
6979CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6980INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6981
6bd3dfaa 6982# Strip out unwanted targets.
dd12c3a8
NN
6983
6984# While at that, we remove Makefiles if we were started for recursive
6985# configuration, so that the top-level Makefile reconfigures them,
6986# like we used to do when configure itself was recursive.
dd12c3a8 6987
06a51eac
RW
6988# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6989# but now we're fixing up the Makefile ourselves with the additional
6990# commands passed to AC_CONFIG_FILES. Use separate variables
6991# extrasub-{build,host,target} not because there is any reason to split
6992# the substitutions up that way, but only to remain below the limit of
6993# 99 commands in a script, for HP-UX sed.
6994# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6995
81ecdfbb
RW
6996# Check whether --enable-bootstrap was given.
6997if test "${enable_bootstrap+set}" = set; then :
6998 enableval=$enable_bootstrap;
319cab08 6999else
9cb3fa6f 7000 enable_bootstrap=default
81ecdfbb
RW
7001fi
7002
319cab08 7003
9cb3fa6f
PB
7004# Issue errors and warnings for invalid/strange bootstrap combinations.
7005case "$configdirs" in
7006 *gcc*) have_compiler=yes ;;
7007 *) have_compiler=no ;;
7008esac
7009
7010case "$have_compiler:$host:$target:$enable_bootstrap" in
7011 *:*:*:no) ;;
7012
0aed8855 7013 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7014 # and we are in a native configuration.
7015 yes:$build:$build:default)
0aed8855 7016 enable_bootstrap=yes ;;
9cb3fa6f
PB
7017
7018 *:*:*:default)
7019 enable_bootstrap=no ;;
7020
7021 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7022 yes:$build:$build:yes)
9cb3fa6f
PB
7023 ;;
7024
7025 # Other configurations, but we have a compiler. Assume the user knows
7026 # what he's doing.
80911fe1 7027 yes:*:*:yes)
81ecdfbb
RW
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7029$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7030 ;;
7031
7032 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7033 no:*:*:yes)
81ecdfbb 7034 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7035
7036 # Fail if wrong command line
7037 *)
81ecdfbb 7038 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7039 ;;
7040esac
7041
4385ad3c
RW
7042case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7043 *,c++,*:yes:yes) ;;
7044 *:yes:yes)
7045 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7046 ;;
7047esac
7048
16b1ad29
RW
7049case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7050 yes:yes:*\ gold\ *:*,c++,*) ;;
7051 yes:yes:*\ gold\ *:*)
7052 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7053 ;;
7054esac
7055
9cb3fa6f 7056# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7057case $enable_bootstrap in
319cab08 7058 yes)
96655cc4
AO
7059 bootstrap_suffix=bootstrap
7060 BUILD_CONFIG=bootstrap-debug
7061 ;;
319cab08 7062 no)
96655cc4
AO
7063 bootstrap_suffix=no-bootstrap
7064 BUILD_CONFIG=
7065 ;;
319cab08
PB
7066esac
7067
96655cc4
AO
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7069$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7070
7071
7072# Check whether --with-build-config was given.
7073if test "${with_build_config+set}" = set; then :
7074 withval=$with_build_config; case $with_build_config in
7075 yes) with_build_config= ;;
7076 no) with_build_config= BUILD_CONFIG= ;;
7077 esac
7078fi
7079
7080
7081if test "x${with_build_config}" != x; then
7082 BUILD_CONFIG=$with_build_config
7083else
7084 case $BUILD_CONFIG in
7085 bootstrap-debug)
7086 if echo "int f (void) { return 0; }" > conftest.c &&
7087 ${CC} -c conftest.c &&
7088 mv conftest.o conftest.o.g0 &&
7089 ${CC} -c -g conftest.c &&
7090 mv conftest.o conftest.o.g &&
a009f2e7 7091 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7092 :
7093 else
7094 BUILD_CONFIG=
7095 fi
7096 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7097 ;;
7098 esac
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7101$as_echo "$BUILD_CONFIG" >&6; }
7102
7103
06a51eac 7104extrasub_build=
6a9cf61e 7105for module in ${build_configdirs} ; do
498d4a71
CF
7106 if test -z "${no_recursion}" \
7107 && test -f ${build_subdir}/${module}/Makefile; then
7108 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7109 rm -f ${build_subdir}/${module}/Makefile
7110 fi
06a51eac 7111 extrasub_build="$extrasub_build
498d4a71
CF
7112/^@if build-$module\$/d
7113/^@endif build-$module\$/d
7114/^@if build-$module-$bootstrap_suffix\$/d
7115/^@endif build-$module-$bootstrap_suffix\$/d"
7116done
06a51eac 7117extrasub_host=
498d4a71 7118for module in ${configdirs} ; do
80911fe1 7119 if test -z "${no_recursion}"; then
8cf39b1b 7120 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7121 if test -f ${file}; then
7122 echo 1>&2 "*** removing ${file} to force reconfigure"
7123 rm -f ${file}
7124 fi
7125 done
498d4a71 7126 fi
06a51eac 7127 extrasub_host="$extrasub_host
498d4a71
CF
7128/^@if $module\$/d
7129/^@endif $module\$/d
7130/^@if $module-$bootstrap_suffix\$/d
7131/^@endif $module-$bootstrap_suffix\$/d"
7132done
06a51eac 7133extrasub_target=
498d4a71
CF
7134for module in ${target_configdirs} ; do
7135 if test -z "${no_recursion}" \
7136 && test -f ${target_subdir}/${module}/Makefile; then
7137 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7138 rm -f ${target_subdir}/${module}/Makefile
7139 fi
e8a5fa9c
RW
7140
7141 # We only bootstrap target libraries listed in bootstrap_target_libs.
7142 case $bootstrap_target_libs in
7143 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7144 *) target_bootstrap_suffix=no-bootstrap ;;
7145 esac
7146
06a51eac 7147 extrasub_target="$extrasub_target
498d4a71
CF
7148/^@if target-$module\$/d
7149/^@endif target-$module\$/d
e8a5fa9c
RW
7150/^@if target-$module-$target_bootstrap_suffix\$/d
7151/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7152done
7153
06a51eac
RW
7154# Do the final fixup along with target modules.
7155extrasub_target="$extrasub_target
6bd3dfaa 7156/^@if /,/^@endif /d"
a0da8069
NN
7157
7158# Create the serialization dependencies. This uses a temporary file.
7159
81ecdfbb
RW
7160# Check whether --enable-serial-configure was given.
7161if test "${enable_serial_configure+set}" = set; then :
7162 enableval=$enable_serial_configure;
7163fi
e6bfb94a
AO
7164
7165
1047cb91
DD
7166case ${enable_serial_configure} in
7167 yes)
7168 enable_serial_build_configure=yes
7169 enable_serial_host_configure=yes
7170 enable_serial_target_configure=yes
7171 ;;
7172esac
7173
a0da8069
NN
7174# These force 'configure's to be done one at a time, to avoid problems
7175# with contention over a shared config.cache.
7176rm -f serdep.tmp
e6bfb94a 7177echo '# serdep.tmp' > serdep.tmp
a0da8069 7178olditem=
1047cb91 7179test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7180for item in ${build_configdirs} ; do
7181 case ${olditem} in
7182 "") ;;
e6bfb94a 7183 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7184 esac
7185 olditem=${item}
7186done
7187olditem=
1047cb91 7188test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7189for item in ${configdirs} ; do
7190 case ${olditem} in
7191 "") ;;
e6bfb94a 7192 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7193 esac
7194 olditem=${item}
7195done
7196olditem=
1047cb91 7197test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7198for item in ${target_configdirs} ; do
7199 case ${olditem} in
7200 "") ;;
e6bfb94a 7201 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7202 esac
7203 olditem=${item}
7204done
7205serialization_dependencies=serdep.tmp
7206
7207
e6bfb94a 7208# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7209# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7210# might not want to pass down to subconfigures. The exception being
7211# --cache-file=/dev/null, which is used to turn off the use of cache
7212# files altogether, and which should be passed on to subconfigures.
7213# Also strip program-prefix, program-suffix, and program-transform-name,
7214# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7215baseargs=
7216keep_next=no
7217skip_next=no
7218eval "set -- $ac_configure_args"
18f6b6ee
PB
7219for ac_arg
7220do
c6b750e1
DJ
7221 if test X"$skip_next" = X"yes"; then
7222 skip_next=no
7223 continue
7224 fi
7225 if test X"$keep_next" = X"yes"; then
7226 case $ac_arg in
7227 *\'*)
7228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7229 esac
7230 baseargs="$baseargs '$ac_arg'"
7231 keep_next=no
7232 continue
7233 fi
7234
7235 # Handle separated arguments. Based on the logic generated by
7236 # autoconf 2.59.
7237 case $ac_arg in
7238 *=* | --config-cache | -C | -disable-* | --disable-* \
7239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7241 | -with-* | --with-* | -without-* | --without-* | --x)
7242 separate_arg=no
7243 ;;
7244 -*)
7245 separate_arg=yes
7246 ;;
7247 *)
7248 separate_arg=no
7249 ;;
7250 esac
7251
7252 case "$ac_arg" in
30167e0a
NC
7253 --cache-file=/dev/null | \
7254 -cache-file=/dev/null )
7255 # Handled here to avoid the test to skip args below.
7256 baseargs="$baseargs '$ac_arg'"
7257 # Assert: $separate_arg should always be no.
7258 keep_next=$separate_arg
7259 ;;
c6b750e1
DJ
7260 --no*)
7261 continue
7262 ;;
7263 --c* | \
7264 --sr* | \
7265 --ho* | \
7266 --bu* | \
7267 --t* | \
7268 --program-* | \
7269 -cache_file* | \
7270 -srcdir* | \
7271 -host* | \
7272 -build* | \
7273 -target* | \
7274 -program-prefix* | \
7275 -program-suffix* | \
7276 -program-transform-name* )
7277 skip_next=$separate_arg
7278 continue
7279 ;;
7280 -*)
7281 # An option. Add it.
7282 case $ac_arg in
7283 *\'*)
7284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7285 esac
7286 baseargs="$baseargs '$ac_arg'"
7287 keep_next=$separate_arg
7288 ;;
7289 *)
7290 # Either a variable assignment, or a nonopt (triplet). Don't
7291 # pass it down; let the Makefile handle this.
7292 continue
7293 ;;
7294 esac
7295done
7296# Remove the initial space we just introduced and, as these will be
7297# expanded by make, quote '$'.
7298baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7299
f27d4f92
DJ
7300# Add in --program-transform-name, after --program-prefix and
7301# --program-suffix have been applied to it. Autoconf has already
7302# doubled dollar signs and backslashes in program_transform_name; we want
7303# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7304# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7305# Also, because we want to override the logic in subdir configure scripts to
7306# choose program_transform_name, replace any s,x,x, with s,y,y,.
7307sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7308${program_transform_name}
7309EOF_SED
7310gcc_transform_name=`cat conftestsed.out`
7311rm -f conftestsed.out
7312baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7313if test "$silent" = yes; then
7314 baseargs="$baseargs --silent"
7315fi
34a0f3cf 7316baseargs="$baseargs --disable-option-checking"
f27d4f92 7317
4074d5f2
RW
7318# Record and document user additions to sub configure arguments.
7319
7320
7321
7322
a0da8069
NN
7323# For the build-side libraries, we just need to pretend we're native,
7324# and not use the same cache file. Multilibs are neither needed nor
7325# desired.
4074d5f2 7326build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7327
7328# For host modules, accept cache file option, or specification as blank.
7329case "${cache_file}" in
7330"") # empty
7331 cache_file_option="" ;;
7332/* | [A-Za-z]:[\\/]* ) # absolute path
7333 cache_file_option="--cache-file=${cache_file}" ;;
7334*) # relative path
7335 cache_file_option="--cache-file=../${cache_file}" ;;
7336esac
7337
82252c06
NN
7338# Host dirs don't like to share a cache file either, horribly enough.
7339# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7340host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7341
4074d5f2 7342target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7343
7344# Passing a --with-cross-host argument lets the target libraries know
7345# whether they are being built with a cross-compiler or being built
7346# native. However, it would be better to use other mechanisms to make the
7347# sorts of decisions they want to make on this basis. Please consider
7348# this option to be deprecated. FIXME.
7349if test x${is_cross_compiler} = xyes ; then
c6b750e1 7350 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7351fi
7352
938d2b74
RW
7353# Default to --enable-multilib.
7354if test x${enable_multilib} = x ; then
a0da8069 7355 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7356fi
a0da8069
NN
7357
7358# Pass --with-newlib if appropriate. Note that target_configdirs has
7359# changed from the earlier setting of with_newlib.
7360if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7361 target_configargs="--with-newlib ${target_configargs}"
7362fi
7363
95036d20
NN
7364# Different target subdirs use different values of certain variables
7365# (notably CXX). Worse, multilibs use *lots* of different values.
7366# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7367# it doesn't automatically accept command-line overrides of them.
7368# This means it's not safe for target subdirs to share a cache file,
7369# which is disgusting, but there you have it. Hopefully this can be
7370# fixed in future. It's still worthwhile to use a cache file for each
7371# directory. I think.
7372
ae380b45
MS
7373# Pass the appropriate --build, --host, --target and --cache-file arguments.
7374# We need to pass --target, as newer autoconf's requires consistency
7375# for target_alias and gcc doesn't manage it consistently.
4b900473 7376target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7377
a0da8069
NN
7378FLAGS_FOR_TARGET=
7379case " $target_configdirs " in
7380 *" newlib "*)
7381 case " $target_configargs " in
7382 *" --with-newlib "*)
7383 case "$target" in
1f53ca9a
AO
7384 *-cygwin*)
7385 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'
7386 ;;
a0da8069
NN
7387 esac
7388
7389 # If we're not building GCC, don't discard standard headers.
7390 if test -d ${srcdir}/gcc; then
7391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7392
7393 if test "${build}" != "${host}"; then
7394 # On Canadian crosses, CC_FOR_TARGET will have already been set
7395 # by `configure', so we won't have an opportunity to add -Bgcc/
7396 # to it. This is right: we don't want to search that directory
7397 # for binaries, but we want the header files in there, so add
7398 # them explicitly.
e552509b 7399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7400
7401 # Someone might think of using the pre-installed headers on
7402 # Canadian crosses, in case the installed compiler is not fully
7403 # compatible with the compiler being built. In this case, it
7404 # would be better to flag an error than risking having
7405 # incompatible object files being constructed. We can't
7406 # guarantee that an error will be flagged, but let's hope the
7407 # compiler will do it, when presented with incompatible header
7408 # files.
7409 fi
7410 fi
7411
7412 case "${target}-${is_cross_compiler}" in
ec11bdc6 7413 i[3456789]86-*-linux*-no)
a0da8069
NN
7414 # Here host == target, so we don't need to build gcc,
7415 # so we don't want to discard standard headers.
7416 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7417 ;;
7418 *)
7419 # If we're building newlib, use its generic headers last, but search
7420 # for any libc-related directories first (so make it the last -B
7421 # switch).
7422 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
7423
7424 # If we're building libgloss, find the startup file, simulator library
7425 # and linker script.
7426 case " $target_configdirs " in
7427 *" libgloss "*)
7428 # Look for startup file, simulator library and maybe linker script.
7429 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7430 # Look for libnosys.a in case the target needs it.
7431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7432 # Most targets have the linker script in the source directory.
7433 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7434 ;;
7435 esac
a0da8069
NN
7436 ;;
7437 esac
7438 ;;
7439 esac
7440 ;;
7441esac
1f53ca9a 7442
45055374 7443case "$target" in
1f53ca9a
AO
7444 x86_64-*mingw* | *-w64-mingw*)
7445 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7446 # however, use a symlink named 'mingw' in ${prefix} .
7447 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7448 ;;
7449 *-mingw*)
7450 # MinGW can't be handled as Cygwin above since it does not use newlib.
7451 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'
7452 ;;
45055374 7453esac
a0da8069 7454
5fbad20a
DD
7455# Allow the user to override the flags for
7456# our build compiler if desired.
c66487f8
NC
7457if test x"${build}" = x"${host}" ; then
7458 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7459 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7460 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7461fi
5fbad20a 7462
a0da8069
NN
7463# On Canadian crosses, we'll be searching the right directories for
7464# the previously-installed cross compiler, so don't bother to add
7465# flags for directories within the install tree of the compiler
7466# being built; programs in there won't even run.
7467if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7468 # Search for pre-installed headers if nothing else fits.
bba45b8b 7469 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
7470fi
7471
7472if test "x${use_gnu_ld}" = x &&
7473 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7474 # Arrange for us to find uninstalled linker scripts.
b00612cc 7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7476fi
7477
a481dbb7
DD
7478# Search for other target-specific linker scripts and such.
7479case "${target}" in
4e206d7e
DB
7480 mep*)
7481 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7482 ;;
7483esac
7484
a0da8069 7485# Makefile fragments.
3e707e94
PB
7486for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7487do
7488 eval fragval=\$$frag
7489 if test $fragval != /dev/null; then
7490 eval $frag=${srcdir}/$fragval
7491 fi
7492done
a0da8069
NN
7493
7494
7495
7496
7497
7498# Miscellanea: directories, flags, etc.
7499
7500
7501
7502
7503
7504
7505
3bbd2f8f 7506
6a9cf61e 7507# Build module lists & subconfigure args.
a0da8069
NN
7508
7509
7510
be01d343
PB
7511# Host module lists & subconfigure args.
7512
7513
7514
911e63d0 7515
be01d343
PB
7516# Target module lists & subconfigure args.
7517
7518
7519
7520# Build tools.
7521
7522
7523
1576798e
PB
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
e552509b 7538
be01d343
PB
7539# Generate default definitions for YACC, M4, LEX and other programs that run
7540# on the build machine. These are used if the Makefile can't locate these
7541# programs in objdir.
7542MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7543
7544for ac_prog in 'bison -y' byacc yacc
7545do
c6b750e1 7546 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7547set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
7550if test "${ac_cv_prog_YACC+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
be01d343
PB
7552else
7553 if test -n "$YACC"; then
7554 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7555else
c6b750e1
DJ
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7563 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7565 break 2
7566 fi
7567done
81ecdfbb
RW
7568 done
7569IFS=$as_save_IFS
c6b750e1 7570
be01d343
PB
7571fi
7572fi
c6b750e1 7573YACC=$ac_cv_prog_YACC
be01d343 7574if test -n "$YACC"; then
81ecdfbb
RW
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7576$as_echo "$YACC" >&6; }
be01d343 7577else
81ecdfbb
RW
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
be01d343
PB
7580fi
7581
81ecdfbb 7582
c6b750e1 7583 test -n "$YACC" && break
be01d343
PB
7584done
7585test -n "$YACC" || YACC="$MISSING bison -y"
7586
7587case " $build_configdirs " in
7588 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7589 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7590esac
7591
7592for ac_prog in bison
7593do
c6b750e1 7594 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7595set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
7598if test "${ac_cv_prog_BISON+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
be01d343
PB
7600else
7601 if test -n "$BISON"; then
7602 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7603else
c6b750e1
DJ
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7611 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7613 break 2
7614 fi
7615done
81ecdfbb
RW
7616 done
7617IFS=$as_save_IFS
c6b750e1 7618
be01d343
PB
7619fi
7620fi
c6b750e1 7621BISON=$ac_cv_prog_BISON
be01d343 7622if test -n "$BISON"; then
81ecdfbb
RW
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7624$as_echo "$BISON" >&6; }
be01d343 7625else
81ecdfbb
RW
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627$as_echo "no" >&6; }
be01d343
PB
7628fi
7629
81ecdfbb 7630
c6b750e1 7631 test -n "$BISON" && break
be01d343
PB
7632done
7633test -n "$BISON" || BISON="$MISSING bison"
7634
7635case " $build_configdirs " in
7636 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7637esac
7638
7639for ac_prog in gm4 gnum4 m4
7640do
c6b750e1 7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7642set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
7645if test "${ac_cv_prog_M4+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
be01d343
PB
7647else
7648 if test -n "$M4"; then
7649 ac_cv_prog_M4="$M4" # Let the user override the test.
7650else
c6b750e1
DJ
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7658 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7660 break 2
7661 fi
7662done
81ecdfbb
RW
7663 done
7664IFS=$as_save_IFS
c6b750e1 7665
be01d343
PB
7666fi
7667fi
c6b750e1 7668M4=$ac_cv_prog_M4
be01d343 7669if test -n "$M4"; then
81ecdfbb
RW
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7671$as_echo "$M4" >&6; }
be01d343 7672else
81ecdfbb
RW
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
be01d343
PB
7675fi
7676
81ecdfbb 7677
c6b750e1 7678 test -n "$M4" && break
be01d343
PB
7679done
7680test -n "$M4" || M4="$MISSING m4"
7681
7682case " $build_configdirs " in
7683 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7684esac
7685
7686for ac_prog in flex lex
7687do
c6b750e1 7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7689set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if test "${ac_cv_prog_LEX+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
be01d343
PB
7694else
7695 if test -n "$LEX"; then
7696 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7697else
c6b750e1
DJ
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7705 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7707 break 2
7708 fi
7709done
81ecdfbb
RW
7710 done
7711IFS=$as_save_IFS
c6b750e1 7712
be01d343
PB
7713fi
7714fi
c6b750e1 7715LEX=$ac_cv_prog_LEX
be01d343 7716if test -n "$LEX"; then
81ecdfbb
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7718$as_echo "$LEX" >&6; }
be01d343 7719else
81ecdfbb
RW
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
be01d343
PB
7722fi
7723
81ecdfbb 7724
c6b750e1 7725 test -n "$LEX" && break
be01d343
PB
7726done
7727test -n "$LEX" || LEX="$MISSING flex"
7728
7729case " $build_configdirs " in
7730 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7731 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7732esac
7733
7734for ac_prog in flex
7735do
c6b750e1 7736 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7737set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739$as_echo_n "checking for $ac_word... " >&6; }
7740if test "${ac_cv_prog_FLEX+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
be01d343
PB
7742else
7743 if test -n "$FLEX"; then
7744 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7745else
c6b750e1
DJ
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7753 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7755 break 2
7756 fi
7757done
81ecdfbb
RW
7758 done
7759IFS=$as_save_IFS
c6b750e1 7760
be01d343
PB
7761fi
7762fi
c6b750e1 7763FLEX=$ac_cv_prog_FLEX
be01d343 7764if test -n "$FLEX"; then
81ecdfbb
RW
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7766$as_echo "$FLEX" >&6; }
be01d343 7767else
81ecdfbb
RW
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
be01d343
PB
7770fi
7771
81ecdfbb 7772
c6b750e1 7773 test -n "$FLEX" && break
be01d343
PB
7774done
7775test -n "$FLEX" || FLEX="$MISSING flex"
7776
7777case " $build_configdirs " in
7778 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7779esac
7780
7781for ac_prog in makeinfo
7782do
c6b750e1 7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7784set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
be01d343
PB
7789else
7790 if test -n "$MAKEINFO"; then
7791 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7792else
c6b750e1
DJ
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7800 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7802 break 2
7803 fi
7804done
81ecdfbb
RW
7805 done
7806IFS=$as_save_IFS
c6b750e1 7807
be01d343
PB
7808fi
7809fi
c6b750e1 7810MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7811if test -n "$MAKEINFO"; then
81ecdfbb
RW
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7813$as_echo "$MAKEINFO" >&6; }
be01d343 7814else
81ecdfbb
RW
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
be01d343
PB
7817fi
7818
81ecdfbb 7819
c6b750e1 7820 test -n "$MAKEINFO" && break
be01d343
PB
7821done
7822test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7823
7824case " $build_configdirs " in
7825 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7826 *)
7827
10ad8ef3 7828 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7829 # higher, else we use the "missing" dummy.
7830 if ${MAKEINFO} --version \
10ad8ef3 7831 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7832 :
7833 else
7834 MAKEINFO="$MISSING makeinfo"
7835 fi
7836 ;;
7837
7838esac
a0da8069 7839
be01d343 7840# FIXME: expect and dejagnu may become build tools?
a0da8069 7841
be01d343
PB
7842for ac_prog in expect
7843do
c6b750e1 7844 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7845set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847$as_echo_n "checking for $ac_word... " >&6; }
7848if test "${ac_cv_prog_EXPECT+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
be01d343
PB
7850else
7851 if test -n "$EXPECT"; then
7852 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7853else
c6b750e1
DJ
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7861 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7863 break 2
7864 fi
7865done
81ecdfbb
RW
7866 done
7867IFS=$as_save_IFS
c6b750e1 7868
be01d343
PB
7869fi
7870fi
c6b750e1 7871EXPECT=$ac_cv_prog_EXPECT
be01d343 7872if test -n "$EXPECT"; then
81ecdfbb
RW
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7874$as_echo "$EXPECT" >&6; }
be01d343 7875else
81ecdfbb
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
be01d343 7878fi
a0da8069 7879
81ecdfbb 7880
c6b750e1 7881 test -n "$EXPECT" && break
be01d343
PB
7882done
7883test -n "$EXPECT" || EXPECT="expect"
a0da8069 7884
be01d343
PB
7885case " $configdirs " in
7886 *" expect "*)
7887 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7888 ;;
7889esac
a0da8069 7890
be01d343
PB
7891for ac_prog in runtest
7892do
c6b750e1 7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7894set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
7897if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
be01d343
PB
7899else
7900 if test -n "$RUNTEST"; then
7901 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7902else
c6b750e1
DJ
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7910 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7912 break 2
7913 fi
7914done
81ecdfbb
RW
7915 done
7916IFS=$as_save_IFS
c6b750e1 7917
be01d343
PB
7918fi
7919fi
c6b750e1 7920RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7921if test -n "$RUNTEST"; then
81ecdfbb
RW
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7923$as_echo "$RUNTEST" >&6; }
be01d343 7924else
81ecdfbb
RW
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
be01d343 7927fi
a0da8069 7928
81ecdfbb 7929
c6b750e1 7930 test -n "$RUNTEST" && break
be01d343
PB
7931done
7932test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7933
be01d343
PB
7934case " $configdirs " in
7935 *" dejagnu "*)
6b89cc21 7936 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7937 ;;
7938esac
a0da8069
NN
7939
7940
a0da8069 7941# Host tools.
859789af
AC
7942ncn_tool_prefix=
7943test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7944ncn_target_tool_prefix=
7945test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7946
9a819804
AO
7947
7948
7949if test -n "$AR"; then
7950 ac_cv_prog_AR=$AR
7951elif test -n "$ac_cv_prog_AR"; then
7952 AR=$ac_cv_prog_AR
7953fi
7954
7955if test -n "$ac_cv_prog_AR"; then
7956 for ncn_progname in ar; do
7957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7958set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960$as_echo_n "checking for $ac_word... " >&6; }
7961if test "${ac_cv_prog_AR+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
9a819804
AO
7963else
7964 if test -n "$AR"; then
7965 ac_cv_prog_AR="$AR" # Let the user override the test.
7966else
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7974 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7976 break 2
7977 fi
7978done
81ecdfbb
RW
7979 done
7980IFS=$as_save_IFS
9a819804
AO
7981
7982fi
7983fi
7984AR=$ac_cv_prog_AR
7985if test -n "$AR"; then
81ecdfbb
RW
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7987$as_echo "$AR" >&6; }
9a819804 7988else
81ecdfbb
RW
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
9a819804
AO
7991fi
7992
81ecdfbb 7993
9a819804
AO
7994 done
7995fi
7996
7997for ncn_progname in ar; do
05cbd757
PB
7998 if test -n "$ncn_tool_prefix"; then
7999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8000set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
8003if test "${ac_cv_prog_AR+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
859789af
AC
8005else
8006 if test -n "$AR"; then
8007 ac_cv_prog_AR="$AR" # Let the user override the test.
8008else
c6b750e1
DJ
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8016 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8018 break 2
8019 fi
8020done
81ecdfbb
RW
8021 done
8022IFS=$as_save_IFS
c6b750e1 8023
859789af
AC
8024fi
8025fi
c6b750e1 8026AR=$ac_cv_prog_AR
859789af 8027if test -n "$AR"; then
81ecdfbb
RW
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8029$as_echo "$AR" >&6; }
859789af 8030else
81ecdfbb
RW
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
859789af
AC
8033fi
8034
81ecdfbb 8035
05cbd757
PB
8036 fi
8037 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8039set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041$as_echo_n "checking for $ac_word... " >&6; }
8042if test "${ac_cv_prog_AR+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
859789af 8044else
05cbd757
PB
8045 if test -n "$AR"; then
8046 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8047else
c6b750e1
DJ
8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049for as_dir in $PATH
8050do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8055 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8057 break 2
8058 fi
8059done
81ecdfbb
RW
8060 done
8061IFS=$as_save_IFS
c6b750e1 8062
859789af
AC
8063fi
8064fi
c6b750e1 8065AR=$ac_cv_prog_AR
05cbd757 8066if test -n "$AR"; then
81ecdfbb
RW
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8068$as_echo "$AR" >&6; }
859789af 8069else
81ecdfbb
RW
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
859789af 8072fi
c6b750e1 8073
81ecdfbb 8074
05cbd757
PB
8075 fi
8076 test -n "$ac_cv_prog_AR" && break
8077done
8078
8079if test -z "$ac_cv_prog_AR" ; then
8080 set dummy ar
8081 if test $build = $host ; then
8082 AR="$2"
859789af 8083 else
05cbd757 8084 AR="${ncn_tool_prefix}$2"
859789af 8085 fi
859789af
AC
8086fi
8087
9a819804
AO
8088
8089
8090if test -n "$AS"; then
8091 ac_cv_prog_AS=$AS
8092elif test -n "$ac_cv_prog_AS"; then
8093 AS=$ac_cv_prog_AS
8094fi
8095
8096if test -n "$ac_cv_prog_AS"; then
8097 for ncn_progname in as; do
8098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8099set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101$as_echo_n "checking for $ac_word... " >&6; }
8102if test "${ac_cv_prog_AS+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
9a819804
AO
8104else
8105 if test -n "$AS"; then
8106 ac_cv_prog_AS="$AS" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8115 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8117 break 2
8118 fi
8119done
81ecdfbb
RW
8120 done
8121IFS=$as_save_IFS
9a819804
AO
8122
8123fi
8124fi
8125AS=$ac_cv_prog_AS
8126if test -n "$AS"; then
81ecdfbb
RW
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8128$as_echo "$AS" >&6; }
9a819804 8129else
81ecdfbb
RW
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
9a819804
AO
8132fi
8133
81ecdfbb 8134
9a819804
AO
8135 done
8136fi
8137
8138for ncn_progname in as; do
05cbd757
PB
8139 if test -n "$ncn_tool_prefix"; then
8140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8141set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
8144if test "${ac_cv_prog_AS+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
859789af
AC
8146else
8147 if test -n "$AS"; then
8148 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8157 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8159 break 2
8160 fi
8161done
81ecdfbb
RW
8162 done
8163IFS=$as_save_IFS
c6b750e1 8164
859789af
AC
8165fi
8166fi
c6b750e1 8167AS=$ac_cv_prog_AS
859789af 8168if test -n "$AS"; then
81ecdfbb
RW
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8170$as_echo "$AS" >&6; }
859789af 8171else
81ecdfbb
RW
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
859789af
AC
8174fi
8175
81ecdfbb 8176
05cbd757
PB
8177 fi
8178 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8180set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182$as_echo_n "checking for $ac_word... " >&6; }
8183if test "${ac_cv_prog_AS+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
859789af 8185else
05cbd757
PB
8186 if test -n "$AS"; then
8187 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8188else
c6b750e1
DJ
8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8196 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8198 break 2
8199 fi
8200done
81ecdfbb
RW
8201 done
8202IFS=$as_save_IFS
c6b750e1 8203
859789af
AC
8204fi
8205fi
c6b750e1 8206AS=$ac_cv_prog_AS
05cbd757 8207if test -n "$AS"; then
81ecdfbb
RW
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8209$as_echo "$AS" >&6; }
859789af 8210else
81ecdfbb
RW
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
859789af 8213fi
c6b750e1 8214
81ecdfbb 8215
05cbd757
PB
8216 fi
8217 test -n "$ac_cv_prog_AS" && break
8218done
8219
8220if test -z "$ac_cv_prog_AS" ; then
8221 set dummy as
8222 if test $build = $host ; then
8223 AS="$2"
859789af 8224 else
05cbd757 8225 AS="${ncn_tool_prefix}$2"
859789af 8226 fi
859789af
AC
8227fi
8228
9a819804
AO
8229
8230
8231if test -n "$DLLTOOL"; then
8232 ac_cv_prog_DLLTOOL=$DLLTOOL
8233elif test -n "$ac_cv_prog_DLLTOOL"; then
8234 DLLTOOL=$ac_cv_prog_DLLTOOL
8235fi
8236
8237if test -n "$ac_cv_prog_DLLTOOL"; then
8238 for ncn_progname in dlltool; do
8239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8240set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242$as_echo_n "checking for $ac_word... " >&6; }
8243if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
9a819804
AO
8245else
8246 if test -n "$DLLTOOL"; then
8247 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8248else
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8256 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8258 break 2
8259 fi
8260done
81ecdfbb
RW
8261 done
8262IFS=$as_save_IFS
9a819804
AO
8263
8264fi
8265fi
8266DLLTOOL=$ac_cv_prog_DLLTOOL
8267if test -n "$DLLTOOL"; then
81ecdfbb
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8269$as_echo "$DLLTOOL" >&6; }
9a819804 8270else
81ecdfbb
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
9a819804
AO
8273fi
8274
81ecdfbb 8275
9a819804
AO
8276 done
8277fi
8278
8279for ncn_progname in dlltool; do
05cbd757
PB
8280 if test -n "$ncn_tool_prefix"; then
8281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8282set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
859789af
AC
8287else
8288 if test -n "$DLLTOOL"; then
8289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8290else
c6b750e1
DJ
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8298 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8300 break 2
8301 fi
8302done
81ecdfbb
RW
8303 done
8304IFS=$as_save_IFS
c6b750e1 8305
859789af
AC
8306fi
8307fi
c6b750e1 8308DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8309if test -n "$DLLTOOL"; then
81ecdfbb
RW
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8311$as_echo "$DLLTOOL" >&6; }
859789af 8312else
81ecdfbb
RW
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
859789af
AC
8315fi
8316
81ecdfbb 8317
05cbd757
PB
8318 fi
8319 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8321set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323$as_echo_n "checking for $ac_word... " >&6; }
8324if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
859789af 8326else
05cbd757
PB
8327 if test -n "$DLLTOOL"; then
8328 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8329else
c6b750e1
DJ
8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8337 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8339 break 2
8340 fi
8341done
81ecdfbb
RW
8342 done
8343IFS=$as_save_IFS
c6b750e1 8344
859789af
AC
8345fi
8346fi
c6b750e1 8347DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8348if test -n "$DLLTOOL"; then
81ecdfbb
RW
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8350$as_echo "$DLLTOOL" >&6; }
859789af 8351else
81ecdfbb
RW
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353$as_echo "no" >&6; }
859789af 8354fi
c6b750e1 8355
81ecdfbb 8356
05cbd757
PB
8357 fi
8358 test -n "$ac_cv_prog_DLLTOOL" && break
8359done
8360
8361if test -z "$ac_cv_prog_DLLTOOL" ; then
8362 set dummy dlltool
8363 if test $build = $host ; then
8364 DLLTOOL="$2"
859789af 8365 else
05cbd757 8366 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8367 fi
859789af
AC
8368fi
8369
9a819804
AO
8370
8371
8372if test -n "$LD"; then
8373 ac_cv_prog_LD=$LD
8374elif test -n "$ac_cv_prog_LD"; then
8375 LD=$ac_cv_prog_LD
8376fi
8377
8378if test -n "$ac_cv_prog_LD"; then
8379 for ncn_progname in ld; do
8380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8381set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383$as_echo_n "checking for $ac_word... " >&6; }
8384if test "${ac_cv_prog_LD+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
9a819804
AO
8386else
8387 if test -n "$LD"; then
8388 ac_cv_prog_LD="$LD" # Let the user override the test.
8389else
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8397 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8399 break 2
8400 fi
8401done
81ecdfbb
RW
8402 done
8403IFS=$as_save_IFS
9a819804
AO
8404
8405fi
8406fi
8407LD=$ac_cv_prog_LD
8408if test -n "$LD"; then
81ecdfbb
RW
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8410$as_echo "$LD" >&6; }
9a819804 8411else
81ecdfbb
RW
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
9a819804
AO
8414fi
8415
81ecdfbb 8416
9a819804
AO
8417 done
8418fi
8419
8420for ncn_progname in ld; do
05cbd757
PB
8421 if test -n "$ncn_tool_prefix"; then
8422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8423set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if test "${ac_cv_prog_LD+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
859789af
AC
8428else
8429 if test -n "$LD"; then
8430 ac_cv_prog_LD="$LD" # Let the user override the test.
8431else
c6b750e1
DJ
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8439 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8441 break 2
8442 fi
8443done
81ecdfbb
RW
8444 done
8445IFS=$as_save_IFS
c6b750e1 8446
859789af
AC
8447fi
8448fi
c6b750e1 8449LD=$ac_cv_prog_LD
859789af 8450if test -n "$LD"; then
81ecdfbb
RW
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8452$as_echo "$LD" >&6; }
859789af 8453else
81ecdfbb
RW
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
859789af
AC
8456fi
8457
81ecdfbb 8458
05cbd757
PB
8459 fi
8460 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8462set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464$as_echo_n "checking for $ac_word... " >&6; }
8465if test "${ac_cv_prog_LD+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
859789af 8467else
05cbd757
PB
8468 if test -n "$LD"; then
8469 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8470else
c6b750e1
DJ
8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8478 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8480 break 2
8481 fi
8482done
81ecdfbb
RW
8483 done
8484IFS=$as_save_IFS
c6b750e1 8485
859789af
AC
8486fi
8487fi
c6b750e1 8488LD=$ac_cv_prog_LD
05cbd757 8489if test -n "$LD"; then
81ecdfbb
RW
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8491$as_echo "$LD" >&6; }
859789af 8492else
81ecdfbb
RW
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494$as_echo "no" >&6; }
859789af 8495fi
c6b750e1 8496
81ecdfbb 8497
05cbd757
PB
8498 fi
8499 test -n "$ac_cv_prog_LD" && break
8500done
8501
8502if test -z "$ac_cv_prog_LD" ; then
8503 set dummy ld
8504 if test $build = $host ; then
8505 LD="$2"
859789af 8506 else
05cbd757 8507 LD="${ncn_tool_prefix}$2"
859789af 8508 fi
859789af
AC
8509fi
8510
9a819804
AO
8511
8512
8513if test -n "$LIPO"; then
8514 ac_cv_prog_LIPO=$LIPO
8515elif test -n "$ac_cv_prog_LIPO"; then
8516 LIPO=$ac_cv_prog_LIPO
8517fi
8518
8519if test -n "$ac_cv_prog_LIPO"; then
8520 for ncn_progname in lipo; do
8521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8522set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524$as_echo_n "checking for $ac_word... " >&6; }
8525if test "${ac_cv_prog_LIPO+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
9a819804
AO
8527else
8528 if test -n "$LIPO"; then
8529 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8530else
8531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532for as_dir in $PATH
8533do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8538 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8540 break 2
8541 fi
8542done
81ecdfbb
RW
8543 done
8544IFS=$as_save_IFS
9a819804
AO
8545
8546fi
8547fi
8548LIPO=$ac_cv_prog_LIPO
8549if test -n "$LIPO"; then
81ecdfbb
RW
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8551$as_echo "$LIPO" >&6; }
9a819804 8552else
81ecdfbb
RW
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554$as_echo "no" >&6; }
9a819804
AO
8555fi
8556
81ecdfbb 8557
9a819804
AO
8558 done
8559fi
8560
8561for ncn_progname in lipo; do
be01d343
PB
8562 if test -n "$ncn_tool_prefix"; then
8563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8564set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if test "${ac_cv_prog_LIPO+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
be01d343
PB
8569else
8570 if test -n "$LIPO"; then
8571 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8572else
c6b750e1
DJ
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8580 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8582 break 2
8583 fi
8584done
81ecdfbb
RW
8585 done
8586IFS=$as_save_IFS
c6b750e1 8587
be01d343
PB
8588fi
8589fi
c6b750e1 8590LIPO=$ac_cv_prog_LIPO
be01d343 8591if test -n "$LIPO"; then
81ecdfbb
RW
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8593$as_echo "$LIPO" >&6; }
be01d343 8594else
81ecdfbb
RW
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
be01d343
PB
8597fi
8598
81ecdfbb 8599
be01d343
PB
8600 fi
8601 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8603set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605$as_echo_n "checking for $ac_word... " >&6; }
8606if test "${ac_cv_prog_LIPO+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
be01d343
PB
8608else
8609 if test -n "$LIPO"; then
8610 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8611else
c6b750e1
DJ
8612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613for as_dir in $PATH
8614do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8619 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8621 break 2
8622 fi
8623done
81ecdfbb
RW
8624 done
8625IFS=$as_save_IFS
c6b750e1 8626
be01d343
PB
8627fi
8628fi
c6b750e1 8629LIPO=$ac_cv_prog_LIPO
be01d343 8630if test -n "$LIPO"; then
81ecdfbb
RW
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8632$as_echo "$LIPO" >&6; }
be01d343 8633else
81ecdfbb
RW
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635$as_echo "no" >&6; }
be01d343 8636fi
c6b750e1 8637
81ecdfbb 8638
be01d343
PB
8639 fi
8640 test -n "$ac_cv_prog_LIPO" && break
8641done
8642
8643if test -z "$ac_cv_prog_LIPO" ; then
8644 set dummy lipo
8645 if test $build = $host ; then
8646 LIPO="$2"
8647 else
8648 LIPO="${ncn_tool_prefix}$2"
8649 fi
8650fi
8651
9a819804
AO
8652
8653
8654if test -n "$NM"; then
8655 ac_cv_prog_NM=$NM
8656elif test -n "$ac_cv_prog_NM"; then
8657 NM=$ac_cv_prog_NM
8658fi
8659
8660if test -n "$ac_cv_prog_NM"; then
8661 for ncn_progname in nm; do
8662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8663set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665$as_echo_n "checking for $ac_word... " >&6; }
8666if test "${ac_cv_prog_NM+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
859789af
AC
8668else
8669 if test -n "$NM"; then
8670 ac_cv_prog_NM="$NM" # Let the user override the test.
8671else
c6b750e1
DJ
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8679 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8681 break 2
8682 fi
8683done
81ecdfbb
RW
8684 done
8685IFS=$as_save_IFS
c6b750e1 8686
859789af
AC
8687fi
8688fi
c6b750e1 8689NM=$ac_cv_prog_NM
859789af 8690if test -n "$NM"; then
81ecdfbb
RW
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8692$as_echo "$NM" >&6; }
859789af 8693else
81ecdfbb
RW
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695$as_echo "no" >&6; }
859789af
AC
8696fi
8697
81ecdfbb 8698
9a819804
AO
8699 done
8700fi
8701
8702for ncn_progname in nm; do
8703 if test -n "$ncn_tool_prefix"; then
8704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8705set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707$as_echo_n "checking for $ac_word... " >&6; }
8708if test "${ac_cv_prog_NM+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
859789af 8710else
05cbd757
PB
8711 if test -n "$NM"; then
8712 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8713else
c6b750e1
DJ
8714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8721 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8723 break 2
8724 fi
8725done
81ecdfbb
RW
8726 done
8727IFS=$as_save_IFS
c6b750e1 8728
859789af
AC
8729fi
8730fi
c6b750e1 8731NM=$ac_cv_prog_NM
05cbd757 8732if test -n "$NM"; then
81ecdfbb
RW
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8734$as_echo "$NM" >&6; }
859789af 8735else
81ecdfbb
RW
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737$as_echo "no" >&6; }
859789af 8738fi
c6b750e1 8739
81ecdfbb 8740
05cbd757 8741 fi
9a819804
AO
8742 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8744set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746$as_echo_n "checking for $ac_word... " >&6; }
8747if test "${ac_cv_prog_NM+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
9a819804
AO
8749else
8750 if test -n "$NM"; then
8751 ac_cv_prog_NM="$NM" # Let the user override the test.
8752else
8753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8760 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8762 break 2
8763 fi
8764done
81ecdfbb
RW
8765 done
8766IFS=$as_save_IFS
9a819804
AO
8767
8768fi
8769fi
8770NM=$ac_cv_prog_NM
8771if test -n "$NM"; then
81ecdfbb
RW
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8773$as_echo "$NM" >&6; }
9a819804 8774else
81ecdfbb
RW
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
9a819804
AO
8777fi
8778
81ecdfbb 8779
9a819804
AO
8780 fi
8781 test -n "$ac_cv_prog_NM" && break
8782done
8783
8784if test -z "$ac_cv_prog_NM" ; then
8785 set dummy nm
8786 if test $build = $host ; then
8787 NM="$2"
8788 else
8789 NM="${ncn_tool_prefix}$2"
8790 fi
8791fi
8792
8793
8794
8795if test -n "$RANLIB"; then
8796 ac_cv_prog_RANLIB=$RANLIB
8797elif test -n "$ac_cv_prog_RANLIB"; then
8798 RANLIB=$ac_cv_prog_RANLIB
8799fi
8800
8801if test -n "$ac_cv_prog_RANLIB"; then
8802 for ncn_progname in ranlib; do
8803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8804set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806$as_echo_n "checking for $ac_word... " >&6; }
8807if test "${ac_cv_prog_RANLIB+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
9a819804
AO
8809else
8810 if test -n "$RANLIB"; then
8811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8820 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8822 break 2
8823 fi
8824done
81ecdfbb
RW
8825 done
8826IFS=$as_save_IFS
9a819804
AO
8827
8828fi
8829fi
8830RANLIB=$ac_cv_prog_RANLIB
8831if test -n "$RANLIB"; then
81ecdfbb
RW
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8833$as_echo "$RANLIB" >&6; }
9a819804 8834else
81ecdfbb
RW
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
9a819804
AO
8837fi
8838
81ecdfbb 8839
9a819804
AO
8840 done
8841fi
859789af 8842
9a819804 8843for ncn_progname in ranlib; do
05cbd757
PB
8844 if test -n "$ncn_tool_prefix"; then
8845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8846set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848$as_echo_n "checking for $ac_word... " >&6; }
8849if test "${ac_cv_prog_RANLIB+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
859789af
AC
8851else
8852 if test -n "$RANLIB"; then
8853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8854else
c6b750e1
DJ
8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856for as_dir in $PATH
8857do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8862 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8864 break 2
8865 fi
8866done
81ecdfbb
RW
8867 done
8868IFS=$as_save_IFS
c6b750e1 8869
859789af
AC
8870fi
8871fi
c6b750e1 8872RANLIB=$ac_cv_prog_RANLIB
859789af 8873if test -n "$RANLIB"; then
81ecdfbb
RW
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8875$as_echo "$RANLIB" >&6; }
859789af 8876else
81ecdfbb
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878$as_echo "no" >&6; }
859789af
AC
8879fi
8880
81ecdfbb 8881
05cbd757
PB
8882 fi
8883 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8885set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887$as_echo_n "checking for $ac_word... " >&6; }
8888if test "${ac_cv_prog_RANLIB+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
859789af 8890else
05cbd757
PB
8891 if test -n "$RANLIB"; then
8892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8893else
c6b750e1
DJ
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8901 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8903 break 2
8904 fi
8905done
81ecdfbb
RW
8906 done
8907IFS=$as_save_IFS
c6b750e1 8908
859789af
AC
8909fi
8910fi
c6b750e1 8911RANLIB=$ac_cv_prog_RANLIB
05cbd757 8912if test -n "$RANLIB"; then
81ecdfbb
RW
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8914$as_echo "$RANLIB" >&6; }
859789af 8915else
81ecdfbb
RW
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917$as_echo "no" >&6; }
859789af 8918fi
c6b750e1 8919
81ecdfbb 8920
859789af 8921 fi
05cbd757
PB
8922 test -n "$ac_cv_prog_RANLIB" && break
8923done
8924
8925if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8926 RANLIB="true"
859789af
AC
8927fi
8928
9a819804
AO
8929
8930
8931if test -n "$STRIP"; then
8932 ac_cv_prog_STRIP=$STRIP
8933elif test -n "$ac_cv_prog_STRIP"; then
8934 STRIP=$ac_cv_prog_STRIP
8935fi
8936
8937if test -n "$ac_cv_prog_STRIP"; then
8938 for ncn_progname in strip; do
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942$as_echo_n "checking for $ac_word... " >&6; }
8943if test "${ac_cv_prog_STRIP+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
9a819804
AO
8945else
8946 if test -n "$STRIP"; then
8947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8948else
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8956 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8958 break 2
8959 fi
8960done
81ecdfbb
RW
8961 done
8962IFS=$as_save_IFS
9a819804
AO
8963
8964fi
8965fi
8966STRIP=$ac_cv_prog_STRIP
8967if test -n "$STRIP"; then
81ecdfbb
RW
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8969$as_echo "$STRIP" >&6; }
9a819804 8970else
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
9a819804
AO
8973fi
8974
81ecdfbb 8975
9a819804
AO
8976 done
8977fi
8978
8979for ncn_progname in strip; do
be01d343
PB
8980 if test -n "$ncn_tool_prefix"; then
8981 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8982set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
8985if test "${ac_cv_prog_STRIP+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
be01d343
PB
8987else
8988 if test -n "$STRIP"; then
8989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8990else
c6b750e1
DJ
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8998 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9000 break 2
9001 fi
9002done
81ecdfbb
RW
9003 done
9004IFS=$as_save_IFS
c6b750e1 9005
be01d343
PB
9006fi
9007fi
c6b750e1 9008STRIP=$ac_cv_prog_STRIP
be01d343 9009if test -n "$STRIP"; then
81ecdfbb
RW
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9011$as_echo "$STRIP" >&6; }
be01d343 9012else
81ecdfbb
RW
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
be01d343
PB
9015fi
9016
81ecdfbb 9017
be01d343
PB
9018 fi
9019 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023$as_echo_n "checking for $ac_word... " >&6; }
9024if test "${ac_cv_prog_STRIP+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
be01d343
PB
9026else
9027 if test -n "$STRIP"; then
9028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9029else
c6b750e1
DJ
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9037 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9039 break 2
9040 fi
9041done
81ecdfbb
RW
9042 done
9043IFS=$as_save_IFS
c6b750e1 9044
be01d343
PB
9045fi
9046fi
c6b750e1 9047STRIP=$ac_cv_prog_STRIP
be01d343 9048if test -n "$STRIP"; then
81ecdfbb
RW
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9050$as_echo "$STRIP" >&6; }
be01d343 9051else
81ecdfbb
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
be01d343 9054fi
c6b750e1 9055
81ecdfbb 9056
be01d343
PB
9057 fi
9058 test -n "$ac_cv_prog_STRIP" && break
9059done
9060
9061if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9062 STRIP="true"
be01d343
PB
9063fi
9064
9a819804
AO
9065
9066
9067if test -n "$WINDRES"; then
9068 ac_cv_prog_WINDRES=$WINDRES
9069elif test -n "$ac_cv_prog_WINDRES"; then
9070 WINDRES=$ac_cv_prog_WINDRES
9071fi
9072
9073if test -n "$ac_cv_prog_WINDRES"; then
9074 for ncn_progname in windres; do
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078$as_echo_n "checking for $ac_word... " >&6; }
9079if test "${ac_cv_prog_WINDRES+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9a819804
AO
9081else
9082 if test -n "$WINDRES"; then
9083 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9084else
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9092 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9094 break 2
9095 fi
9096done
81ecdfbb
RW
9097 done
9098IFS=$as_save_IFS
9a819804
AO
9099
9100fi
9101fi
9102WINDRES=$ac_cv_prog_WINDRES
9103if test -n "$WINDRES"; then
81ecdfbb
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9105$as_echo "$WINDRES" >&6; }
9a819804 9106else
81ecdfbb
RW
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
9a819804
AO
9109fi
9110
81ecdfbb 9111
9a819804
AO
9112 done
9113fi
9114
9115for ncn_progname in windres; do
05cbd757
PB
9116 if test -n "$ncn_tool_prefix"; then
9117 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9118set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120$as_echo_n "checking for $ac_word... " >&6; }
9121if test "${ac_cv_prog_WINDRES+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
859789af
AC
9123else
9124 if test -n "$WINDRES"; then
9125 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9126else
c6b750e1
DJ
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9134 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9136 break 2
9137 fi
9138done
81ecdfbb
RW
9139 done
9140IFS=$as_save_IFS
c6b750e1 9141
859789af
AC
9142fi
9143fi
c6b750e1 9144WINDRES=$ac_cv_prog_WINDRES
859789af 9145if test -n "$WINDRES"; then
81ecdfbb
RW
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9147$as_echo "$WINDRES" >&6; }
859789af 9148else
81ecdfbb
RW
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
859789af
AC
9151fi
9152
81ecdfbb 9153
05cbd757
PB
9154 fi
9155 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9157set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159$as_echo_n "checking for $ac_word... " >&6; }
9160if test "${ac_cv_prog_WINDRES+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
859789af 9162else
05cbd757
PB
9163 if test -n "$WINDRES"; then
9164 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9165else
c6b750e1
DJ
9166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167for as_dir in $PATH
9168do
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9173 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9175 break 2
9176 fi
9177done
81ecdfbb
RW
9178 done
9179IFS=$as_save_IFS
c6b750e1 9180
859789af
AC
9181fi
9182fi
c6b750e1 9183WINDRES=$ac_cv_prog_WINDRES
05cbd757 9184if test -n "$WINDRES"; then
81ecdfbb
RW
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9186$as_echo "$WINDRES" >&6; }
859789af 9187else
81ecdfbb
RW
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189$as_echo "no" >&6; }
859789af 9190fi
c6b750e1 9191
81ecdfbb 9192
05cbd757
PB
9193 fi
9194 test -n "$ac_cv_prog_WINDRES" && break
9195done
9196
9197if test -z "$ac_cv_prog_WINDRES" ; then
9198 set dummy windres
9199 if test $build = $host ; then
9200 WINDRES="$2"
859789af 9201 else
05cbd757 9202 WINDRES="${ncn_tool_prefix}$2"
859789af 9203 fi
859789af
AC
9204fi
9205
9a819804
AO
9206
9207
0c24b341
NC
9208if test -n "$WINDMC"; then
9209 ac_cv_prog_WINDMC=$WINDMC
9210elif test -n "$ac_cv_prog_WINDMC"; then
9211 WINDMC=$ac_cv_prog_WINDMC
9212fi
9213
9214if test -n "$ac_cv_prog_WINDMC"; then
9215 for ncn_progname in windmc; do
9216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9217set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219$as_echo_n "checking for $ac_word... " >&6; }
9220if test "${ac_cv_prog_WINDMC+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
0c24b341
NC
9222else
9223 if test -n "$WINDMC"; then
9224 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9225else
9226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227for as_dir in $PATH
9228do
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9233 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9235 break 2
9236 fi
9237done
81ecdfbb
RW
9238 done
9239IFS=$as_save_IFS
0c24b341
NC
9240
9241fi
9242fi
9243WINDMC=$ac_cv_prog_WINDMC
9244if test -n "$WINDMC"; then
81ecdfbb
RW
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9246$as_echo "$WINDMC" >&6; }
0c24b341 9247else
81ecdfbb
RW
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249$as_echo "no" >&6; }
0c24b341
NC
9250fi
9251
81ecdfbb 9252
0c24b341
NC
9253 done
9254fi
9255
9256for ncn_progname in windmc; do
9257 if test -n "$ncn_tool_prefix"; then
9258 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9259set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
9262if test "${ac_cv_prog_WINDMC+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
0c24b341
NC
9264else
9265 if test -n "$WINDMC"; then
9266 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9267else
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9275 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9277 break 2
9278 fi
9279done
81ecdfbb
RW
9280 done
9281IFS=$as_save_IFS
0c24b341
NC
9282
9283fi
9284fi
9285WINDMC=$ac_cv_prog_WINDMC
9286if test -n "$WINDMC"; then
81ecdfbb
RW
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9288$as_echo "$WINDMC" >&6; }
0c24b341 9289else
81ecdfbb
RW
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
0c24b341
NC
9292fi
9293
81ecdfbb 9294
0c24b341
NC
9295 fi
9296 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9298set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9300$as_echo_n "checking for $ac_word... " >&6; }
9301if test "${ac_cv_prog_WINDMC+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
0c24b341
NC
9303else
9304 if test -n "$WINDMC"; then
9305 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9306else
9307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308for as_dir in $PATH
9309do
9310 IFS=$as_save_IFS
9311 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9312 for ac_exec_ext in '' $ac_executable_extensions; do
9313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9314 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9316 break 2
9317 fi
9318done
81ecdfbb
RW
9319 done
9320IFS=$as_save_IFS
0c24b341
NC
9321
9322fi
9323fi
9324WINDMC=$ac_cv_prog_WINDMC
9325if test -n "$WINDMC"; then
81ecdfbb
RW
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9327$as_echo "$WINDMC" >&6; }
0c24b341 9328else
81ecdfbb
RW
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330$as_echo "no" >&6; }
0c24b341
NC
9331fi
9332
81ecdfbb 9333
0c24b341
NC
9334 fi
9335 test -n "$ac_cv_prog_WINDMC" && break
9336done
9337
9338if test -z "$ac_cv_prog_WINDMC" ; then
9339 set dummy windmc
9340 if test $build = $host ; then
9341 WINDMC="$2"
9342 else
9343 WINDMC="${ncn_tool_prefix}$2"
9344 fi
9345fi
9346
9347
9348
9a819804
AO
9349if test -n "$OBJCOPY"; then
9350 ac_cv_prog_OBJCOPY=$OBJCOPY
9351elif test -n "$ac_cv_prog_OBJCOPY"; then
9352 OBJCOPY=$ac_cv_prog_OBJCOPY
9353fi
9354
9355if test -n "$ac_cv_prog_OBJCOPY"; then
9356 for ncn_progname in objcopy; do
9357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9358set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9a819804
AO
9363else
9364 if test -n "$OBJCOPY"; then
9365 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9366else
9367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368for as_dir in $PATH
9369do
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9374 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9376 break 2
9377 fi
9378done
81ecdfbb
RW
9379 done
9380IFS=$as_save_IFS
9a819804
AO
9381
9382fi
9383fi
9384OBJCOPY=$ac_cv_prog_OBJCOPY
9385if test -n "$OBJCOPY"; then
81ecdfbb
RW
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9387$as_echo "$OBJCOPY" >&6; }
9a819804 9388else
81ecdfbb
RW
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390$as_echo "no" >&6; }
9a819804
AO
9391fi
9392
81ecdfbb 9393
9a819804
AO
9394 done
9395fi
9396
9397for ncn_progname in objcopy; do
05cbd757
PB
9398 if test -n "$ncn_tool_prefix"; then
9399 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9400set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402$as_echo_n "checking for $ac_word... " >&6; }
9403if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
859789af
AC
9405else
9406 if test -n "$OBJCOPY"; then
9407 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9408else
c6b750e1
DJ
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9416 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9418 break 2
9419 fi
9420done
81ecdfbb
RW
9421 done
9422IFS=$as_save_IFS
c6b750e1 9423
859789af
AC
9424fi
9425fi
c6b750e1 9426OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9427if test -n "$OBJCOPY"; then
81ecdfbb
RW
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9429$as_echo "$OBJCOPY" >&6; }
859789af 9430else
81ecdfbb
RW
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432$as_echo "no" >&6; }
859789af
AC
9433fi
9434
81ecdfbb 9435
05cbd757
PB
9436 fi
9437 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9439set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441$as_echo_n "checking for $ac_word... " >&6; }
9442if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9443 $as_echo_n "(cached) " >&6
859789af 9444else
05cbd757
PB
9445 if test -n "$OBJCOPY"; then
9446 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9447else
c6b750e1
DJ
9448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449for as_dir in $PATH
9450do
9451 IFS=$as_save_IFS
9452 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9453 for ac_exec_ext in '' $ac_executable_extensions; do
9454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9455 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9457 break 2
9458 fi
9459done
81ecdfbb
RW
9460 done
9461IFS=$as_save_IFS
c6b750e1 9462
859789af
AC
9463fi
9464fi
c6b750e1 9465OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9466if test -n "$OBJCOPY"; then
81ecdfbb
RW
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9468$as_echo "$OBJCOPY" >&6; }
859789af 9469else
81ecdfbb
RW
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471$as_echo "no" >&6; }
859789af 9472fi
c6b750e1 9473
81ecdfbb 9474
05cbd757
PB
9475 fi
9476 test -n "$ac_cv_prog_OBJCOPY" && break
9477done
9478
9479if test -z "$ac_cv_prog_OBJCOPY" ; then
9480 set dummy objcopy
9481 if test $build = $host ; then
9482 OBJCOPY="$2"
859789af 9483 else
05cbd757 9484 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9485 fi
859789af
AC
9486fi
9487
9a819804
AO
9488
9489
9490if test -n "$OBJDUMP"; then
9491 ac_cv_prog_OBJDUMP=$OBJDUMP
9492elif test -n "$ac_cv_prog_OBJDUMP"; then
9493 OBJDUMP=$ac_cv_prog_OBJDUMP
9494fi
9495
9496if test -n "$ac_cv_prog_OBJDUMP"; then
9497 for ncn_progname in objdump; do
9498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9499set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501$as_echo_n "checking for $ac_word... " >&6; }
9502if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9a819804
AO
9504else
9505 if test -n "$OBJDUMP"; then
9506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9507else
9508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509for as_dir in $PATH
9510do
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9515 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9517 break 2
9518 fi
9519done
81ecdfbb
RW
9520 done
9521IFS=$as_save_IFS
9a819804
AO
9522
9523fi
9524fi
9525OBJDUMP=$ac_cv_prog_OBJDUMP
9526if test -n "$OBJDUMP"; then
81ecdfbb
RW
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9528$as_echo "$OBJDUMP" >&6; }
9a819804 9529else
81ecdfbb
RW
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531$as_echo "no" >&6; }
9a819804
AO
9532fi
9533
81ecdfbb 9534
9a819804
AO
9535 done
9536fi
9537
9538for ncn_progname in objdump; do
05cbd757
PB
9539 if test -n "$ncn_tool_prefix"; then
9540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9541set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543$as_echo_n "checking for $ac_word... " >&6; }
9544if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
859789af
AC
9546else
9547 if test -n "$OBJDUMP"; then
9548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9549else
c6b750e1
DJ
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9557 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9559 break 2
9560 fi
9561done
81ecdfbb
RW
9562 done
9563IFS=$as_save_IFS
c6b750e1 9564
859789af
AC
9565fi
9566fi
c6b750e1 9567OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9568if test -n "$OBJDUMP"; then
81ecdfbb
RW
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9570$as_echo "$OBJDUMP" >&6; }
859789af 9571else
81ecdfbb
RW
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573$as_echo "no" >&6; }
859789af
AC
9574fi
9575
81ecdfbb 9576
05cbd757
PB
9577 fi
9578 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9580set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582$as_echo_n "checking for $ac_word... " >&6; }
9583if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
859789af 9585else
05cbd757
PB
9586 if test -n "$OBJDUMP"; then
9587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9588else
c6b750e1
DJ
9589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590for as_dir in $PATH
9591do
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9596 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9598 break 2
9599 fi
9600done
81ecdfbb
RW
9601 done
9602IFS=$as_save_IFS
c6b750e1 9603
859789af
AC
9604fi
9605fi
c6b750e1 9606OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9607if test -n "$OBJDUMP"; then
81ecdfbb
RW
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9609$as_echo "$OBJDUMP" >&6; }
859789af 9610else
81ecdfbb
RW
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612$as_echo "no" >&6; }
859789af 9613fi
c6b750e1 9614
81ecdfbb 9615
05cbd757
PB
9616 fi
9617 test -n "$ac_cv_prog_OBJDUMP" && break
9618done
9619
9620if test -z "$ac_cv_prog_OBJDUMP" ; then
9621 set dummy objdump
9622 if test $build = $host ; then
9623 OBJDUMP="$2"
859789af 9624 else
05cbd757 9625 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9626 fi
859789af
AC
9627fi
9628
a0da8069
NN
9629
9630
9631
9632
9633
be01d343 9634# Target tools.
c6b750e1 9635
81ecdfbb
RW
9636# Check whether --with-build-time-tools was given.
9637if test "${with_build_time_tools+set}" = set; then :
9638 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9639 x/*) ;;
9640 *)
9641 with_build_time_tools=
81ecdfbb
RW
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9643$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9644 ;;
9645 esac
859789af 9646else
2429c060 9647 with_build_time_tools=
81ecdfbb
RW
9648fi
9649
859789af 9650
9a819804
AO
9651
9652
9653if test -n "$CC_FOR_TARGET"; then
9654 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9655elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9656 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9657fi
9658
9659if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9660 for ncn_progname in cc gcc; do
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
9665if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9a819804
AO
9667else
9668 if test -n "$CC_FOR_TARGET"; then
9669 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9678 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9680 break 2
9681 fi
9682done
81ecdfbb
RW
9683 done
9684IFS=$as_save_IFS
9a819804
AO
9685
9686fi
9687fi
9688CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9689if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9691$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9692else
81ecdfbb
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9a819804
AO
9695fi
9696
81ecdfbb 9697
9a819804
AO
9698 done
9699fi
9700
9701if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9702 for ncn_progname in cc gcc; do
81ecdfbb
RW
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9704$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9705 if test -x $with_build_time_tools/${ncn_progname}; then
9706 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708$as_echo "yes" >&6; }
cac3d6c4 9709 break
2429c060 9710 else
81ecdfbb
RW
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712$as_echo "no" >&6; }
cac3d6c4
CM
9713 fi
9714 done
55db4b87
PB
9715fi
9716
2429c060
PB
9717if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9718 for ncn_progname in cc gcc; do
9719 if test -n "$ncn_target_tool_prefix"; then
9720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9721set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723$as_echo_n "checking for $ac_word... " >&6; }
9724if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
55db4b87
PB
9726else
9727 if test -n "$CC_FOR_TARGET"; then
9728 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9729else
c6b750e1
DJ
9730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731for as_dir in $PATH
9732do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9737 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9739 break 2
9740 fi
9741done
81ecdfbb
RW
9742 done
9743IFS=$as_save_IFS
c6b750e1 9744
55db4b87
PB
9745fi
9746fi
c6b750e1 9747CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9748if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9750$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9751else
81ecdfbb
RW
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753$as_echo "no" >&6; }
55db4b87
PB
9754fi
9755
81ecdfbb 9756
2429c060
PB
9757 fi
9758 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9760set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
55db4b87 9765else
05cbd757
PB
9766 if test -n "$CC_FOR_TARGET"; then
9767 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9768else
c6b750e1
DJ
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9776 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9778 break 2
9779 fi
9780done
81ecdfbb
RW
9781 done
9782IFS=$as_save_IFS
c6b750e1 9783
55db4b87
PB
9784fi
9785fi
c6b750e1 9786CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9787if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9789$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9790else
81ecdfbb
RW
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
55db4b87 9793fi
c6b750e1 9794
81ecdfbb 9795
2429c060
PB
9796 fi
9797 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9798 done
9799fi
c6b750e1 9800
05cbd757
PB
9801if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9802 set dummy cc gcc
9803 if test $build = $target ; then
9804 CC_FOR_TARGET="$2"
55db4b87 9805 else
05cbd757 9806 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9807 fi
d3f5afc4
MS
9808else
9809 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9810fi
9811
9a819804
AO
9812
9813
9814if test -n "$CXX_FOR_TARGET"; then
9815 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9816elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9817 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9818fi
9819
9820if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9821 for ncn_progname in c++ g++ cxx gxx; do
9822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9823set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825$as_echo_n "checking for $ac_word... " >&6; }
9826if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9a819804
AO
9828else
9829 if test -n "$CXX_FOR_TARGET"; then
9830 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9831else
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9839 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9841 break 2
9842 fi
9843done
81ecdfbb
RW
9844 done
9845IFS=$as_save_IFS
9a819804
AO
9846
9847fi
9848fi
9849CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9850if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9852$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9853else
81ecdfbb
RW
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855$as_echo "no" >&6; }
9a819804
AO
9856fi
9857
81ecdfbb 9858
9a819804
AO
9859 done
9860fi
9861
9862if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9863 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9865$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9866 if test -x $with_build_time_tools/${ncn_progname}; then
9867 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9869$as_echo "yes" >&6; }
2429c060
PB
9870 break
9871 else
81ecdfbb
RW
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
2429c060
PB
9874 fi
9875 done
9876fi
9877
9878if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9879 for ncn_progname in c++ g++ cxx gxx; do
9880 if test -n "$ncn_target_tool_prefix"; then
9881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9882set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884$as_echo_n "checking for $ac_word... " >&6; }
9885if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
55db4b87
PB
9887else
9888 if test -n "$CXX_FOR_TARGET"; then
9889 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9890else
c6b750e1
DJ
9891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892for as_dir in $PATH
9893do
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9898 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9900 break 2
9901 fi
9902done
81ecdfbb
RW
9903 done
9904IFS=$as_save_IFS
c6b750e1 9905
55db4b87
PB
9906fi
9907fi
c6b750e1 9908CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9909if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9911$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9912else
81ecdfbb
RW
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914$as_echo "no" >&6; }
55db4b87
PB
9915fi
9916
81ecdfbb 9917
2429c060
PB
9918 fi
9919 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9921set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923$as_echo_n "checking for $ac_word... " >&6; }
9924if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
55db4b87 9926else
05cbd757
PB
9927 if test -n "$CXX_FOR_TARGET"; then
9928 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9929else
c6b750e1
DJ
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9937 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9939 break 2
9940 fi
9941done
81ecdfbb
RW
9942 done
9943IFS=$as_save_IFS
c6b750e1 9944
55db4b87
PB
9945fi
9946fi
c6b750e1 9947CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9948if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9950$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9951else
81ecdfbb
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953$as_echo "no" >&6; }
55db4b87 9954fi
c6b750e1 9955
81ecdfbb 9956
2429c060
PB
9957 fi
9958 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9959 done
9960fi
c6b750e1 9961
05cbd757
PB
9962if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9963 set dummy c++ g++ cxx gxx
9964 if test $build = $target ; then
9965 CXX_FOR_TARGET="$2"
55db4b87 9966 else
05cbd757 9967 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9968 fi
d3f5afc4
MS
9969else
9970 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9971fi
9972
9a819804
AO
9973
9974
9975if test -n "$GCC_FOR_TARGET"; then
9976 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9977elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9978 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9979fi
9980
9981if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9982 for ncn_progname in gcc; do
9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9984set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986$as_echo_n "checking for $ac_word... " >&6; }
9987if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9a819804
AO
9989else
9990 if test -n "$GCC_FOR_TARGET"; then
9991 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9992else
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10000 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10002 break 2
10003 fi
10004done
81ecdfbb
RW
10005 done
10006IFS=$as_save_IFS
9a819804
AO
10007
10008fi
10009fi
10010GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10011if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10013$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10014else
81ecdfbb
RW
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016$as_echo "no" >&6; }
9a819804
AO
10017fi
10018
81ecdfbb 10019
9a819804
AO
10020 done
10021fi
10022
10023if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10024 for ncn_progname in gcc; do
81ecdfbb
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10026$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10027 if test -x $with_build_time_tools/${ncn_progname}; then
10028 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10030$as_echo "yes" >&6; }
2429c060
PB
10031 break
10032 else
81ecdfbb
RW
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034$as_echo "no" >&6; }
2429c060
PB
10035 fi
10036 done
10037fi
10038
10039if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10040 for ncn_progname in gcc; do
10041 if test -n "$ncn_target_tool_prefix"; then
10042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10043set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045$as_echo_n "checking for $ac_word... " >&6; }
10046if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
859789af 10048else
2429c060
PB
10049 if test -n "$GCC_FOR_TARGET"; then
10050 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10051else
c6b750e1
DJ
10052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053for as_dir in $PATH
10054do
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10059 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10061 break 2
10062 fi
10063done
81ecdfbb
RW
10064 done
10065IFS=$as_save_IFS
c6b750e1 10066
55db4b87
PB
10067fi
10068fi
c6b750e1 10069GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10070if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10072$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10073else
81ecdfbb
RW
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075$as_echo "no" >&6; }
55db4b87
PB
10076fi
10077
81ecdfbb 10078
2429c060
PB
10079 fi
10080 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10082set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084$as_echo_n "checking for $ac_word... " >&6; }
10085if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
55db4b87 10087else
05cbd757
PB
10088 if test -n "$GCC_FOR_TARGET"; then
10089 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10090else
c6b750e1
DJ
10091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $PATH
10093do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10098 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10100 break 2
10101 fi
10102done
81ecdfbb
RW
10103 done
10104IFS=$as_save_IFS
c6b750e1 10105
55db4b87
PB
10106fi
10107fi
c6b750e1 10108GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10109if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10111$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10112else
81ecdfbb
RW
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
55db4b87 10115fi
c6b750e1 10116
81ecdfbb 10117
2429c060
PB
10118 fi
10119 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10120 done
10121fi
c6b750e1 10122
05cbd757
PB
10123if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10124 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10125else
10126 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10127fi
10128
9a819804
AO
10129
10130
10131if test -n "$GCJ_FOR_TARGET"; then
10132 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10133elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10134 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10135fi
10136
10137if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10138 for ncn_progname in gcj; do
10139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10140set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142$as_echo_n "checking for $ac_word... " >&6; }
10143if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
9a819804
AO
10145else
10146 if test -n "$GCJ_FOR_TARGET"; then
10147 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10148else
10149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150for as_dir in $PATH
10151do
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10156 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10158 break 2
10159 fi
10160done
81ecdfbb
RW
10161 done
10162IFS=$as_save_IFS
9a819804
AO
10163
10164fi
10165fi
10166GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10167if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10169$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10170else
81ecdfbb
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172$as_echo "no" >&6; }
9a819804
AO
10173fi
10174
81ecdfbb 10175
9a819804
AO
10176 done
10177fi
10178
10179if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10180 for ncn_progname in gcj; do
81ecdfbb
RW
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10182$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10183 if test -x $with_build_time_tools/${ncn_progname}; then
10184 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10186$as_echo "yes" >&6; }
2429c060
PB
10187 break
10188 else
81ecdfbb
RW
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190$as_echo "no" >&6; }
2429c060
PB
10191 fi
10192 done
10193fi
10194
10195if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10196 for ncn_progname in gcj; do
10197 if test -n "$ncn_target_tool_prefix"; then
10198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10199set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201$as_echo_n "checking for $ac_word... " >&6; }
10202if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
55db4b87
PB
10204else
10205 if test -n "$GCJ_FOR_TARGET"; then
10206 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10207else
c6b750e1
DJ
10208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209for as_dir in $PATH
10210do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10215 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10217 break 2
10218 fi
10219done
81ecdfbb
RW
10220 done
10221IFS=$as_save_IFS
c6b750e1 10222
55db4b87
PB
10223fi
10224fi
9a819804
AO
10225GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10226if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10228$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10229else
81ecdfbb
RW
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231$as_echo "no" >&6; }
9a819804
AO
10232fi
10233
81ecdfbb 10234
9a819804
AO
10235 fi
10236 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10238set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240$as_echo_n "checking for $ac_word... " >&6; }
10241if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
9a819804
AO
10243else
10244 if test -n "$GCJ_FOR_TARGET"; then
10245 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10246else
10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248for as_dir in $PATH
10249do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10254 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10256 break 2
10257 fi
10258done
81ecdfbb
RW
10259 done
10260IFS=$as_save_IFS
9a819804
AO
10261
10262fi
10263fi
10264GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10265if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10267$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10268else
81ecdfbb
RW
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270$as_echo "no" >&6; }
9a819804
AO
10271fi
10272
81ecdfbb 10273
9a819804
AO
10274 fi
10275 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10276 done
10277fi
10278
10279if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10280 set dummy gcj
10281 if test $build = $target ; then
10282 GCJ_FOR_TARGET="$2"
10283 else
10284 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10285 fi
d3f5afc4
MS
10286else
10287 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10288fi
10289
10290
10291
10292if test -n "$GFORTRAN_FOR_TARGET"; then
10293 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10294elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10295 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10296fi
10297
9a819804
AO
10298if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10299 for ncn_progname in gfortran; do
10300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10301set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303$as_echo_n "checking for $ac_word... " >&6; }
10304if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
55db4b87 10306else
9a819804
AO
10307 if test -n "$GFORTRAN_FOR_TARGET"; then
10308 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10309else
c6b750e1
DJ
10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
10312do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10317 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10319 break 2
10320 fi
10321done
81ecdfbb
RW
10322 done
10323IFS=$as_save_IFS
c6b750e1 10324
55db4b87
PB
10325fi
10326fi
9a819804
AO
10327GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10328if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10330$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10331else
81ecdfbb
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333$as_echo "no" >&6; }
55db4b87 10334fi
c6b750e1 10335
81ecdfbb 10336
2429c060
PB
10337 done
10338fi
c6b750e1 10339
9a819804 10340if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10341 for ncn_progname in gfortran; do
81ecdfbb
RW
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10343$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10344 if test -x $with_build_time_tools/${ncn_progname}; then
10345 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347$as_echo "yes" >&6; }
2429c060
PB
10348 break
10349 else
81ecdfbb
RW
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351$as_echo "no" >&6; }
2429c060
PB
10352 fi
10353 done
10354fi
10355
10356if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10357 for ncn_progname in gfortran; do
10358 if test -n "$ncn_target_tool_prefix"; then
10359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362$as_echo_n "checking for $ac_word... " >&6; }
10363if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
55db4b87
PB
10365else
10366 if test -n "$GFORTRAN_FOR_TARGET"; then
10367 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10368else
c6b750e1
DJ
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10376 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10378 break 2
10379 fi
10380done
81ecdfbb
RW
10381 done
10382IFS=$as_save_IFS
c6b750e1 10383
55db4b87
PB
10384fi
10385fi
c6b750e1 10386GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10387if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10389$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10390else
81ecdfbb
RW
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
55db4b87
PB
10393fi
10394
81ecdfbb 10395
2429c060
PB
10396 fi
10397 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10399set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
10402if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
55db4b87 10404else
05cbd757 10405 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10406 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10407else
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10415 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10417 break 2
10418 fi
10419done
81ecdfbb
RW
10420 done
10421IFS=$as_save_IFS
c6b750e1 10422
55db4b87
PB
10423fi
10424fi
c6b750e1 10425GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10426if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10428$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10429else
81ecdfbb
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
55db4b87 10432fi
c6b750e1 10433
81ecdfbb 10434
2429c060
PB
10435 fi
10436 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10437 done
10438fi
c6b750e1 10439
05cbd757
PB
10440if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10441 set dummy gfortran
10442 if test $build = $target ; then
10443 GFORTRAN_FOR_TARGET="$2"
55db4b87 10444 else
05cbd757 10445 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10446 fi
d3f5afc4
MS
10447else
10448 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10449fi
10450
2429c060
PB
10451
10452
e552509b
ILT
10453if test -n "$GOC_FOR_TARGET"; then
10454 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10455elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10456 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10457fi
10458
10459if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10460 for ncn_progname in gccgo; do
10461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10462set dummy ${ncn_progname}; ac_word=$2
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464$as_echo_n "checking for $ac_word... " >&6; }
10465if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
10467else
10468 if test -n "$GOC_FOR_TARGET"; then
10469 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10470else
10471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472for as_dir in $PATH
10473do
10474 IFS=$as_save_IFS
10475 test -z "$as_dir" && as_dir=.
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10478 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 break 2
10481 fi
10482done
10483 done
10484IFS=$as_save_IFS
10485
10486fi
10487fi
10488GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10489if test -n "$GOC_FOR_TARGET"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10491$as_echo "$GOC_FOR_TARGET" >&6; }
10492else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494$as_echo "no" >&6; }
10495fi
10496
10497
10498 done
10499fi
10500
10501if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10502 for ncn_progname in gccgo; do
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10504$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10505 if test -x $with_build_time_tools/${ncn_progname}; then
10506 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508$as_echo "yes" >&6; }
10509 break
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513 fi
10514 done
10515fi
10516
10517if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10518 for ncn_progname in gccgo; do
10519 if test -n "$ncn_target_tool_prefix"; then
10520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10521set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523$as_echo_n "checking for $ac_word... " >&6; }
10524if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526else
10527 if test -n "$GOC_FOR_TARGET"; then
10528 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10529else
10530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531for as_dir in $PATH
10532do
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10537 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10540 fi
10541done
10542 done
10543IFS=$as_save_IFS
10544
10545fi
10546fi
10547GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10548if test -n "$GOC_FOR_TARGET"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10550$as_echo "$GOC_FOR_TARGET" >&6; }
10551else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553$as_echo "no" >&6; }
10554fi
10555
10556
10557 fi
10558 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10560set dummy ${ncn_progname}; ac_word=$2
10561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562$as_echo_n "checking for $ac_word... " >&6; }
10563if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565else
10566 if test -n "$GOC_FOR_TARGET"; then
10567 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10568else
10569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570for as_dir in $PATH
10571do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10579 fi
10580done
10581 done
10582IFS=$as_save_IFS
10583
10584fi
10585fi
10586GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10587if test -n "$GOC_FOR_TARGET"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10589$as_echo "$GOC_FOR_TARGET" >&6; }
10590else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593fi
10594
10595
10596 fi
10597 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10598 done
10599fi
10600
10601if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10602 set dummy gccgo
10603 if test $build = $target ; then
10604 GOC_FOR_TARGET="$2"
10605 else
10606 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10607 fi
10608else
10609 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10610fi
10611
10612
10613
2429c060
PB
10614cat > conftest.c << \EOF
10615#ifdef __GNUC__
10616 gcc_yay;
10617#endif
10618EOF
10619if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10620 have_gcc_for_target=yes
859789af 10621else
2429c060
PB
10622 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10623 have_gcc_for_target=no
859789af 10624fi
2429c060
PB
10625rm conftest.c
10626
10627
10628
859789af 10629
2429c060
PB
10630if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10631 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10633$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10634 if test -x $with_build_time_tools/ar; then
10635 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10636 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10638$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10639 else
81ecdfbb
RW
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641$as_echo "no" >&6; }
3a35eeb3 10642 fi
2429c060
PB
10643 elif test $build != $host && test $have_gcc_for_target = yes; then
10644 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10645 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10646 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10647 fi
2429c060 10648fi
c6b750e1 10649if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10650 # Extract the first word of "ar", so it can be a program name with args.
10651set dummy ar; ac_word=$2
81ecdfbb
RW
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653$as_echo_n "checking for $ac_word... " >&6; }
10654if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
859789af 10656else
c6b750e1
DJ
10657 case $AR_FOR_TARGET in
10658 [\\/]* | ?:[\\/]*)
2429c060
PB
10659 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10660 ;;
2429c060 10661 *)
c6b750e1
DJ
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $gcc_cv_tool_dirs
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10669 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10671 break 2
10672 fi
10673done
81ecdfbb
RW
10674 done
10675IFS=$as_save_IFS
c6b750e1 10676
2429c060
PB
10677 ;;
10678esac
859789af 10679fi
c6b750e1 10680AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10681if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10683$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10684else
81ecdfbb
RW
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686$as_echo "no" >&6; }
859789af 10687fi
05cbd757 10688
81ecdfbb 10689
2429c060
PB
10690fi
10691if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10692
10693
10694if test -n "$AR_FOR_TARGET"; then
10695 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10696elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10697 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10698fi
10699
10700if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10701 for ncn_progname in ar; do
10702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10703set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705$as_echo_n "checking for $ac_word... " >&6; }
10706if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
9a819804
AO
10708else
10709 if test -n "$AR_FOR_TARGET"; then
10710 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10719 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10721 break 2
10722 fi
10723done
81ecdfbb
RW
10724 done
10725IFS=$as_save_IFS
9a819804
AO
10726
10727fi
10728fi
10729AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10730if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10732$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10733else
81ecdfbb
RW
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735$as_echo "no" >&6; }
9a819804
AO
10736fi
10737
81ecdfbb 10738
9a819804
AO
10739 done
10740fi
10741
10742if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10743 for ncn_progname in ar; do
81ecdfbb
RW
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10745$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10746 if test -x $with_build_time_tools/${ncn_progname}; then
10747 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10749$as_echo "yes" >&6; }
2429c060
PB
10750 break
10751 else
81ecdfbb
RW
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753$as_echo "no" >&6; }
2429c060
PB
10754 fi
10755 done
859789af
AC
10756fi
10757
2429c060
PB
10758if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10759 for ncn_progname in ar; do
10760 if test -n "$ncn_target_tool_prefix"; then
10761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10762set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764$as_echo_n "checking for $ac_word... " >&6; }
10765if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
7e0f7140 10767else
2429c060
PB
10768 if test -n "$AR_FOR_TARGET"; then
10769 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10770else
c6b750e1
DJ
10771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10778 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10780 break 2
10781 fi
10782done
81ecdfbb
RW
10783 done
10784IFS=$as_save_IFS
c6b750e1 10785
7e0f7140
GK
10786fi
10787fi
c6b750e1 10788AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10789if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10791$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10792else
81ecdfbb
RW
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794$as_echo "no" >&6; }
7e0f7140
GK
10795fi
10796
81ecdfbb 10797
2429c060
PB
10798 fi
10799 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10801set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803$as_echo_n "checking for $ac_word... " >&6; }
10804if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
7e0f7140 10806else
2429c060
PB
10807 if test -n "$AR_FOR_TARGET"; then
10808 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10809else
c6b750e1
DJ
10810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811for as_dir in $PATH
10812do
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10817 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10819 break 2
10820 fi
10821done
81ecdfbb
RW
10822 done
10823IFS=$as_save_IFS
c6b750e1 10824
7e0f7140
GK
10825fi
10826fi
c6b750e1 10827AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10828if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10830$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10831else
81ecdfbb
RW
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833$as_echo "no" >&6; }
7e0f7140 10834fi
c6b750e1 10835
81ecdfbb 10836
2429c060
PB
10837 fi
10838 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10839 done
10840fi
c6b750e1 10841
2429c060
PB
10842if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10843 set dummy ar
7e0f7140 10844 if test $build = $target ; then
2429c060 10845 AR_FOR_TARGET="$2"
7e0f7140 10846 else
2429c060 10847 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10848 fi
d3f5afc4
MS
10849else
10850 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10851fi
10852
3a35eeb3
PB
10853else
10854 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10855fi
10856
10857
10858
10859
10860if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10861 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10863$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10864 if test -x $with_build_time_tools/as; then
10865 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10866 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10868$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10869 else
81ecdfbb
RW
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871$as_echo "no" >&6; }
3a35eeb3 10872 fi
2429c060
PB
10873 elif test $build != $host && test $have_gcc_for_target = yes; then
10874 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10875 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10876 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10877 fi
10878fi
c6b750e1 10879if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10880 # Extract the first word of "as", so it can be a program name with args.
10881set dummy as; ac_word=$2
81ecdfbb
RW
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883$as_echo_n "checking for $ac_word... " >&6; }
10884if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
2429c060 10886else
c6b750e1
DJ
10887 case $AS_FOR_TARGET in
10888 [\\/]* | ?:[\\/]*)
2429c060
PB
10889 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10890 ;;
2429c060 10891 *)
c6b750e1
DJ
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893for as_dir in $gcc_cv_tool_dirs
10894do
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10899 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10901 break 2
10902 fi
10903done
81ecdfbb
RW
10904 done
10905IFS=$as_save_IFS
c6b750e1 10906
2429c060
PB
10907 ;;
10908esac
10909fi
c6b750e1 10910AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10911if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10913$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10914else
81ecdfbb
RW
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916$as_echo "no" >&6; }
2429c060
PB
10917fi
10918
81ecdfbb 10919
2429c060
PB
10920fi
10921if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10922
10923
10924if test -n "$AS_FOR_TARGET"; then
10925 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10926elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10927 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10928fi
10929
10930if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10931 for ncn_progname in as; do
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935$as_echo_n "checking for $ac_word... " >&6; }
10936if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
9a819804
AO
10938else
10939 if test -n "$AS_FOR_TARGET"; then
10940 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10941else
10942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943for as_dir in $PATH
10944do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10949 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10951 break 2
10952 fi
10953done
81ecdfbb
RW
10954 done
10955IFS=$as_save_IFS
9a819804
AO
10956
10957fi
10958fi
10959AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10960if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10962$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10963else
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965$as_echo "no" >&6; }
9a819804
AO
10966fi
10967
81ecdfbb 10968
9a819804
AO
10969 done
10970fi
10971
10972if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10973 for ncn_progname in as; do
81ecdfbb
RW
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10975$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10976 if test -x $with_build_time_tools/${ncn_progname}; then
10977 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10979$as_echo "yes" >&6; }
2429c060
PB
10980 break
10981 else
81ecdfbb
RW
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983$as_echo "no" >&6; }
2429c060
PB
10984 fi
10985 done
10986fi
10987
10988if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10989 for ncn_progname in as; do
10990 if test -n "$ncn_target_tool_prefix"; then
10991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10992set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994$as_echo_n "checking for $ac_word... " >&6; }
10995if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
2429c060
PB
10997else
10998 if test -n "$AS_FOR_TARGET"; then
10999 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11000else
c6b750e1
DJ
11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002for as_dir in $PATH
11003do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11008 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11010 break 2
11011 fi
11012done
81ecdfbb
RW
11013 done
11014IFS=$as_save_IFS
c6b750e1 11015
2429c060
PB
11016fi
11017fi
c6b750e1 11018AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11019if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11021$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11022else
81ecdfbb
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024$as_echo "no" >&6; }
2429c060
PB
11025fi
11026
81ecdfbb 11027
2429c060
PB
11028 fi
11029 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11031set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033$as_echo_n "checking for $ac_word... " >&6; }
11034if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
2429c060
PB
11036else
11037 if test -n "$AS_FOR_TARGET"; then
11038 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11039else
c6b750e1
DJ
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11047 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11049 break 2
11050 fi
11051done
81ecdfbb
RW
11052 done
11053IFS=$as_save_IFS
c6b750e1 11054
2429c060
PB
11055fi
11056fi
c6b750e1 11057AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11058if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11060$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11061else
81ecdfbb
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
2429c060 11064fi
c6b750e1 11065
81ecdfbb 11066
2429c060
PB
11067 fi
11068 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11069 done
11070fi
c6b750e1 11071
2429c060
PB
11072if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11073 set dummy as
11074 if test $build = $target ; then
11075 AS_FOR_TARGET="$2"
11076 else
11077 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11078 fi
d3f5afc4
MS
11079else
11080 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11081fi
11082
3a35eeb3
PB
11083else
11084 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11085fi
11086
11087
11088
11089
11090if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11091 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11093$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11094 if test -x $with_build_time_tools/dlltool; then
11095 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11096 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11098$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11099 else
81ecdfbb
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101$as_echo "no" >&6; }
3a35eeb3 11102 fi
2429c060
PB
11103 elif test $build != $host && test $have_gcc_for_target = yes; then
11104 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11105 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11106 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11107 fi
11108fi
c6b750e1 11109if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11110 # Extract the first word of "dlltool", so it can be a program name with args.
11111set dummy dlltool; ac_word=$2
81ecdfbb
RW
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113$as_echo_n "checking for $ac_word... " >&6; }
11114if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
2429c060 11116else
c6b750e1
DJ
11117 case $DLLTOOL_FOR_TARGET in
11118 [\\/]* | ?:[\\/]*)
2429c060
PB
11119 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11120 ;;
2429c060 11121 *)
c6b750e1
DJ
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $gcc_cv_tool_dirs
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11129 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11131 break 2
11132 fi
11133done
81ecdfbb
RW
11134 done
11135IFS=$as_save_IFS
c6b750e1 11136
2429c060
PB
11137 ;;
11138esac
11139fi
c6b750e1 11140DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11141if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11143$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11144else
81ecdfbb
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
2429c060
PB
11147fi
11148
81ecdfbb 11149
2429c060
PB
11150fi
11151if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11152
11153
11154if test -n "$DLLTOOL_FOR_TARGET"; then
11155 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11156elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11157 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11158fi
11159
11160if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11161 for ncn_progname in dlltool; do
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165$as_echo_n "checking for $ac_word... " >&6; }
11166if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
9a819804
AO
11168else
11169 if test -n "$DLLTOOL_FOR_TARGET"; then
11170 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11171else
11172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173for as_dir in $PATH
11174do
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11179 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11181 break 2
11182 fi
11183done
81ecdfbb
RW
11184 done
11185IFS=$as_save_IFS
9a819804
AO
11186
11187fi
11188fi
11189DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11190if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11192$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11193else
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
9a819804
AO
11196fi
11197
81ecdfbb 11198
9a819804
AO
11199 done
11200fi
11201
11202if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11203 for ncn_progname in dlltool; do
81ecdfbb
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11205$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11206 if test -x $with_build_time_tools/${ncn_progname}; then
11207 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209$as_echo "yes" >&6; }
2429c060
PB
11210 break
11211 else
81ecdfbb
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213$as_echo "no" >&6; }
2429c060
PB
11214 fi
11215 done
11216fi
11217
11218if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11219 for ncn_progname in dlltool; do
11220 if test -n "$ncn_target_tool_prefix"; then
11221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11222set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
2429c060
PB
11227else
11228 if test -n "$DLLTOOL_FOR_TARGET"; then
11229 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11230else
c6b750e1
DJ
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11238 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11240 break 2
11241 fi
11242done
81ecdfbb
RW
11243 done
11244IFS=$as_save_IFS
c6b750e1 11245
2429c060
PB
11246fi
11247fi
c6b750e1 11248DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11249if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11251$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11252else
81ecdfbb
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
2429c060
PB
11255fi
11256
81ecdfbb 11257
2429c060
PB
11258 fi
11259 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11261set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263$as_echo_n "checking for $ac_word... " >&6; }
11264if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
2429c060
PB
11266else
11267 if test -n "$DLLTOOL_FOR_TARGET"; then
11268 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11269else
c6b750e1
DJ
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11277 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11279 break 2
11280 fi
11281done
81ecdfbb
RW
11282 done
11283IFS=$as_save_IFS
c6b750e1 11284
2429c060
PB
11285fi
11286fi
c6b750e1 11287DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11288if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11290$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11291else
81ecdfbb
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
2429c060 11294fi
c6b750e1 11295
81ecdfbb 11296
2429c060
PB
11297 fi
11298 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11299 done
11300fi
c6b750e1 11301
2429c060
PB
11302if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11303 set dummy dlltool
11304 if test $build = $target ; then
11305 DLLTOOL_FOR_TARGET="$2"
11306 else
11307 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11308 fi
d3f5afc4
MS
11309else
11310 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11311fi
11312
3a35eeb3
PB
11313else
11314 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11315fi
11316
11317
11318
11319
11320if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11323$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11324 if test -x $with_build_time_tools/ld; then
11325 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11326 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11328$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11329 else
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331$as_echo "no" >&6; }
3a35eeb3 11332 fi
2429c060
PB
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11335 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11336 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11337 fi
11338fi
c6b750e1 11339if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11340 # Extract the first word of "ld", so it can be a program name with args.
11341set dummy ld; ac_word=$2
81ecdfbb
RW
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
11344if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
2429c060 11346else
c6b750e1
DJ
11347 case $LD_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
2429c060
PB
11349 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11350 ;;
2429c060 11351 *)
c6b750e1
DJ
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $gcc_cv_tool_dirs
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11359 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11361 break 2
11362 fi
11363done
81ecdfbb
RW
11364 done
11365IFS=$as_save_IFS
c6b750e1 11366
2429c060
PB
11367 ;;
11368esac
11369fi
c6b750e1 11370LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11371if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11373$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11374else
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
2429c060
PB
11377fi
11378
81ecdfbb 11379
2429c060
PB
11380fi
11381if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11382
11383
11384if test -n "$LD_FOR_TARGET"; then
11385 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11386elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11387 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11388fi
11389
11390if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11391 for ncn_progname in ld; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395$as_echo_n "checking for $ac_word... " >&6; }
11396if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
9a819804
AO
11398else
11399 if test -n "$LD_FOR_TARGET"; then
11400 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11401else
11402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403for as_dir in $PATH
11404do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11409 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11411 break 2
11412 fi
11413done
81ecdfbb
RW
11414 done
11415IFS=$as_save_IFS
9a819804
AO
11416
11417fi
11418fi
11419LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11420if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11422$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11423else
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
9a819804
AO
11426fi
11427
81ecdfbb 11428
9a819804
AO
11429 done
11430fi
11431
11432if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11433 for ncn_progname in ld; do
81ecdfbb
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439$as_echo "yes" >&6; }
2429c060
PB
11440 break
11441 else
81ecdfbb
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
2429c060
PB
11444 fi
11445 done
11446fi
11447
11448if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11449 for ncn_progname in ld; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
11455if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
2429c060
PB
11457else
11458 if test -n "$LD_FOR_TARGET"; then
11459 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11460else
c6b750e1
DJ
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11468 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11470 break 2
11471 fi
11472done
81ecdfbb
RW
11473 done
11474IFS=$as_save_IFS
c6b750e1 11475
2429c060
PB
11476fi
11477fi
c6b750e1 11478LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11479if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11481$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11482else
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
2429c060
PB
11485fi
11486
81ecdfbb 11487
2429c060
PB
11488 fi
11489 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
11494if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
2429c060
PB
11496else
11497 if test -n "$LD_FOR_TARGET"; then
11498 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11499else
c6b750e1
DJ
11500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11507 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11509 break 2
11510 fi
11511done
81ecdfbb
RW
11512 done
11513IFS=$as_save_IFS
c6b750e1 11514
2429c060
PB
11515fi
11516fi
c6b750e1 11517LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11518if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11520$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11521else
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
2429c060 11524fi
c6b750e1 11525
81ecdfbb 11526
2429c060
PB
11527 fi
11528 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11529 done
11530fi
c6b750e1 11531
2429c060
PB
11532if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11533 set dummy ld
11534 if test $build = $target ; then
11535 LD_FOR_TARGET="$2"
11536 else
11537 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11538 fi
d3f5afc4
MS
11539else
11540 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11541fi
11542
3a35eeb3
PB
11543else
11544 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11545fi
11546
11547
11548
11549
11550if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11553$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11554 if test -x $with_build_time_tools/lipo; then
11555 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11556 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11558$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11559 else
81ecdfbb
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
3a35eeb3 11562 fi
2429c060
PB
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11565 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11566 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11567 fi
11568fi
9a819804
AO
11569if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11570 # Extract the first word of "lipo", so it can be a program name with args.
11571set dummy lipo; ac_word=$2
81ecdfbb
RW
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573$as_echo_n "checking for $ac_word... " >&6; }
11574if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
9a819804
AO
11576else
11577 case $LIPO_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
11579 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11580 ;;
11581 *)
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $gcc_cv_tool_dirs
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11589 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11591 break 2
11592 fi
11593done
81ecdfbb
RW
11594 done
11595IFS=$as_save_IFS
9a819804
AO
11596
11597 ;;
11598esac
11599fi
11600LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11601if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11603$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11604else
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
9a819804
AO
11607fi
11608
81ecdfbb 11609
9a819804
AO
11610fi
11611if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11612
11613
11614if test -n "$LIPO_FOR_TARGET"; then
11615 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11616elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11617 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11618fi
11619
11620if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11621 for ncn_progname in lipo; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625$as_echo_n "checking for $ac_word... " >&6; }
11626if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
2429c060 11628else
9a819804
AO
11629 if test -n "$LIPO_FOR_TARGET"; then
11630 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11631else
11632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
c6b750e1
DJ
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11639 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11641 break 2
11642 fi
11643done
81ecdfbb
RW
11644 done
11645IFS=$as_save_IFS
c6b750e1 11646
2429c060 11647fi
9a819804
AO
11648fi
11649LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11650if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11652$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11653else
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
2429c060
PB
11656fi
11657
81ecdfbb 11658
9a819804 11659 done
2429c060 11660fi
9a819804
AO
11661
11662if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11663 for ncn_progname in lipo; do
81ecdfbb
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669$as_echo "yes" >&6; }
2429c060
PB
11670 break
11671 else
81ecdfbb
RW
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673$as_echo "no" >&6; }
2429c060
PB
11674 fi
11675 done
11676fi
11677
11678if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11679 for ncn_progname in lipo; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
11685if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
2429c060
PB
11687else
11688 if test -n "$LIPO_FOR_TARGET"; then
11689 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11690else
c6b750e1
DJ
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11698 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11700 break 2
11701 fi
11702done
81ecdfbb
RW
11703 done
11704IFS=$as_save_IFS
c6b750e1 11705
2429c060
PB
11706fi
11707fi
c6b750e1 11708LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11709if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11711$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11712else
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
2429c060
PB
11715fi
11716
81ecdfbb 11717
2429c060
PB
11718 fi
11719 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723$as_echo_n "checking for $ac_word... " >&6; }
11724if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
2429c060
PB
11726else
11727 if test -n "$LIPO_FOR_TARGET"; then
11728 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11729else
c6b750e1
DJ
11730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11737 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11739 break 2
11740 fi
11741done
81ecdfbb
RW
11742 done
11743IFS=$as_save_IFS
c6b750e1 11744
2429c060
PB
11745fi
11746fi
c6b750e1 11747LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11748if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11750$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11751else
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
2429c060 11754fi
c6b750e1 11755
81ecdfbb 11756
2429c060
PB
11757 fi
11758 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11759 done
11760fi
c6b750e1 11761
2429c060
PB
11762if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11763 set dummy lipo
11764 if test $build = $target ; then
11765 LIPO_FOR_TARGET="$2"
11766 else
11767 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11768 fi
d3f5afc4
MS
11769else
11770 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11771fi
11772
3a35eeb3
PB
11773else
11774 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11775fi
11776
11777
11778
11779
11780if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11783$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11784 if test -x $with_build_time_tools/nm; then
11785 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11786 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11788$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11789 else
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
3a35eeb3 11792 fi
2429c060
PB
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11795 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11796 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11797 fi
11798fi
c6b750e1 11799if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11800 # Extract the first word of "nm", so it can be a program name with args.
11801set dummy nm; ac_word=$2
81ecdfbb
RW
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803$as_echo_n "checking for $ac_word... " >&6; }
11804if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
2429c060 11806else
c6b750e1
DJ
11807 case $NM_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
2429c060
PB
11809 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11810 ;;
2429c060 11811 *)
c6b750e1
DJ
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $gcc_cv_tool_dirs
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11819 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11821 break 2
11822 fi
11823done
81ecdfbb
RW
11824 done
11825IFS=$as_save_IFS
c6b750e1 11826
2429c060
PB
11827 ;;
11828esac
11829fi
c6b750e1 11830NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11831if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11833$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11834else
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
2429c060
PB
11837fi
11838
81ecdfbb 11839
2429c060
PB
11840fi
11841if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11842
11843
11844if test -n "$NM_FOR_TARGET"; then
11845 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11846elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11847 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11848fi
11849
11850if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11851 for ncn_progname in nm; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855$as_echo_n "checking for $ac_word... " >&6; }
11856if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
9a819804
AO
11858else
11859 if test -n "$NM_FOR_TARGET"; then
11860 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11869 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11871 break 2
11872 fi
11873done
81ecdfbb
RW
11874 done
11875IFS=$as_save_IFS
9a819804
AO
11876
11877fi
11878fi
11879NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11880if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11882$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11883else
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
9a819804
AO
11886fi
11887
81ecdfbb 11888
9a819804
AO
11889 done
11890fi
11891
11892if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11893 for ncn_progname in nm; do
81ecdfbb
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899$as_echo "yes" >&6; }
2429c060
PB
11900 break
11901 else
81ecdfbb
RW
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
2429c060
PB
11904 fi
11905 done
11906fi
11907
11908if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11909 for ncn_progname in nm; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
859789af 11917else
55db4b87
PB
11918 if test -n "$NM_FOR_TARGET"; then
11919 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11920else
c6b750e1
DJ
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11928 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11930 break 2
11931 fi
11932done
81ecdfbb
RW
11933 done
11934IFS=$as_save_IFS
c6b750e1 11935
859789af
AC
11936fi
11937fi
c6b750e1 11938NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11939if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11941$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11942else
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
859789af
AC
11945fi
11946
81ecdfbb 11947
2429c060
PB
11948 fi
11949 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11951set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
11954if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
859789af 11956else
05cbd757
PB
11957 if test -n "$NM_FOR_TARGET"; then
11958 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11959else
c6b750e1
DJ
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11967 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11969 break 2
11970 fi
11971done
81ecdfbb
RW
11972 done
11973IFS=$as_save_IFS
c6b750e1 11974
859789af
AC
11975fi
11976fi
c6b750e1 11977NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11978if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11980$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11981else
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
859789af 11984fi
c6b750e1 11985
81ecdfbb 11986
2429c060
PB
11987 fi
11988 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11989 done
11990fi
c6b750e1 11991
05cbd757
PB
11992if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11993 set dummy nm
11994 if test $build = $target ; then
11995 NM_FOR_TARGET="$2"
859789af 11996 else
05cbd757 11997 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11998 fi
d3f5afc4
MS
11999else
12000 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12001fi
12002
3a35eeb3
PB
12003else
12004 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12005fi
12006
12007
12008
12009
12010if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12013$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12014 if test -x $with_build_time_tools/objdump; then
12015 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12016 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12018$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12019 else
81ecdfbb
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021$as_echo "no" >&6; }
3a35eeb3 12022 fi
2429c060
PB
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12025 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12026 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12027 fi
12028fi
c6b750e1 12029if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12030 # Extract the first word of "objdump", so it can be a program name with args.
12031set dummy objdump; ac_word=$2
81ecdfbb
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
12034if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
2429c060 12036else
c6b750e1
DJ
12037 case $OBJDUMP_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
2429c060
PB
12039 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12040 ;;
2429c060 12041 *)
c6b750e1
DJ
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $gcc_cv_tool_dirs
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12049 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12051 break 2
12052 fi
12053done
81ecdfbb
RW
12054 done
12055IFS=$as_save_IFS
c6b750e1 12056
2429c060
PB
12057 ;;
12058esac
12059fi
c6b750e1 12060OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12061if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12063$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12064else
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
2429c060
PB
12067fi
12068
81ecdfbb 12069
2429c060
PB
12070fi
12071if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12072
12073
12074if test -n "$OBJDUMP_FOR_TARGET"; then
12075 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12076elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12077 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12078fi
12079
12080if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12081 for ncn_progname in objdump; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085$as_echo_n "checking for $ac_word... " >&6; }
12086if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
9a819804
AO
12088else
12089 if test -n "$OBJDUMP_FOR_TARGET"; then
12090 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12091else
12092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
12094do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12099 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12101 break 2
12102 fi
12103done
81ecdfbb
RW
12104 done
12105IFS=$as_save_IFS
9a819804
AO
12106
12107fi
12108fi
12109OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12110if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12112$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12113else
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
9a819804
AO
12116fi
12117
81ecdfbb 12118
9a819804
AO
12119 done
12120fi
12121
12122if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12123 for ncn_progname in objdump; do
81ecdfbb
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129$as_echo "yes" >&6; }
2429c060
PB
12130 break
12131 else
81ecdfbb
RW
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
2429c060
PB
12134 fi
12135 done
12136fi
12137
12138if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12139 for ncn_progname in objdump; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12142set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144$as_echo_n "checking for $ac_word... " >&6; }
12145if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
5ae72758
DJ
12147else
12148 if test -n "$OBJDUMP_FOR_TARGET"; then
12149 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12150else
c6b750e1
DJ
12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152for as_dir in $PATH
12153do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12158 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12160 break 2
12161 fi
12162done
81ecdfbb
RW
12163 done
12164IFS=$as_save_IFS
c6b750e1 12165
5ae72758
DJ
12166fi
12167fi
c6b750e1 12168OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12169if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12171$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12172else
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
5ae72758
DJ
12175fi
12176
81ecdfbb 12177
2429c060
PB
12178 fi
12179 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12181set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
12184if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
5ae72758
DJ
12186else
12187 if test -n "$OBJDUMP_FOR_TARGET"; then
12188 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12189else
c6b750e1
DJ
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12197 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12199 break 2
12200 fi
12201done
81ecdfbb
RW
12202 done
12203IFS=$as_save_IFS
c6b750e1 12204
5ae72758
DJ
12205fi
12206fi
c6b750e1 12207OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12208if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12210$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12211else
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
5ae72758 12214fi
c6b750e1 12215
81ecdfbb 12216
2429c060
PB
12217 fi
12218 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12219 done
12220fi
c6b750e1 12221
5ae72758
DJ
12222if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12223 set dummy objdump
12224 if test $build = $target ; then
12225 OBJDUMP_FOR_TARGET="$2"
12226 else
12227 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12228 fi
d3f5afc4
MS
12229else
12230 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12231fi
12232
3a35eeb3
PB
12233else
12234 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12235fi
12236
12237
12238
12239
12240if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12243$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12244 if test -x $with_build_time_tools/ranlib; then
12245 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12246 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12248$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12249 else
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
3a35eeb3 12252 fi
2429c060
PB
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12255 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12256 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12257 fi
12258fi
c6b750e1 12259if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12260 # Extract the first word of "ranlib", so it can be a program name with args.
12261set dummy ranlib; ac_word=$2
81ecdfbb
RW
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
12264if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
2429c060 12266else
c6b750e1
DJ
12267 case $RANLIB_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
2429c060
PB
12269 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12270 ;;
2429c060 12271 *)
c6b750e1
DJ
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $gcc_cv_tool_dirs
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12279 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12281 break 2
12282 fi
12283done
81ecdfbb
RW
12284 done
12285IFS=$as_save_IFS
c6b750e1 12286
2429c060
PB
12287 ;;
12288esac
12289fi
c6b750e1 12290RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12291if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12293$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12294else
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
2429c060
PB
12297fi
12298
81ecdfbb 12299
2429c060
PB
12300fi
12301if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12302
12303
12304if test -n "$RANLIB_FOR_TARGET"; then
12305 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12306elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12307 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12308fi
12309
12310if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12311 for ncn_progname in ranlib; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
12316if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
9a819804
AO
12318else
12319 if test -n "$RANLIB_FOR_TARGET"; then
12320 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12329 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12331 break 2
12332 fi
12333done
81ecdfbb
RW
12334 done
12335IFS=$as_save_IFS
9a819804
AO
12336
12337fi
12338fi
12339RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12340if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12342$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12343else
81ecdfbb
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
9a819804
AO
12346fi
12347
81ecdfbb 12348
9a819804
AO
12349 done
12350fi
12351
12352if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12353 for ncn_progname in ranlib; do
81ecdfbb
RW
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359$as_echo "yes" >&6; }
2429c060
PB
12360 break
12361 else
81ecdfbb
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
2429c060
PB
12364 fi
12365 done
12366fi
12367
12368if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12369 for ncn_progname in ranlib; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12372set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374$as_echo_n "checking for $ac_word... " >&6; }
12375if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
859789af 12377else
55db4b87
PB
12378 if test -n "$RANLIB_FOR_TARGET"; then
12379 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12380else
c6b750e1
DJ
12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12388 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12390 break 2
12391 fi
12392done
81ecdfbb
RW
12393 done
12394IFS=$as_save_IFS
c6b750e1 12395
859789af
AC
12396fi
12397fi
c6b750e1 12398RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12399if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12401$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12402else
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
859789af
AC
12405fi
12406
81ecdfbb 12407
2429c060
PB
12408 fi
12409 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12411set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
859789af 12416else
05cbd757
PB
12417 if test -n "$RANLIB_FOR_TARGET"; then
12418 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12419else
c6b750e1
DJ
12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421for as_dir in $PATH
12422do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12427 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12429 break 2
12430 fi
12431done
81ecdfbb
RW
12432 done
12433IFS=$as_save_IFS
c6b750e1 12434
859789af
AC
12435fi
12436fi
c6b750e1 12437RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12438if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12440$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12441else
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
859789af 12444fi
c6b750e1 12445
81ecdfbb 12446
2429c060
PB
12447 fi
12448 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12449 done
12450fi
c6b750e1 12451
2429c060
PB
12452if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12453 set dummy ranlib
12454 if test $build = $target ; then
12455 RANLIB_FOR_TARGET="$2"
12456 else
12457 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12458 fi
d3f5afc4
MS
12459else
12460 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12461fi
05cbd757 12462
3a35eeb3
PB
12463else
12464 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12465fi
12466
2429c060
PB
12467
12468
12469
12470if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12473$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12474 if test -x $with_build_time_tools/strip; then
12475 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12476 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12478$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12479 else
81ecdfbb
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
3a35eeb3 12482 fi
2429c060
PB
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12485 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12486 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12487 fi
12488fi
c6b750e1 12489if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12490 # Extract the first word of "strip", so it can be a program name with args.
12491set dummy strip; ac_word=$2
81ecdfbb
RW
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493$as_echo_n "checking for $ac_word... " >&6; }
12494if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
2429c060 12496else
c6b750e1
DJ
12497 case $STRIP_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
2429c060
PB
12499 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12500 ;;
2429c060 12501 *)
c6b750e1
DJ
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $gcc_cv_tool_dirs
12504do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12509 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12511 break 2
12512 fi
12513done
81ecdfbb
RW
12514 done
12515IFS=$as_save_IFS
c6b750e1 12516
2429c060
PB
12517 ;;
12518esac
12519fi
c6b750e1 12520STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12521if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12523$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12524else
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
2429c060
PB
12527fi
12528
81ecdfbb 12529
2429c060
PB
12530fi
12531if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12532
12533
12534if test -n "$STRIP_FOR_TARGET"; then
12535 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12536elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12537 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12538fi
12539
12540if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12541 for ncn_progname in strip; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545$as_echo_n "checking for $ac_word... " >&6; }
12546if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
9a819804
AO
12548else
12549 if test -n "$STRIP_FOR_TARGET"; then
12550 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12551else
12552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553for as_dir in $PATH
12554do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12559 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12561 break 2
12562 fi
12563done
81ecdfbb
RW
12564 done
12565IFS=$as_save_IFS
9a819804
AO
12566
12567fi
12568fi
12569STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12570if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12572$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12573else
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575$as_echo "no" >&6; }
9a819804
AO
12576fi
12577
81ecdfbb 12578
9a819804
AO
12579 done
12580fi
12581
12582if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12583 for ncn_progname in strip; do
81ecdfbb
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589$as_echo "yes" >&6; }
2429c060
PB
12590 break
12591 else
81ecdfbb
RW
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593$as_echo "no" >&6; }
2429c060
PB
12594 fi
12595 done
12596fi
12597
12598if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12599 for ncn_progname in strip; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12602set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
12605if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
7e0f7140
GK
12607else
12608 if test -n "$STRIP_FOR_TARGET"; then
12609 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12610else
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12618 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12620 break 2
12621 fi
12622done
81ecdfbb
RW
12623 done
12624IFS=$as_save_IFS
c6b750e1 12625
7e0f7140
GK
12626fi
12627fi
c6b750e1 12628STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12629if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12631$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12632else
81ecdfbb
RW
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
7e0f7140
GK
12635fi
12636
81ecdfbb 12637
2429c060
PB
12638 fi
12639 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12641set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
12644if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
7e0f7140
GK
12646else
12647 if test -n "$STRIP_FOR_TARGET"; then
12648 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12649else
c6b750e1
DJ
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12657 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12659 break 2
12660 fi
12661done
81ecdfbb
RW
12662 done
12663IFS=$as_save_IFS
c6b750e1 12664
7e0f7140
GK
12665fi
12666fi
c6b750e1 12667STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12668if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12670$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12671else
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
7e0f7140 12674fi
c6b750e1 12675
81ecdfbb 12676
2429c060
PB
12677 fi
12678 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12679 done
12680fi
c6b750e1 12681
7e0f7140
GK
12682if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12683 set dummy strip
12684 if test $build = $target ; then
12685 STRIP_FOR_TARGET="$2"
12686 else
12687 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12688 fi
d3f5afc4
MS
12689else
12690 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12691fi
12692
3a35eeb3
PB
12693else
12694 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12695fi
12696
12697
12698
12699
12700if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12703$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12704 if test -x $with_build_time_tools/windres; then
12705 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12706 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12708$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12709 else
81ecdfbb
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
3a35eeb3 12712 fi
2429c060
PB
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12715 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12716 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12717 fi
12718fi
c6b750e1 12719if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12720 # Extract the first word of "windres", so it can be a program name with args.
12721set dummy windres; ac_word=$2
81ecdfbb
RW
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723$as_echo_n "checking for $ac_word... " >&6; }
12724if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
2429c060 12726else
c6b750e1
DJ
12727 case $WINDRES_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
2429c060
PB
12729 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12730 ;;
2429c060 12731 *)
c6b750e1
DJ
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $gcc_cv_tool_dirs
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12739 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12741 break 2
12742 fi
12743done
81ecdfbb
RW
12744 done
12745IFS=$as_save_IFS
c6b750e1 12746
2429c060
PB
12747 ;;
12748esac
12749fi
c6b750e1 12750WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12751if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12753$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12754else
81ecdfbb
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
2429c060
PB
12757fi
12758
81ecdfbb 12759
2429c060
PB
12760fi
12761if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12762
12763
12764if test -n "$WINDRES_FOR_TARGET"; then
12765 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12766elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12767 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12768fi
12769
12770if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12771 for ncn_progname in windres; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
12776if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
9a819804
AO
12778else
12779 if test -n "$WINDRES_FOR_TARGET"; then
12780 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12781else
12782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783for as_dir in $PATH
12784do
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12789 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12791 break 2
12792 fi
12793done
81ecdfbb
RW
12794 done
12795IFS=$as_save_IFS
9a819804
AO
12796
12797fi
12798fi
12799WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12800if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12802$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12803else
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
9a819804
AO
12806fi
12807
81ecdfbb 12808
9a819804
AO
12809 done
12810fi
12811
12812if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12813 for ncn_progname in windres; do
81ecdfbb
RW
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819$as_echo "yes" >&6; }
2429c060
PB
12820 break
12821 else
81ecdfbb
RW
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
2429c060
PB
12824 fi
12825 done
12826fi
12827
12828if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12829 for ncn_progname in windres; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12832set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
12835if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
859789af 12837else
55db4b87
PB
12838 if test -n "$WINDRES_FOR_TARGET"; then
12839 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12840else
c6b750e1
DJ
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12848 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12850 break 2
12851 fi
12852done
81ecdfbb
RW
12853 done
12854IFS=$as_save_IFS
c6b750e1 12855
859789af
AC
12856fi
12857fi
c6b750e1 12858WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12859if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12861$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12862else
81ecdfbb
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
859789af
AC
12865fi
12866
81ecdfbb 12867
2429c060
PB
12868 fi
12869 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12871set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
12874if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
859789af 12876else
05cbd757
PB
12877 if test -n "$WINDRES_FOR_TARGET"; then
12878 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12879else
c6b750e1
DJ
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12887 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12889 break 2
12890 fi
12891done
81ecdfbb
RW
12892 done
12893IFS=$as_save_IFS
c6b750e1 12894
859789af
AC
12895fi
12896fi
c6b750e1 12897WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12898if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12900$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12901else
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
859789af 12904fi
c6b750e1 12905
81ecdfbb 12906
2429c060
PB
12907 fi
12908 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12909 done
12910fi
c6b750e1 12911
05cbd757
PB
12912if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12913 set dummy windres
12914 if test $build = $target ; then
12915 WINDRES_FOR_TARGET="$2"
859789af 12916 else
05cbd757 12917 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12918 fi
d3f5afc4
MS
12919else
12920 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12921fi
12922
3a35eeb3
PB
12923else
12924 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12925fi
12926
852e5f18 12927
0c24b341
NC
12928
12929
12930if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12933$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12934 if test -x $with_build_time_tools/windmc; then
12935 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12936 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12938$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12939 else
81ecdfbb
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
0c24b341
NC
12942 fi
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12945 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12946 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12947 fi
12948fi
12949if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12950 # Extract the first word of "windmc", so it can be a program name with args.
12951set dummy windmc; ac_word=$2
81ecdfbb
RW
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953$as_echo_n "checking for $ac_word... " >&6; }
12954if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
0c24b341
NC
12956else
12957 case $WINDMC_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12960 ;;
12961 *)
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $gcc_cv_tool_dirs
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12969 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12971 break 2
12972 fi
12973done
81ecdfbb
RW
12974 done
12975IFS=$as_save_IFS
0c24b341
NC
12976
12977 ;;
12978esac
12979fi
12980WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12981if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12983$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12984else
81ecdfbb
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
0c24b341
NC
12987fi
12988
81ecdfbb 12989
0c24b341
NC
12990fi
12991if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12992
12993
12994if test -n "$WINDMC_FOR_TARGET"; then
12995 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12996elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12997 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12998fi
12999
13000if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13001 for ncn_progname in windmc; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005$as_echo_n "checking for $ac_word... " >&6; }
13006if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
0c24b341
NC
13008else
13009 if test -n "$WINDMC_FOR_TARGET"; then
13010 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13011else
13012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013for as_dir in $PATH
13014do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13019 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13021 break 2
13022 fi
13023done
81ecdfbb
RW
13024 done
13025IFS=$as_save_IFS
0c24b341
NC
13026
13027fi
13028fi
13029WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13030if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13032$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13033else
81ecdfbb
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035$as_echo "no" >&6; }
0c24b341
NC
13036fi
13037
81ecdfbb 13038
0c24b341
NC
13039 done
13040fi
13041
13042if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13043 for ncn_progname in windmc; do
81ecdfbb
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049$as_echo "yes" >&6; }
0c24b341
NC
13050 break
13051 else
81ecdfbb
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
0c24b341
NC
13054 fi
13055 done
13056fi
13057
13058if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13059 for ncn_progname in windmc; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13062set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
0c24b341
NC
13067else
13068 if test -n "$WINDMC_FOR_TARGET"; then
13069 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13078 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13080 break 2
13081 fi
13082done
81ecdfbb
RW
13083 done
13084IFS=$as_save_IFS
0c24b341
NC
13085
13086fi
13087fi
13088WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13089if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13091$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13092else
81ecdfbb
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
0c24b341
NC
13095fi
13096
81ecdfbb 13097
0c24b341
NC
13098 fi
13099 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13101set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103$as_echo_n "checking for $ac_word... " >&6; }
13104if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
0c24b341
NC
13106else
13107 if test -n "$WINDMC_FOR_TARGET"; then
13108 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13109else
13110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111for as_dir in $PATH
13112do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13117 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13119 break 2
13120 fi
13121done
81ecdfbb
RW
13122 done
13123IFS=$as_save_IFS
0c24b341
NC
13124
13125fi
13126fi
13127WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13128if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13130$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13131else
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
0c24b341
NC
13134fi
13135
81ecdfbb 13136
0c24b341
NC
13137 fi
13138 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13139 done
13140fi
13141
13142if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13143 set dummy windmc
13144 if test $build = $target ; then
13145 WINDMC_FOR_TARGET="$2"
13146 else
13147 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13148 fi
13149else
13150 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13151fi
13152
13153else
13154 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13155fi
13156
13157
be01d343
PB
13158RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13159
81ecdfbb
RW
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13161$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13162if test "x${build}" != "x${host}" ; then
2429c060
PB
13163 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13164 # We already found the complete path
b8025f34 13165 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13167$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13168 else
13169 # Canadian cross, just use what we found
81ecdfbb
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13171$as_echo "pre-installed" >&6; }
2429c060 13172 fi
be01d343
PB
13173else
13174 ok=yes
13175 case " ${configdirs} " in
13176 *" binutils "*) ;;
13177 *) ok=no ;;
13178 esac
c6b750e1 13179
be01d343
PB
13180 if test $ok = yes; then
13181 # An in-tree tool is available and we can use it
13182 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13184$as_echo "just compiled" >&6; }
2429c060
PB
13185 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13186 # We already found the complete path
b8025f34 13187 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13189$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13190 elif test "x$target" = "x$host"; then
13191 # We can use an host tool
13192 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13194$as_echo "host tool" >&6; }
be01d343
PB
13195 else
13196 # We need a cross tool
81ecdfbb
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13198$as_echo "pre-installed" >&6; }
be01d343
PB
13199 fi
13200fi
4b900473 13201
81ecdfbb
RW
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13203$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13204if test "x${build}" != "x${host}" ; then
2429c060
PB
13205 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13206 # We already found the complete path
b8025f34 13207 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13209$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13210 else
13211 # Canadian cross, just use what we found
81ecdfbb
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13213$as_echo "pre-installed" >&6; }
2429c060 13214 fi
be01d343
PB
13215else
13216 ok=yes
13217 case " ${configdirs} " in
13218 *" gas "*) ;;
13219 *) ok=no ;;
13220 esac
c6b750e1 13221
be01d343
PB
13222 if test $ok = yes; then
13223 # An in-tree tool is available and we can use it
13224 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13226$as_echo "just compiled" >&6; }
2429c060
PB
13227 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13228 # We already found the complete path
b8025f34 13229 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13231$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13232 elif test "x$target" = "x$host"; then
13233 # We can use an host tool
13234 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13236$as_echo "host tool" >&6; }
be01d343
PB
13237 else
13238 # We need a cross tool
81ecdfbb
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13240$as_echo "pre-installed" >&6; }
be01d343
PB
13241 fi
13242fi
4b900473 13243
81ecdfbb
RW
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13245$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13246if test "x${build}" != "x${host}" ; then
2429c060
PB
13247 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13248 # We already found the complete path
b8025f34 13249 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13251$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13252 else
13253 # Canadian cross, just use what we found
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13255$as_echo "pre-installed" >&6; }
2429c060 13256 fi
be01d343
PB
13257else
13258 ok=yes
13259 case " ${configdirs} " in
13260 *" gcc "*) ;;
13261 *) ok=no ;;
13262 esac
c6b750e1 13263
be01d343
PB
13264 if test $ok = yes; then
13265 # An in-tree tool is available and we can use it
13266 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13268$as_echo "just compiled" >&6; }
2429c060
PB
13269 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13270 # We already found the complete path
b8025f34 13271 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13273$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13274 elif test "x$target" = "x$host"; then
13275 # We can use an host tool
13276 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13278$as_echo "host tool" >&6; }
be01d343
PB
13279 else
13280 # We need a cross tool
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13282$as_echo "pre-installed" >&6; }
be01d343
PB
13283 fi
13284fi
4b900473 13285
81ecdfbb
RW
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13287$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13288if test "x${build}" != "x${host}" ; then
2429c060
PB
13289 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13290 # We already found the complete path
b8025f34 13291 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13293$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13294 else
13295 # Canadian cross, just use what we found
81ecdfbb
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13297$as_echo "pre-installed" >&6; }
2429c060 13298 fi
be01d343
PB
13299else
13300 ok=yes
13301 case " ${configdirs} " in
13302 *" gcc "*) ;;
13303 *) ok=no ;;
13304 esac
13305 case ,${enable_languages}, in
13306 *,c++,*) ;;
13307 *) ok=no ;;
13308 esac
13309 if test $ok = yes; then
13310 # An in-tree tool is available and we can use it
13311 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13313$as_echo "just compiled" >&6; }
2429c060
PB
13314 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13315 # We already found the complete path
b8025f34 13316 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13318$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13319 elif test "x$target" = "x$host"; then
13320 # We can use an host tool
13321 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13323$as_echo "host tool" >&6; }
be01d343
PB
13324 else
13325 # We need a cross tool
81ecdfbb
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13327$as_echo "pre-installed" >&6; }
be01d343
PB
13328 fi
13329fi
4b900473 13330
81ecdfbb
RW
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13332$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13333if test "x${build}" != "x${host}" ; then
2429c060
PB
13334 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13335 # We already found the complete path
b8025f34 13336 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13338$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13339 else
13340 # Canadian cross, just use what we found
81ecdfbb
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13342$as_echo "pre-installed" >&6; }
2429c060 13343 fi
be01d343
PB
13344else
13345 ok=yes
13346 case " ${configdirs} " in
13347 *" gcc "*) ;;
13348 *) ok=no ;;
13349 esac
13350 case ,${enable_languages}, in
13351 *,c++,*) ;;
13352 *) ok=no ;;
13353 esac
13354 if test $ok = yes; then
13355 # An in-tree tool is available and we can use it
13356 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
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13358$as_echo "just compiled" >&6; }
2429c060
PB
13359 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
b8025f34 13361 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13364 elif test "x$target" = "x$host"; then
13365 # We can use an host tool
13366 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13368$as_echo "host tool" >&6; }
be01d343
PB
13369 else
13370 # We need a cross tool
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372$as_echo "pre-installed" >&6; }
be01d343
PB
13373 fi
13374fi
4b900473 13375
81ecdfbb
RW
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13377$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13378if test "x${build}" != "x${host}" ; then
2429c060
PB
13379 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13380 # We already found the complete path
b8025f34 13381 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13383$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13384 else
13385 # Canadian cross, just use what we found
81ecdfbb
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13387$as_echo "pre-installed" >&6; }
2429c060 13388 fi
be01d343
PB
13389else
13390 ok=yes
13391 case " ${configdirs} " in
13392 *" binutils "*) ;;
13393 *) ok=no ;;
13394 esac
c6b750e1 13395
be01d343
PB
13396 if test $ok = yes; then
13397 # An in-tree tool is available and we can use it
13398 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13400$as_echo "just compiled" >&6; }
2429c060
PB
13401 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
b8025f34 13403 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13406 elif test "x$target" = "x$host"; then
13407 # We can use an host tool
13408 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13410$as_echo "host tool" >&6; }
be01d343
PB
13411 else
13412 # We need a cross tool
81ecdfbb
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414$as_echo "pre-installed" >&6; }
be01d343
PB
13415 fi
13416fi
4b900473 13417
81ecdfbb
RW
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13419$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13420if test "x${build}" != "x${host}" ; then
2429c060
PB
13421 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13422 # We already found the complete path
b8025f34 13423 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13425$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13426 else
13427 # Canadian cross, just use what we found
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13429$as_echo "pre-installed" >&6; }
2429c060 13430 fi
be01d343
PB
13431else
13432 ok=yes
13433 case " ${configdirs} " in
13434 *" gcc "*) ;;
13435 *) ok=no ;;
13436 esac
c6b750e1 13437
be01d343
PB
13438 if test $ok = yes; then
13439 # An in-tree tool is available and we can use it
13440 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13442$as_echo "just compiled" >&6; }
2429c060
PB
13443 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
b8025f34 13445 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13448 elif test "x$target" = "x$host"; then
13449 # We can use an host tool
13450 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13452$as_echo "host tool" >&6; }
be01d343
PB
13453 else
13454 # We need a cross tool
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13456$as_echo "pre-installed" >&6; }
be01d343
PB
13457 fi
13458fi
4b900473 13459
81ecdfbb
RW
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13461$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13462if test "x${build}" != "x${host}" ; then
2429c060
PB
13463 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
b8025f34 13465 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13468 else
13469 # Canadian cross, just use what we found
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13471$as_echo "pre-installed" >&6; }
2429c060 13472 fi
be01d343
PB
13473else
13474 ok=yes
13475 case " ${configdirs} " in
13476 *" gcc "*) ;;
13477 *) ok=no ;;
13478 esac
13479 case ,${enable_languages}, in
13480 *,java,*) ;;
13481 *) ok=no ;;
13482 esac
13483 if test $ok = yes; then
13484 # An in-tree tool is available and we can use it
13485 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13487$as_echo "just compiled" >&6; }
2429c060
PB
13488 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
b8025f34 13490 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13493 elif test "x$target" = "x$host"; then
13494 # We can use an host tool
13495 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13497$as_echo "host tool" >&6; }
be01d343
PB
13498 else
13499 # We need a cross tool
81ecdfbb
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13501$as_echo "pre-installed" >&6; }
be01d343
PB
13502 fi
13503fi
4b900473 13504
81ecdfbb
RW
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13506$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13507if test "x${build}" != "x${host}" ; then
2429c060
PB
13508 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
b8025f34 13510 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13513 else
13514 # Canadian cross, just use what we found
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13516$as_echo "pre-installed" >&6; }
2429c060 13517 fi
be01d343
PB
13518else
13519 ok=yes
13520 case " ${configdirs} " in
13521 *" gcc "*) ;;
13522 *) ok=no ;;
13523 esac
13524 case ,${enable_languages}, in
13525 *,fortran,*) ;;
13526 *) ok=no ;;
13527 esac
13528 if test $ok = yes; then
13529 # An in-tree tool is available and we can use it
13530 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13532$as_echo "just compiled" >&6; }
2429c060
PB
13533 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
b8025f34 13535 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13538 elif test "x$target" = "x$host"; then
13539 # We can use an host tool
13540 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13542$as_echo "host tool" >&6; }
be01d343
PB
13543 else
13544 # We need a cross tool
81ecdfbb
RW
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13546$as_echo "pre-installed" >&6; }
be01d343
PB
13547 fi
13548fi
4b900473 13549
e552509b
ILT
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13551$as_echo_n "checking where to find the target gccgo... " >&6; }
13552if test "x${build}" != "x${host}" ; then
13553 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
13555 ac_dir=`dirname $GOC_FOR_TARGET`
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557$as_echo "pre-installed in $ac_dir" >&6; }
13558 else
13559 # Canadian cross, just use what we found
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561$as_echo "pre-installed" >&6; }
13562 fi
13563else
13564 ok=yes
13565 case " ${configdirs} " in
13566 *" gcc "*) ;;
13567 *) ok=no ;;
13568 esac
13569 case ,${enable_languages}, in
13570 *,go,*) ;;
13571 *) ok=no ;;
13572 esac
13573 if test $ok = yes; then
13574 # An in-tree tool is available and we can use it
13575 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13577$as_echo "just compiled" >&6; }
13578 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
13580 ac_dir=`dirname $GOC_FOR_TARGET`
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582$as_echo "pre-installed in $ac_dir" >&6; }
13583 elif test "x$target" = "x$host"; then
13584 # We can use an host tool
13585 GOC_FOR_TARGET='$(GOC)'
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13587$as_echo "host tool" >&6; }
13588 else
13589 # We need a cross tool
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13591$as_echo "pre-installed" >&6; }
13592 fi
13593fi
13594
81ecdfbb
RW
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13596$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13597if test "x${build}" != "x${host}" ; then
2429c060
PB
13598 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13599 # We already found the complete path
b8025f34 13600 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13602$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13603 else
13604 # Canadian cross, just use what we found
81ecdfbb
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13606$as_echo "pre-installed" >&6; }
2429c060 13607 fi
be01d343
PB
13608else
13609 ok=yes
13610 case " ${configdirs} " in
13611 *" ld "*) ;;
13612 *) ok=no ;;
13613 esac
c6b750e1 13614
be01d343
PB
13615 if test $ok = yes; then
13616 # An in-tree tool is available and we can use it
13617 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13619$as_echo "just compiled" >&6; }
2429c060
PB
13620 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
b8025f34 13622 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13625 elif test "x$target" = "x$host"; then
13626 # We can use an host tool
13627 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13629$as_echo "host tool" >&6; }
be01d343
PB
13630 else
13631 # We need a cross tool
81ecdfbb
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13633$as_echo "pre-installed" >&6; }
be01d343
PB
13634 fi
13635fi
4b900473 13636
81ecdfbb
RW
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13638$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13639if test "x${build}" != "x${host}" ; then
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
PB
13645 else
13646 # Canadian cross, just use what we found
81ecdfbb
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13648$as_echo "pre-installed" >&6; }
2429c060 13649 fi
be01d343 13650else
2429c060
PB
13651 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13652 # We already found the complete path
b8025f34 13653 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13655$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13656 elif test "x$target" = "x$host"; then
be01d343
PB
13657 # We can use an host tool
13658 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13660$as_echo "host tool" >&6; }
be01d343
PB
13661 else
13662 # We need a cross tool
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13664$as_echo "pre-installed" >&6; }
be01d343
PB
13665 fi
13666fi
4b900473 13667
81ecdfbb
RW
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13669$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13670if test "x${build}" != "x${host}" ; then
2429c060
PB
13671 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13672 # We already found the complete path
b8025f34 13673 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13676 else
13677 # Canadian cross, just use what we found
81ecdfbb
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13679$as_echo "pre-installed" >&6; }
2429c060 13680 fi
be01d343
PB
13681else
13682 ok=yes
13683 case " ${configdirs} " in
13684 *" binutils "*) ;;
13685 *) ok=no ;;
13686 esac
c6b750e1 13687
be01d343
PB
13688 if test $ok = yes; then
13689 # An in-tree tool is available and we can use it
13690 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13692$as_echo "just compiled" >&6; }
2429c060
PB
13693 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13694 # We already found the complete path
b8025f34 13695 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13697$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13698 elif test "x$target" = "x$host"; then
13699 # We can use an host tool
13700 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13702$as_echo "host tool" >&6; }
be01d343
PB
13703 else
13704 # We need a cross tool
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13706$as_echo "pre-installed" >&6; }
be01d343
PB
13707 fi
13708fi
4b900473 13709
81ecdfbb
RW
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13711$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13712if test "x${build}" != "x${host}" ; then
2429c060
PB
13713 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13714 # We already found the complete path
b8025f34 13715 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13717$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13718 else
13719 # Canadian cross, just use what we found
81ecdfbb
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13721$as_echo "pre-installed" >&6; }
2429c060 13722 fi
be01d343
PB
13723else
13724 ok=yes
13725 case " ${configdirs} " in
13726 *" binutils "*) ;;
13727 *) ok=no ;;
13728 esac
c6b750e1 13729
be01d343
PB
13730 if test $ok = yes; then
13731 # An in-tree tool is available and we can use it
13732 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13734$as_echo "just compiled" >&6; }
2429c060
PB
13735 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13736 # We already found the complete path
b8025f34 13737 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13739$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13740 elif test "x$target" = "x$host"; then
13741 # We can use an host tool
13742 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13744$as_echo "host tool" >&6; }
be01d343
PB
13745 else
13746 # We need a cross tool
81ecdfbb
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13748$as_echo "pre-installed" >&6; }
be01d343
PB
13749 fi
13750fi
4b900473 13751
81ecdfbb
RW
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13753$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13754if test "x${build}" != "x${host}" ; then
2429c060
PB
13755 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13756 # We already found the complete path
b8025f34 13757 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13759$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13760 else
13761 # Canadian cross, just use what we found
81ecdfbb
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13763$as_echo "pre-installed" >&6; }
2429c060 13764 fi
be01d343
PB
13765else
13766 ok=yes
13767 case " ${configdirs} " in
13768 *" binutils "*) ;;
13769 *) ok=no ;;
13770 esac
c6b750e1 13771
be01d343
PB
13772 if test $ok = yes; then
13773 # An in-tree tool is available and we can use it
13774 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13776$as_echo "just compiled" >&6; }
2429c060
PB
13777 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13778 # We already found the complete path
b8025f34 13779 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13781$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13782 elif test "x$target" = "x$host"; then
13783 # We can use an host tool
13784 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13786$as_echo "host tool" >&6; }
be01d343
PB
13787 else
13788 # We need a cross tool
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790$as_echo "pre-installed" >&6; }
be01d343
PB
13791 fi
13792fi
4b900473 13793
81ecdfbb
RW
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13795$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13796if test "x${build}" != "x${host}" ; then
2429c060
PB
13797 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13798 # We already found the complete path
b8025f34 13799 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13801$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13802 else
13803 # Canadian cross, just use what we found
81ecdfbb
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13805$as_echo "pre-installed" >&6; }
2429c060 13806 fi
be01d343
PB
13807else
13808 ok=yes
13809 case " ${configdirs} " in
13810 *" binutils "*) ;;
13811 *) ok=no ;;
13812 esac
c6b750e1 13813
be01d343
PB
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818$as_echo "just compiled" >&6; }
2429c060
PB
13819 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
b8025f34 13821 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13824 elif test "x$target" = "x$host"; then
13825 # We can use an host tool
13826 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13828$as_echo "host tool" >&6; }
be01d343
PB
13829 else
13830 # We need a cross tool
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832$as_echo "pre-installed" >&6; }
be01d343
PB
13833 fi
13834fi
4b900473 13835
81ecdfbb
RW
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13837$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13838if test "x${build}" != "x${host}" ; then
2429c060
PB
13839 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
b8025f34 13841 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13843$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13844 else
13845 # Canadian cross, just use what we found
81ecdfbb
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847$as_echo "pre-installed" >&6; }
2429c060 13848 fi
be01d343
PB
13849else
13850 ok=yes
13851 case " ${configdirs} " in
13852 *" binutils "*) ;;
13853 *) ok=no ;;
13854 esac
c6b750e1 13855
be01d343
PB
13856 if test $ok = yes; then
13857 # An in-tree tool is available and we can use it
13858 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13860$as_echo "just compiled" >&6; }
2429c060
PB
13861 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
b8025f34 13863 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13866 elif test "x$target" = "x$host"; then
13867 # We can use an host tool
13868 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13870$as_echo "host tool" >&6; }
be01d343
PB
13871 else
13872 # We need a cross tool
81ecdfbb
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874$as_echo "pre-installed" >&6; }
be01d343 13875 fi
a0da8069 13876fi
54752a6b 13877
81ecdfbb
RW
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13879$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13880if test "x${build}" != "x${host}" ; then
13881 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13886 else
13887 # Canadian cross, just use what we found
81ecdfbb
RW
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889$as_echo "pre-installed" >&6; }
0c24b341
NC
13890 fi
13891else
13892 ok=yes
13893 case " ${configdirs} " in
13894 *" binutils "*) ;;
13895 *) ok=no ;;
13896 esac
13897
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902$as_echo "just compiled" >&6; }
0c24b341
NC
13903 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
13905 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912$as_echo "host tool" >&6; }
0c24b341
NC
13913 else
13914 # We need a cross tool
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916$as_echo "pre-installed" >&6; }
0c24b341
NC
13917 fi
13918fi
13919
54752a6b
NN
13920
13921
be01d343 13922
4b900473 13923
a0da8069
NN
13924# Certain tools may need extra flags.
13925AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13926RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13927NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13928
be01d343
PB
13929# When building target libraries, except in a Canadian cross, we use
13930# the same toolchain as the compiler we just built.
13931COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13932COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13933COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13934if test $host = $build; then
13935 case " $configdirs " in
13936 *" gcc "*)
13937 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13938 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13939 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13940 ;;
13941 esac
13942fi
13943
13944
13945
13946
13947
81ecdfbb
RW
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13949$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13950# Check whether --enable-maintainer-mode was given.
13951if test "${enable_maintainer_mode+set}" = set; then :
13952 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13953else
13954 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13955fi
13956
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13958$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13959
13960
13961if test "$USE_MAINTAINER_MODE" = yes; then
13962 MAINTAINER_MODE_TRUE=
13963 MAINTAINER_MODE_FALSE='#'
13964else
13965 MAINTAINER_MODE_TRUE='#'
13966 MAINTAINER_MODE_FALSE=
c6b750e1 13967fi
3d5e36ae
AO
13968MAINT=$MAINTAINER_MODE_TRUE
13969
1d39f329
NN
13970# ---------------------
13971# GCC bootstrap support
13972# ---------------------
13973
13974# Stage specific cflags for build.
13975stage1_cflags="-g"
13976case $build in
13977 vax-*-*)
13978 case ${GCC} in
13979 yes) stage1_cflags="-g -Wa,-J" ;;
13980 *) stage1_cflags="-g -J" ;;
13981 esac ;;
1d39f329
NN
13982esac
13983
1d89b610 13984# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13985if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13986 saved_CFLAGS="$CFLAGS"
13987
13988 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13989 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13991$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13993/* end confdefs.h. */
13994
2038f525
PB
13995#if (__GNUC__ < 3) \
13996 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13997 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13998#error http://gcc.gnu.org/PR29382
13999#endif
14000
c6b750e1
DJ
14001int
14002main ()
14003{
14004
14005 ;
14006 return 0;
14007}
14008_ACEOF
81ecdfbb
RW
14009if ac_fn_c_try_compile "$LINENO"; then :
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14011$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14012else
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014$as_echo "no" >&6; }
c6b750e1 14015fi
81ecdfbb 14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14017
14018 CFLAGS="$saved_CFLAGS"
14019fi
14020
14021
1d39f329 14022
8a0d8a5c 14023# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14024# Check whether --enable-stage1-checking was given.
14025if test "${enable_stage1_checking+set}" = set; then :
14026 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14027else
5566c1fa 14028 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14029 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14030else
5566c1fa 14031 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14032fi
81ecdfbb 14033fi
8a0d8a5c
PB
14034
14035
c6b750e1 14036
81ecdfbb
RW
14037# Enable -Werror in bootstrap stage2 and later.
14038# Check whether --enable-werror was given.
14039if test "${enable_werror+set}" = set; then :
14040 enableval=$enable_werror;
1d39f329 14041else
a0323144 14042 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14043 enable_werror=yes
79fcd0ec
PB
14044else
14045 enable_werror=no
14046fi
81ecdfbb
RW
14047fi
14048
1a6f2dc7
NN
14049case ${enable_werror} in
14050 yes) stage2_werror_flag="--enable-werror-always" ;;
14051 *) stage2_werror_flag="" ;;
1d39f329
NN
14052esac
14053
14054
e8a5fa9c
RW
14055# Specify what files to not compare during bootstrap.
14056
14057compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14058case "$target" in
14059 hppa*64*-*-hpux*) ;;
14060 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14061esac
1f53ca9a
AO
14062case " $configdirs " in
14063*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14064esac
e8a5fa9c
RW
14065
14066
81ecdfbb
RW
14067ac_config_files="$ac_config_files Makefile"
14068
c6b750e1 14069cat >confcache <<\_ACEOF
a0da8069
NN
14070# This file is a shell script that caches the results of configure
14071# tests run on this system so they can be shared between configure
c6b750e1
DJ
14072# scripts and configure runs, see configure's option --config-cache.
14073# It is not useful on other systems. If it contains results you don't
14074# want to keep, you may remove or edit it.
a0da8069 14075#
c6b750e1
DJ
14076# config.status only pays attention to the cache file if you give it
14077# the --recheck option to rerun configure.
a0da8069 14078#
c6b750e1
DJ
14079# `ac_cv_env_foo' variables (set or unset) will be overridden when
14080# loading this file, other *unset* `ac_cv_foo' will be assigned the
14081# following values.
14082
14083_ACEOF
14084
a0da8069
NN
14085# The following way of writing the cache mishandles newlines in values,
14086# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14087# So, we kill variables containing newlines.
a0da8069
NN
14088# Ultrix sh set writes to stderr and can't be redirected directly,
14089# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14090(
14091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14092 eval ac_val=\$$ac_var
14093 case $ac_val in #(
14094 *${as_nl}*)
14095 case $ac_var in #(
14096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14098 esac
14099 case $ac_var in #(
14100 _ | IFS | as_nl) ;; #(
14101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14102 *) { eval $ac_var=; unset $ac_var;} ;;
14103 esac ;;
14104 esac
14105 done
14106
c6b750e1 14107 (set) 2>&1 |
81ecdfbb
RW
14108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14109 *${as_nl}ac_space=\ *)
14110 # `set' does not quote correctly, so add quotes: double-quote
14111 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14112 sed -n \
14113 "s/'/'\\\\''/g;
14114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14115 ;; #(
c6b750e1
DJ
14116 *)
14117 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14119 ;;
81ecdfbb
RW
14120 esac |
14121 sort
14122) |
c6b750e1 14123 sed '
81ecdfbb 14124 /^ac_cv_env_/b end
c6b750e1 14125 t clear
81ecdfbb 14126 :clear
c6b750e1
DJ
14127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14128 t end
81ecdfbb
RW
14129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14130 :end' >>confcache
14131if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14132 if test -w "$cache_file"; then
14133 test "x$cache_file" != "x/dev/null" &&
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14135$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14136 cat confcache >$cache_file
a0da8069 14137 else
81ecdfbb
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14139$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14140 fi
852e5f18 14141fi
a0da8069 14142rm -f confcache
852e5f18 14143
a0da8069
NN
14144test "x$prefix" = xNONE && prefix=$ac_default_prefix
14145# Let make expand exec_prefix.
14146test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14147
a0da8069
NN
14148# Transform confdefs.h into DEFS.
14149# Protect against shell expansion while executing Makefile rules.
14150# Protect against Makefile macro expansion.
c6b750e1
DJ
14151#
14152# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14153# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14154# look for a macro that doesn't take arguments.
81ecdfbb
RW
14155ac_script='
14156:mline
14157/\\$/{
14158 N
14159 s,\\\n,,
14160 b mline
14161}
c6b750e1 14162t clear
81ecdfbb
RW
14163:clear
14164s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14165t quote
81ecdfbb 14166s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14167t quote
81ecdfbb
RW
14168b any
14169:quote
14170s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14171s/\[/\\&/g
14172s/\]/\\&/g
14173s/\$/$$/g
14174H
14175:any
14176${
14177 g
14178 s/^\n//
14179 s/\n/ /g
14180 p
14181}
14182'
14183DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14184
14185
14186ac_libobjs=
14187ac_ltlibobjs=
14188for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14189 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14191 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14193 # will be set to the directory where LIBOBJS objects are built.
14194 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14195 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14196done
14197LIBOBJS=$ac_libobjs
852e5f18 14198
c6b750e1 14199LTLIBOBJS=$ac_ltlibobjs
376a0e54 14200
cac3d6c4 14201
c6b750e1
DJ
14202
14203: ${CONFIG_STATUS=./config.status}
81ecdfbb 14204ac_write_fail=0
c6b750e1
DJ
14205ac_clean_files_save=$ac_clean_files
14206ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14208$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14209as_write_fail=0
14210cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14211#! $SHELL
14212# Generated by $as_me.
a0da8069 14213# Run this file to recreate the current configuration.
a0da8069 14214# Compiler output produced by configure, useful for debugging
c6b750e1 14215# configure, is in config.log if it exists.
376a0e54 14216
c6b750e1
DJ
14217debug=false
14218ac_cs_recheck=false
14219ac_cs_silent=false
c6b750e1 14220
81ecdfbb
RW
14221SHELL=\${CONFIG_SHELL-$SHELL}
14222export SHELL
14223_ASEOF
14224cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14225## -------------------- ##
14226## M4sh Initialization. ##
14227## -------------------- ##
14228
14229# Be more Bourne compatible
14230DUALCASE=1; export DUALCASE # for MKS sh
14231if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14232 emulate sh
14233 NULLCMD=:
81ecdfbb 14234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14235 # is contrary to our usage. Disable this feature.
14236 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14237 setopt NO_GLOB_SUBST
14238else
14239 case `(set -o) 2>/dev/null` in #(
14240 *posix*) :
14241 set -o posix ;; #(
14242 *) :
14243 ;;
14244esac
c6b750e1 14245fi
c6b750e1 14246
81ecdfbb
RW
14247
14248as_nl='
14249'
14250export as_nl
14251# Printing a long string crashes Solaris 7 /usr/bin/printf.
14252as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14253as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14254as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14255# Prefer a ksh shell builtin over an external printf program on Solaris,
14256# but without wasting forks for bash or zsh.
14257if test -z "$BASH_VERSION$ZSH_VERSION" \
14258 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14259 as_echo='print -r --'
14260 as_echo_n='print -rn --'
14261elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14262 as_echo='printf %s\n'
14263 as_echo_n='printf %s'
14264else
14265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14266 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14267 as_echo_n='/usr/ucb/echo -n'
14268 else
14269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14270 as_echo_n_body='eval
14271 arg=$1;
14272 case $arg in #(
14273 *"$as_nl"*)
14274 expr "X$arg" : "X\\(.*\\)$as_nl";
14275 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14276 esac;
14277 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14278 '
14279 export as_echo_n_body
14280 as_echo_n='sh -c $as_echo_n_body as_echo'
14281 fi
14282 export as_echo_body
14283 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14284fi
14285
81ecdfbb
RW
14286# The user is always right.
14287if test "${PATH_SEPARATOR+set}" != set; then
14288 PATH_SEPARATOR=:
14289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14290 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14291 PATH_SEPARATOR=';'
14292 }
14293fi
14294
14295
14296# IFS
14297# We need space, tab and new line, in precisely that order. Quoting is
14298# there to prevent editors from complaining about space-tab.
14299# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14300# splitting by setting IFS to empty value.)
14301IFS=" "" $as_nl"
14302
14303# Find who we are. Look in the path if we contain no directory separator.
14304case $0 in #((
14305 *[\\/]* ) as_myself=$0 ;;
14306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307for as_dir in $PATH
14308do
14309 IFS=$as_save_IFS
14310 test -z "$as_dir" && as_dir=.
14311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14312 done
14313IFS=$as_save_IFS
14314
14315 ;;
14316esac
14317# We did not find ourselves, most probably we were run as `sh COMMAND'
14318# in which case we are not to be found in the path.
14319if test "x$as_myself" = x; then
14320 as_myself=$0
14321fi
14322if test ! -f "$as_myself"; then
14323 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14324 exit 1
14325fi
c6b750e1 14326
81ecdfbb
RW
14327# Unset variables that we do not need and which cause bugs (e.g. in
14328# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14329# suppresses any "Segmentation fault" message there. '((' could
14330# trigger a bug in pdksh 5.2.14.
14331for as_var in BASH_ENV ENV MAIL MAILPATH
14332do eval test x\${$as_var+set} = xset \
14333 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14334done
c6b750e1
DJ
14335PS1='$ '
14336PS2='> '
14337PS4='+ '
14338
14339# NLS nuisances.
81ecdfbb
RW
14340LC_ALL=C
14341export LC_ALL
14342LANGUAGE=C
14343export LANGUAGE
14344
14345# CDPATH.
14346(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14347
14348
14349# as_fn_error ERROR [LINENO LOG_FD]
14350# ---------------------------------
14351# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14352# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14353# script with status $?, using 1 if that was 0.
14354as_fn_error ()
14355{
14356 as_status=$?; test $as_status -eq 0 && as_status=1
14357 if test "$3"; then
14358 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14359 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14360 fi
81ecdfbb
RW
14361 $as_echo "$as_me: error: $1" >&2
14362 as_fn_exit $as_status
14363} # as_fn_error
14364
14365
14366# as_fn_set_status STATUS
14367# -----------------------
14368# Set $? to STATUS, without forking.
14369as_fn_set_status ()
14370{
14371 return $1
14372} # as_fn_set_status
14373
14374# as_fn_exit STATUS
14375# -----------------
14376# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14377as_fn_exit ()
14378{
14379 set +e
14380 as_fn_set_status $1
14381 exit $1
14382} # as_fn_exit
14383
14384# as_fn_unset VAR
14385# ---------------
14386# Portably unset VAR.
14387as_fn_unset ()
14388{
14389 { eval $1=; unset $1;}
14390}
14391as_unset=as_fn_unset
14392# as_fn_append VAR VALUE
14393# ----------------------
14394# Append the text in VALUE to the end of the definition contained in VAR. Take
14395# advantage of any shell optimizations that allow amortized linear growth over
14396# repeated appends, instead of the typical quadratic growth present in naive
14397# implementations.
14398if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14399 eval 'as_fn_append ()
14400 {
14401 eval $1+=\$2
14402 }'
14403else
14404 as_fn_append ()
14405 {
14406 eval $1=\$$1\$2
14407 }
14408fi # as_fn_append
14409
14410# as_fn_arith ARG...
14411# ------------------
14412# Perform arithmetic evaluation on the ARGs, and store the result in the
14413# global $as_val. Take advantage of shells that can avoid forks. The arguments
14414# must be portable across $(()) and expr.
14415if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14416 eval 'as_fn_arith ()
14417 {
14418 as_val=$(( $* ))
14419 }'
14420else
14421 as_fn_arith ()
14422 {
14423 as_val=`expr "$@" || test $? -eq 1`
14424 }
14425fi # as_fn_arith
14426
c6b750e1 14427
81ecdfbb
RW
14428if expr a : '\(a\)' >/dev/null 2>&1 &&
14429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14430 as_expr=expr
14431else
14432 as_expr=false
14433fi
14434
81ecdfbb 14435if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14436 as_basename=basename
14437else
14438 as_basename=false
14439fi
14440
81ecdfbb
RW
14441if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14442 as_dirname=dirname
14443else
14444 as_dirname=false
14445fi
c6b750e1 14446
81ecdfbb 14447as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14448$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14449 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14451$as_echo X/"$0" |
14452 sed '/^.*\/\([^/][^/]*\)\/*$/{
14453 s//\1/
14454 q
14455 }
14456 /^X\/\(\/\/\)$/{
14457 s//\1/
14458 q
14459 }
14460 /^X\/\(\/\).*/{
14461 s//\1/
14462 q
14463 }
14464 s/.*/./; q'`
c6b750e1 14465
c6b750e1
DJ
14466# Avoid depending upon Character Ranges.
14467as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14469as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14470as_cr_digits='0123456789'
14471as_cr_alnum=$as_cr_Letters$as_cr_digits
14472
81ecdfbb
RW
14473ECHO_C= ECHO_N= ECHO_T=
14474case `echo -n x` in #(((((
14475-n*)
14476 case `echo 'xy\c'` in
14477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14478 xy) ECHO_C='\c';;
14479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14480 ECHO_T=' ';;
14481 esac;;
14482*)
14483 ECHO_N='-n';;
c6b750e1
DJ
14484esac
14485
81ecdfbb
RW
14486rm -f conf$$ conf$$.exe conf$$.file
14487if test -d conf$$.dir; then
14488 rm -f conf$$.dir/conf$$.file
c6b750e1 14489else
81ecdfbb
RW
14490 rm -f conf$$.dir
14491 mkdir conf$$.dir 2>/dev/null
c6b750e1 14492fi
81ecdfbb
RW
14493if (echo >conf$$.file) 2>/dev/null; then
14494 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14495 as_ln_s='ln -s'
81ecdfbb
RW
14496 # ... but there are two gotchas:
14497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14499 # In both cases, we have to default to `cp -p'.
14500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14501 as_ln_s='cp -p'
14502 elif ln conf$$.file conf$$ 2>/dev/null; then
14503 as_ln_s=ln
14504 else
14505 as_ln_s='cp -p'
c6b750e1 14506 fi
c6b750e1
DJ
14507else
14508 as_ln_s='cp -p'
14509fi
81ecdfbb
RW
14510rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14511rmdir conf$$.dir 2>/dev/null
14512
14513
14514# as_fn_mkdir_p
14515# -------------
14516# Create "$as_dir" as a directory, including parents if necessary.
14517as_fn_mkdir_p ()
14518{
14519
14520 case $as_dir in #(
14521 -*) as_dir=./$as_dir;;
14522 esac
14523 test -d "$as_dir" || eval $as_mkdir_p || {
14524 as_dirs=
14525 while :; do
14526 case $as_dir in #(
14527 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14528 *) as_qdir=$as_dir;;
14529 esac
14530 as_dirs="'$as_qdir' $as_dirs"
14531 as_dir=`$as_dirname -- "$as_dir" ||
14532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$as_dir" : 'X\(//\)[^/]' \| \
14534 X"$as_dir" : 'X\(//\)$' \| \
14535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14536$as_echo X"$as_dir" |
14537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14538 s//\1/
14539 q
14540 }
14541 /^X\(\/\/\)[^/].*/{
14542 s//\1/
14543 q
14544 }
14545 /^X\(\/\/\)$/{
14546 s//\1/
14547 q
14548 }
14549 /^X\(\/\).*/{
14550 s//\1/
14551 q
14552 }
14553 s/.*/./; q'`
14554 test -d "$as_dir" && break
14555 done
14556 test -z "$as_dirs" || eval "mkdir $as_dirs"
14557 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14558
c6b750e1 14559
81ecdfbb 14560} # as_fn_mkdir_p
c6b750e1 14561if mkdir -p . 2>/dev/null; then
81ecdfbb 14562 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14563else
14564 test -d ./-p && rmdir ./-p
14565 as_mkdir_p=false
14566fi
14567
81ecdfbb
RW
14568if test -x / >/dev/null 2>&1; then
14569 as_test_x='test -x'
14570else
14571 if ls -dL / >/dev/null 2>&1; then
14572 as_ls_L_option=L
14573 else
14574 as_ls_L_option=
14575 fi
14576 as_test_x='
14577 eval sh -c '\''
14578 if test -d "$1"; then
14579 test -d "$1/.";
14580 else
14581 case $1 in #(
14582 -*)set "./$1";;
14583 esac;
14584 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14585 ???[sx]*):;;*)false;;esac;fi
14586 '\'' sh
14587 '
14588fi
14589as_executable_p=$as_test_x
c6b750e1
DJ
14590
14591# Sed expression to map a string onto a valid CPP name.
14592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14593
14594# Sed expression to map a string onto a valid variable name.
14595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14596
14597
c6b750e1 14598exec 6>&1
81ecdfbb
RW
14599## ----------------------------------- ##
14600## Main body of $CONFIG_STATUS script. ##
14601## ----------------------------------- ##
14602_ASEOF
14603test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14604
14605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14607# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14608# values after options handling.
14609ac_log="
c6b750e1 14610This file was extended by $as_me, which was
81ecdfbb 14611generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14612
14613 CONFIG_FILES = $CONFIG_FILES
14614 CONFIG_HEADERS = $CONFIG_HEADERS
14615 CONFIG_LINKS = $CONFIG_LINKS
14616 CONFIG_COMMANDS = $CONFIG_COMMANDS
14617 $ $0 $@
14618
81ecdfbb
RW
14619on `(hostname || uname -n) 2>/dev/null | sed 1q`
14620"
14621
c6b750e1
DJ
14622_ACEOF
14623
81ecdfbb
RW
14624case $ac_config_files in *"
14625"*) set x $ac_config_files; shift; ac_config_files=$*;;
14626esac
c6b750e1 14627
c6b750e1 14628
c6b750e1 14629
81ecdfbb
RW
14630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14631# Files that config.status was made for.
14632config_files="$ac_config_files"
c6b750e1 14633
81ecdfbb 14634_ACEOF
c6b750e1 14635
81ecdfbb 14636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14637ac_cs_usage="\
81ecdfbb
RW
14638\`$as_me' instantiates files and other configuration actions
14639from templates according to the current configuration. Unless the files
14640and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14641
81ecdfbb 14642Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14643
14644 -h, --help print this help, then exit
81ecdfbb
RW
14645 -V, --version print version number and configuration settings, then exit
14646 -q, --quiet, --silent
14647 do not print progress messages
c6b750e1
DJ
14648 -d, --debug don't remove temporary files
14649 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14650 --file=FILE[:TEMPLATE]
14651 instantiate the configuration file FILE
c6b750e1
DJ
14652
14653Configuration files:
14654$config_files
14655
81ecdfbb 14656Report bugs to the package provider."
c6b750e1 14657
81ecdfbb
RW
14658_ACEOF
14659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14660ac_cs_version="\\
14661config.status
81ecdfbb
RW
14662configured by $0, generated by GNU Autoconf 2.64,
14663 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14664
81ecdfbb 14665Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14666This config.status script is free software; the Free Software Foundation
14667gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14668
14669ac_pwd='$ac_pwd'
14670srcdir='$srcdir'
14671INSTALL='$INSTALL'
8e957354 14672AWK='$AWK'
81ecdfbb 14673test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14674_ACEOF
14675
81ecdfbb
RW
14676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14678ac_need_defaults=:
14679while test $# != 0
a0da8069 14680do
c6b750e1
DJ
14681 case $1 in
14682 --*=*)
81ecdfbb
RW
14683 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14684 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14685 ac_shift=:
14686 ;;
81ecdfbb 14687 *)
c6b750e1
DJ
14688 ac_option=$1
14689 ac_optarg=$2
14690 ac_shift=shift
14691 ;;
c6b750e1
DJ
14692 esac
14693
14694 case $ac_option in
14695 # Handling of the options.
a0da8069 14696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14697 ac_cs_recheck=: ;;
81ecdfbb
RW
14698 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14699 $as_echo "$ac_cs_version"; exit ;;
14700 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14701 debug=: ;;
14702 --file | --fil | --fi | --f )
14703 $ac_shift
81ecdfbb
RW
14704 case $ac_optarg in
14705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14706 esac
14707 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14708 ac_need_defaults=false;;
81ecdfbb
RW
14709 --he | --h | --help | --hel | -h )
14710 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14713 ac_cs_silent=: ;;
14714
14715 # This is an error.
81ecdfbb
RW
14716 -*) as_fn_error "unrecognized option: \`$1'
14717Try \`$0 --help' for more information." ;;
c6b750e1 14718
81ecdfbb
RW
14719 *) as_fn_append ac_config_targets " $1"
14720 ac_need_defaults=false ;;
c6b750e1 14721
376a0e54 14722 esac
c6b750e1 14723 shift
376a0e54
CM
14724done
14725
c6b750e1 14726ac_configure_extra_args=
376a0e54 14727
c6b750e1
DJ
14728if $ac_cs_silent; then
14729 exec 6>/dev/null
14730 ac_configure_extra_args="$ac_configure_extra_args --silent"
14731fi
376a0e54 14732
c6b750e1 14733_ACEOF
81ecdfbb 14734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14735if \$ac_cs_recheck; then
81ecdfbb
RW
14736 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14737 shift
14738 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14739 CONFIG_SHELL='$SHELL'
14740 export CONFIG_SHELL
14741 exec "\$@"
c6b750e1
DJ
14742fi
14743
14744_ACEOF
81ecdfbb
RW
14745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746exec 5>>config.log
14747{
14748 echo
14749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14750## Running $as_me. ##
14751_ASBOX
14752 $as_echo "$ac_log"
14753} >&5
c6b750e1 14754
81ecdfbb
RW
14755_ACEOF
14756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14757#
14758# INIT-COMMANDS
14759#
14760extrasub_build="$extrasub_build"
14761 extrasub_host="$extrasub_host"
14762 extrasub_target="$extrasub_target"
14763
81ecdfbb 14764_ACEOF
c6b750e1 14765
81ecdfbb 14766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14767
81ecdfbb 14768# Handling of arguments.
c6b750e1
DJ
14769for ac_config_target in $ac_config_targets
14770do
81ecdfbb
RW
14771 case $ac_config_target in
14772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14773
14774 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14775 esac
14776done
14777
81ecdfbb 14778
c6b750e1
DJ
14779# If the user did not use the arguments to specify the items to instantiate,
14780# then the envvar interface is used. Set only those that are not.
14781# We use the long form for the default assignment because of an extremely
14782# bizarre bug on SunOS 4.1.3.
14783if $ac_need_defaults; then
14784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14785fi
14786
14787# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14788# simply because there is no reason against having it here, and in addition,
c6b750e1 14789# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14790# Hook for its removal unless debugging.
14791# Note that there is a small window in which the directory will not be cleaned:
14792# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14793$debug ||
14794{
81ecdfbb
RW
14795 tmp=
14796 trap 'exit_status=$?
14797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14798' 0
14799 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14800}
c6b750e1
DJ
14801# Create a (secure) tmp directory for tmp files.
14802
14803{
81ecdfbb 14804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14805 test -n "$tmp" && test -d "$tmp"
14806} ||
14807{
81ecdfbb
RW
14808 tmp=./conf$$-$RANDOM
14809 (umask 077 && mkdir "$tmp")
14810} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14811
14812# Set up the scripts for CONFIG_FILES section.
14813# No need to generate them if there are no CONFIG_FILES.
14814# This happens for instance with `./config.status config.h'.
14815if test -n "$CONFIG_FILES"; then
14816
14817if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14818 ac_cs_awk_getline=:
14819 ac_cs_awk_pipe_init=
14820 ac_cs_awk_read_file='
14821 while ((getline aline < (F[key])) > 0)
14822 print(aline)
14823 close(F[key])'
14824 ac_cs_awk_pipe_fini=
14825else
14826 ac_cs_awk_getline=false
14827 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14828 ac_cs_awk_read_file='
14829 print "|#_!!_#|"
14830 print "cat " F[key] " &&"
14831 '$ac_cs_awk_pipe_init
14832 # The final `:' finishes the AND list.
14833 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14834fi
14835ac_cr=`echo X | tr X '\015'`
14836# On cygwin, bash can eat \r inside `` if the user requested igncr.
14837# But we know of no other shell where ac_cr would be empty at this
14838# point, so we can use a bashism as a fallback.
14839if test "x$ac_cr" = x; then
14840 eval ac_cr=\$\'\\r\'
14841fi
14842ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14843if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14844 ac_cs_awk_cr='\r'
14845else
14846 ac_cs_awk_cr=$ac_cr
14847fi
14848
14849echo 'BEGIN {' >"$tmp/subs1.awk" &&
14850_ACEOF
14851
14852# Create commands to substitute file output variables.
c6b750e1 14853{
81ecdfbb
RW
14854 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14855 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14856 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14857 echo "_ACAWK" &&
14858 echo "_ACEOF"
14859} >conf$$files.sh &&
14860. ./conf$$files.sh ||
14861 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14862rm -f conf$$files.sh
c6b750e1 14863
81ecdfbb
RW
14864{
14865 echo "cat >conf$$subs.awk <<_ACEOF" &&
14866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14867 echo "_ACEOF"
14868} >conf$$subs.sh ||
14869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14871ac_delim='%!_!# '
14872for ac_last_try in false false false false false :; do
14873 . ./conf$$subs.sh ||
14874 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14875
14876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14877 if test $ac_delim_n = $ac_delim_num; then
14878 break
14879 elif $ac_last_try; then
14880 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14881 else
14882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14883 fi
14884done
14885rm -f conf$$subs.sh
14886
14887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14889_ACEOF
81ecdfbb
RW
14890sed -n '
14891h
14892s/^/S["/; s/!.*/"]=/
14893p
14894g
14895s/^[^!]*!//
14896:repl
14897t repl
14898s/'"$ac_delim"'$//
14899t delim
14900:nl
14901h
14902s/\(.\{148\}\).*/\1/
14903t more1
14904s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14905p
14906n
14907b repl
14908:more1
14909s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14910p
14911g
14912s/.\{148\}//
14913t nl
14914:delim
14915h
14916s/\(.\{148\}\).*/\1/
14917t more2
14918s/["\\]/\\&/g; s/^/"/; s/$/"/
14919p
14920b
14921:more2
14922s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14923p
14924g
14925s/.\{148\}//
14926t delim
14927' <conf$$subs.awk | sed '
14928/^[^""]/{
14929 N
14930 s/\n//
14931}
14932' >>$CONFIG_STATUS || ac_write_fail=1
14933rm -f conf$$subs.awk
14934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14935_ACAWK
14936cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14937 for (key in S) S_is_set[key] = 1
14938 FS = "\a"
14939 \$ac_cs_awk_pipe_init
14940}
14941{
14942 line = $ 0
14943 nfields = split(line, field, "@")
14944 substed = 0
14945 len = length(field[1])
14946 for (i = 2; i < nfields; i++) {
14947 key = field[i]
14948 keylen = length(key)
14949 if (S_is_set[key]) {
14950 value = S[key]
14951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14952 len += length(value) + length(field[++i])
14953 substed = 1
14954 } else
14955 len += 1 + keylen
14956 }
14957 if (nfields == 3 && !substed) {
14958 key = field[2]
14959 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14960 \$ac_cs_awk_read_file
14961 next
14962 }
14963 }
14964 print line
14965}
14966\$ac_cs_awk_pipe_fini
14967_ACAWK
14968_ACEOF
14969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14971 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14972else
14973 cat
14974fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14975 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14976_ACEOF
14977
14978# VPATH may cause trouble with some makes, so we remove $(srcdir),
14979# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14980# trailing colons and then remove the whole line if VPATH becomes empty
14981# (actually we leave an empty line to preserve line numbers).
14982if test "x$srcdir" = x.; then
14983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14984s/:*\$(srcdir):*/:/
14985s/:*\${srcdir}:*/:/
14986s/:*@srcdir@:*/:/
14987s/^\([^=]*=[ ]*\):*/\1/
14988s/:*$//
14989s/^[^=]*=[ ]*$//
14990}'
14991fi
c6b750e1 14992
81ecdfbb
RW
14993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14994fi # test -n "$CONFIG_FILES"
c6b750e1 14995
c6b750e1 14996
81ecdfbb
RW
14997eval set X " :F $CONFIG_FILES "
14998shift
14999for ac_tag
15000do
15001 case $ac_tag in
15002 :[FHLC]) ac_mode=$ac_tag; continue;;
15003 esac
15004 case $ac_mode$ac_tag in
15005 :[FHL]*:*);;
15006 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15007 :[FH]-) ac_tag=-:-;;
15008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15009 esac
15010 ac_save_IFS=$IFS
15011 IFS=:
15012 set x $ac_tag
15013 IFS=$ac_save_IFS
15014 shift
15015 ac_file=$1
15016 shift
252b5132 15017
81ecdfbb
RW
15018 case $ac_mode in
15019 :L) ac_source=$1;;
15020 :[FH])
15021 ac_file_inputs=
15022 for ac_f
15023 do
15024 case $ac_f in
15025 -) ac_f="$tmp/stdin";;
15026 *) # Look for the file first in the build tree, then in the source tree
15027 # (if the path is not absolute). The absolute path cannot be DOS-style,
15028 # because $ac_f cannot contain `:'.
15029 test -f "$ac_f" ||
15030 case $ac_f in
15031 [\\/$]*) false;;
15032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15033 esac ||
15034 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15035 esac
15036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15037 as_fn_append ac_file_inputs " '$ac_f'"
15038 done
c6b750e1 15039
81ecdfbb
RW
15040 # Let's still pretend it is `configure' which instantiates (i.e., don't
15041 # use $as_me), people would be surprised to read:
15042 # /* config.h. Generated by config.status. */
15043 configure_input='Generated from '`
15044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15045 `' by configure.'
15046 if test x"$ac_file" != x-; then
15047 configure_input="$ac_file. $configure_input"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15049$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15050 fi
81ecdfbb
RW
15051 # Neutralize special characters interpreted by sed in replacement strings.
15052 case $configure_input in #(
15053 *\&* | *\|* | *\\* )
15054 ac_sed_conf_input=`$as_echo "$configure_input" |
15055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15056 *) ac_sed_conf_input=$configure_input;;
15057 esac
cac3d6c4 15058
81ecdfbb
RW
15059 case $ac_tag in
15060 *:-:* | *:-) cat >"$tmp/stdin" \
15061 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15062 esac
15063 ;;
a0da8069 15064 esac
252b5132 15065
81ecdfbb 15066 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15067$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15068 X"$ac_file" : 'X\(//\)[^/]' \| \
15069 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15071$as_echo X"$ac_file" |
15072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15073 s//\1/
15074 q
15075 }
15076 /^X\(\/\/\)[^/].*/{
15077 s//\1/
15078 q
15079 }
15080 /^X\(\/\/\)$/{
15081 s//\1/
15082 q
15083 }
15084 /^X\(\/\).*/{
15085 s//\1/
15086 q
15087 }
15088 s/.*/./; q'`
15089 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15090 ac_builddir=.
252b5132 15091
81ecdfbb
RW
15092case "$ac_dir" in
15093.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15094*)
15095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15096 # A ".." for each directory in $ac_dir_suffix.
15097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15098 case $ac_top_builddir_sub in
15099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15101 esac ;;
15102esac
15103ac_abs_top_builddir=$ac_pwd
15104ac_abs_builddir=$ac_pwd$ac_dir_suffix
15105# for backward compatibility:
15106ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15107
15108case $srcdir in
81ecdfbb 15109 .) # We are building in place.
c6b750e1 15110 ac_srcdir=.
81ecdfbb
RW
15111 ac_top_srcdir=$ac_top_builddir_sub
15112 ac_abs_top_srcdir=$ac_pwd ;;
15113 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15114 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15115 ac_top_srcdir=$srcdir
15116 ac_abs_top_srcdir=$srcdir ;;
15117 *) # Relative name.
15118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15119 ac_top_srcdir=$ac_top_build_prefix$srcdir
15120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15121esac
81ecdfbb 15122ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15123
252b5132 15124
81ecdfbb
RW
15125 case $ac_mode in
15126 :F)
15127 #
15128 # CONFIG_FILE
15129 #
c6b750e1
DJ
15130
15131 case $INSTALL in
15132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15134 esac
81ecdfbb 15135_ACEOF
252b5132 15136
81ecdfbb
RW
15137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15138# If the template does not know about datarootdir, expand it.
15139# FIXME: This hack should be removed a few years after 2.60.
15140ac_datarootdir_hack=; ac_datarootdir_seen=
15141ac_sed_dataroot='
15142/datarootdir/ {
15143 p
15144 q
15145}
15146/@datadir@/p
15147/@docdir@/p
15148/@infodir@/p
15149/@localedir@/p
15150/@mandir@/p'
15151case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15152*datarootdir*) ac_datarootdir_seen=yes;;
15153*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15155$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15156_ACEOF
81ecdfbb
RW
15157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15158 ac_datarootdir_hack='
15159 s&@datadir@&$datadir&g
15160 s&@docdir@&$docdir&g
15161 s&@infodir@&$infodir&g
15162 s&@localedir@&$localedir&g
15163 s&@mandir@&$mandir&g
15164 s&\\\${datarootdir}&$datarootdir&g' ;;
15165esac
15166_ACEOF
15167
15168# Neutralize VPATH when `$srcdir' = `.'.
15169# Shell code in configure.ac might set extrasub.
15170# FIXME: do we really want to maintain this feature?
15171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15173$extrasub
15174_ACEOF
81ecdfbb 15175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15176:t
15177/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15178s|@configure_input@|$ac_sed_conf_input|;t t
15179s&@top_builddir@&$ac_top_builddir_sub&;t t
15180s&@top_build_prefix@&$ac_top_build_prefix&;t t
15181s&@srcdir@&$ac_srcdir&;t t
15182s&@abs_srcdir@&$ac_abs_srcdir&;t t
15183s&@top_srcdir@&$ac_top_srcdir&;t t
15184s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15185s&@builddir@&$ac_builddir&;t t
15186s&@abs_builddir@&$ac_abs_builddir&;t t
15187s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15188s&@INSTALL@&$ac_INSTALL&;t t
15189$ac_datarootdir_hack
15190"
15191eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15192if $ac_cs_awk_getline; then
15193 $AWK -f "$tmp/subs.awk"
15194else
15195 $AWK -f "$tmp/subs.awk" | $SHELL
15196fi >$tmp/out \
15197 || as_fn_error "could not create $ac_file" "$LINENO" 5
15198
15199test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15203which seems to be undefined. Please make sure it is defined." >&5
15204$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15205which seems to be undefined. Please make sure it is defined." >&2;}
15206
15207 rm -f "$tmp/stdin"
15208 case $ac_file in
15209 -) cat "$tmp/out" && rm -f "$tmp/out";;
15210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15211 esac \
15212 || as_fn_error "could not create $ac_file" "$LINENO" 5
15213 ;;
c148b4cb 15214
c148b4cb 15215
c148b4cb 15216
81ecdfbb
RW
15217 esac
15218
06a51eac
RW
15219
15220 case $ac_file$ac_mode in
15221 "Makefile":F) sed "$extrasub_build" Makefile |
15222 sed "$extrasub_host" |
15223 sed "$extrasub_target" > mf$$
15224 mv -f mf$$ Makefile ;;
15225
15226 esac
81ecdfbb
RW
15227done # for ac_tag
15228
15229
15230as_fn_exit 0
c6b750e1 15231_ACEOF
c6b750e1
DJ
15232ac_clean_files=$ac_clean_files_save
15233
81ecdfbb
RW
15234test $ac_write_fail = 0 ||
15235 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15236
c6b750e1
DJ
15237
15238# configure is writing to config.log, and then calls config.status.
15239# config.status does its own redirection, appending to config.log.
15240# Unfortunately, on DOS this fails, as config.log is still kept open
15241# by configure, so config.status won't be able to write to it; its
15242# output is simply discarded. So we exec the FD to /dev/null,
15243# effectively closing config.log, so it can be properly (re)opened and
15244# appended to by config.status. When coming back to configure, we
15245# need to make the FD available again.
15246if test "$no_create" != yes; then
15247 ac_cs_success=:
15248 ac_config_status_args=
15249 test "$silent" = yes &&
15250 ac_config_status_args="$ac_config_status_args --quiet"
15251 exec 5>/dev/null
15252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15253 exec 5>>config.log
15254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15255 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15256 $ac_cs_success || as_fn_exit $?
15257fi
15258if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15260$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15261fi
c148b4cb 15262
This page took 1.507373 seconds and 4 git commands to generate.