]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
[hsa testsuite] Adjust libgomp tests that do not work on host fallback
[thirdparty/gcc.git] / configure
CommitLineData
71ab34df 1#! /bin/sh
71ab34df 2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 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.
71ab34df 8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b30fcfae 14
cd9a469c 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 :
b30fcfae 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b30fcfae 31fi
b30fcfae 32
cd9a469c 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 }
b30fcfae 79fi
80
81
cd9a469c 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
b30fcfae 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 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'\" &&
b181f265 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
cd9a469c 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
b30fcfae 184do
cd9a469c 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."
b30fcfae 228 else
cd9a469c 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."
b30fcfae 233 fi
cd9a469c 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
b30fcfae 263
cd9a469c 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
b30fcfae 375 as_expr=expr
376else
377 as_expr=false
378fi
379
cd9a469c 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 381 as_basename=basename
382else
383 as_basename=false
384fi
385
cd9a469c 386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
b30fcfae 391
cd9a469c 392as_me=`$as_basename -- "$0" ||
b30fcfae 393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
b30fcfae 410
5084f823 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
570af75a 417
b30fcfae 418
cd9a469c 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 |
b30fcfae 428 sed '
cd9a469c 429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b30fcfae 433 N
cd9a469c 434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b30fcfae 436 t loop
cd9a469c 437 s/-\n.*//
b30fcfae 438 ' >$as_me.lineno &&
cd9a469c 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; }
b30fcfae 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
cd9a469c 444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b30fcfae 446 # Exit status is that of the last command.
447 exit
448}
449
cd9a469c 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';;
b30fcfae 461esac
462
cd9a469c 463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b30fcfae 466else
cd9a469c 467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b30fcfae 469fi
cd9a469c 470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 472 as_ln_s='ln -s'
cd9a469c 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'
5084f823 483 fi
b30fcfae 484else
485 as_ln_s='cp -p'
486fi
cd9a469c 487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
b30fcfae 489
490if mkdir -p . 2>/dev/null; then
cd9a469c 491 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
cd9a469c 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
a83ffacf 519
b30fcfae 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
cd9a469c 527exec 7<&0 </dev/null 6>&1
b30fcfae 528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
b30fcfae 534#
535# Initializations.
536#
71ab34df 537ac_default_prefix=/usr/local
cd9a469c 538ac_clean_files=
b30fcfae 539ac_config_libobj_dir=.
cd9a469c 540LIBOBJS=
b30fcfae 541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
5084f823 545
b30fcfae 546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
cd9a469c 552PACKAGE_URL=
b30fcfae 553
554ac_unique_file="move-if-change"
cd9a469c 555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
2bd17377 559host_shared
cd9a469c 560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
3f71364d 574READELF_FOR_TARGET
cd9a469c 575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
fc740d70 577OBJCOPY_FOR_TARGET
cd9a469c 578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
5ff5b630 584GOC_FOR_TARGET
cd9a469c 585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
3f71364d 590READELF
cd9a469c 591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
cd9a469c 611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
5ff5b630 617GOC_FOR_BUILD
cd9a469c 618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
1fda3360 627target_configdirs
cd9a469c 628configdirs
cd9a469c 629build_configdirs
cd9a469c 630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
372a3f1e 637target_configargs
638host_configargs
639build_configargs
719faf1c 640BUILD_CONFIG
ed9516f5 641LDFLAGS_FOR_TARGET
cd9a469c 642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
c850ece7 646extra_host_zlib_configure_flags
7bfefa9d 647extra_host_libiberty_configure_flags
944792ef 648stage1_languages
1015a063 649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
87e20041 651islinc
429cca51 652isllibs
45fc5243 653islver
cd9a469c 654poststage1_ldflags
d6dfe18a 655poststage1_libs
cd9a469c 656stage1_ldflags
13687c85 657stage1_libs
e4128452 658extra_isl_gmp_configure_flags
cd9a469c 659extra_mpc_mpfr_configure_flags
660extra_mpc_gmp_configure_flags
661extra_mpfr_configure_flags
662gmpinc
663gmplibs
664do_compare
665GNATMAKE
666GNATBIND
667ac_ct_CXX
668CXXFLAGS
669CXX
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
d7e52ac9 677EXTRA_CONFIGARGS_LIBJAVA
d3a7dd32 678extra_liboffloadmic_configure_flags
cd9a469c 679target_subdir
680host_subdir
681build_subdir
682build_libsubdir
b181f265 683AWK
684SED
cd9a469c 685LN_S
686LN
687INSTALL_DATA
688INSTALL_SCRIPT
689INSTALL_PROGRAM
690target_os
691target_vendor
692target_cpu
693target
694host_os
695host_vendor
696host_cpu
697host
698target_noncanonical
699host_noncanonical
700build_noncanonical
701build_os
702build_vendor
703build_cpu
704build
705TOPLEVEL_CONFIGURE_ARGUMENTS
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files='serialization_dependencies
745host_makefile_frag
746target_makefile_frag
747alphaieee_frag
748ospace_frag'
749ac_user_opts='
750enable_option_checking
751with_build_libsubdir
6406d366 752with_system_zlib
a3d93be3 753enable_as_accelerator_for
754enable_offload_targets
cd9a469c 755enable_gold
1e369e5f 756enable_ld
afb6adb9 757enable_compressed_debug_sections
d9d975ae 758enable_libquadmath
759enable_libquadmath_support
cd9a469c 760enable_libada
761enable_libssp
a3ba808f 762enable_libstdcxx
d3a7dd32 763enable_liboffloadmic
d7e52ac9 764enable_static_libjava
6c59dfa4 765enable_bootstrap
cd9a469c 766with_mpc
767with_mpc_include
768with_mpc_lib
769with_mpfr_dir
770with_mpfr
771with_mpfr_include
772with_mpfr_lib
773with_gmp_dir
774with_gmp
775with_gmp_include
776with_gmp_lib
cd9a469c 777with_stage1_libs
13687c85 778with_stage1_ldflags
cd9a469c 779with_boot_libs
d6dfe18a 780with_boot_ldflags
87e20041 781with_isl
782with_isl_include
783with_isl_lib
784enable_isl_version_check
7bfefa9d 785enable_lto
1015a063 786enable_linker_plugin_configure_flags
787enable_linker_plugin_flags
cd9a469c 788enable_stage1_languages
789enable_objc_gc
790with_build_sysroot
791with_debug_prefix_map
a2059f7a 792with_build_config
ee055341 793enable_vtable_verify
cd9a469c 794enable_serial_configure
795with_build_time_tools
796enable_maintainer_mode
797enable_stage1_checking
798enable_werror
2bd17377 799enable_host_shared
cd9a469c 800'
801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CXX
810CXXFLAGS
811CCC
372a3f1e 812build_configargs
813host_configargs
814target_configargs
cd9a469c 815AR
816AS
817DLLTOOL
818LD
819LIPO
820NM
821RANLIB
822STRIP
823WINDRES
824WINDMC
825OBJCOPY
826OBJDUMP
3f71364d 827READELF
cd9a469c 828CC_FOR_TARGET
829CXX_FOR_TARGET
830GCC_FOR_TARGET
831GCJ_FOR_TARGET
832GFORTRAN_FOR_TARGET
5ff5b630 833GOC_FOR_TARGET
cd9a469c 834AR_FOR_TARGET
835AS_FOR_TARGET
836DLLTOOL_FOR_TARGET
837LD_FOR_TARGET
838LIPO_FOR_TARGET
839NM_FOR_TARGET
fc740d70 840OBJCOPY_FOR_TARGET
cd9a469c 841OBJDUMP_FOR_TARGET
842RANLIB_FOR_TARGET
3f71364d 843READELF_FOR_TARGET
cd9a469c 844STRIP_FOR_TARGET
845WINDRES_FOR_TARGET
846WINDMC_FOR_TARGET'
847
71ab34df 848
849# Initialize some variables set by options.
b30fcfae 850ac_init_help=
851ac_init_version=false
cd9a469c 852ac_unrecognized_opts=
853ac_unrecognized_sep=
71ab34df 854# The variables have the same names as the options, with
855# dashes changed to underlines.
b30fcfae 856cache_file=/dev/null
71ab34df 857exec_prefix=NONE
71ab34df 858no_create=
71ab34df 859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
71ab34df 867verbose=
868x_includes=NONE
869x_libraries=NONE
b30fcfae 870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 876# (The list follows the same order as the GNU Coding Standards.)
71ab34df 877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
cd9a469c 880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
71ab34df 882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
71ab34df 885includedir='${prefix}/include'
886oldincludedir='/usr/include'
cd9a469c 887docdir='${datarootdir}/doc/${PACKAGE}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
a8298541 896
71ab34df 897ac_prev=
cd9a469c 898ac_dashdash=
71ab34df 899for ac_option
900do
71ab34df 901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
cd9a469c 903 eval $ac_prev=\$ac_option
71ab34df 904 ac_prev=
905 continue
906 fi
a8298541 907
cd9a469c 908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
71ab34df 912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
cd9a469c 915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
71ab34df 918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 922 bindir=$ac_optarg ;;
71ab34df 923
924 -build | --build | --buil | --bui | --bu)
b30fcfae 925 ac_prev=build_alias ;;
71ab34df 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 927 build_alias=$ac_optarg ;;
71ab34df 928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
71ab34df 938
cd9a469c 939 -datadir | --datadir | --datadi | --datad)
71ab34df 940 ac_prev=datadir ;;
cd9a469c 941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b30fcfae 942 datadir=$ac_optarg ;;
71ab34df 943
cd9a469c 944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
71ab34df 951 -disable-* | --disable-*)
cd9a469c 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 953 # Reject names that are not valid shell variable names.
cd9a469c 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
71ab34df 976
977 -enable-* | --enable-*)
cd9a469c 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 979 # Reject names that are not valid shell variable names.
cd9a469c 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
5084f823 990 esac
cd9a469c 991 eval enable_$ac_useropt=\$ac_optarg ;;
71ab34df 992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
b30fcfae 1000 exec_prefix=$ac_optarg ;;
71ab34df 1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
b30fcfae 1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
71ab34df 1012
1013 -host | --host | --hos | --ho)
b30fcfae 1014 ac_prev=host_alias ;;
71ab34df 1015 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 1016 host_alias=$ac_optarg ;;
71ab34df 1017
cd9a469c 1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
71ab34df 1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 1029 includedir=$ac_optarg ;;
71ab34df 1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 1034 infodir=$ac_optarg ;;
71ab34df 1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 1039 libdir=$ac_optarg ;;
71ab34df 1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
b30fcfae 1046 libexecdir=$ac_optarg ;;
71ab34df 1047
cd9a469c 1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
71ab34df 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1054 | --localstate | --localstat | --localsta | --localst | --locals)
71ab34df 1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b30fcfae 1058 localstatedir=$ac_optarg ;;
71ab34df 1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 1063 mandir=$ac_optarg ;;
71ab34df 1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 1070 | --no-cr | --no-c | -n)
71ab34df 1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 1084 oldincludedir=$ac_optarg ;;
71ab34df 1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 1089 prefix=$ac_optarg ;;
71ab34df 1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 1096 program_prefix=$ac_optarg ;;
71ab34df 1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 1103 program_suffix=$ac_optarg ;;
71ab34df 1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 1120 program_transform_name=$ac_optarg ;;
71ab34df 1121
cd9a469c 1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
71ab34df 1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
b30fcfae 1140 sbindir=$ac_optarg ;;
71ab34df 1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
b30fcfae 1151 sharedstatedir=$ac_optarg ;;
71ab34df 1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
b30fcfae 1156 site=$ac_optarg ;;
71ab34df 1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 1161 srcdir=$ac_optarg ;;
71ab34df 1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 1168 sysconfdir=$ac_optarg ;;
71ab34df 1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 1171 ac_prev=target_alias ;;
71ab34df 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 1173 target_alias=$ac_optarg ;;
71ab34df 1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
b30fcfae 1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
71ab34df 1180
1181 -with-* | --with-*)
cd9a469c 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 1183 # Reject names that are not valid shell variable names.
cd9a469c 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
5084f823 1194 esac
cd9a469c 1195 eval with_$ac_useropt=\$ac_optarg ;;
71ab34df 1196
1197 -without-* | --without-*)
cd9a469c 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 1199 # Reject names that are not valid shell variable names.
cd9a469c 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
71ab34df 1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 1222 x_includes=$ac_optarg ;;
71ab34df 1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 1229 x_libraries=$ac_optarg ;;
71ab34df 1230
cd9a469c 1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information."
71ab34df 1233 ;;
1234
b30fcfae 1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
cd9a469c 1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
b30fcfae 1243 export $ac_envvar ;;
1244
71ab34df 1245 *)
b30fcfae 1246 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b30fcfae 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b30fcfae 1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
71ab34df 1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
b30fcfae 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1258 as_fn_error "missing argument to $ac_option"
ae48753c 1259fi
ae48753c 1260
cd9a469c 1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5084f823 1266 esac
cd9a469c 1267fi
5084f823 1268
cd9a469c 1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
5084f823 1274do
cd9a469c 1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
5084f823 1283 case $ac_val in
cd9a469c 1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
71ab34df 1286 esac
cd9a469c 1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
71ab34df 1288done
1289
b30fcfae 1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
a83ffacf 1296
b30fcfae 1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
cd9a469c 1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b30fcfae 1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306fi
1307
1308ac_tool_prefix=
1309test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311test "$silent" = yes && exec 6>/dev/null
71ab34df 1312
71ab34df 1313
cd9a469c 1314ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315ac_ls_di=`ls -di .` &&
1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
71ab34df 1322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
cd9a469c 1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331$as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
71ab34df 1349 srcdir=$ac_confdir
cd9a469c 1350 if test ! -r "$srcdir/$ac_unique_file"; then
71ab34df 1351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
cd9a469c 1356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359fi
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364# When building in place, set srcdir=.
1365if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367fi
1368# Remove unnecessary trailing slashes from srcdir.
1369# Double slashes in file names in object file debugging info
1370# mess up M-x gdb in Emacs.
1371case $srcdir in
1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373esac
13d2f2b2 1374case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378esac
d2d2630b 1379ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
cd9a469c 1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
b30fcfae 1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
b30fcfae 1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1417 [$ac_default_prefix]
b30fcfae 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1419 [PREFIX]
b30fcfae 1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
cd9a469c 1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
b30fcfae 1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468Optional Features:
cd9a469c 1469 --disable-option-checking ignore unrecognized --enable/--with options
b30fcfae 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a3d93be3 1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1e369e5f 1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
8747a938 1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
325f661b 1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
afb6adb9 1482 Enable compressed debug sections for gas, gold or ld
1483 by default
d9d975ae 1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
09c2d953 1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
a3ba808f 1489 --disable-libstdcxx do not build libstdc++-v3 directory
d3a7dd32 1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
d7e52ac9 1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
6c59dfa4 1494 --enable-bootstrap enable bootstrapping [yes if native build]
87e20041 1495 --disable-isl-version-check
7458b15a 1496 disable check for isl version
7bfefa9d 1497 --enable-lto enable link time optimization support
1015a063 1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1500 [none]
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1503 plugins [none]
8747a938 1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1508 Objective-C runtime
d5f3a33f 1509 --enable-vtable-verify Enable vtable verification feature
09c2d953 1510 --enable-serial-[{host,target,build}-]configure
8747a938 1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1513 sub-packages
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1519 compiler
b30fcfae 1520 --enable-werror enable -Werror in bootstrap stage2 and later
2bd17377 1521 --enable-host-shared build host code as shared libraries
b30fcfae 1522
1523Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
6406d366 1527 --with-system-zlib use installed libz
8747a938 1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
09c2d953 1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
8747a938 1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
b30fcfae 1537 --with-mpfr-include=PATH
09c2d953 1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
8747a938 1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
09c2d953 1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
13687c85 1547 --with-stage1-libs=LIBS libraries for stage1
8747a938 1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
8747a938 1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
71130ef8 1553 --with-isl=PATH Specify prefix directory for the installed isl
8747a938 1554 package. Equivalent to
87e20041 1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
7458b15a 1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
09c2d953 1559 --with-build-sysroot=SYSROOT
b30fcfae 1560 use sysroot as the system root during the build
5f1f2de5 1561 --with-debug-prefix-map='A=B C=D ...'
8747a938 1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
09c2d953 1565 --with-build-time-tools=PATH
b30fcfae 1566 use given path to find target tools during the build
b30fcfae 1567
1568Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
cd9a469c 1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
eae5b2bc 1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
372a3f1e 1578 build_configargs
1579 additional configure arguments for build directories
1580 host_configargs
1581 additional configure arguments for host directories
1582 target_configargs
1583 additional configure arguments for target directories
95a05732 1584 AR AR for the host
1585 AS AS for the host
1586 DLLTOOL DLLTOOL for the host
1587 LD LD for the host
1588 LIPO LIPO for the host
1589 NM NM for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
75d6a0a9 1593 WINDMC WINDMC for the host
95a05732 1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
3f71364d 1596 READELF READELF for the host
95a05732 1597 CC_FOR_TARGET
1598 CC for the target
1599 CXX_FOR_TARGET
1600 CXX for the target
1601 GCC_FOR_TARGET
1602 GCC for the target
1603 GCJ_FOR_TARGET
1604 GCJ for the target
1605 GFORTRAN_FOR_TARGET
1606 GFORTRAN for the target
5ff5b630 1607 GOC_FOR_TARGET
1608 GOC for the target
95a05732 1609 AR_FOR_TARGET
1610 AR for the target
1611 AS_FOR_TARGET
1612 AS for the target
1613 DLLTOOL_FOR_TARGET
1614 DLLTOOL for the target
1615 LD_FOR_TARGET
1616 LD for the target
1617 LIPO_FOR_TARGET
1618 LIPO for the target
1619 NM_FOR_TARGET
1620 NM for the target
fc740d70 1621 OBJCOPY_FOR_TARGET
1622 OBJCOPY for the target
95a05732 1623 OBJDUMP_FOR_TARGET
1624 OBJDUMP for the target
1625 RANLIB_FOR_TARGET
1626 RANLIB for the target
3f71364d 1627 READELF_FOR_TARGET
1628 READELF for the target
95a05732 1629 STRIP_FOR_TARGET
1630 STRIP for the target
1631 WINDRES_FOR_TARGET
1632 WINDRES for the target
75d6a0a9 1633 WINDMC_FOR_TARGET
1634 WINDMC for the target
b30fcfae 1635
1636Use these variables to override the choices made by `configure' or to help
1637it to find libraries and programs with nonstandard names/locations.
1638
cd9a469c 1639Report bugs to the package provider.
b30fcfae 1640_ACEOF
cd9a469c 1641ac_status=$?
b30fcfae 1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
b30fcfae 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
b30fcfae 1650 ac_builddir=.
1651
cd9a469c 1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
b30fcfae 1667
1668case $srcdir in
cd9a469c 1669 .) # We are building in place.
b30fcfae 1670 ac_srcdir=.
cd9a469c 1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 1674 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5084f823 1681esac
cd9a469c 1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
b30fcfae 1692 else
cd9a469c 1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
b30fcfae 1696 done
1697fi
1698
cd9a469c 1699test -n "$ac_init_help" && exit $ac_status
b30fcfae 1700if $ac_init_version; then
1701 cat <<\_ACEOF
cd9a469c 1702configure
1703generated by GNU Autoconf 2.64
b30fcfae 1704
cd9a469c 1705Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 1706This configure script is free software; the Free Software Foundation
1707gives unlimited permission to copy, distribute and modify it.
1708_ACEOF
cd9a469c 1709 exit
a83ffacf 1710fi
cd9a469c 1711
1712## ------------------------ ##
1713## Autoconf initialization. ##
1714## ------------------------ ##
1715
1716# ac_fn_c_try_compile LINENO
1717# --------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752} # ac_fn_c_try_compile
1753
1754# ac_fn_cxx_try_compile LINENO
1755# ----------------------------
1756# Try to compile conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_cxx_try_compile ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790} # ac_fn_cxx_try_compile
1791
13687c85 1792# ac_fn_cxx_try_link LINENO
1793# -------------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_cxx_try_link ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1835
1836} # ac_fn_cxx_try_link
1837
cd9a469c 1838# ac_fn_c_try_link LINENO
1839# -----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_link ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882} # ac_fn_c_try_link
1883cat >config.log <<_ACEOF
b30fcfae 1884This file contains any messages produced by compilers while
1885running configure, to aid debugging if configure makes a mistake.
1886
1887It was created by $as_me, which was
cd9a469c 1888generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 1889
1890 $ $0 $@
1891
1892_ACEOF
cd9a469c 1893exec 5>>config.log
b30fcfae 1894{
1895cat <<_ASUNAME
1896## --------- ##
1897## Platform. ##
1898## --------- ##
1899
1900hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1912/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1913/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917_ASUNAME
1918
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
cd9a469c 1924 $as_echo "PATH: $as_dir"
1925 done
1926IFS=$as_save_IFS
b30fcfae 1927
1928} >&5
1929
1930cat >&5 <<_ACEOF
1931
1932
1933## ----------- ##
1934## Core tests. ##
1935## ----------- ##
1936
1937_ACEOF
1938
1939
1940# Keep a trace of the command line.
1941# Strip out --no-create and --no-recursion so they do not pile up.
1942# Strip out --silent because we don't want to record it for future runs.
1943# Also quote any args containing shell meta-characters.
1944# Make two passes to allow for proper duplicate-argument suppression.
1945ac_configure_args=
1946ac_configure_args0=
1947ac_configure_args1=
b30fcfae 1948ac_must_keep_next=false
1949for ac_pass in 1 2
1950do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
cd9a469c 1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1960 esac
1961 case $ac_pass in
cd9a469c 1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b30fcfae 1963 2)
cd9a469c 1964 as_fn_append ac_configure_args1 " '$ac_arg'"
b30fcfae 1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
cd9a469c 1980 as_fn_append ac_configure_args " '$ac_arg'"
b30fcfae 1981 ;;
1982 esac
1983 done
1984done
cd9a469c 1985{ ac_configure_args0=; unset ac_configure_args0;}
1986{ ac_configure_args1=; unset ac_configure_args1;}
b30fcfae 1987
1988# When interrupted or exit'd, cleanup temporary files, and complete
1989# config.log. We remove comments because anyway the quotes in there
1990# would cause problems or look ugly.
cd9a469c 1991# WARNING: Use '\'' to represent an apostrophe within the trap.
1992# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b30fcfae 1993trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 cat <<\_ASBOX
1999## ---------------- ##
2000## Cache variables. ##
2001## ---------------- ##
2002_ASBOX
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
cd9a469c 2005(
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
b30fcfae 2021 (set) 2>&1 |
cd9a469c 2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
b30fcfae 2024 sed -n \
cd9a469c 2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
b30fcfae 2028 *)
cd9a469c 2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 2030 ;;
cd9a469c 2031 esac |
2032 sort
2033)
b30fcfae 2034 echo
2035
2036 cat <<\_ASBOX
2037## ----------------- ##
2038## Output variables. ##
2039## ----------------- ##
2040_ASBOX
2041 echo
2042 for ac_var in $ac_subst_vars
2043 do
cd9a469c 2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2049 done | sort
2050 echo
2051
2052 if test -n "$ac_subst_files"; then
2053 cat <<\_ASBOX
cd9a469c 2054## ------------------- ##
2055## File substitutions. ##
2056## ------------------- ##
b30fcfae 2057_ASBOX
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
cd9a469c 2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 cat <<\_ASBOX
2072## ----------- ##
2073## confdefs.h. ##
2074## ----------- ##
2075_ASBOX
2076 echo
cd9a469c 2077 cat confdefs.h
b30fcfae 2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
cd9a469c 2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
b30fcfae 2083 } >&5
cd9a469c 2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 2086 exit $exit_status
cd9a469c 2087' 0
b30fcfae 2088for ac_signal in 1 2 13 15; do
cd9a469c 2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b30fcfae 2090done
2091ac_signal=0
2092
2093# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2094rm -f -r conftest* confdefs.h
2095
2096$as_echo "/* confdefs.h */" > confdefs.h
b30fcfae 2097
2098# Predefined preprocessor variables.
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_NAME "$PACKAGE_NAME"
2102_ACEOF
2103
b30fcfae 2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106_ACEOF
2107
b30fcfae 2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_VERSION "$PACKAGE_VERSION"
2110_ACEOF
a83ffacf 2111
b30fcfae 2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_STRING "$PACKAGE_STRING"
2114_ACEOF
2115
b30fcfae 2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118_ACEOF
2119
cd9a469c 2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_URL "$PACKAGE_URL"
2122_ACEOF
2123
b30fcfae 2124
2125# Let the site file select an alternate cache file if it wants to.
cd9a469c 2126# Prefer an explicitly selected file to automatically selected ones.
2127ac_site_file1=NONE
2128ac_site_file2=NONE
2129if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
71ab34df 2137fi
cd9a469c 2138for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139do
2140 test "x$ac_site_file" = xNONE && continue
71ab34df 2141 if test -r "$ac_site_file"; then
cd9a469c 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b30fcfae 2144 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 2145 . "$ac_site_file"
2146 fi
2147done
2148
2149if test -r "$cache_file"; then
b30fcfae 2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
cd9a469c 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154$as_echo "$as_me: loading cache $cache_file" >&6;}
b30fcfae 2155 case $cache_file in
cd9a469c 2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
b30fcfae 2158 esac
2159 fi
71ab34df 2160else
cd9a469c 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162$as_echo "$as_me: creating cache $cache_file" >&6;}
b30fcfae 2163 >$cache_file
2164fi
2165
2166# Check that the precious variables saved in the cache have kept the same
2167# value.
2168ac_cache_corrupted=false
cd9a469c 2169for ac_var in $ac_precious_vars; do
b30fcfae 2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
b30fcfae 2174 case $ac_old_set,$ac_new_set in
2175 set,)
cd9a469c 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b30fcfae 2178 ac_cache_corrupted=: ;;
2179 ,set)
cd9a469c 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b30fcfae 2182 ac_cache_corrupted=: ;;
2183 ,);;
2184 *)
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2197 fi
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
cd9a469c 2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b30fcfae 2213 esac
2214 fi
2215done
2216if $ac_cache_corrupted; then
cd9a469c 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
71ab34df 2222fi
cd9a469c 2223## -------------------- ##
2224## Main body of script. ##
2225## -------------------- ##
71ab34df 2226
5084f823 2227ac_ext=c
2228ac_cpp='$CPP $CPPFLAGS'
2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
b30fcfae 2233
2234
2235
b30fcfae 2236
2237
cd2f3773 2238
b30fcfae 2239
4e8a889d 2240
2241progname=$0
2242# if PWD already has a value, it is probably wrong.
2243if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244
2245# Export original configure arguments for use by sub-configures.
2246# Quote arguments with shell meta charatcers.
2247TOPLEVEL_CONFIGURE_ARGUMENTS=
2248set -- "$progname" "$@"
2249for ac_arg
2250do
2251 case "$ac_arg" in
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 *) ;;
2257 esac
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260done
2261if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263fi
2264# Remove the initial space we just introduced and, as these will be
2265# expanded by make, quote '$'.
2266TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267
b30fcfae 2268
2269# Find the build, host, and target systems.
71ab34df 2270ac_aux_dir=
cd9a469c 2271for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2276 break 2
2277 fi
2278 done
71ab34df 2279done
2280if test -z "$ac_aux_dir"; then
cd9a469c 2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
71ab34df 2282fi
cd9a469c 2283
2284# These three variables are undocumented and unsupported,
2285# and are intended to be withdrawn in a future Autoconf release.
2286# They can cause serious problems if a builder's source tree is in a directory
2287# whose full name contains unusual characters.
2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
71ab34df 2292
b30fcfae 2293# Make sure we can run config.sub.
cd9a469c 2294$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298$as_echo_n "checking build system type... " >&6; }
2299if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2301else
2302 ac_build_alias=$build_alias
2303test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310fi
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312$as_echo "$ac_cv_build" >&6; }
2313case $ac_cv_build in
2314*-*-*) ;;
2315*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316esac
b30fcfae 2317build=$ac_cv_build
cd9a469c 2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_build
2320shift
2321build_cpu=$1
2322build_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326build_os=$*
2327IFS=$ac_save_IFS
2328case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
71ab34df 2329
71ab34df 2330
b30fcfae 2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
ae48753c 2334esac
2335
2336
ae48753c 2337
b30fcfae 2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
ae48753c 2341esac
2342
ae48753c 2343
b30fcfae 2344
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
ae48753c 2348esac
2349
ae48753c 2350
b30fcfae 2351
2352
2353test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 2354 test "$program_prefix$program_suffix$program_transform_name" = \
2355 NONENONEs,x,x, &&
b30fcfae 2356 program_transform_name=s,y,y,
ae48753c 2357
cd9a469c 2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359$as_echo_n "checking host system type... " >&6; }
2360if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
ae48753c 2362else
cd9a469c 2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2365else
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368fi
b30fcfae 2369
ae48753c 2370fi
cd9a469c 2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372$as_echo "$ac_cv_host" >&6; }
2373case $ac_cv_host in
2374*-*-*) ;;
2375*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376esac
b30fcfae 2377host=$ac_cv_host
cd9a469c 2378ac_save_IFS=$IFS; IFS='-'
2379set x $ac_cv_host
2380shift
2381host_cpu=$1
2382host_vendor=$2
2383shift; shift
2384# Remember, the first character of IFS is used to create $*,
2385# except with old shells:
2386host_os=$*
2387IFS=$ac_save_IFS
2388case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5084f823 2389
2390
cd9a469c 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392$as_echo_n "checking target system type... " >&6; }
2393if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
b30fcfae 2395else
cd9a469c 2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2398else
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401fi
b30fcfae 2402
2403fi
cd9a469c 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405$as_echo "$ac_cv_target" >&6; }
2406case $ac_cv_target in
2407*-*-*) ;;
2408*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409esac
b30fcfae 2410target=$ac_cv_target
cd9a469c 2411ac_save_IFS=$IFS; IFS='-'
2412set x $ac_cv_target
2413shift
2414target_cpu=$1
2415target_vendor=$2
2416shift; shift
2417# Remember, the first character of IFS is used to create $*,
2418# except with old shells:
2419target_os=$*
2420IFS=$ac_save_IFS
2421case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b30fcfae 2422
2423
2424# The aliases save the names the user supplied, while $host etc.
2425# will get canonicalized.
2426test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
cd9a469c 2430
71ab34df 2431test "$program_prefix" != NONE &&
cd9a469c 2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
71ab34df 2433# Use a double $ so make ignores it.
2434test "$program_suffix" != NONE &&
cd9a469c 2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436# Double any \ or $.
b30fcfae 2437# By default was `s,x,x', remove it if useless.
cd9a469c 2438ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ae48753c 2440
71ab34df 2441
2442
450e6c84 2443# Get 'install' or 'install-sh' and its variants.
2444# Find a good install program. We prefer a C program (faster),
2445# so one script is as good as another. But avoid the broken or
2446# incompatible versions:
2447# SysV /etc/install, /usr/sbin/install
2448# SunOS /usr/etc/install
2449# IRIX /sbin/install
2450# AIX /bin/install
b30fcfae 2451# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 2455# OS/2's system install, which has a completely different semantic
450e6c84 2456# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2457# Reject install programs that cannot install multiple files.
cd9a469c 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459$as_echo_n "checking for a BSD-compatible install... " >&6; }
450e6c84 2460if test -z "$INSTALL"; then
cd9a469c 2461if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
b30fcfae 2463else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
cd9a469c 2469 # Account for people who put trailing slashes in PATH elements.
2470case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
b30fcfae 2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b30fcfae 2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
450e6c84 2482 if test $ac_prog = install &&
b30fcfae 2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 2484 # AIX install. It has an incompatible calling convention.
2485 :
b30fcfae 2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
450e6c84 2490 else
82eaf560 2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
450e6c84 2503 fi
2504 fi
2505 done
b30fcfae 2506 done
2507 ;;
2508esac
cd9a469c 2509
2510 done
2511IFS=$as_save_IFS
b30fcfae 2512
82eaf560 2513rm -rf conftest.one conftest.two conftest.dir
450e6c84 2514
2515fi
2516 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 2517 INSTALL=$ac_cv_path_install
450e6c84 2518 else
82eaf560 2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
450e6c84 2521 # break other packages using the cache if that directory is
82eaf560 2522 # removed, or if the value is a relative name.
b30fcfae 2523 INSTALL=$ac_install_sh
450e6c84 2524 fi
2525fi
cd9a469c 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527$as_echo "$INSTALL" >&6; }
450e6c84 2528
2529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530# It thinks the first close brace ends the variable substitution.
2531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
b30fcfae 2533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 2534
2535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
cd9a469c 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538$as_echo_n "checking whether ln works... " >&6; }
2539if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
599a3eac 2541else
2542 rm -f conftestdata_t
2543echo >conftestdata_f
2544if ln conftestdata_f conftestdata_t 2>/dev/null
2545then
2546 acx_cv_prog_LN=ln
2547else
2548 acx_cv_prog_LN=no
2549fi
2550rm -f conftestdata_f conftestdata_t
2551
2552fi
2553if test $acx_cv_prog_LN = no; then
2554 LN="cp"
cd9a469c 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556$as_echo "no, using $LN" >&6; }
599a3eac 2557else
2558 LN="$acx_cv_prog_LN"
cd9a469c 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560$as_echo "yes" >&6; }
599a3eac 2561fi
2562
cd9a469c 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564$as_echo_n "checking whether ln -s works... " >&6; }
b30fcfae 2565LN_S=$as_ln_s
2566if test "$LN_S" = "ln -s"; then
cd9a469c 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568$as_echo "yes" >&6; }
a4af6a58 2569else
cd9a469c 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571$as_echo "no, using $LN_S" >&6; }
5965d276 2572fi
2573
b181f265 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578else
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2582 done
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597# Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599case `"$ac_path_SED" --version 2>&1` in
2600*GNU*)
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602*)
2603 ac_count=0
2604 $as_echo_n 0123456789 >"conftest.in"
2605 while :
2606 do
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2618 fi
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2621 done
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623esac
2624
2625 $ac_path_SED_found && break 3
2626 done
2627 done
2628 done
2629IFS=$as_save_IFS
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632 fi
2633else
2634 ac_cv_path_SED=$SED
2635fi
2636
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639$as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2641 rm -f conftest.sed
2642
2643for ac_prog in gawk mawk nawk awk
2644do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667 done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672AWK=$ac_cv_prog_AWK
2673if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675$as_echo "$AWK" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682 test -n "$AWK" && break
2683done
2684
450e6c84 2685
e8eddfdd 2686srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687
2688# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2689# a relative path.
2690if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2692fi
2693
71ab34df 2694# Set srcdir to "." if that's what it is.
2695# This is important for multilib support.
2696pwd=`${PWDCMD-pwd}`
71ab34df 2697if test "${pwd}" = "${srcpwd}" ; then
2698 srcdir=.
a8298541 2699fi
2700
71ab34df 2701topsrcdir=$srcpwd
ed37269d 2702
71ab34df 2703extra_host_args=
14ac9144 2704
71ab34df 2705### To add a new directory to the tree, first choose whether it is a target
2706### or a host dependent tool. Then put it into the appropriate list
2707### (library or tools, host or target), doing a dependency sort.
a8298541 2708
b30fcfae 2709# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 2710# configdirs, or target_configdirs; see the serialization section below.
a8298541 2711
b30fcfae 2712# Dependency sorting is only needed when *configuration* must be done in
2713# a particular order. In all cases a dependency should be specified in
71ab34df 2714# the Makefile, whether or not it's implicitly specified here.
a8298541 2715
71ab34df 2716# Double entries in build_configdirs, configdirs, or target_configdirs may
2717# cause circular dependencies and break everything horribly.
a8298541 2718
2f8725b0 2719# these library is used by various programs built for the build
2720# environment
2721#
9245d2c5 2722build_libs="build-libiberty build-libcpp"
2f8725b0 2723
2724# these tools are built for the build environment
4fc99708 2725build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2f8725b0 2726
71ab34df 2727# these libraries are used by various programs built for the host environment
429cca51 2728#f
572cf1f7 2729host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
71ab34df 2730
71ab34df 2731# these tools are built for the host environment
2732# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733# know that we are building the simulator.
2734# binutils, gas and ld appear in that order because it makes sense to run
2735# "make check" in that particular order.
af7c5662 2736# If --enable-gold is used, "gold" may replace "ld".
dcfe52b6 2737host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
71ab34df 2738
2739# libgcj represents the runtime libraries only used by gcj.
2740libgcj="target-libffi \
71ab34df 2741 target-zlib \
71ab34df 2742 target-libjava"
2743
2744# these libraries are built for the target environment, and are built after
2745# the host libraries and the host tools (which may be a cross compiler)
5ab7e123 2746# Note that libiberty is not a target library.
27bfe7b7 2747target_libraries="target-libgcc \
ecd3459e 2748 target-libbacktrace \
71ab34df 2749 target-libgloss \
2750 target-newlib \
a0191bfe 2751 target-libgomp \
4710dd51 2752 target-libcilkrts \
d3a7dd32 2753 target-liboffloadmic \
6db1d2ca 2754 target-libatomic \
4c0315d0 2755 target-libitm \
54d7d5f2 2756 target-libstdc++-v3 \
549e2197 2757 target-libsanitizer \
b710ec85 2758 target-libvtv \
202baac8 2759 target-libmpx \
0d55f4d0 2760 target-libssp \
87969c8c 2761 target-libquadmath \
4ee9c684 2762 target-libgfortran \
dd6d3a67 2763 target-boehm-gc \
cdfc500e 2764 ${libgcj} \
93341878 2765 target-libobjc \
5ff5b630 2766 target-libada \
2767 target-libgo"
71ab34df 2768
328637e8 2769# these tools are built using the target libraries, and are intended to
2770# run only in the target environment
71ab34df 2771#
328637e8 2772# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2773# list belongs in this list.
71ab34df 2774#
4fc99708 2775target_tools="target-rda"
a8298541 2776
71ab34df 2777################################################################################
a8298541 2778
71ab34df 2779## All tools belong in one of the four categories, and are assigned above
2780## We assign ${configdirs} this way to remove all embedded newlines. This
2781## is important because configure will choke if they ever get through.
2782## ${configdirs} is directories we build using the host tools.
2783## ${target_configdirs} is directories we build using the target tools.
71ab34df 2784configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2785target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2786build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2787
d2d2630b 2788
2789
71ab34df 2790################################################################################
a8298541 2791
71ab34df 2792srcname="gnu development package"
a8298541 2793
71ab34df 2794# This gets set non-empty for some net releases of packages.
2795appdirs=""
a8298541 2796
71ab34df 2797# Define is_cross_compiler to save on calls to 'test'.
2798is_cross_compiler=
2799if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
a8298541 2801else
71ab34df 2802 is_cross_compiler=yes
b30fcfae 2803fi
a8298541 2804
2f61b8ca 2805# Find the build and target subdir names.
6f4f34a7 2806
d3e7b04c 2807# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808# have matching libraries, they should use host libraries: Makefile.tpl
2809# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810# However, they still use the build modules, because the corresponding
2811# host modules (e.g. bison) are only built for the host when bootstrap
2812# finishes. So:
2813# - build_subdir is where we find build modules, and never changes.
2814# - build_libsubdir is where we find build libraries, and can be overridden.
2815
2816# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2817build_subdir="build-${build_noncanonical}"
b30fcfae 2818
cd9a469c 2819# Check whether --with-build-libsubdir was given.
2820if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2822else
2823 build_libsubdir="$build_subdir"
cd9a469c 2824fi
2825
c1eb9e31 2826# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2830else
2831 host_subdir=.
2832fi
6f4f34a7 2833# No prefix.
2834target_subdir=${target_noncanonical}
b30fcfae 2835
04a2e841 2836# Be sure to cover against remnants of an in-tree build.
2837if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840fi
a8298541 2841
71ab34df 2842# Skipdirs are removed silently.
2843skipdirs=
2844# Noconfigdirs are removed loudly.
2845noconfigdirs=""
a8298541 2846
71ab34df 2847use_gnu_ld=
2848# Make sure we don't let GNU ld be added if we didn't want it.
2849if test x$with_gnu_ld = xno ; then
2850 use_gnu_ld=no
3d47fcf5 2851 noconfigdirs="$noconfigdirs ld gold"
a8298541 2852fi
2853
71ab34df 2854use_gnu_as=
2855# Make sure we don't let GNU as be added if we didn't want it.
2856if test x$with_gnu_as = xno ; then
2857 use_gnu_as=no
2858 noconfigdirs="$noconfigdirs gas"
a8298541 2859fi
2860
7bfefa9d 2861use_included_zlib=
6406d366 2862
2863# Check whether --with-system-zlib was given.
2864if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2866fi
2867
7bfefa9d 2868# Make sure we don't let ZLIB be added if we didn't want it.
2869if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2872fi
2873
b30fcfae 2874# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2875# it's not even worth trying to configure, much less build, that tool.
a8298541 2876
71ab34df 2877case ${with_x} in
2878 yes | "") ;; # the default value for this tree is that X11 is available
2879 no)
f843f075 2880 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2881 # We won't be able to build gdbtk without X.
b30fcfae 2882 enable_gdbtk=no
71ab34df 2883 ;;
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885esac
a8298541 2886
6c9785b4 2887# Some are only suitable for cross toolchains.
71ab34df 2888# Remove these if host=target.
2889cross_only="target-libgloss target-newlib target-opcodes"
2890
2891case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2893esac
a8298541 2894
71ab34df 2895# If both --with-headers and --with-libs are specified, default to
2896# --without-newlib.
e8eddfdd 2897if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2899 if test x"${with_newlib}" = x ; then
2900 with_newlib=no
2901 fi
a8298541 2902fi
2903
71ab34df 2904# Recognize --with-newlib/--without-newlib.
2905case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908esac
a8298541 2909
a3d93be3 2910# Check whether --enable-as-accelerator-for was given.
2911if test "${enable_as_accelerator_for+set}" = set; then :
67cedda8 2912 enableval=$enable_as_accelerator_for;
a3d93be3 2913fi
2914
2915
2916# Check whether --enable-offload-targets was given.
2917if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2921 fi
2922
2923else
2924 enable_offload_targets=
2925fi
2926
2927
1e369e5f 2928# Handle --enable-gold, --enable-ld.
2929# --disable-gold [--enable-ld]
2930# Build only ld. Default option.
85516948 2931# --enable-gold [--enable-ld]
2932# Build both gold and ld. Install gold as "ld.gold", install ld
2933# as "ld.bfd" and "ld".
2934# --enable-gold=default [--enable-ld]
1e369e5f 2935# Build both gold and ld. Install gold as "ld.gold" and "ld",
2936# install ld as "ld.bfd".
2937# --enable-gold[=default] --disable-ld
2938# Build only gold, which is then installed as both "ld.gold" and "ld".
2939# --enable-gold --enable-ld=default
85516948 2940# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941# and ld.bfd).
1e369e5f 2942# In other words, ld is default
2943# --enable-gold=default --enable-ld=default
2944# Error.
2945
2946default_ld=
cd9a469c 2947# Check whether --enable-gold was given.
2948if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 2950else
2951 ENABLE_GOLD=no
cd9a469c 2952fi
2953
1e369e5f 2954case "${ENABLE_GOLD}" in
2955 yes|default)
af7c5662 2956 # Check for ELF target.
2957 is_elf=no
2958 case "${target}" in
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
e4c33dd2 2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
9d36d513 2962 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
af7c5662 2963 case "${target}" in
2964 *-*-linux*aout* | *-*-linux*oldld*)
2965 ;;
2966 *)
2967 is_elf=yes
2968 ;;
2969 esac
2970 esac
2971
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
3d47fcf5 2974 case "${target}" in
58f62c51 2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2976 | aarch64*-*-* | tilegx*-*-*)
1e369e5f 2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2979 default_ld=gold
2980 fi
af7c5662 2981 ENABLE_GOLD=yes
3d47fcf5 2982 ;;
2983 esac
af7c5662 2984 fi
2985 ;;
2986 no)
2987 ;;
2988 *)
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990 ;;
1e369e5f 2991esac
2992
2993# Check whether --enable-ld was given.
2994if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
2996else
2997 ENABLE_LD=yes
2998fi
2999
3000
3001case "${ENABLE_LD}" in
3002 default)
85516948 3003 if test x${default_ld} != x; then
1e369e5f 3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 fi
3006 ;;
3007 yes)
3008 ;;
3009 no)
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013 fi
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 ;;
3016 *)
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018 ;;
3019esac
3d47fcf5 3020
afb6adb9 3021# PR gas/19109
3022# Decide the default method for compressing debug sections.
3023# Provide a configure time option to override our default.
3024# Check whether --enable-compressed_debug_sections was given.
3025if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029 fi
3030
3031else
3032 enable_compressed_debug_sections=
3033fi
3034
3035
71ab34df 3036# Configure extra directories which are host specific
a8298541 3037
71ab34df 3038case "${host}" in
3039 *-cygwin*)
3040 configdirs="$configdirs libtermcap" ;;
3041esac
a8298541 3042
ff7dcf6a 3043# A target can indicate whether a language isn't supported for some reason.
3044# Only spaces may be used in this macro; not newlines or tabs.
3045unsupported_languages=
3046
b30fcfae 3047# Remove more programs from consideration, based on the host or
71ab34df 3048# target this usually means that a port of the program doesn't
3049# exist yet.
c7879c37 3050
71ab34df 3051case "${host}" in
b2240ff6 3052 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 3053 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 3054 ;;
71ab34df 3055esac
c7879c37 3056
4ee9c684 3057
d9d975ae 3058# Check whether --enable-libquadmath was given.
3059if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061else
3062 ENABLE_LIBQUADMATH=yes
3063fi
3064
3065if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3067fi
3068
3069
3070# Check whether --enable-libquadmath-support was given.
3071if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073else
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3075fi
3076
3077enable_libquadmath_support=
3078if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3080fi
3081
3082
cd9a469c 3083# Check whether --enable-libada was given.
3084if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 3086else
3087 ENABLE_LIBADA=yes
cd9a469c 3088fi
3089
93341878 3090if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 3091 noconfigdirs="$noconfigdirs gnattools"
93341878 3092fi
3093
cd9a469c 3094# Check whether --enable-libssp was given.
3095if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 3097else
3098 ENABLE_LIBSSP=yes
cd9a469c 3099fi
3100
07da5214 3101
a3ba808f 3102# Check whether --enable-libstdcxx was given.
3103if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105else
3106 ENABLE_LIBSTDCXX=default
3107fi
3108
3109if test "${ENABLE_LIBSTDCXX}" = "no" ; then
df148e44 3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a3ba808f 3111fi
3112
d3a7dd32 3113# If this is accelerator compiler and its target is intelmic we enable
3114# target liboffloadmic by default. If this is compiler with offloading
3115# for intelmic we enable host liboffloadmic by default. Otherwise
3116# liboffloadmic is disabled by default.
3117# Check whether --enable-liboffloadmic was given.
3118if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3120 no | host | target)
3121 enable_liboffloadmic=$enableval ;;
3122 *)
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124esac
3125else
67cedda8 3126 if test x"$enable_as_accelerator_for" != x; then
d3a7dd32 3127 case "${target}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 ;;
3132 *)
3133 enable_liboffloadmic=no
3134 ;;
3135 esac
3136else
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 ;;
3142 *)
3143 enable_liboffloadmic=no
3144 ;;
3145 esac
3146fi
3147fi
3148
3149
3150
71ab34df 3151# Save it here so that, even in case of --enable-libgcj, if the Java
3152# front-end isn't enabled, we still get libgcj disabled.
3153libgcj_saved=$libgcj
3154case $enable_libgcj in
3155yes)
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3159 libgcj=
3160 ;;
3161no)
3162 # Make sure we get it printed in the list of not supported target libs.
604a285a 3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
8593ce89 3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3166 # built.
3167 libgcj_saved=
71ab34df 3168 ;;
3169esac
c7879c37 3170
d7e52ac9 3171# Check whether --enable-static-libjava was given.
3172if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174else
3175 ENABLE_STATIC_LIBJAVA=no
3176fi
3177
3178enable_static_libjava=
3179if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3181fi
3182
3183if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3185fi
3186
4ee9c684 3187
fdcd05c8 3188# Enable libgomp by default on hosted POSIX systems, and a few others.
50996fe5 3189if test x$enable_libgomp = x ; then
1e8e9920 3190 case "${target}" in
3bef4012 3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3192 ;;
e3a1fe08 3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3194 ;;
5641963c 3195 *-*-solaris2* | *-*-hpux11*)
1e8e9920 3196 ;;
634efbee 3197 *-*-darwin* | *-*-aix*)
1e8e9920 3198 ;;
fdcd05c8 3199 nvptx*-*-*)
3200 ;;
1e8e9920 3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
50996fe5 3205fi
1e8e9920 3206
6db1d2ca 3207# Disable libatomic on unsupported systems.
3208if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211$as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221$as_echo "yes" >&6; }
3222 fi
3223 fi
3224fi
3225
4710dd51 3226# Disable libcilkrts on unsupported systems.
3227if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230$as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241 fi
3242 fi
3243fi
3244
d3a7dd32 3245# Disable liboffloadmic on unsupported systems.
3246if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249$as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259$as_echo "yes" >&6; }
3260 fi
3261 fi
3262fi
3263
42b15c81 3264# Disable libitm on unsupported systems.
3265if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3268$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3274$as_echo "no" >&6; }
42b15c81 3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3278$as_echo "yes" >&6; }
42b15c81 3279 fi
3280 fi
4c0315d0 3281fi
3282
492e75a7 3283# Disable libsanitizer on unsupported systems.
3284if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287$as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
3299 fi
3300fi
3301
b710ec85 3302# Disable libvtv on unsupported systems.
3303if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306$as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
6d0992e1 3309 test "$VTV_SUPPORTED" != "yes")
b710ec85 3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317 fi
3318 fi
3319fi
3320
202baac8 3321
3322# Enable libmpx on supported systems by request.
3323if test -d ${srcdir}/libmpx; then
067ef0d9 3324 if test x$enable_libmpx = x; then
202baac8 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326$as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
202baac8 3338 fi
3339fi
3340
3341
3342
62f0972f 3343# Disable libquadmath for some systems.
3344case "${target}" in
c36ee471 3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
62f0972f 3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
3353esac
3354
d5831552 3355# Disable libssp for some systems.
3356case "${target}" in
3357 avr-*-*)
76c19016 3358 # No hosted I/O support.
d5831552 3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
78e515f7 3363 ;;
3364 rl78-*-*)
9d5fd7d0 3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
78e515f7 3368 noconfigdirs="$noconfigdirs target-libssp"
d5831552 3369 ;;
8992df51 3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
d5831552 3374esac
3375
d5831552 3376# Disable libstdc++-v3 for some systems.
a3ba808f 3377# Allow user to override this if they pass --enable-libstdc++-v3
3378if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ;;
b6616c9c 3391 ft32-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
a3ba808f 3394 esac
3395fi
d5831552 3396
3397# Disable Fortran for some systems.
3398case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3402 ;;
3403esac
3404
91b5b6ec 3405# Disable Java if libffi is not supported.
f24be480 3406case "${target}" in
45e22a2e 3407 aarch64-*-*)
3408 ;;
91b5b6ec 3409 alpha*-*-*)
3410 ;;
3411 arm*-*-*)
3412 ;;
3413 cris-*-*)
3414 ;;
3415 frv-*-*)
3416 ;;
3417 hppa*-*-linux*)
3418 ;;
3419 hppa*-*-hpux*)
3420 ;;
3421 i?86-*-*)
3422 ;;
3423 ia64*-*-*)
3424 ;;
3425 m32r*-*-*)
3426 ;;
3427 m68k-*-*)
3428 ;;
5641963c 3429 mips*-*-rtems*)
91b5b6ec 3430 ;;
3431 mips*-*-linux*)
3432 ;;
3433 powerpc*-*-linux*)
3434 ;;
3435 powerpc-*-darwin*)
3436 ;;
3437 powerpc-*-aix* | rs6000-*-aix*)
3438 ;;
3439 powerpc-*-freebsd*)
3440 ;;
3441 powerpc64-*-freebsd*)
3442 ;;
3443 powerpc*-*-rtems*)
f24be480 3444 ;;
91b5b6ec 3445 s390-*-* | s390x-*-*)
3446 ;;
3447 sh-*-* | sh[34]*-*-*)
3448 ;;
3449 sh64-*-* | sh5*-*-*)
3450 ;;
3451 sparc*-*-*)
3452 ;;
3453 x86_64-*-*)
3454 ;;
3455 *-*-*)
3456 unsupported_languages="$unsupported_languages java"
3457 ;;
3458esac
3459
3460# Disable Java, libgcj or related libraries for some systems.
3461case "${target}" in
f24be480 3462 powerpc-*-darwin*)
3463 ;;
3464 i[3456789]86-*-darwin*)
3465 ;;
3466 x86_64-*-darwin[912]*)
3467 ;;
3468 *-*-darwin*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
f24be480 3471 *-*-netware*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
3474 *-*-rtems*)
3475 noconfigdirs="$noconfigdirs ${libgcj}"
3476 ;;
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs ${libgcj}"
3479 ;;
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3482 ;;
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3485 ;;
f24be480 3486 alpha*-*-*vms*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 ;;
275d0a7c 3489 arm*-*-freebsd*)
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3491 ;;
91b5b6ec 3492 arm-wince-pe)
f24be480 3493 noconfigdirs="$noconfigdirs ${libgcj}"
3494 ;;
f24be480 3495 arm*-*-symbianelf*)
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 ;;
f24be480 3498 bfin-*-*)
f24be480 3499 noconfigdirs="$noconfigdirs target-boehm-gc"
3500 ;;
f24be480 3501 cris-*-* | crisv32-*-*)
3502 unsupported_languages="$unsupported_languages java"
3503 case "${target}" in
3504 *-*-linux*)
3505 ;;
3506 *) # See PR46792 regarding target-libffi.
3507 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3508 esac
3509 ;;
f24be480 3510 hppa*64*-*-linux*)
3511 # In this case, it's because the hppa64-linux target is for
3512 # the kernel only at this point and has no libc, and thus no
3513 # headers, crt*.o, etc., all of which are needed by these.
a7e330e9 3514 unsupported_languages="$unsupported_languages java"
f24be480 3515 ;;
a7e330e9 3516 hppa*64*-*-hpux*)
f24be480 3517 noconfigdirs="$noconfigdirs ${libgcj}"
3518 ;;
3519 hppa*-hp-hpux11*)
3520 ;;
a7e330e9 3521 hppa*-*-hpux*)
f24be480 3522 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3523 # build on HP-UX 10.20.
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
f24be480 3526 ia64*-*-*vms*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 ;;
f24be480 3529 i[3456789]86-w64-mingw*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3531 ;;
3532 i[3456789]86-*-mingw*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3534 ;;
3535 x86_64-*-mingw*)
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3537 ;;
f24be480 3538 mmix-*-*)
3539 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
f24be480 3540 ;;
3541 powerpc-*-aix*)
3542 # copied from rs6000-*-* entry
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3544 ;;
f24be480 3545 rs6000-*-aix*)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3547 ;;
6406d366 3548 ft32-*-*)
3549 noconfigdirs="$noconfigdirs ${libgcj}"
3550 ;;
f24be480 3551 *-*-lynxos*)
3552 noconfigdirs="$noconfigdirs ${libgcj}"
3553 ;;
f24be480 3554esac
3555
10e64fba 3556# Disable the go frontend on systems where it is known to not work. Please keep
3557# this in sync with contrib/config-list.mk.
56242c27 3558case "${target}" in
3559*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3560 unsupported_languages="$unsupported_languages go"
3561 ;;
3562esac
3563
a6999726 3564# Disable libgo for some systems where it is known to not work.
3565# For testing, you can easily override this with --enable-libgo.
3566if test x$enable_libgo = x; then
3567 case "${target}" in
3568 *-*-darwin*)
3569 # PR 46986
3570 noconfigdirs="$noconfigdirs target-libgo"
3571 ;;
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3574 ;;
3575 *-*-aix*)
3576 noconfigdirs="$noconfigdirs target-libgo"
3577 ;;
3578 esac
3579fi
3580
1c5767f1 3581# Default libgloss CPU subdirectory.
3582libgloss_dir="$target_cpu"
4ee9c684 3583
e0942c78 3584case "${target}" in
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586 libgloss_dir=wince
3587 ;;
e26fddfa 3588 aarch64*-*-* )
3589 libgloss_dir=aarch64
3590 ;;
e0942c78 3591 arm*-*-*)
3592 libgloss_dir=arm
3593 ;;
3594 cris-*-* | crisv32-*-*)
3595 libgloss_dir=cris
3596 ;;
3597 hppa*-*-*)
3598 libgloss_dir=pa
3599 ;;
3600 i[3456789]86-*-*)
3601 libgloss_dir=i386
3602 ;;
3603 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3604 libgloss_dir=m68hc11
3605 ;;
3606 m68*-*-* | fido-*-*)
3607 libgloss_dir=m68k
3608 ;;
3609 mips*-*-*)
3610 libgloss_dir=mips
3611 ;;
3612 powerpc*-*-*)
3613 libgloss_dir=rs6000
3614 ;;
3615 sparc*-*-*)
3616 libgloss_dir=sparc
3617 ;;
3618esac
3619
d556f192 3620# Disable newlib and libgloss for various target OSes.
71ab34df 3621case "${target}" in
d556f192 3622 alpha*-dec-osf*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 i[3456789]86-*-linux*)
3626 # This section makes it possible to build newlib natively on linux.
3627 # If we are using a cross compiler then don't configure newlib.
3628 if test x${is_cross_compiler} != xno ; then
3629 noconfigdirs="$noconfigdirs target-newlib"
3630 fi
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 # If we are not using a cross compiler, do configure newlib.
3633 # Note however, that newlib will only be configured in this situation
3634 # if the --with-newlib option has been given, because otherwise
3635 # 'target-newlib' will appear in skipdirs.
3636 ;;
3637 i[3456789]86-*-rdos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 sparc-*-sunos4*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-aix*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-beos*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
71ab34df 3652 *-*-chorusos)
71559dce 3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3654 ;;
d556f192 3655 *-*-dragonfly*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-freebsd*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 *-*-lynxos*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-mingw*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-netbsd*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-netware*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-tpf*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 *-*-uclinux*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 *-*-vxworks*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685esac
3686
3687case "${target}" in
3688 *-*-chorusos)
3689 ;;
38f4c967 3690 aarch64-*-darwin*)
3691 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3692 noconfigdirs="$noconfigdirs sim target-rda"
3693 ;;
3694 arm-*-darwin*)
3695 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3696 noconfigdirs="$noconfigdirs sim target-rda"
3697 ;;
40c500e1 3698 powerpc-*-darwin*)
dba2c8ea 3699 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3700 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3701 ;;
ea864ded 3702 i[3456789]86-*-darwin*)
3703 noconfigdirs="$noconfigdirs ld gprof"
3704 noconfigdirs="$noconfigdirs sim target-rda"
3705 ;;
3706 x86_64-*-darwin[912]*)
d9f9f3af 3707 noconfigdirs="$noconfigdirs ld gas gprof"
3708 noconfigdirs="$noconfigdirs sim target-rda"
3709 ;;
fce068fd 3710 *-*-darwin*)
3711 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3713 ;;
e3a1fe08 3714 *-*-dragonfly*)
e3a1fe08 3715 ;;
c01dd063 3716 *-*-freebsd*)
4ee9c684 3717 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3718 && test -f /usr/local/include/gmp.h; then
3719 with_gmp=/usr/local
3720 fi
4ee9c684 3721 ;;
336577be 3722 *-*-kaos*)
3723 # Remove unsupported stuff on all kaOS configurations.
336577be 3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 ;;
71ab34df 3726 *-*-netbsd*)
71ab34df 3727 ;;
634f7a13 3728 *-*-netware*)
71ab34df 3729 ;;
3730 *-*-rtems*)
f24be480 3731 noconfigdirs="$noconfigdirs target-libgloss"
d781ea5c 3732 # this is not caught below because this stanza matches earlier
3733 case $target in
3734 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3735 esac
71ab34df 3736 ;;
9f88bc9d 3737 # The tpf target doesn't support gdb yet.
3738 *-*-tpf*)
d556f192 3739 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3740 ;;
688429c4 3741 *-*-uclinux*)
d556f192 3742 noconfigdirs="$noconfigdirs target-rda"
688429c4 3743 ;;
71ab34df 3744 *-*-vxworks*)
71ab34df 3745 ;;
3746 alpha*-dec-osf*)
3747 # ld works, but does not support shared libraries.
71ab34df 3748 # gas doesn't generate exception information.
d556f192 3749 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3750 ;;
3751 alpha*-*-*vms*)
f24be480 3752 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3753 ;;
71ab34df 3754 alpha*-*-*)
3755 # newlib is not 64 bit ready
f24be480 3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3757 ;;
71ab34df 3758 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3759 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3760 ;;
3c867e46 3761 arc-*-*|arceb-*-*)
17b3d2a8 3762 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3763 ;;
71ab34df 3764 arm-*-pe*)
f24be480 3765 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3766 ;;
71ab34df 3767 arm-*-riscix*)
71559dce 3768 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3769 ;;
fd28e216 3770 avr-*-rtems*)
3771 ;;
3772 avr-*-*)
3773 if test x${with_avrlibc} != xno; then
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 fi
3776 ;;
71ab34df 3777 c4x-*-* | tic4x-*-*)
71559dce 3778 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3779 ;;
71559dce 3780 tic54x-*-*)
3781 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3782 ;;
71ab34df 3783 d10v-*-*)
71559dce 3784 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3785 ;;
3786 d30v-*-*)
71559dce 3787 noconfigdirs="$noconfigdirs gdb"
71ab34df 3788 ;;
3789 fr30-*-elf*)
f24be480 3790 noconfigdirs="$noconfigdirs gdb"
71ab34df 3791 ;;
6406d366 3792 ft32-*-*)
3793 noconfigdirs="$noconfigdirs target-rda gprof"
3794 ;;
ca2751b6 3795 moxie-*-*)
6406d366 3796 noconfigdirs="$noconfigdirs"
ca2751b6 3797 ;;
71ab34df 3798 h8300*-*-*)
f24be480 3799 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3800 ;;
3801 h8500-*-*)
71559dce 3802 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3803 ;;
e8eddfdd 3804 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3805 ;;
6406d366 3806 hppa*64*-*-hpux*)
3807 noconfigdirs="$noconfigdirs gdb"
3808 ;;
3809 hppa*-*-hpux11*)
3810 noconfigdirs="$noconfigdirs gdb ld"
3811 ;;
6bd59761 3812 hppa*64*-*-linux*)
71ab34df 3813 ;;
99684e84 3814 hppa*-*-linux*)
08261f02 3815 ;;
71ab34df 3816 hppa*-*-*elf* | \
71ab34df 3817 hppa*-*-lites* | \
3818 hppa*-*-openbsd* | \
3819 hppa*64*-*-*)
71ab34df 3820 ;;
1c5767f1 3821 hppa*-*-pro*)
1c5767f1 3822 ;;
71ab34df 3823 hppa*-*-*)
f24be480 3824 noconfigdirs="$noconfigdirs ld"
71ab34df 3825 ;;
4a9237fb 3826 i960-*-*)
71559dce 3827 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3828 ;;
71ab34df 3829 ia64*-*-elf*)
3830 # No gdb support yet.
6c9785b4 3831 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3832 ;;
3833 ia64*-**-hpux*)
1aca86a6 3834 # No ld support yet.
6406d366 3835 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
71ab34df 3836 ;;
8408ca00 3837 ia64*-*-*vms*)
3211401d 3838 # No ld support yet.
3839 noconfigdirs="$noconfigdirs libgui itcl ld"
8408ca00 3840 ;;
ec2eb8fb 3841 i[3456789]86-w64-mingw*)
ec2eb8fb 3842 ;;
3843 i[3456789]86-*-mingw*)
d6d689df 3844 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3845 ;;
71ab34df 3846 *-*-cygwin*)
3847 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3848 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3849 # always build newlib if winsup directory is present.
d6d689df 3850 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3851 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3852 elif test -d "$srcdir/newlib"; then
d6d689df 3853 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3854 fi
b30fcfae 3855 ;;
f74ea578 3856 i[3456789]86-*-pe)
17b3d2a8 3857 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3858 ;;
f74ea578 3859 i[3456789]86-*-sco3.2v5*)
71ab34df 3860 # The linker does not yet know about weak symbols in COFF,
3861 # and is not configured to handle mixed ELF and COFF.
71559dce 3862 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3863 ;;
f74ea578 3864 i[3456789]86-*-sco*)
71559dce 3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3866 ;;
14f27bc6 3867 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3868 noconfigdirs="$noconfigdirs target-libgloss"
3869 ;;
f74ea578 3870 i[3456789]86-*-sysv4*)
71559dce 3871 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3872 ;;
f74ea578 3873 i[3456789]86-*-beos*)
d556f192 3874 noconfigdirs="$noconfigdirs gdb"
602d002b 3875 ;;
ab0da556 3876 i[3456789]86-*-rdos*)
d556f192 3877 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3878 ;;
71ab34df 3879 mmix-*-*)
f24be480 3880 noconfigdirs="$noconfigdirs gdb"
71ab34df 3881 ;;
957985d9 3882 mt-*-*)
f6fa11cb 3883 noconfigdirs="$noconfigdirs sim"
3884 ;;
71ab34df 3885 powerpc-*-aix*)
3886 # copied from rs6000-*-* entry
d556f192 3887 noconfigdirs="$noconfigdirs gprof"
71ab34df 3888 ;;
6bd59761 3889 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3890 target_configdirs="$target_configdirs target-winsup"
71559dce 3891 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3892 # always build newlib.
3893 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3894 ;;
3895 # This is temporary until we can link against shared libraries
3896 powerpcle-*-solaris*)
71559dce 3897 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3898 ;;
3899 powerpc-*-beos*)
d556f192 3900 noconfigdirs="$noconfigdirs gdb"
71ab34df 3901 ;;
71ab34df 3902 rs6000-*-lynxos*)
d556f192 3903 noconfigdirs="$noconfigdirs gprof"
71ab34df 3904 ;;
3905 rs6000-*-aix*)
d556f192 3906 noconfigdirs="$noconfigdirs gprof"
71ab34df 3907 ;;
3908 rs6000-*-*)
f24be480 3909 noconfigdirs="$noconfigdirs gprof"
71ab34df 3910 ;;
3911 m68k-apollo-*)
71559dce 3912 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3913 ;;
ba2b484f 3914 microblaze*)
f24be480 3915 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3916 ;;
d781ea5c 3917 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
68c9bc25 3918 if test x$with_newlib = xyes; then
3919 noconfigdirs="$noconfigdirs gprof"
3920 fi
68c9bc25 3921 ;;
71ab34df 3922 mips*-*-irix5*)
71559dce 3923 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3924 ;;
3925 mips*-*-irix6*)
f24be480 3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3927 ;;
71ab34df 3928 mips*-*-bsd*)
d6449910 3929 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
71ab34df 3930 ;;
71ab34df 3931 mips*-*-linux*)
71ab34df 3932 ;;
d6449910 3933 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3934 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3935 noconfigdirs="$noconfigdirs ld gas gprof"
3936 ;;
71ab34df 3937 mips*-*-*)
f24be480 3938 noconfigdirs="$noconfigdirs gprof"
71ab34df 3939 ;;
d781ea5c 3940 nds32*-*-*)
3941 noconfigdirs="$noconfigdirs gdb"
3942 ;;
8ce80784 3943 nvptx*-*-*)
8ce80784 3944 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3945 ;;
d781ea5c 3946 or1k*-*-*)
3947 noconfigdirs="$noconfigdirs gdb"
3948 ;;
33974778 3949 sh-*-* | sh64-*-*)
39f6b116 3950 case "${target}" in
3951 sh*-*-elf)
f24be480 3952 ;;
39f6b116 3953 *)
f24be480 3954 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3955 esac
71ab34df 3956 ;;
71ab34df 3957 sparc-*-sunos4*)
d556f192 3958 if test x${is_cross_compiler} = xno ; then
71ab34df 3959 use_gnu_ld=no
3960 fi
3961 ;;
fa0a53e3 3962 tic6x-*-*)
ccdfa490 3963 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3964 ;;
2da35515 3965 tilepro*-*-* | tilegx*-*-*)
e5fa74b2 3966 noconfigdirs="$noconfigdirs sim"
3967 ;;
71ab34df 3968 v810-*-*)
71559dce 3969 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3970 ;;
3971 vax-*-*)
f24be480 3972 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3973 ;;
71ab34df 3974esac
a8298541 3975
71ab34df 3976# If we aren't building newlib, then don't build libgloss, since libgloss
3977# depends upon some newlib header files.
3978case "${noconfigdirs}" in
3979 *target-libgloss*) ;;
3980 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3981esac
3982
71ab34df 3983# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3984host_makefile_frag=/dev/null
3985if test -d ${srcdir}/config ; then
3986case "${host}" in
f74ea578 3987 i[3456789]86-*-msdosdjgpp*)
71ab34df 3988 host_makefile_frag="config/mh-djgpp"
3989 ;;
3990 *-cygwin*)
45043b2b 3991
cd9a469c 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3993$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3994echo a >cygwin-cat-check
82d97a59 3995if test `cat cygwin-cat-check` = a ; then
45043b2b 3996 rm cygwin-cat-check
cd9a469c 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998$as_echo "yes" >&6; }
45043b2b 3999else
4000 rm cygwin-cat-check
cd9a469c 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003 as_fn_error "The cat command does not ignore carriage return characters.
45043b2b 4004 Please either mount the build directory in binary mode or run the following
4005 commands before running any configure script:
4006set -o igncr
4007export SHELLOPTS
cd9a469c 4008 " "$LINENO" 5
45043b2b 4009fi
4010
71ab34df 4011 host_makefile_frag="config/mh-cygwin"
4012 ;;
5a92bcc2 4013 *-mingw*)
70d8e49e 4014 host_makefile_frag="config/mh-mingw"
a378fc89 4015 ;;
bed3355c 4016 alpha*-linux*)
539ded76 4017 host_makefile_frag="config/mh-alpha-linux"
4018 ;;
d2b94e36 4019 hppa*-hp-hpux10*)
d2b94e36 4020 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 4021 ;;
b2240ff6 4022 hppa*-hp-hpux*)
d2b94e36 4023 host_makefile_frag="config/mh-pa"
4024 ;;
4025 hppa*-*)
4026 host_makefile_frag="config/mh-pa"
4027 ;;
16463c8d 4028 *-*-darwin*)
4029 host_makefile_frag="config/mh-darwin"
0222d984 4030 ;;
9d44a802 4031 powerpc-*-aix*)
4032 host_makefile_frag="config/mh-ppc-aix"
4033 ;;
4034 rs6000-*-aix*)
4035 host_makefile_frag="config/mh-ppc-aix"
4036 ;;
71ab34df 4037esac
4038fi
4039
8e1fea1a 4040if test "${build}" != "${host}" ; then
93c5e793 4041 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4042 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 4043 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 4044 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4045 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4046 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 4047 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
93c5e793 4048 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4049 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4050 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4051 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4052 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4053 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4054else
4055 AR_FOR_BUILD="\$(AR)"
4056 AS_FOR_BUILD="\$(AS)"
a4af6a58 4057 CC_FOR_BUILD="\$(CC)"
93c5e793 4058 CXX_FOR_BUILD="\$(CXX)"
4059 GCJ_FOR_BUILD="\$(GCJ)"
4060 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 4061 GOC_FOR_BUILD="\$(GOC)"
93c5e793 4062 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4063 LD_FOR_BUILD="\$(LD)"
4064 NM_FOR_BUILD="\$(NM)"
4065 RANLIB_FOR_BUILD="\$(RANLIB)"
4066 WINDRES_FOR_BUILD="\$(WINDRES)"
4067 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 4068fi
4069
4070ac_ext=c
b30fcfae 4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4077set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
b30fcfae 4082else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
cd9a469c 4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4095 break 2
4096 fi
4097done
cd9a469c 4098 done
4099IFS=$as_save_IFS
b30fcfae 4100
4101fi
4102fi
4103CC=$ac_cv_prog_CC
4104if test -n "$CC"; then
cd9a469c 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106$as_echo "$CC" >&6; }
b30fcfae 4107else
cd9a469c 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
b30fcfae 4110fi
4111
cd9a469c 4112
b30fcfae 4113fi
4114if test -z "$ac_cv_prog_CC"; then
4115 ac_ct_CC=$CC
a4af6a58 4116 # Extract the first word of "gcc", so it can be a program name with args.
4117set dummy gcc; ac_word=$2
cd9a469c 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
b30fcfae 4122else
4123 if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
cd9a469c 4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4133 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4135 break 2
4136 fi
4137done
cd9a469c 4138 done
4139IFS=$as_save_IFS
b30fcfae 4140
4141fi
4142fi
4143ac_ct_CC=$ac_cv_prog_ac_ct_CC
4144if test -n "$ac_ct_CC"; then
cd9a469c 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4146$as_echo "$ac_ct_CC" >&6; }
b30fcfae 4147else
cd9a469c 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
b30fcfae 4150fi
4151
cd9a469c 4152 if test "x$ac_ct_CC" = x; then
4153 CC=""
4154 else
4155 case $cross_compiling:$ac_tool_warned in
4156yes:)
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159ac_tool_warned=yes ;;
4160esac
4161 CC=$ac_ct_CC
4162 fi
b30fcfae 4163else
4164 CC="$ac_cv_prog_CC"
4165fi
4166
4167if test -z "$CC"; then
cd9a469c 4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 4170set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if test "${ac_cv_prog_CC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
8e1fea1a 4175else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178else
b30fcfae 4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
cd9a469c 4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4186 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4188 break 2
4189 fi
4190done
cd9a469c 4191 done
4192IFS=$as_save_IFS
b30fcfae 4193
a83ffacf 4194fi
a83ffacf 4195fi
b30fcfae 4196CC=$ac_cv_prog_CC
ae48753c 4197if test -n "$CC"; then
cd9a469c 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199$as_echo "$CC" >&6; }
5084f823 4200else
cd9a469c 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
5084f823 4203fi
4204
5084f823 4205
cd9a469c 4206 fi
b30fcfae 4207fi
8e1fea1a 4208if test -z "$CC"; then
4209 # Extract the first word of "cc", so it can be a program name with args.
4210set dummy cc; ac_word=$2
cd9a469c 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if test "${ac_cv_prog_CC+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
8e1fea1a 4215else
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218else
a83ffacf 4219 ac_prog_rejected=no
b30fcfae 4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
cd9a469c 4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4228 ac_prog_rejected=yes
4229 continue
4230 fi
4231 ac_cv_prog_CC="cc"
cd9a469c 4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4233 break 2
4234 fi
4235done
cd9a469c 4236 done
4237IFS=$as_save_IFS
b30fcfae 4238
8e1fea1a 4239if test $ac_prog_rejected = yes; then
4240 # We found a bogon in the path, so make sure we never use it.
4241 set dummy $ac_cv_prog_CC
4242 shift
b30fcfae 4243 if test $# != 0; then
8e1fea1a 4244 # We chose a different compiler from the bogus one.
4245 # However, it has the same basename, so the bogon will be chosen
4246 # first if we set CC to just the basename; use the full file name.
4247 shift
b30fcfae 4248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 4249 fi
4250fi
4251fi
4252fi
b30fcfae 4253CC=$ac_cv_prog_CC
8e1fea1a 4254if test -n "$CC"; then
cd9a469c 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256$as_echo "$CC" >&6; }
8e1fea1a 4257else
cd9a469c 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
8e1fea1a 4260fi
4261
cd9a469c 4262
b30fcfae 4263fi
4264if test -z "$CC"; then
4265 if test -n "$ac_tool_prefix"; then
cd9a469c 4266 for ac_prog in cl.exe
b30fcfae 4267 do
4268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if test "${ac_cv_prog_CC+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
8e1fea1a 4274else
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4277else
b30fcfae 4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
cd9a469c 4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4287 break 2
4288 fi
4289done
cd9a469c 4290 done
4291IFS=$as_save_IFS
b30fcfae 4292
8e1fea1a 4293fi
4294fi
b30fcfae 4295CC=$ac_cv_prog_CC
8e1fea1a 4296if test -n "$CC"; then
cd9a469c 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298$as_echo "$CC" >&6; }
b1660f25 4299else
cd9a469c 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
a4af6a58 4302fi
ae48753c 4303
cd9a469c 4304
b30fcfae 4305 test -n "$CC" && break
4306 done
ae48753c 4307fi
b30fcfae 4308if test -z "$CC"; then
4309 ac_ct_CC=$CC
cd9a469c 4310 for ac_prog in cl.exe
b30fcfae 4311do
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313set dummy $ac_prog; ac_word=$2
cd9a469c 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
a83ffacf 4318else
b30fcfae 4319 if test -n "$ac_ct_CC"; then
4320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 4321else
b30fcfae 4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
cd9a469c 4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4329 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4331 break 2
4332 fi
4333done
cd9a469c 4334 done
4335IFS=$as_save_IFS
b30fcfae 4336
ae48753c 4337fi
4338fi
b30fcfae 4339ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340if test -n "$ac_ct_CC"; then
cd9a469c 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4342$as_echo "$ac_ct_CC" >&6; }
a4af6a58 4343else
cd9a469c 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
ae48753c 4346fi
a83ffacf 4347
cd9a469c 4348
b30fcfae 4349 test -n "$ac_ct_CC" && break
4350done
4351
cd9a469c 4352 if test "x$ac_ct_CC" = x; then
4353 CC=""
4354 else
4355 case $cross_compiling:$ac_tool_warned in
4356yes:)
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359ac_tool_warned=yes ;;
4360esac
4361 CC=$ac_ct_CC
4362 fi
b30fcfae 4363fi
4364
4365fi
4366
4367
cd9a469c 4368test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370as_fn_error "no acceptable C compiler found in \$PATH
4371See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4372
4373# Provide some information about the compiler.
cd9a469c 4374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4375set X $ac_compile
4376ac_compiler=$2
4377for ac_option in --version -v -V -qversion; do
4378 { { ac_try="$ac_compiler $ac_option >&5"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384$as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4386 ac_status=$?
cd9a469c 4387 if test -s conftest.err; then
4388 sed '10a\
4389... rest of stderr output deleted ...
4390 10q' conftest.err >conftest.er1
4391 cat conftest.er1 >&5
4392 rm -f conftest.er1 conftest.err
4393 fi
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4396done
b30fcfae 4397
cd9a469c 4398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4399/* end confdefs.h. */
4400
4401int
4402main ()
4403{
4404
4405 ;
4406 return 0;
4407}
4408_ACEOF
4409ac_clean_files_save=$ac_clean_files
cd9a469c 4410ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b30fcfae 4411# Try to create an executable without -o first, disregard a.out.
4412# It will help us diagnose broken compilers, and finding out an intuition
4413# of exeext.
cd9a469c 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4415$as_echo_n "checking for C compiler default output file name... " >&6; }
4416ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4417
4418# The possible output files:
4419ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4420
4421ac_rmfiles=
4422for ac_file in $ac_files
4423do
4424 case $ac_file in
4425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4427 esac
4428done
4429rm -f $ac_rmfiles
4430
4431if { { ac_try="$ac_link_default"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link_default") 2>&5
b30fcfae 4439 ac_status=$?
cd9a469c 4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4443# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4444# in a Makefile. We should not override ac_cv_exeext if it was cached,
4445# so that the user can short-circuit this test for compilers unknown to
4446# Autoconf.
4447for ac_file in $ac_files ''
b30fcfae 4448do
4449 test -f "$ac_file" || continue
4450 case $ac_file in
cd9a469c 4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4452 ;;
4453 [ab].out )
4454 # We found the default executable, but exeext='' is most
4455 # certainly right.
4456 break;;
4457 *.* )
cd9a469c 4458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4459 then :; else
4460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4461 fi
4462 # We set ac_cv_exeext here because the later test for it is not
4463 # safe: cross compilers may not add the suffix if given an `-o'
4464 # argument, so we may need to know it at that point already.
4465 # Even if this section looks crufty: it has the advantage of
4466 # actually working.
b30fcfae 4467 break;;
4468 * )
4469 break;;
4470 esac
4471done
cd9a469c 4472test "$ac_cv_exeext" = no && ac_cv_exeext=
4473
b30fcfae 4474else
cd9a469c 4475 ac_file=''
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4478$as_echo "$ac_file" >&6; }
4479if test -z "$ac_file"; then :
4480 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4481sed 's/^/| /' conftest.$ac_ext >&5
4482
cd9a469c 4483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485{ as_fn_set_status 77
4486as_fn_error "C compiler cannot create executables
4487See \`config.log' for more details." "$LINENO" 5; }; }
b30fcfae 4488fi
b30fcfae 4489ac_exeext=$ac_cv_exeext
b30fcfae 4490
cd9a469c 4491# Check that the compiler produces executables we can run. If not, either
b30fcfae 4492# the compiler is broken, or we cross compile.
cd9a469c 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4494$as_echo_n "checking whether the C compiler works... " >&6; }
b30fcfae 4495# If not cross compiling, check that we can run a simple program.
4496if test "$cross_compiling" != yes; then
4497 if { ac_try='./$ac_file'
cd9a469c 4498 { { case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
4502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_try") 2>&5
b30fcfae 4505 ac_status=$?
cd9a469c 4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; }; then
b30fcfae 4508 cross_compiling=no
4509 else
4510 if test "$cross_compiling" = maybe; then
4511 cross_compiling=yes
4512 else
cd9a469c 4513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4515as_fn_error "cannot run C compiled programs.
b30fcfae 4516If you meant to cross compile, use \`--host'.
cd9a469c 4517See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4518 fi
4519 fi
4520fi
cd9a469c 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522$as_echo "yes" >&6; }
b30fcfae 4523
cd9a469c 4524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b30fcfae 4525ac_clean_files=$ac_clean_files_save
cd9a469c 4526# Check that the compiler produces executables we can run. If not, either
b30fcfae 4527# the compiler is broken, or we cross compile.
cd9a469c 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4529$as_echo_n "checking whether we are cross compiling... " >&6; }
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4531$as_echo "$cross_compiling" >&6; }
4532
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4534$as_echo_n "checking for suffix of executables... " >&6; }
4535if { { ac_try="$ac_link"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_link") 2>&5
b30fcfae 4543 ac_status=$?
cd9a469c 4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
b30fcfae 4546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4547# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4548# work properly (i.e., refer to `conftest.exe'), while it won't with
4549# `rm'.
4550for ac_file in conftest.exe conftest conftest.*; do
4551 test -f "$ac_file" || continue
4552 case $ac_file in
cd9a469c 4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4555 break;;
4556 * ) break;;
4557 esac
4558done
ae48753c 4559else
cd9a469c 4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562as_fn_error "cannot compute suffix of executables: cannot compile and link
4563See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4564fi
b30fcfae 4565rm -f conftest$ac_cv_exeext
cd9a469c 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4567$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4568
4569rm -f conftest.$ac_ext
4570EXEEXT=$ac_cv_exeext
4571ac_exeext=$EXEEXT
cd9a469c 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4573$as_echo_n "checking for suffix of object files... " >&6; }
4574if test "${ac_cv_objext+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
b30fcfae 4576else
cd9a469c 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4578/* end confdefs.h. */
4579
4580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
4587_ACEOF
4588rm -f conftest.o conftest.obj
cd9a469c 4589if { { ac_try="$ac_compile"
4590case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_compile") 2>&5
b30fcfae 4597 ac_status=$?
cd9a469c 4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; then :
4600 for ac_file in conftest.o conftest.obj conftest.*; do
4601 test -f "$ac_file" || continue;
b30fcfae 4602 case $ac_file in
cd9a469c 4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4605 break;;
4606 esac
4607done
4608else
cd9a469c 4609 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4610sed 's/^/| /' conftest.$ac_ext >&5
4611
cd9a469c 4612{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614as_fn_error "cannot compute suffix of object files: cannot compile
4615See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4616fi
b30fcfae 4617rm -f conftest.$ac_cv_objext conftest.$ac_ext
4618fi
cd9a469c 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4620$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4621OBJEXT=$ac_cv_objext
4622ac_objext=$OBJEXT
cd9a469c 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4624$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4625if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
b30fcfae 4627else
cd9a469c 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4629/* end confdefs.h. */
4630
4631int
4632main ()
4633{
4634#ifndef __GNUC__
4635 choke me
4636#endif
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
cd9a469c 4642if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4643 ac_compiler_gnu=yes
4644else
cd9a469c 4645 ac_compiler_gnu=no
b30fcfae 4646fi
cd9a469c 4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4648ac_cv_c_compiler_gnu=$ac_compiler_gnu
4649
4650fi
cd9a469c 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4652$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4653if test $ac_compiler_gnu = yes; then
4654 GCC=yes
4655else
4656 GCC=
4657fi
b30fcfae 4658ac_test_CFLAGS=${CFLAGS+set}
4659ac_save_CFLAGS=$CFLAGS
cd9a469c 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4661$as_echo_n "checking whether $CC accepts -g... " >&6; }
4662if test "${ac_cv_prog_cc_g+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664else
4665 ac_save_c_werror_flag=$ac_c_werror_flag
4666 ac_c_werror_flag=yes
4667 ac_cv_prog_cc_g=no
4668 CFLAGS="-g"
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4670/* end confdefs.h. */
4671
4672int
4673main ()
4674{
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
cd9a469c 4680if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4681 ac_cv_prog_cc_g=yes
4682else
cd9a469c 4683 CFLAGS=""
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686
4687int
4688main ()
4689{
4690
4691 ;
4692 return 0;
4693}
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696
4697else
4698 ac_c_werror_flag=$ac_save_c_werror_flag
4699 CFLAGS="-g"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h. */
ae48753c 4702
cd9a469c 4703int
4704main ()
4705{
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_prog_cc_g=yes
4713fi
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4715fi
cd9a469c 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4717fi
cd9a469c 4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_c_werror_flag=$ac_save_c_werror_flag
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4722$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4723if test "$ac_test_CFLAGS" = set; then
b30fcfae 4724 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4725elif test $ac_cv_prog_cc_g = yes; then
4726 if test "$GCC" = yes; then
4727 CFLAGS="-g -O2"
4728 else
4729 CFLAGS="-g"
4730 fi
4731else
4732 if test "$GCC" = yes; then
4733 CFLAGS="-O2"
4734 else
4735 CFLAGS=
4736 fi
4737fi
cd9a469c 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4739$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4740if test "${ac_cv_prog_cc_c89+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
b30fcfae 4742else
cd9a469c 4743 ac_cv_prog_cc_c89=no
b30fcfae 4744ac_save_CC=$CC
cd9a469c 4745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4746/* end confdefs.h. */
4747#include <stdarg.h>
4748#include <stdio.h>
4749#include <sys/types.h>
4750#include <sys/stat.h>
4751/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4752struct buf { int x; };
4753FILE * (*rcsopen) (struct buf *, struct stat *, int);
4754static char *e (p, i)
4755 char **p;
4756 int i;
4757{
4758 return p[i];
4759}
4760static char *f (char * (*g) (char **, int), char **p, ...)
4761{
4762 char *s;
4763 va_list v;
4764 va_start (v,p);
4765 s = g (p, va_arg (v,int));
4766 va_end (v);
4767 return s;
4768}
4769
4770/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4771 function prototypes and stuff, but not '\xHH' hex character constants.
4772 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4773 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4775 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4776 that's true only with -std. */
b30fcfae 4777int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4778
cd9a469c 4779/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4780 inside strings and character constants. */
4781#define FOO(x) 'x'
4782int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4783
b30fcfae 4784int test (int i, double x);
4785struct s1 {int (*f) (int a);};
4786struct s2 {int (*f) (double a);};
4787int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4788int argc;
4789char **argv;
4790int
4791main ()
4792{
4793return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4794 ;
4795 return 0;
4796}
4797_ACEOF
cd9a469c 4798for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4799 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4800do
4801 CC="$ac_save_CC $ac_arg"
cd9a469c 4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4804fi
cd9a469c 4805rm -f core conftest.err conftest.$ac_objext
4806 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4807done
cd9a469c 4808rm -f conftest.$ac_ext
b30fcfae 4809CC=$ac_save_CC
4810
4811fi
cd9a469c 4812# AC_CACHE_VAL
4813case "x$ac_cv_prog_cc_c89" in
4814 x)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4816$as_echo "none needed" >&6; } ;;
4817 xno)
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4819$as_echo "unsupported" >&6; } ;;
b30fcfae 4820 *)
cd9a469c 4821 CC="$CC $ac_cv_prog_cc_c89"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4823$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4824esac
cd9a469c 4825if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4826
5084f823 4827fi
4828
5084f823 4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834
cd9a469c 4835ac_ext=cpp
5084f823 4836ac_cpp='$CXXCPP $CPPFLAGS'
4837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4840if test -z "$CXX"; then
4841 if test -n "$CCC"; then
4842 CXX=$CCC
4843 else
4844 if test -n "$ac_tool_prefix"; then
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4846 do
4847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if test "${ac_cv_prog_CXX+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
5084f823 4853else
4854 if test -n "$CXX"; then
4855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
cd9a469c 4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084f823 4864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4866 break 2
4867 fi
4868done
cd9a469c 4869 done
4870IFS=$as_save_IFS
8e1fea1a 4871
eae5b2bc 4872fi
4873fi
4874CXX=$ac_cv_prog_CXX
4875if test -n "$CXX"; then
cd9a469c 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4877$as_echo "$CXX" >&6; }
eae5b2bc 4878else
cd9a469c 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
eae5b2bc 4881fi
4882
cd9a469c 4883
eae5b2bc 4884 test -n "$CXX" && break
4885 done
4886fi
4887if test -z "$CXX"; then
4888 ac_ct_CXX=$CXX
cd9a469c 4889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4890do
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892set dummy $ac_prog; ac_word=$2
cd9a469c 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
eae5b2bc 4897else
4898 if test -n "$ac_ct_CXX"; then
4899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
cd9a469c 4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eae5b2bc 4908 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4910 break 2
4911 fi
4912done
cd9a469c 4913 done
4914IFS=$as_save_IFS
eae5b2bc 4915
4916fi
4917fi
4918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4919if test -n "$ac_ct_CXX"; then
cd9a469c 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4921$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4922else
cd9a469c 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924$as_echo "no" >&6; }
eae5b2bc 4925fi
4926
cd9a469c 4927
eae5b2bc 4928 test -n "$ac_ct_CXX" && break
4929done
eae5b2bc 4930
cd9a469c 4931 if test "x$ac_ct_CXX" = x; then
4932 CXX="g++"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935yes:)
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938ac_tool_warned=yes ;;
4939esac
4940 CXX=$ac_ct_CXX
4941 fi
eae5b2bc 4942fi
4943
cd9a469c 4944 fi
4945fi
eae5b2bc 4946# Provide some information about the compiler.
cd9a469c 4947$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4948set X $ac_compile
4949ac_compiler=$2
4950for ac_option in --version -v -V -qversion; do
4951 { { ac_try="$ac_compiler $ac_option >&5"
4952case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955esac
4956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4957$as_echo "$ac_try_echo"; } >&5
4958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4959 ac_status=$?
cd9a469c 4960 if test -s conftest.err; then
4961 sed '10a\
4962... rest of stderr output deleted ...
4963 10q' conftest.err >conftest.er1
4964 cat conftest.er1 >&5
4965 rm -f conftest.er1 conftest.err
4966 fi
4967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; }
4969done
eae5b2bc 4970
cd9a469c 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4972$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4973if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
eae5b2bc 4975else
cd9a469c 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4977/* end confdefs.h. */
4978
4979int
4980main ()
4981{
4982#ifndef __GNUC__
4983 choke me
4984#endif
4985
4986 ;
4987 return 0;
4988}
4989_ACEOF
cd9a469c 4990if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4991 ac_compiler_gnu=yes
4992else
cd9a469c 4993 ac_compiler_gnu=no
eae5b2bc 4994fi
cd9a469c 4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4996ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4997
4998fi
cd9a469c 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5000$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5001if test $ac_compiler_gnu = yes; then
5002 GXX=yes
5003else
5004 GXX=
5005fi
eae5b2bc 5006ac_test_CXXFLAGS=${CXXFLAGS+set}
5007ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5009$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5010if test "${ac_cv_prog_cxx_g+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012else
5013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5014 ac_cxx_werror_flag=yes
5015 ac_cv_prog_cxx_g=no
5016 CXXFLAGS="-g"
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5018/* end confdefs.h. */
5019
5020int
5021main ()
5022{
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
cd9a469c 5028if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 5029 ac_cv_prog_cxx_g=yes
5030else
cd9a469c 5031 CXXFLAGS=""
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5033/* end confdefs.h. */
cd9a469c 5034
eae5b2bc 5035int
5036main ()
5037{
cd9a469c 5038
eae5b2bc 5039 ;
5040 return 0;
5041}
5042_ACEOF
cd9a469c 5043if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 5044
cd9a469c 5045else
5046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5047 CXXFLAGS="-g"
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5049/* end confdefs.h. */
cd9a469c 5050
eae5b2bc 5051int
5052main ()
5053{
cd9a469c 5054
eae5b2bc 5055 ;
5056 return 0;
5057}
5058_ACEOF
cd9a469c 5059if ac_fn_cxx_try_compile "$LINENO"; then :
5060 ac_cv_prog_cxx_g=yes
570af75a 5061fi
cd9a469c 5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065fi
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5070$as_echo "$ac_cv_prog_cxx_g" >&6; }
5071if test "$ac_test_CXXFLAGS" = set; then
5072 CXXFLAGS=$ac_save_CXXFLAGS
5073elif test $ac_cv_prog_cxx_g = yes; then
5074 if test "$GXX" = yes; then
5075 CXXFLAGS="-g -O2"
5076 else
5077 CXXFLAGS="-g"
5078 fi
5079else
5080 if test "$GXX" = yes; then
5081 CXXFLAGS="-O2"
5082 else
5083 CXXFLAGS=
5084 fi
eae5b2bc 5085fi
eae5b2bc 5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091
5092
5093# We must set the default linker to the linker used by gcc for the correct
5094# operation of libtool. If LD is not defined and we are using gcc, try to
5095# set the LD default to the ld used by gcc.
5096if test -z "$LD"; then
5097 if test "$GCC" = yes; then
5098 case $build in
5099 *-*-mingw*)
5100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5101 *)
5102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5103 esac
5104 case $gcc_prog_ld in
5105 # Accept absolute paths.
5106 [\\/]* | [A-Za-z]:[\\/]*)
5107 LD="$gcc_prog_ld" ;;
5108 esac
5109 fi
2f8725b0 5110fi
5111
13687c85 5112# Check whether -static-libstdc++ -static-libgcc is supported.
5113have_static_libs=no
5114if test "$GCC" = yes; then
5115 saved_LDFLAGS="$LDFLAGS"
5116
5117 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5119$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5120 ac_ext=cpp
5121ac_cpp='$CXXCPP $CPPFLAGS'
5122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125
5126
5127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
74f1ea54 5129
5130#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5131#error -static-libstdc++ not implemented
5132#endif
13687c85 5133int main() {}
5134_ACEOF
5135if ac_fn_cxx_try_link "$LINENO"; then :
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137$as_echo "yes" >&6; }; have_static_libs=yes
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5144 ac_ext=c
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150
5151 LDFLAGS="$saved_LDFLAGS"
5152fi
5153
2f8725b0 5154
5155
8e1fea1a 5156
b30fcfae 5157if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 5159set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
8e1fea1a 5164else
5165 if test -n "$GNATBIND"; then
5166 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5167else
b30fcfae 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
cd9a469c 5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5175 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5177 break 2
5178 fi
5179done
cd9a469c 5180 done
5181IFS=$as_save_IFS
b30fcfae 5182
8e1fea1a 5183fi
5184fi
b30fcfae 5185GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 5186if test -n "$GNATBIND"; then
cd9a469c 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5188$as_echo "$GNATBIND" >&6; }
8e1fea1a 5189else
cd9a469c 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
8e1fea1a 5192fi
5193
cd9a469c 5194
b30fcfae 5195fi
8e1fea1a 5196if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 5197 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 5198 # Extract the first word of "gnatbind", so it can be a program name with args.
5199set dummy gnatbind; ac_word=$2
cd9a469c 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
8e1fea1a 5204else
b30fcfae 5205 if test -n "$ac_ct_GNATBIND"; then
5206 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 5207else
b30fcfae 5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
cd9a469c 5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5215 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5217 break 2
5218 fi
5219done
cd9a469c 5220 done
5221IFS=$as_save_IFS
b30fcfae 5222
8e1fea1a 5223fi
5224fi
b30fcfae 5225ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5226if test -n "$ac_ct_GNATBIND"; then
cd9a469c 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5228$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 5229else
cd9a469c 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
8e1fea1a 5232fi
5233
cd9a469c 5234 if test "x$ac_ct_GNATBIND" = x; then
5235 GNATBIND="no"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241ac_tool_warned=yes ;;
5242esac
5243 GNATBIND=$ac_ct_GNATBIND
5244 fi
8e1fea1a 5245else
b30fcfae 5246 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 5247fi
5248
b30fcfae 5249if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 5251set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
a18b2c54 5256else
5257 if test -n "$GNATMAKE"; then
5258 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5259else
b30fcfae 5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
cd9a469c 5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5267 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5269 break 2
5270 fi
5271done
cd9a469c 5272 done
5273IFS=$as_save_IFS
b30fcfae 5274
a18b2c54 5275fi
5276fi
b30fcfae 5277GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 5278if test -n "$GNATMAKE"; then
cd9a469c 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5280$as_echo "$GNATMAKE" >&6; }
a18b2c54 5281else
cd9a469c 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
a18b2c54 5284fi
5285
cd9a469c 5286
b30fcfae 5287fi
a18b2c54 5288if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 5289 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 5290 # Extract the first word of "gnatmake", so it can be a program name with args.
5291set dummy gnatmake; ac_word=$2
cd9a469c 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293$as_echo_n "checking for $ac_word... " >&6; }
5294if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
a18b2c54 5296else
b30fcfae 5297 if test -n "$ac_ct_GNATMAKE"; then
5298 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 5299else
b30fcfae 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
cd9a469c 5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5307 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5309 break 2
5310 fi
5311done
cd9a469c 5312 done
5313IFS=$as_save_IFS
b30fcfae 5314
a18b2c54 5315fi
5316fi
b30fcfae 5317ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5318if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5320$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 5321else
cd9a469c 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
a18b2c54 5324fi
5325
cd9a469c 5326 if test "x$ac_ct_GNATMAKE" = x; then
5327 GNATMAKE="no"
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333ac_tool_warned=yes ;;
5334esac
5335 GNATMAKE=$ac_ct_GNATMAKE
5336 fi
a18b2c54 5337else
b30fcfae 5338 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 5339fi
5340
cd9a469c 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5342$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5343if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
8e1fea1a 5345else
5346 cat >conftest.adb <<EOF
5347procedure conftest is begin null; end conftest;
5348EOF
5349acx_cv_cc_gcc_supports_ada=no
5350# There is a bug in old released versions of GCC which causes the
5351# driver to exit successfully when the appropriate language module
5352# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5353# Therefore we must check for the error message as well as an
5354# unsuccessful exit.
216de822 5355# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5356# given a .adb file, but produce no object file. So we must check
5357# if an object file was really produced to guard against this.
8e1fea1a 5358errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 5359if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 5360 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 5361fi
5362rm -f conftest.*
5363fi
cd9a469c 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5365$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 5366
9d5fd7d0 5367if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 5368 have_gnat=yes
5369else
5370 have_gnat=no
5371fi
5372
cd9a469c 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5374$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5375if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
7bcc3b4a 5377else
5378 echo abfoo >t1
5379 echo cdfoo >t2
5380 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 5381 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5382 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5383 :
5384 else
5385 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5386 fi
5387 fi
7bcc3b4a 5388 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5389 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 5390 :
7bcc3b4a 5391 else
5392 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5393 fi
5394 fi
5395 rm t1 t2
5396
5397fi
cd9a469c 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5399$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5400do_compare="$gcc_cv_prog_cmp_skip"
5401
5402
8e1fea1a 5403
6c59dfa4 5404# Check whether --enable-bootstrap was given.
5405if test "${enable_bootstrap+set}" = set; then :
5406 enableval=$enable_bootstrap;
5407else
5408 enable_bootstrap=default
5409fi
5410
5411
5412# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5413if test -r $srcdir/gcc/configure; then
5414 have_compiler=yes
5415else
5416 have_compiler=no
5417fi
6c59dfa4 5418
5419case "$have_compiler:$host:$target:$enable_bootstrap" in
5420 *:*:*:no) ;;
5421
5422 # Default behavior. Enable bootstrap if we have a compiler
5423 # and we are in a native configuration.
5424 yes:$build:$build:default)
5425 enable_bootstrap=yes ;;
5426
5427 *:*:*:default)
5428 enable_bootstrap=no ;;
5429
5430 # We have a compiler and we are in a native configuration, bootstrap is ok
5431 yes:$build:$build:yes)
5432 ;;
5433
5434 # Other configurations, but we have a compiler. Assume the user knows
5435 # what he's doing.
5436 yes:*:*:yes)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5438$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5439 ;;
5440
5441 # No compiler: if they passed --enable-bootstrap explicitly, fail
5442 no:*:*:yes)
5443 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5444
5445 # Fail if wrong command line
5446 *)
5447 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5448 ;;
5449esac
5450
27590679 5451# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5452# C++98 compiler can still start the bootstrap.
5453if test "$enable_bootstrap:$GXX" = "yes:yes"; then
dce53dbc 5454 CXX="$CXX -std=gnu++98"
27590679 5455fi
5456
c3fc6a63 5457# Used for setting $lt_cv_objdir
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5459$as_echo_n "checking for objdir... " >&6; }
5460if test "${lt_cv_objdir+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462else
5463 rm -f .libs 2>/dev/null
5464mkdir .libs 2>/dev/null
5465if test -d .libs; then
5466 lt_cv_objdir=.libs
5467else
5468 # MS-DOS does not allow filenames that begin with a dot.
5469 lt_cv_objdir=_libs
5470fi
5471rmdir .libs 2>/dev/null
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5474$as_echo "$lt_cv_objdir" >&6; }
5475objdir=$lt_cv_objdir
5476
5477
5478
5479
5480
5481cat >>confdefs.h <<_ACEOF
5482#define LT_OBJDIR "$lt_cv_objdir/"
5483_ACEOF
5484
5485
5486
7601a55c 5487# Check for GMP, MPFR and MPC
16de6a81 5488gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5489gmpinc=
d45318b3 5490have_gmp=no
7601a55c 5491
5492# Specify a location for mpc
5493# check for this first so it ends up on the link line before mpfr.
5494
cd9a469c 5495# Check whether --with-mpc was given.
5496if test "${with_mpc+set}" = set; then :
5497 withval=$with_mpc;
5498fi
7601a55c 5499
7601a55c 5500
73f813e1 5501# Check whether --with-mpc-include was given.
cd9a469c 5502if test "${with_mpc_include+set}" = set; then :
5503 withval=$with_mpc_include;
5504fi
7601a55c 5505
7601a55c 5506
73f813e1 5507# Check whether --with-mpc-lib was given.
cd9a469c 5508if test "${with_mpc_lib+set}" = set; then :
5509 withval=$with_mpc_lib;
5510fi
7601a55c 5511
7601a55c 5512
5513if test "x$with_mpc" != x; then
16de6a81 5514 gmplibs="-L$with_mpc/lib $gmplibs"
5515 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5516fi
5517if test "x$with_mpc_include" != x; then
16de6a81 5518 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5519fi
5520if test "x$with_mpc_lib" != x; then
16de6a81 5521 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5522fi
5523if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5524 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5525 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5526 # Do not test the mpc version. Assume that it is sufficient, since
5527 # it is in the source tree, and the library has not been built yet
5528 # but it would be included on the link line in the version check below
5529 # hence making the test fail.
16de6a81 5530 have_gmp=yes
7601a55c 5531fi
d45318b3 5532
5ca838b8 5533# Specify a location for mpfr
5534# check for this first so it ends up on the link line before gmp.
b30fcfae 5535
cd9a469c 5536# Check whether --with-mpfr-dir was given.
5537if test "${with_mpfr_dir+set}" = set; then :
5538 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5539Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5540fi
5541
5ca838b8 5542
5543
cd9a469c 5544# Check whether --with-mpfr was given.
5545if test "${with_mpfr+set}" = set; then :
5546 withval=$with_mpfr;
5547fi
b30fcfae 5548
5ca838b8 5549
73f813e1 5550# Check whether --with-mpfr-include was given.
cd9a469c 5551if test "${with_mpfr_include+set}" = set; then :
5552 withval=$with_mpfr_include;
5553fi
b30fcfae 5554
a5144c1d 5555
73f813e1 5556# Check whether --with-mpfr-lib was given.
cd9a469c 5557if test "${with_mpfr_lib+set}" = set; then :
5558 withval=$with_mpfr_lib;
5559fi
a5144c1d 5560
5ca838b8 5561
5562if test "x$with_mpfr" != x; then
5563 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5564 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5565fi
a5144c1d 5566if test "x$with_mpfr_include" != x; then
16de6a81 5567 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5568fi
5569if test "x$with_mpfr_lib" != x; then
5570 gmplibs="-L$with_mpfr_lib $gmplibs"
5571fi
d45318b3 5572if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
37ca4325 5573 # MPFR v3.1.0 moved the sources into a src sub-directory.
5574 if test -d ${srcdir}/mpfr/src; then
5575 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5576 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5577 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5578 else
5579 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5580 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5581 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5582 fi
d45318b3 5583 # Do not test the mpfr version. Assume that it is sufficient, since
5584 # it is in the source tree, and the library has not been built yet
5585 # but it would be included on the link line in the version check below
5586 # hence making the test fail.
5587 have_gmp=yes
5588fi
5ca838b8 5589
4ee9c684 5590# Specify a location for gmp
b30fcfae 5591
cd9a469c 5592# Check whether --with-gmp-dir was given.
5593if test "${with_gmp_dir+set}" = set; then :
5594 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5595Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5596fi
5597
4ee9c684 5598
4ee9c684 5599
cd9a469c 5600# Check whether --with-gmp was given.
5601if test "${with_gmp+set}" = set; then :
5602 withval=$with_gmp;
5603fi
b30fcfae 5604
4ee9c684 5605
73f813e1 5606# Check whether --with-gmp-include was given.
cd9a469c 5607if test "${with_gmp_include+set}" = set; then :
5608 withval=$with_gmp_include;
5609fi
b30fcfae 5610
a5144c1d 5611
73f813e1 5612# Check whether --with-gmp-lib was given.
cd9a469c 5613if test "${with_gmp_lib+set}" = set; then :
5614 withval=$with_gmp_lib;
5615fi
a5144c1d 5616
5617
4ee9c684 5618
5ca838b8 5619if test "x$with_gmp" != x; then
5620 gmplibs="-L$with_gmp/lib $gmplibs"
5621 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5622fi
a5144c1d 5623if test "x$with_gmp_include" != x; then
5624 gmpinc="-I$with_gmp_include $gmpinc"
5625fi
5626if test "x$with_gmp_lib" != x; then
5627 gmplibs="-L$with_gmp_lib $gmplibs"
5628fi
d45318b3 5629if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5630 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5631 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5632 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5633 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e4128452 5634 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 5635 # Do not test the gmp version. Assume that it is sufficient, since
5636 # it is in the source tree, and the library has not been built yet
5637 # but it would be included on the link line in the version check below
5638 # hence making the test fail.
5639 have_gmp=yes
5640fi
4ee9c684 5641
16c9b2e3 5642if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5643 have_gmp=yes
5644 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5646 # Check for the recommended and required versions of GMP.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5648$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5649
5650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5651/* end confdefs.h. */
5652#include "gmp.h"
5653int
5654main ()
5655{
5656
5657 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5658 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
f819bb73 5659 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
17b6993a 5660 choke me
5661 #endif
5662
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5669/* end confdefs.h. */
17b6993a 5670#include <gmp.h>
b30fcfae 5671int
5672main ()
5673{
4ee9c684 5674
17b6993a 5675 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5676 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5677 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5678 choke me
5679 #endif
b30fcfae 5680
5681 ;
5682 return 0;
5683}
5684_ACEOF
cd9a469c 5685if ac_fn_c_try_compile "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687$as_echo "yes" >&6; }
17b6993a 5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5690$as_echo "buggy but acceptable" >&6; }
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5693else
cd9a469c 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5696fi
cd9a469c 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5698
7601a55c 5699 # If we have GMP, check the MPFR version.
d45318b3 5700 if test x"$have_gmp" = xyes; then
17b6993a 5701 # Check for the recommended and required versions of MPFR.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5703$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5705/* end confdefs.h. */
6a086156 5706#include <gmp.h>
d45318b3 5707 #include <mpfr.h>
b30fcfae 5708int
5709main ()
5710{
112f3d57 5711
cb1d9044 5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
d45318b3 5713 choke me
5714 #endif
b30fcfae 5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
cd9a469c 5720if ac_fn_c_try_compile "$LINENO"; then :
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5722/* end confdefs.h. */
0157cc75 5723#include <gmp.h>
d45318b3 5724 #include <mpfr.h>
b30fcfae 5725int
5726main ()
5727{
0157cc75 5728
17b6993a 5729 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5730 choke me
5731 #endif
7601a55c 5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
cd9a469c 5737if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739$as_echo "yes" >&6; }
7601a55c 5740else
cd9a469c 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5742$as_echo "buggy but acceptable" >&6; }
7601a55c 5743fi
cd9a469c 5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5745else
cd9a469c 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }; have_gmp=no
7601a55c 5748fi
cd9a469c 5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5750 fi
5751
5752 # Check for the MPC header version.
16de6a81 5753 if test x"$have_gmp" = xyes ; then
17b6993a 5754 # Check for the recommended and required versions of MPC.
cd9a469c 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5756$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5758/* end confdefs.h. */
5759#include <mpc.h>
5760int
5761main ()
5762{
5763
17b6993a 5764 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5765 choke me
5766 #endif
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h. */
5775#include <mpc.h>
5776int
5777main ()
5778{
5779
5780 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5781 choke me
5782 #endif
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
cd9a469c 5788if ac_fn_c_try_compile "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5790$as_echo "yes" >&6; }
17b6993a 5791else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5793$as_echo "buggy but acceptable" >&6; }
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5796else
cd9a469c 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5798$as_echo "no" >&6; }; have_gmp=no
7601a55c 5799fi
cd9a469c 5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5801 fi
5802
5803 # Now check the MPFR library.
5804 if test x"$have_gmp" = xyes; then
5805 saved_LIBS="$LIBS"
5806 LIBS="$LIBS $gmplibs"
16de6a81 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5808$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5810/* end confdefs.h. */
16de6a81 5811#include <mpc.h>
7601a55c 5812int
5813main ()
5814{
5815
5816 mpfr_t n;
5817 mpfr_t x;
16de6a81 5818 mpc_t c;
7601a55c 5819 int t;
5820 mpfr_init (n);
5821 mpfr_init (x);
5822 mpfr_atan2 (n, n, x, GMP_RNDN);
5823 mpfr_erfc (n, x, GMP_RNDN);
5824 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5825 mpfr_clear(n);
5826 mpfr_clear(x);
5827 mpc_init2 (c, 53);
5828 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5829 mpc_cosh (c, c, MPC_RNDNN);
5830 mpc_pow (c, c, c, MPC_RNDNN);
5831 mpc_acosh (c, c, MPC_RNDNN);
5832 mpc_clear (c);
b30fcfae 5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
cd9a469c 5838if ac_fn_c_try_link "$LINENO"; then :
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840$as_echo "yes" >&6; }
b30fcfae 5841else
cd9a469c 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5844fi
cd9a469c 5845rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
7601a55c 5847 LIBS="$saved_LIBS"
5848 fi
5849
d45318b3 5850 CFLAGS="$saved_CFLAGS"
4ee9c684 5851
17b6993a 5852# The library versions listed in the error message below should match
5853# the HARD-minimums enforced above.
d45318b3 5854 if test x$have_gmp != xyes; then
cb1d9044 5855 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
16de6a81 5856Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5857their locations. Source code for these libraries can be found at
5858their respective hosting sites as well as at
5859ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5860http://gcc.gnu.org/install/prerequisites.html for additional info. If
5861you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5862make sure that you have installed both the libraries and the header
5863files. They may be located in separate packages." "$LINENO" 5
d45318b3 5864 fi
6a086156 5865fi
5866
7601a55c 5867# Flags needed for both GMP, MPFR and/or MPC.
5868
5869
4ee9c684 5870
5871
5872
bff7ea4a 5873
e4128452 5874
13687c85 5875# Libraries to use for stage1 or when not bootstrapping.
7ab76cec 5876
13687c85 5877# Check whether --with-stage1-libs was given.
5878if test "${with_stage1_libs+set}" = set; then :
5879 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5880 stage1_libs=
7ab76cec 5881 else
13687c85 5882 stage1_libs=$withval
7ab76cec 5883 fi
5884else
9d71bbdc 5885 stage1_libs=
cd9a469c 5886fi
5887
7ab76cec 5888
5889
13687c85 5890# Linker flags to use for stage1 or when not bootstrapping.
7ab76cec 5891
13687c85 5892# Check whether --with-stage1-ldflags was given.
5893if test "${with_stage1_ldflags+set}" = set; then :
5894 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5895 stage1_ldflags=
7ab76cec 5896 else
13687c85 5897 stage1_ldflags=$withval
7ab76cec 5898 fi
5899else
13687c85 5900 stage1_ldflags=
5901 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5902 # if supported. But if the user explicitly specified the libraries to use,
5903 # trust that they are doing what they want.
5904 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5905 stage1_ldflags="-static-libstdc++ -static-libgcc"
5906 fi
cd9a469c 5907fi
5908
7ab76cec 5909
5910
9d71bbdc 5911# Libraries to use for stage2 and later builds.
7ab76cec 5912
cd9a469c 5913# Check whether --with-boot-libs was given.
5914if test "${with_boot_libs+set}" = set; then :
5915 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5916 poststage1_libs=
5917 else
5918 poststage1_libs=$withval
5919 fi
5920else
9d71bbdc 5921 poststage1_libs=
cd9a469c 5922fi
5923
7ab76cec 5924
5925
d6dfe18a 5926# Linker flags to use for stage2 and later builds.
5927
5928# Check whether --with-boot-ldflags was given.
5929if test "${with_boot_ldflags+set}" = set; then :
5930 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5931 poststage1_ldflags=
5932 else
5933 poststage1_ldflags=$withval
5934 fi
5935else
5936 poststage1_ldflags=
7deb2d70 5937 # In stages 2 and 3, default to linking libstdc++ and libgcc
5938 # statically. But if the user explicitly specified the libraries to
5939 # use, trust that they are doing what they want.
5940 if test "$poststage1_libs" = ""; then
d6dfe18a 5941 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5942 fi
5943fi
5944
5945
5946
71130ef8 5947# GCC GRAPHITE dependency isl.
572cf1f7 5948# Basic setup is inlined here, actual checks are in config/isl.m4
255b6be7 5949
5950
87e20041 5951# Check whether --with-isl was given.
5952if test "${with_isl+set}" = set; then :
5953 withval=$with_isl;
cd9a469c 5954fi
255b6be7 5955
255b6be7 5956
429cca51 5957# Treat --without-isl as a request to disable
83d54ac4 5958# GRAPHITE support and skip all following checks.
429cca51 5959if test "x$with_isl" != "xno"; then
71130ef8 5960 # Check for isl
83d54ac4 5961
5962
87e20041 5963# Check whether --with-isl-include was given.
5964if test "${with_isl_include+set}" = set; then :
5965 withval=$with_isl_include;
cd9a469c 5966fi
5967
255b6be7 5968
87e20041 5969# Check whether --with-isl-lib was given.
5970if test "${with_isl_lib+set}" = set; then :
5971 withval=$with_isl_lib;
cd9a469c 5972fi
255b6be7 5973
255b6be7 5974
87e20041 5975 # Check whether --enable-isl-version-check was given.
5976if test "${enable_isl_version_check+set}" = set; then :
5977 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5978else
5979 ENABLE_ISL_CHECK=yes
062b4a94 5980fi
5981
5982
87e20041 5983 # Initialize isllibs and islinc.
5984 case $with_isl in
5985 no)
5986 isllibs=
5987 islinc=
5988 ;;
5989 "" | yes)
5990 ;;
5991 *)
5992 isllibs="-L$with_isl/lib"
5993 islinc="-I$with_isl/include"
5994 ;;
5995 esac
5996 if test "x${with_isl_include}" != x ; then
5997 islinc="-I$with_isl_include"
5998 fi
5999 if test "x${with_isl_lib}" != x; then
6000 isllibs="-L$with_isl_lib"
6001 fi
6002 if test "x${islinc}" = x && test "x${isllibs}" = x \
6003 && test -d ${srcdir}/isl; then
6004 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6005 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6006 ENABLE_ISL_CHECK=no
7458b15a 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6008$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
87e20041 6009 fi
062b4a94 6010
429cca51 6011 isllibs="${isllibs} -lisl"
6012
062b4a94 6013
062b4a94 6014
078393c7 6015 if test "${ENABLE_ISL_CHECK}" = yes ; then
6016 _isl_saved_CFLAGS=$CFLAGS
6017 _isl_saved_LDFLAGS=$LDFLAGS
6018 _isl_saved_LIBS=$LIBS
6019
6020 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
07ae8272 6021 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6022 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
078393c7 6023
ae5394fd 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6025$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
b6de67fd 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ac3b11e 6027/* end confdefs.h. */
7458b15a 6028#include <isl/ctx.h>
6ac3b11e 6029int
6030main ()
6031{
7458b15a 6032isl_ctx_get_max_operations (isl_ctx_alloc ());
6ac3b11e 6033 ;
6034 return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_link "$LINENO"; then :
078393c7 6038 gcc_cv_isl=yes
6ac3b11e 6039else
6040 gcc_cv_isl=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
078393c7 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6045$as_echo "$gcc_cv_isl" >&6; }
6046
7458b15a 6047 if test "${gcc_cv_isl}" = no ; then
ae5394fd 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6049$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
7458b15a 6050 fi
6051
ae5394fd 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6053$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
45fc5243 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056#include <isl/schedule.h>
6057int
6058main ()
6059{
6060isl_options_set_schedule_serialize_sccs (NULL, 0);
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_link "$LINENO"; then :
6066 ac_has_isl_options_set_schedule_serialize_sccs=yes
6067else
6068 ac_has_isl_options_set_schedule_serialize_sccs=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6073$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6074
6075 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6076 islver="0.15"
6077
6078 fi
6079
078393c7 6080 CFLAGS=$_isl_saved_CFLAGS
6081 LDFLAGS=$_isl_saved_LDFLAGS
6082 LIBS=$_isl_saved_LIBS
6083 fi
6084
6085
255b6be7 6086
255b6be7 6087
87e20041 6088
6089
87e20041 6090 if test "x${with_isl}" = xno; then
6091 graphite_requested=no
6092 elif test "x${with_isl}" != x \
6093 || test "x${with_isl_include}" != x \
6094 || test "x${with_isl_lib}" != x ; then
6095 graphite_requested=yes
6096 else
6097 graphite_requested=no
062b4a94 6098 fi
5362e323 6099
5362e323 6100
6101
87e20041 6102 if test "${gcc_cv_isl}" = no ; then
6103 isllibs=
6104 islinc=
6105 fi
6106
6107 if test "${graphite_requested}" = yes \
6108 && test "x${isllibs}" = x \
6109 && test "x${islinc}" = x ; then
255b6be7 6110
71130ef8 6111 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
87e20041 6112 fi
255b6be7 6113
a3c81e03 6114
a3c81e03 6115fi
6116
71130ef8 6117# If the isl check failed, disable builds of in-tree variant of isl
83d54ac4 6118if test "x$with_isl" = xno ||
83d54ac4 6119 test "x$gcc_cv_isl" = xno; then
572cf1f7 6120 noconfigdirs="$noconfigdirs isl"
83d54ac4 6121 islinc=
bacb15cb 6122fi
6123
83d54ac4 6124
6125
6126
7bfefa9d 6127# Check for LTO support.
6128# Check whether --enable-lto was given.
6129if test "${enable_lto+set}" = set; then :
6130 enableval=$enable_lto; enable_lto=$enableval
6131else
6132 enable_lto=yes; default_enable_lto=yes
6133fi
6134
6135
1a4f45ec 6136
9bdbb0bc 6137
6138
6139target_elf=no
6140case $target in
6141 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6142 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
0f769573 6143 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6144 nvptx-*-none)
9bdbb0bc 6145 target_elf=no
6146 ;;
6147 *)
6148 target_elf=yes
6149 ;;
6150esac
6151
6152if test $target_elf = yes; then :
25630dc7 6153 # ELF platforms build the lto-plugin always.
6154 build_lto_plugin=yes
9bdbb0bc 6155
9bdbb0bc 6156else
6157 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6158 case $target in
7aa50266 6159 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
25630dc7 6160 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6161 *) enable_lto=no ;;
6162 esac
9bdbb0bc 6163 else
62932e4d 6164 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6165 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6166 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6167 # warn during gcc/ subconfigure; unless you're bootstrapping with
6168 # -flto it won't be needed until after installation anyway.
6169 case $target in
7aa50266 6170 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9bdbb0bc 6171 *) if test x"$enable_lto" = x"yes"; then
6172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6173 fi
6174 ;;
6175 esac
6176 fi
ca42e774 6177 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6178 # Build it unless LTO was explicitly disabled.
ca42e774 6179 case $target in
25630dc7 6180 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6181 *) ;;
6182 esac
25630dc7 6183
9bdbb0bc 6184fi
6185
7bfefa9d 6186
1015a063 6187# Check whether --enable-linker-plugin-configure-flags was given.
6188if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6189 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6190else
6191 extra_linker_plugin_configure_flags=
6192fi
6193
6194
6195# Check whether --enable-linker-plugin-flags was given.
6196if test "${enable_linker_plugin_flags+set}" = set; then :
6197 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6198else
6199 extra_linker_plugin_flags=
6200fi
6201
6202
6203
255b6be7 6204
2b15d2ba 6205# By default, C and C++ are the only stage 1 languages.
9c3a0a29 6206stage1_languages=,c,
2d64c2fd 6207
7ab76cec 6208# Target libraries that we bootstrap.
5c96a839 6209bootstrap_target_libs=,target-libgcc,
7ab76cec 6210
8e1fea1a 6211# Figure out what language subdirectories are present.
6212# Look if the user specified --enable-languages="..."; if not, use
6213# the environment variable $LANGUAGES if defined. $LANGUAGES might
6214# go away some day.
6215# NB: embedded tabs in this IF block -- do not untabify
6216if test -d ${srcdir}/gcc; then
6217 if test x"${enable_languages+set}" != xset; then
6218 if test x"${LANGUAGES+set}" = xset; then
6219 enable_languages="${LANGUAGES}"
e757a6a8 6220 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8e1fea1a 6221 else
6222 enable_languages=all
6223 fi
6224 else
6225 if test x"${enable_languages}" = x ||
6226 test x"${enable_languages}" = xyes;
6227 then
e757a6a8 6228 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8e1fea1a 6229 exit 1
6230 fi
6231 fi
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6233
2c718da0 6234 # 'f95' is the old name for the 'fortran' language. We issue a warning
6235 # and make the substitution.
6236 case ,${enable_languages}, in
6237 *,f95,*)
e757a6a8 6238 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2c718da0 6239 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6240 ;;
6241 esac
6242
2b15d2ba 6243 # If bootstrapping, C++ must be enabled.
6244 case ",$enable_languages,:$enable_bootstrap" in
6245 *,c++,*:*) ;;
6246 *:yes)
6c59dfa4 6247 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6248 enable_languages="${enable_languages},c++"
6249 else
2b15d2ba 6250 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6c59dfa4 6251 fi
6252 ;;
6253 esac
6254
8e1fea1a 6255 # First scan to see if an enabled language requires some other language.
6256 # We assume that a given config-lang.in will list all the language
6257 # front ends it requires, even if some are required indirectly.
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6260 ..) ;;
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6264 *)
101ddbe4 6265 # From the config-lang.in, get $language, $lang_requires, and
6266 # $lang_requires_boot_languages.
8e1fea1a 6267 language=
6268 lang_requires=
101ddbe4 6269 lang_requires_boot_languages=
8e1fea1a 6270 . ${lang_frag}
101ddbe4 6271 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6272 case ,${enable_languages}, in
6273 *,$other,*) ;;
6274 *,all,*) ;;
6275 *,$language,*)
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6278 ;;
6279 esac
6280 done
101ddbe4 6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6284 *,$other,*) ;;
6285 *,all,*) ;;
6286 *)
6287 case ,${enable_languages}, in
6288 *,$language,*)
6289 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6290 enable_stage1_languages="$enable_stage1_languages,${other}"
6291 ;;
6292 esac
6293 ;;
6294 esac
6295 fi
6296 done
8e1fea1a 6297 ;;
6298 esac
6299 done
6300
9c3a0a29 6301 new_enable_languages=,c,
7bfefa9d 6302
6303 # If LTO is enabled, add the LTO front end.
7bfefa9d 6304 if test "$enable_lto" = "yes" ; then
d6ef094a 6305 case ,${enable_languages}, in
6306 *,lto,*) ;;
6307 *) enable_languages="${enable_languages},lto" ;;
6308 esac
ca42e774 6309 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6310 configdirs="$configdirs lto-plugin"
7bfefa9d 6311 fi
6312 fi
6313
dd87c525 6314 # If we're building an offloading compiler, add the LTO front end.
6315 if test x"$enable_as_accelerator_for" != x ; then
6316 case ,${enable_languages}, in
6317 *,lto,*) ;;
6318 *) enable_languages="${enable_languages},lto" ;;
6319 esac
6320 fi
6321
8e1fea1a 6322 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6323 potential_languages=,c,
8e1fea1a 6324
604a285a 6325 enabled_target_libs=
6326 disabled_target_libs=
6327
8e1fea1a 6328 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6329 case ${lang_frag} in
6330 ..) ;;
6331 # The odd quoting in the next line works around
6332 # an apparent bug in bash 1.12 on linux.
6333 ${srcdir}/gcc/[*]/config-lang.in) ;;
6334 *)
b30fcfae 6335 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6336 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6337 language=
6338 target_libs=
6339 lang_dirs=
5dee13c2 6340 subdir_requires=
9c3a0a29 6341 boot_language=no
6342 build_by_default=yes
8e1fea1a 6343 . ${lang_frag}
9c3a0a29 6344 if test x${language} = x; then
6345 echo "${lang_frag} doesn't set \$language." 1>&2
6346 exit 1
6347 fi
6348
ef3c41c7 6349 if test "$language" = "c++"; then
2b15d2ba 6350 boot_language=yes
7ab76cec 6351 fi
6352
a2ecd49c 6353 add_this_lang=no
9c3a0a29 6354 case ,${enable_languages}, in
6355 *,${language},*)
e53d55e7 6356 # Language was explicitly selected; include it
6357 # unless it is C, which is enabled by default.
6358 if test "$language" != "c"; then
6359 add_this_lang=yes
6360 fi
8e1fea1a 6361 ;;
9c3a0a29 6362 *,all,*)
6363 # 'all' was selected, select it if it is a default language
a2ecd49c 6364 if test "$language" != "c"; then
6365 add_this_lang=${build_by_default}
6366 fi
8e1fea1a 6367 ;;
6368 esac
4ee9c684 6369
5dee13c2 6370 # Disable languages that need other directories if these aren't available.
9333ae0b 6371 for i in $subdir_requires; do
3891e7d9 6372 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 6373 case ,${enable_languages}, in
6374 *,${language},*)
6375 # Specifically requested language; tell them.
cd9a469c 6376 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6377 ;;
6378 *)
6379 # Silently disable.
9c3a0a29 6380 add_this_lang=unsupported
5dee13c2 6381 ;;
6382 esac
6383 done
6384
9c3a0a29 6385 # Disable Ada if no preexisting GNAT is available.
6386 case ,${enable_languages},:${language}:${have_gnat} in
6387 *,${language},*:ada:no)
6388 # Specifically requested language; tell them.
cd9a469c 6389 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6390 ;;
6391 *:ada:no)
6392 # Silently disable.
6393 add_this_lang=unsupported
6394 ;;
6395 esac
6396
ff7dcf6a 6397 # Disable a language that is unsupported by the target.
6398 case " $unsupported_languages " in
6399 *" $language "*)
9c3a0a29 6400 add_this_lang=unsupported
ff7dcf6a 6401 ;;
6402 esac
6403
4ee9c684 6404 case $add_this_lang in
9c3a0a29 6405 unsupported)
8e1fea1a 6406 # Remove language-dependent dirs.
604a285a 6407 disabled_target_libs="$disabled_target_libs $target_libs"
6408 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6409 ;;
9c3a0a29 6410 no)
6411 # Remove language-dependent dirs; still show language as supported.
604a285a 6412 disabled_target_libs="$disabled_target_libs $target_libs"
6413 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6414 potential_languages="${potential_languages}${language},"
6415 ;;
6416 yes)
6417 new_enable_languages="${new_enable_languages}${language},"
6418 potential_languages="${potential_languages}${language},"
2d64c2fd 6419 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6420 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6421 case "${boot_language}:,$enable_stage1_languages," in
6422 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6423 # Add to (comma-separated) list of stage 1 languages.
32027446 6424 case ",$stage1_languages," in
6425 *,$language,* | ,yes, | ,all,) ;;
6426 *) stage1_languages="${stage1_languages}${language}," ;;
6427 esac
7ab76cec 6428 # We need to bootstrap any supporting libraries.
6429 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6430 ;;
6431 esac
6432 ;;
8e1fea1a 6433 esac
6434 ;;
6435 esac
6436 done
6437
604a285a 6438 # Add target libraries which are only needed for disabled languages
6439 # to noconfigdirs.
6440 if test -n "$disabled_target_libs"; then
6441 for dir in $disabled_target_libs; do
6442 case " $enabled_target_libs " in
6443 *" ${dir} "*) ;;
6444 *) noconfigdirs="$noconfigdirs $dir" ;;
6445 esac
6446 done
6447 fi
6448
cd9a469c 6449 # Check whether --enable-stage1-languages was given.
6450if test "${enable_stage1_languages+set}" = set; then :
6451 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6452 ,no,|,,)
6453 # Set it to something that will have no effect in the loop below
6454 enable_stage1_languages=c ;;
6455 ,yes,)
6456 enable_stage1_languages=`echo $new_enable_languages | \
6457 sed -e "s/^,//" -e "s/,$//" ` ;;
6458 *,all,*)
6459 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6460 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6461 esac
6462
6463 # Add "good" languages from enable_stage1_languages to stage1_languages,
6464 # while "bad" languages go in missing_languages. Leave no duplicates.
6465 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6466 case $potential_languages in
6467 *,$i,*)
6468 case $stage1_languages in
6469 *,$i,*) ;;
6470 *) stage1_languages="$stage1_languages$i," ;;
6471 esac ;;
6472 *)
6473 case $missing_languages in
6474 *,$i,*) ;;
6475 *) missing_languages="$missing_languages$i," ;;
6476 esac ;;
6477 esac
6478 done
cd9a469c 6479fi
6480
9c3a0a29 6481
6482 # Remove leading/trailing commas that were added for simplicity
6483 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6484 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6485 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6486 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6487
8e1fea1a 6488 if test "x$missing_languages" != x; then
cd9a469c 6489 as_fn_error "
e8bfe1fa 6490The following requested languages could not be built: ${missing_languages}
cd9a469c 6491Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6492 fi
8e1fea1a 6493 if test "x$new_enable_languages" != "x$enable_languages"; then
6494 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6495 enable_languages="$new_enable_languages"
8e1fea1a 6496 fi
9c3a0a29 6497
b30fcfae 6498
b0e9b581 6499 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6500fi
6501
50996fe5 6502# Handle --disable-<component> generically.
6503for dir in $configdirs $build_configdirs $target_configdirs ; do
6504 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6505 varname=`echo $dirname | sed -e s/+/_/g`
6506 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6507 noconfigdirs="$noconfigdirs $dir"
6508 fi
6509done
6510
dd6d3a67 6511# Check for Boehm's garbage collector
cd9a469c 6512# Check whether --enable-objc-gc was given.
6513if test "${enable_objc_gc+set}" = set; then :
6514 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 6515 *,objc,*:*:yes:*target-boehm-gc*)
cd9a469c 6516 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
dd6d3a67 6517 ;;
6518esac
cd9a469c 6519fi
6520
dd6d3a67 6521
6522# Make sure we only build Boehm's garbage collector if required.
f1716c67 6523case ,${enable_languages},:${enable_objc_gc} in
6524 *,objc,*:yes)
dd6d3a67 6525 # Keep target-boehm-gc if requested for Objective-C.
6526 ;;
dd6d3a67 6527 *)
f1716c67 6528 # Otherwise remove target-boehm-gc depending on target-libjava.
6529 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6530 noconfigdirs="$noconfigdirs target-boehm-gc"
6531 fi
dd6d3a67 6532 ;;
6533esac
6534
d3a7dd32 6535# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
b33ca042 6536case ,${enable_languages}, in
df148e44 6537 *,c++,*)
6538 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6539 case "${noconfigdirs}" in
6540 *target-libstdc++-v3*)
6541 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6542 ;;
6543 *) ;;
6544 esac
6545 ;;
b33ca042 6546 *)
d3a7dd32 6547 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
b33ca042 6548 ;;
6549esac
6550
e8eddfdd 6551# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6552# $build_configdirs and $target_configdirs.
8e1fea1a 6553# If we have the source for $noconfigdirs entries, add them to $notsupp.
6554
6555notsupp=""
6556for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6557 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6558 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6559 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6560 if test -r $srcdir/$dirname/configure ; then
6561 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6562 true
6563 else
6564 notsupp="$notsupp $dir"
6565 fi
6566 fi
6567 fi
e8eddfdd 6568 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6569 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6570 if test -r $srcdir/$dirname/configure ; then
6571 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6572 true
6573 else
6574 notsupp="$notsupp $dir"
6575 fi
6576 fi
6577 fi
8e1fea1a 6578 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6579 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6580 if test -r $srcdir/$dirname/configure ; then
6581 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6582 true
6583 else
6584 notsupp="$notsupp $dir"
6585 fi
6586 fi
6587 fi
6588done
6589
8e1fea1a 6590# Quietly strip out all directories which aren't configurable in this tree.
6591# This relies on all configurable subdirectories being autoconfiscated, which
6592# is now the case.
2f8725b0 6593build_configdirs_all="$build_configdirs"
6594build_configdirs=
6595for i in ${build_configdirs_all} ; do
b30fcfae 6596 j=`echo $i | sed -e s/build-//g`
2f8725b0 6597 if test -f ${srcdir}/$j/configure ; then
6598 build_configdirs="${build_configdirs} $i"
6599 fi
6600done
6601
8e1fea1a 6602configdirs_all="$configdirs"
6603configdirs=
6604for i in ${configdirs_all} ; do
6605 if test -f ${srcdir}/$i/configure ; then
6606 configdirs="${configdirs} $i"
6607 fi
6608done
2f8725b0 6609
8e1fea1a 6610target_configdirs_all="$target_configdirs"
6611target_configdirs=
6612for i in ${target_configdirs_all} ; do
b30fcfae 6613 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6614 if test -f ${srcdir}/$j/configure ; then
6615 target_configdirs="${target_configdirs} $i"
6616 fi
6617done
6618
8a6ab6a0 6619# Exclude target-zlib if target-libjava isn't built.
6620case ${target_configdirs} in
6621*target-libjava*)
6622 ;;
6623*)
6624 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6625 ;;
6626esac
6627
1015a063 6628# libiberty-linker-plugin is special: it doesn't have its own source directory,
6629# so we have to add it after the preceding checks.
6630if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6631then
6632 case " $configdirs " in
6633 *" libiberty "*)
6634 # If we can build libiberty, we can also build libiberty-linker-plugin.
6635 configdirs="$configdirs libiberty-linker-plugin"
6636 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6637 --with-libiberty=../libiberty-linker-plugin";;
6638 *)
6639 as_fn_error "libiberty missing" "$LINENO" 5;;
6640 esac
6641fi
6642
944792ef 6643# Sometimes we have special requirements for the host libiberty.
6644extra_host_libiberty_configure_flags=
c850ece7 6645extra_host_zlib_configure_flags=
944792ef 6646case " $configdirs " in
6647 *" lto-plugin "* | *" libcc1 "*)
6648 # When these are to be built as shared libraries, the same applies to
6649 # libiberty.
6650 extra_host_libiberty_configure_flags=--enable-shared
6651 ;;
c850ece7 6652 *" bfd "*)
6653 # When bfd is to be built as a shared library, the same applies to
6654 # zlib.
6655 if test "$enable_shared" = "yes"; then
6656 extra_host_zlib_configure_flags=--enable-host-shared
6657 fi
6658 ;;
944792ef 6659esac
6660
6661
c850ece7 6662
8e1fea1a 6663# Produce a warning message for the subdirs we can't configure.
6664# This isn't especially interesting in the Cygnus tree, but in the individual
6665# FSF releases, it's important to let people know when their machine isn't
6666# supported by the one or two programs in a package.
6667
6668if test -n "${notsupp}" && test -z "${norecursion}" ; then
6669 # If $appdirs is non-empty, at least one of those directories must still
6670 # be configured, or we error out. (E.g., if the gas release supports a
6671 # specified target in some subdirs but not the gas subdir, we shouldn't
6672 # pretend that all is well.)
6673 if test -n "$appdirs" ; then
6674 for dir in $appdirs ; do
6675 if test -r $dir/Makefile.in ; then
6676 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 appdirs=""
6678 break
6679 fi
2f8725b0 6680 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6681 appdirs=""
6682 break
6683 fi
6684 fi
6685 done
6686 if test -n "$appdirs" ; then
6687 echo "*** This configuration is not supported by this package." 1>&2
6688 exit 1
6689 fi
6690 fi
6691 # Okay, some application will build, or we don't care to check. Still
6692 # notify of subdirs not getting built.
6693 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6694 echo " ${notsupp}" 1>&2
6695 echo " (Any other directories should still work fine.)" 1>&2
6696fi
6697
6698case "$host" in
6699 *msdosdjgpp*)
6700 enable_gdbtk=no ;;
6701esac
6702
eae5b2bc 6703# To find our prefix, in gcc_cv_tool_prefix.
6704
6705# The user is always right.
6706if test "${PATH_SEPARATOR+set}" != set; then
6707 echo "#! /bin/sh" >conf$$.sh
6708 echo "exit 0" >>conf$$.sh
6709 chmod +x conf$$.sh
6710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6711 PATH_SEPARATOR=';'
6712 else
6713 PATH_SEPARATOR=:
6714 fi
6715 rm -f conf$$.sh
6716fi
6717
6718
6719
6720if test "x$exec_prefix" = xNONE; then
6721 if test "x$prefix" = xNONE; then
6722 gcc_cv_tool_prefix=$ac_default_prefix
6723 else
6724 gcc_cv_tool_prefix=$prefix
6725 fi
6726else
6727 gcc_cv_tool_prefix=$exec_prefix
6728fi
6729
6730# If there is no compiler in the tree, use the PATH only. In any
6731# case, if there is no compiler in the tree nobody should use
6732# AS_FOR_TARGET and LD_FOR_TARGET.
6733if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6734 gcc_version=`cat $srcdir/gcc/BASE-VER`
6735 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6738 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6740 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6741else
6742 gcc_cv_tool_dirs=
6743fi
6744
6745if test x$build = x$target && test -n "$md_exec_prefix"; then
6746 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6747fi
6748
6749
6750
8e1fea1a 6751copy_dirs=
6752
b30fcfae 6753
cd9a469c 6754# Check whether --with-build-sysroot was given.
6755if test "${with_build_sysroot+set}" = set; then :
6756 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6757 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6758 fi
6759else
6760 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6761fi
ffa8502d 6762
6763
5f1f2de5 6764
cd9a469c 6765
6766# Check whether --with-debug-prefix-map was given.
6767if test "${with_debug_prefix_map+set}" = set; then :
6768 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6770 for debug_map in $withval; do
6771 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6772 done
6773 fi
6774else
6775 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6776fi
6777
5f1f2de5 6778
6779
c898f165 6780# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6781# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6782# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6783# We want to ensure that TARGET libraries (which we know are built with
6784# gcc) are built with "-O2 -g", so include those options when setting
6785# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6786if test "x$CFLAGS_FOR_TARGET" = x; then
f5fad380 6787 if test "x${is_cross_compiler}" = xyes; then
6788 CFLAGS_FOR_TARGET="-g -O2"
6789 else
6790 CFLAGS_FOR_TARGET=$CFLAGS
6791 case " $CFLAGS " in
6792 *" -O2 "*) ;;
6793 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6794 esac
6795 case " $CFLAGS " in
6796 *" -g "* | *" -g3 "*) ;;
6797 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6798 esac
6799 fi
c898f165 6800fi
6801
6802
6803if test "x$CXXFLAGS_FOR_TARGET" = x; then
f5fad380 6804 if test "x${is_cross_compiler}" = xyes; then
6805 CXXFLAGS_FOR_TARGET="-g -O2"
6806 else
6807 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6808 case " $CXXFLAGS " in
6809 *" -O2 "*) ;;
6810 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6811 esac
6812 case " $CXXFLAGS " in
6813 *" -g "* | *" -g3 "*) ;;
6814 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6815 esac
6816 fi
c898f165 6817fi
6818
6819
ed9516f5 6820
6821
8e1fea1a 6822# Handle --with-headers=XXX. If the value is not "yes", the contents of
6823# the named directory are copied to $(tooldir)/sys-include.
6824if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6825 if test x${is_cross_compiler} = xno ; then
6826 echo 1>&2 '***' --with-headers is only supported when cross compiling
6827 exit 1
6828 fi
6829 if test x"${with_headers}" != xyes ; then
eae5b2bc 6830 x=${gcc_cv_tool_prefix}
b30fcfae 6831 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6832 fi
6833fi
6834
6835# Handle --with-libs=XXX. If the value is not "yes", the contents of
6836# the name directories are copied to $(tooldir)/lib. Multiple directories
6837# are permitted.
6838if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-libs is only supported when cross compiling
6841 exit 1
6842 fi
6843 if test x"${with_libs}" != xyes ; then
6844 # Copy the libraries in reverse order, so that files in the first named
6845 # library override files in subsequent libraries.
eae5b2bc 6846 x=${gcc_cv_tool_prefix}
8e1fea1a 6847 for l in ${with_libs}; do
b30fcfae 6848 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6849 done
6850 fi
6851fi
6852
7bfefa9d 6853# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6854#
6855# This is done by determining whether or not the appropriate directory
6856# is available, and by checking whether or not specific configurations
6857# have requested that this magic not happen.
b30fcfae 6858#
6859# The command line options always override the explicit settings in
e757a6a8 6860# configure.ac, and the settings in configure.ac override this magic.
c47832b1 6861#
b30fcfae 6862# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6863# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6864# --without-gnu-ld options for the configure script. Similarly, if
6865# the default is to use the included zlib and you don't want to do that,
6866# you should use the --with-system-zlib option for the configure script.
c47832b1 6867
6868if test x${use_gnu_as} = x &&
6869 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6870 with_gnu_as=yes
6871 extra_host_args="$extra_host_args --with-gnu-as"
6872fi
6873
6874if test x${use_gnu_ld} = x &&
3d47fcf5 6875 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6876 with_gnu_ld=yes
6877 extra_host_args="$extra_host_args --with-gnu-ld"
6878fi
6879
7bfefa9d 6880if test x${use_included_zlib} = x &&
6881 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6882 :
6883else
6884 with_system_zlib=yes
6885 extra_host_args="$extra_host_args --with-system-zlib"
6886fi
6887
c47832b1 6888# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6889# can detect this case.
6890
6891if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6892 with_newlib=yes
6893 extra_host_args="$extra_host_args --with-newlib"
6894fi
6895
8e1fea1a 6896# Handle ${copy_dirs}
6897set fnord ${copy_dirs}
6898shift
6899while test $# != 0 ; do
6900 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6901 :
6902 else
6903 echo Copying $1 to $2
6904
6905 # Use the install script to create the directory and all required
6906 # parent directories.
6907 if test -d $2 ; then
6908 :
6909 else
6910 echo >config.temp
6911 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6912 fi
6913
6914 # Copy the directory, assuming we have tar.
6915 # FIXME: Should we use B in the second tar? Not all systems support it.
6916 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6917
6918 # It is the responsibility of the user to correctly adjust all
6919 # symlinks. If somebody can figure out how to handle them correctly
6920 # here, feel free to add the code.
6921
6922 echo $1 > $2/COPIED
6923 fi
6924 shift; shift
6925done
6926
c47832b1 6927# Determine a target-dependent exec_prefix that the installed
6928# gcc will search in. Keep this list sorted by triplet, with
6929# the *-*-osname triplets last.
6930md_exec_prefix=
6931case "${target}" in
09c2d953 6932 i[34567]86-pc-msdosdjgpp*)
c47832b1 6933 md_exec_prefix=/dev/env/DJDIR/bin
6934 ;;
c47832b1 6935 *-*-hpux* | \
c47832b1 6936 *-*-nto-qnx* | \
93faf308 6937 *-*-solaris2*)
c47832b1 6938 md_exec_prefix=/usr/ccs/bin
6939 ;;
6940esac
6941
71ab34df 6942extra_arflags_for_target=
6943extra_nmflags_for_target=
6944extra_ranlibflags_for_target=
6945target_makefile_frag=/dev/null
6946case "${target}" in
57c7de11 6947 spu-*-*)
6948 target_makefile_frag="config/mt-spu"
6949 ;;
d781ea5c 6950 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
f8520ad7 6951 target_makefile_frag="config/mt-sde"
6952 ;;
3013c2c7 6953 mipsisa*-*-elfoabi*)
6954 target_makefile_frag="config/mt-mips-elfoabi"
6955 ;;
559b0712 6956 mips*-*-*linux* | mips*-*-gnu*)
6957 target_makefile_frag="config/mt-mips-gnu"
6958 ;;
2481a2c1 6959 nios2-*-elf*)
6960 target_makefile_frag="config/mt-nios2-elf"
6961 ;;
3bef4012 6962 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 6963 target_makefile_frag="config/mt-gnu"
71ab34df 6964 ;;
6965 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 6966 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 6967 # commands to handle both 32-bit and 64-bit objects. These flags are
6968 # harmless if we're using GNU nm or ar.
6969 extra_arflags_for_target=" -X32_64"
6970 extra_nmflags_for_target=" -B -X32_64"
6971 ;;
71ab34df 6972esac
6973
6974alphaieee_frag=/dev/null
6975case $target in
6976 alpha*-*-*)
6977 # This just makes sure to use the -mieee option to build target libs.
6978 # This should probably be set individually by each library.
6979 alphaieee_frag="config/mt-alphaieee"
6980 ;;
6981esac
6982
6983# If --enable-target-optspace always use -Os instead of -O2 to build
6984# the target libraries, similarly if it is not specified, use -Os
6985# on selected platforms.
6986ospace_frag=/dev/null
6987case "${enable_target_optspace}:${target}" in
6988 yes:*)
6989 ospace_frag="config/mt-ospace"
6990 ;;
6991 :d30v-*)
6992 ospace_frag="config/mt-d30v"
6993 ;;
1c26a2ee 6994 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
71ab34df 6995 ospace_frag="config/mt-ospace"
6996 ;;
6997 no:* | :*)
6998 ;;
6999 *)
7000 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7001 ;;
7002esac
7003
71ab34df 7004# Some systems (e.g., one of the i386-aix systems the gas testers are
7005# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 7006tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 7007build_tooldir=${tooldir}
7008
71ab34df 7009# Create a .gdbinit file which runs the one in srcdir
7010# and tells GDB to look there for source files.
7011
7012if test -r ${srcdir}/.gdbinit ; then
7013 case ${srcdir} in
7014 .) ;;
7015 *) cat > ./.gdbinit <<EOF
7016# ${NO_EDIT}
7017dir ${srcdir}
7018dir .
7019source ${srcdir}/.gdbinit
7020EOF
7021 ;;
7022 esac
7023fi
7024
71ab34df 7025# Make sure that the compiler is able to generate an executable. If it
7026# can't, we are probably in trouble. We don't care whether we can run the
7027# executable--we might be using a cross compiler--we only care whether it
7028# can be created. At this point the main configure script has set CC.
7029we_are_ok=no
7030echo "int main () { return 0; }" > conftest.c
7031${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7032if test $? = 0 ; then
7033 if test -s conftest || test -s conftest.exe ; then
7034 we_are_ok=yes
7035 fi
b30fcfae 7036fi
71ab34df 7037case $we_are_ok in
7038 no)
7039 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7040 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7041 rm -f conftest*
7042 exit 1
7043 ;;
7044esac
7045rm -f conftest*
7046
7d804f04 7047# Decide which environment variable is used to find dynamic libraries.
71ab34df 7048case "${host}" in
7049 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 7050 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 7051 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 7052 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7053esac
7054
7d804f04 7055# On systems where the dynamic library environment variable is PATH,
7056# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7057# built executables to PATH.
7058if test "$RPATH_ENVVAR" = PATH; then
7059 GCC_SHLIB_SUBDIR=/shlib
7060else
7061 GCC_SHLIB_SUBDIR=
7062fi
7063
ee055341 7064# Adjust the toplevel makefile according to whether bootstrap was selected.
7065case $enable_bootstrap in
7066 yes)
7067 bootstrap_suffix=bootstrap
7068 BUILD_CONFIG=bootstrap-debug
7069 ;;
7070 no)
7071 bootstrap_suffix=no-bootstrap
7072 BUILD_CONFIG=
7073 ;;
7074esac
7075
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7077$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7078
7079
7080# Check whether --with-build-config was given.
7081if test "${with_build_config+set}" = set; then :
7082 withval=$with_build_config; case $with_build_config in
7083 yes) with_build_config= ;;
7084 no) with_build_config= BUILD_CONFIG= ;;
7085 esac
7086fi
7087
7088
7089if test "x${with_build_config}" != x; then
7090 BUILD_CONFIG=$with_build_config
7091else
7092 case $BUILD_CONFIG in
7093 bootstrap-debug)
7094 if echo "int f (void) { return 0; }" > conftest.c &&
7095 ${CC} -c conftest.c &&
7096 mv conftest.o conftest.o.g0 &&
7097 ${CC} -c -g conftest.c &&
7098 mv conftest.o conftest.o.g &&
7099 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7100 :
7101 else
7102 BUILD_CONFIG=
7103 fi
7104 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7105 ;;
7106 esac
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7109$as_echo "$BUILD_CONFIG" >&6; }
7110
7111
7112# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7114$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7115# Check whether --enable-vtable-verify was given.
7116if test "${enable_vtable_verify+set}" = set; then :
7117 enableval=$enable_vtable_verify; case "$enableval" in
7118 yes) enable_vtable_verify=yes ;;
7119 no) enable_vtable_verify=no ;;
7120 *) enable_vtable_verify=no;;
7121 esac
7122else
7123 enable_vtable_verify=no
7124fi
7125
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7127$as_echo "$enable_vtable_verify" >&6; }
7128
71ab34df 7129# Record target_configdirs and the configure arguments for target and
7130# build configuration in Makefile.
7131target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 7132build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
f4ae1a00 7133bootstrap_fixincludes=no
71ab34df 7134
5c96a839 7135# If we are building libgomp, bootstrap it.
7136if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7137 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7138fi
7139
ee055341 7140# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7141# or bootstrap-ubsan, bootstrap it.
7142if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7143 case "$BUILD_CONFIG" in
7144 *bootstrap-asan* | *bootstrap-ubsan* )
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
f4ae1a00 7146 bootstrap_fixincludes=yes
ee055341 7147 ;;
7148 esac
579abfee 7149fi
7150
ee055341 7151# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7152if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7153 test "$enable_vtable_verify" != no; then
b710ec85 7154 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7155fi
7156
202baac8 7157# If we are building libmpx, bootstrap it.
7158if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7159 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7160fi
7161
71ab34df 7162# Determine whether gdb needs tk/tcl or not.
7163# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7164# and in that case we want gdb to be built without tk. Ugh!
7165# In fact I believe gdb is the *only* package directly dependent on tk,
7166# so we should be able to put the 'maybe's in unconditionally and
7167# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7168# 100% sure that that's safe though.
8fdaf281 7169
f843f075 7170gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 7171case "$enable_gdbtk" in
7172 no)
7173 GDB_TK="" ;;
8fdaf281 7174 yes)
7175 GDB_TK="${gdb_tk}" ;;
71ab34df 7176 *)
8fdaf281 7177 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7178 # distro. Eventually someone will fix this and move Insight, nee
7179 # gdbtk to a separate directory.
7180 if test -d ${srcdir}/gdb/gdbtk ; then
7181 GDB_TK="${gdb_tk}"
7182 else
7183 GDB_TK=""
7184 fi
7185 ;;
71ab34df 7186esac
415470be 7187CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7188INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 7189
01b41571 7190# Strip out unwanted targets.
6f4f34a7 7191
7192# While at that, we remove Makefiles if we were started for recursive
7193# configuration, so that the top-level Makefile reconfigures them,
7194# like we used to do when configure itself was recursive.
6f4f34a7 7195
8bb79148 7196# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7197# but now we're fixing up the Makefile ourselves with the additional
7198# commands passed to AC_CONFIG_FILES. Use separate variables
7199# extrasub-{build,host,target} not because there is any reason to split
7200# the substitutions up that way, but only to remain below the limit of
7201# 99 commands in a script, for HP-UX sed.
7202# Do not nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 7203
7b5fee3e 7204case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7205 yes:yes:*\ gold\ *:*,c++,*) ;;
7206 yes:yes:*\ gold\ *:*)
7207 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7208 ;;
7209esac
7210
8bb79148 7211extrasub_build=
2f8725b0 7212for module in ${build_configdirs} ; do
93f93279 7213 if test -z "${no_recursion}" \
7214 && test -f ${build_subdir}/${module}/Makefile; then
7215 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7216 rm -f ${build_subdir}/${module}/Makefile
7217 fi
8bb79148 7218 extrasub_build="$extrasub_build
93f93279 7219/^@if build-$module\$/d
7220/^@endif build-$module\$/d
7221/^@if build-$module-$bootstrap_suffix\$/d
7222/^@endif build-$module-$bootstrap_suffix\$/d"
7223done
8bb79148 7224extrasub_host=
93f93279 7225for module in ${configdirs} ; do
9c19a746 7226 if test -z "${no_recursion}"; then
35d84d10 7227 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7228 if test -f ${file}; then
7229 echo 1>&2 "*** removing ${file} to force reconfigure"
7230 rm -f ${file}
7231 fi
7232 done
93f93279 7233 fi
f4ae1a00 7234 case ${module},${bootstrap_fixincludes} in
7235 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7236 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7237 esac
8bb79148 7238 extrasub_host="$extrasub_host
93f93279 7239/^@if $module\$/d
7240/^@endif $module\$/d
f4ae1a00 7241/^@if $module-$host_bootstrap_suffix\$/d
7242/^@endif $module-$host_bootstrap_suffix\$/d"
93f93279 7243done
8bb79148 7244extrasub_target=
93f93279 7245for module in ${target_configdirs} ; do
7246 if test -z "${no_recursion}" \
7247 && test -f ${target_subdir}/${module}/Makefile; then
7248 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7249 rm -f ${target_subdir}/${module}/Makefile
7250 fi
7ab76cec 7251
7252 # We only bootstrap target libraries listed in bootstrap_target_libs.
7253 case $bootstrap_target_libs in
7254 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7255 *) target_bootstrap_suffix=no-bootstrap ;;
7256 esac
7257
8bb79148 7258 extrasub_target="$extrasub_target
93f93279 7259/^@if target-$module\$/d
7260/^@endif target-$module\$/d
7ab76cec 7261/^@if target-$module-$target_bootstrap_suffix\$/d
7262/^@endif target-$module-$target_bootstrap_suffix\$/d"
93f93279 7263done
7264
8bb79148 7265# Do the final fixup along with target modules.
7266extrasub_target="$extrasub_target
01b41571 7267/^@if /,/^@endif /d"
71ab34df 7268
7269# Create the serialization dependencies. This uses a temporary file.
7270
cd9a469c 7271# Check whether --enable-serial-configure was given.
7272if test "${enable_serial_configure+set}" = set; then :
7273 enableval=$enable_serial_configure;
7274fi
11d8013a 7275
7276
622c1fa9 7277case ${enable_serial_configure} in
7278 yes)
7279 enable_serial_build_configure=yes
7280 enable_serial_host_configure=yes
7281 enable_serial_target_configure=yes
7282 ;;
7283esac
7284
71ab34df 7285# These force 'configure's to be done one at a time, to avoid problems
7286# with contention over a shared config.cache.
7287rm -f serdep.tmp
11d8013a 7288echo '# serdep.tmp' > serdep.tmp
71ab34df 7289olditem=
622c1fa9 7290test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7291for item in ${build_configdirs} ; do
7292 case ${olditem} in
7293 "") ;;
11d8013a 7294 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7295 esac
7296 olditem=${item}
7297done
7298olditem=
622c1fa9 7299test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7300for item in ${configdirs} ; do
7301 case ${olditem} in
7302 "") ;;
11d8013a 7303 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7304 esac
7305 olditem=${item}
7306done
7307olditem=
622c1fa9 7308test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7309for item in ${target_configdirs} ; do
7310 case ${olditem} in
7311 "") ;;
11d8013a 7312 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7313 esac
7314 olditem=${item}
7315done
7316serialization_dependencies=serdep.tmp
7317
7318
11d8013a 7319# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7320# target, nonopt, and variable assignments. These are the ones we
412c2e81 7321# might not want to pass down to subconfigures. The exception being
7322# --cache-file=/dev/null, which is used to turn off the use of cache
7323# files altogether, and which should be passed on to subconfigures.
7324# Also strip program-prefix, program-suffix, and program-transform-name,
7325# so that we can pass down a consistent program-transform-name.
b30fcfae 7326baseargs=
0e4d1862 7327tbaseargs=
b30fcfae 7328keep_next=no
7329skip_next=no
7330eval "set -- $ac_configure_args"
4ff792a4 7331for ac_arg
7332do
b30fcfae 7333 if test X"$skip_next" = X"yes"; then
7334 skip_next=no
7335 continue
7336 fi
7337 if test X"$keep_next" = X"yes"; then
7338 case $ac_arg in
7339 *\'*)
7340 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7341 esac
7342 baseargs="$baseargs '$ac_arg'"
0e4d1862 7343 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7344 keep_next=no
7345 continue
7346 fi
7347
7348 # Handle separated arguments. Based on the logic generated by
7349 # autoconf 2.59.
7350 case $ac_arg in
7351 *=* | --config-cache | -C | -disable-* | --disable-* \
7352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7354 | -with-* | --with-* | -without-* | --without-* | --x)
7355 separate_arg=no
7356 ;;
7357 -*)
7358 separate_arg=yes
7359 ;;
7360 *)
7361 separate_arg=no
7362 ;;
7363 esac
7364
0e4d1862 7365 skip_targ=no
7366 case $ac_arg in
7367
7368 --with-* | --without-*)
7369 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7370
7371 case $libopt in
7372 *[-_]include)
7373 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7374 ;;
7375 *[-_]lib)
7376 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7377 ;;
7378 *)
7379 lib=$libopt
7380 ;;
7381 esac
7382
7383
7384 case $lib in
572cf1f7 7385 mpc | mpfr | gmp | isl)
0e4d1862 7386 # If we're processing --with-$lib, --with-$lib-include or
7387 # --with-$lib-lib, for one of the libs above, and target is
7388 # different from host, don't pass the current argument to any
7389 # target library's configure.
7390 if test x$is_cross_compiler = xyes; then
7391 skip_targ=yes
7392 fi
7393 ;;
7394 esac
7395 ;;
7396 esac
7397
b30fcfae 7398 case "$ac_arg" in
412c2e81 7399 --cache-file=/dev/null | \
7400 -cache-file=/dev/null )
7401 # Handled here to avoid the test to skip args below.
7402 baseargs="$baseargs '$ac_arg'"
0e4d1862 7403 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7404 # Assert: $separate_arg should always be no.
7405 keep_next=$separate_arg
7406 ;;
b30fcfae 7407 --no*)
7408 continue
7409 ;;
7410 --c* | \
7411 --sr* | \
7412 --ho* | \
7413 --bu* | \
7414 --t* | \
7415 --program-* | \
7416 -cache_file* | \
7417 -srcdir* | \
7418 -host* | \
7419 -build* | \
7420 -target* | \
7421 -program-prefix* | \
7422 -program-suffix* | \
7423 -program-transform-name* )
7424 skip_next=$separate_arg
7425 continue
7426 ;;
7427 -*)
7428 # An option. Add it.
7429 case $ac_arg in
7430 *\'*)
7431 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7432 esac
7433 baseargs="$baseargs '$ac_arg'"
0e4d1862 7434 if test X"$skip_targ" = Xno; then
7435 tbaseargs="$tbaseargs '$ac_arg'"
7436 fi
b30fcfae 7437 keep_next=$separate_arg
7438 ;;
7439 *)
7440 # Either a variable assignment, or a nonopt (triplet). Don't
7441 # pass it down; let the Makefile handle this.
7442 continue
7443 ;;
7444 esac
7445done
7446# Remove the initial space we just introduced and, as these will be
7447# expanded by make, quote '$'.
7448baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7449
fbfea1fa 7450# Add in --program-transform-name, after --program-prefix and
7451# --program-suffix have been applied to it. Autoconf has already
7452# doubled dollar signs and backslashes in program_transform_name; we want
7453# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7454# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7455# Also, because we want to override the logic in subdir configure scripts to
7456# choose program_transform_name, replace any s,x,x, with s,y,y,.
7457sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7458${program_transform_name}
7459EOF_SED
7460gcc_transform_name=`cat conftestsed.out`
7461rm -f conftestsed.out
7462baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7463tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7464if test "$silent" = yes; then
7465 baseargs="$baseargs --silent"
0e4d1862 7466 tbaseargs="$tbaseargs --silent"
af7bb0c0 7467fi
cd2f3773 7468baseargs="$baseargs --disable-option-checking"
0e4d1862 7469tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7470
372a3f1e 7471# Record and document user additions to sub configure arguments.
7472
7473
7474
7475
71ab34df 7476# For the build-side libraries, we just need to pretend we're native,
7477# and not use the same cache file. Multilibs are neither needed nor
b85b703b 7478# desired. We can't even use the same cache file for all build-side
7479# libraries, as they're compiled differently; some with C, some with
7480# C++ or with different feature-enabling options.
7481build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
71ab34df 7482
7483# For host modules, accept cache file option, or specification as blank.
7484case "${cache_file}" in
7485"") # empty
7486 cache_file_option="" ;;
7487/* | [A-Za-z]:[\\/]* ) # absolute path
7488 cache_file_option="--cache-file=${cache_file}" ;;
7489*) # relative path
7490 cache_file_option="--cache-file=../${cache_file}" ;;
7491esac
7492
ba1081ef 7493# Host dirs don't like to share a cache file either, horribly enough.
7494# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7495host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7496
0e4d1862 7497target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7498
7499# Passing a --with-cross-host argument lets the target libraries know
7500# whether they are being built with a cross-compiler or being built
7501# native. However, it would be better to use other mechanisms to make the
7502# sorts of decisions they want to make on this basis. Please consider
7503# this option to be deprecated. FIXME.
7504if test x${is_cross_compiler} = xyes ; then
b30fcfae 7505 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7506fi
7507
87ebeb4c 7508# Special user-friendly check for native x86_64-linux build, if
7509# multilib is not explicitly enabled.
7510case "$target:$have_compiler:$host:$target:$enable_multilib" in
7511 x86_64-*linux*:yes:$build:$build:)
6efd9d79 7512 # Make sure we have a development environment that handles 32-bit
87ebeb4c 7513 dev64=no
7514 echo "int main () { return 0; }" > conftest.c
7515 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7516 if test $? = 0 ; then
7517 if test -s conftest || test -s conftest.exe ; then
7518 dev64=yes
7519 fi
7520 fi
7521 rm -f conftest*
7522 if test x${dev64} != xyes ; then
6efd9d79 7523 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
87ebeb4c 7524 fi
7525 ;;
7526esac
7527
59a40389 7528# Default to --enable-multilib.
7529if test x${enable_multilib} = x ; then
71ab34df 7530 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7531fi
71ab34df 7532
7533# Pass --with-newlib if appropriate. Note that target_configdirs has
7534# changed from the earlier setting of with_newlib.
7535if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7536 target_configargs="--with-newlib ${target_configargs}"
7537fi
7538
74fef112 7539# Different target subdirs use different values of certain variables
7540# (notably CXX). Worse, multilibs use *lots* of different values.
7541# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7542# it doesn't automatically accept command-line overrides of them.
7543# This means it's not safe for target subdirs to share a cache file,
7544# which is disgusting, but there you have it. Hopefully this can be
7545# fixed in future. It's still worthwhile to use a cache file for each
7546# directory. I think.
7547
a8abbd9d 7548# Pass the appropriate --build, --host, --target and --cache-file arguments.
7549# We need to pass --target, as newer autoconf's requires consistency
7550# for target_alias and gcc doesn't manage it consistently.
d45318b3 7551target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7552
71ab34df 7553FLAGS_FOR_TARGET=
7554case " $target_configdirs " in
7555 *" newlib "*)
7556 case " $target_configargs " in
7557 *" --with-newlib "*)
7558 case "$target" in
fe284774 7559 *-cygwin*)
db54564d 7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
fe284774 7561 ;;
71ab34df 7562 esac
7563
7564 # If we're not building GCC, don't discard standard headers.
7565 if test -d ${srcdir}/gcc; then
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7567
7568 if test "${build}" != "${host}"; then
7569 # On Canadian crosses, CC_FOR_TARGET will have already been set
7570 # by `configure', so we won't have an opportunity to add -Bgcc/
7571 # to it. This is right: we don't want to search that directory
7572 # for binaries, but we want the header files in there, so add
7573 # them explicitly.
e619f0a6 7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7575
7576 # Someone might think of using the pre-installed headers on
7577 # Canadian crosses, in case the installed compiler is not fully
7578 # compatible with the compiler being built. In this case, it
7579 # would be better to flag an error than risking having
7580 # incompatible object files being constructed. We can't
7581 # guarantee that an error will be flagged, but let's hope the
7582 # compiler will do it, when presented with incompatible header
7583 # files.
7584 fi
7585 fi
7586
7587 case "${target}-${is_cross_compiler}" in
f74ea578 7588 i[3456789]86-*-linux*-no)
71ab34df 7589 # Here host == target, so we don't need to build gcc,
7590 # so we don't want to discard standard headers.
7591 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7592 ;;
7593 *)
7594 # If we're building newlib, use its generic headers last, but search
7595 # for any libc-related directories first (so make it the last -B
7596 # switch).
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7598
7599 # If we're building libgloss, find the startup file, simulator library
7600 # and linker script.
7601 case " $target_configdirs " in
7602 *" libgloss "*)
7603 # Look for startup file, simulator library and maybe linker script.
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7605 # Look for libnosys.a in case the target needs it.
7606 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7607 # Most targets have the linker script in the source directory.
7608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7609 ;;
7610 esac
71ab34df 7611 ;;
7612 esac
7613 ;;
7614 esac
7615 ;;
7616esac
fe284774 7617
d6d689df 7618case "$target" in
fe284774 7619 x86_64-*mingw* | *-w64-mingw*)
7620 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7621 # however, use a symlink named 'mingw' in ${prefix} .
7622 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7623 ;;
7624 *-mingw*)
7625 # MinGW can't be handled as Cygwin above since it does not use newlib.
7626 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'
7627 ;;
d6d689df 7628esac
71ab34df 7629
d8e9ea04 7630# Allow the user to override the flags for
7631# our build compiler if desired.
823e8b8d 7632if test x"${build}" = x"${host}" ; then
7633 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7634 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7635 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7636fi
d8e9ea04 7637
71ab34df 7638# On Canadian crosses, we'll be searching the right directories for
7639# the previously-installed cross compiler, so don't bother to add
7640# flags for directories within the install tree of the compiler
7641# being built; programs in there won't even run.
7642if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7643 # Search for pre-installed headers if nothing else fits.
5750c7d4 7644 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7645fi
7646
7647if test "x${use_gnu_ld}" = x &&
7648 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7649 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7651fi
7652
24714a39 7653# Search for other target-specific linker scripts and such.
7654case "${target}" in
38d7211b 7655 mep*)
7656 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7657 ;;
24714a39 7658esac
7659
71ab34df 7660# Makefile fragments.
03c65091 7661for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7662do
7663 eval fragval=\$$frag
7664 if test $fragval != /dev/null; then
7665 eval $frag=${srcdir}/$fragval
7666 fi
7667done
71ab34df 7668
7669
7670
7671
7672
7673# Miscellanea: directories, flags, etc.
7674
7675
7676
7677
7678
7679
7680
7d804f04 7681
2f8725b0 7682# Build module lists & subconfigure args.
71ab34df 7683
7684
7685
f5aebe3e 7686# Host module lists & subconfigure args.
7687
7688
7689
1fda3360 7690
f5aebe3e 7691# Target module lists & subconfigure args.
7692
7693
7694
7695# Build tools.
7696
7697
7698
93c5e793 7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
f5aebe3e 7713# Generate default definitions for YACC, M4, LEX and other programs that run
7714# on the build machine. These are used if the Makefile can't locate these
7715# programs in objdir.
7716MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7717
7718for ac_prog in 'bison -y' byacc yacc
7719do
b30fcfae 7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7721set dummy $ac_prog; ac_word=$2
cd9a469c 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723$as_echo_n "checking for $ac_word... " >&6; }
7724if test "${ac_cv_prog_YACC+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
f5aebe3e 7726else
7727 if test -n "$YACC"; then
7728 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7729else
b30fcfae 7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
cd9a469c 7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7737 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7739 break 2
7740 fi
7741done
cd9a469c 7742 done
7743IFS=$as_save_IFS
b30fcfae 7744
f5aebe3e 7745fi
7746fi
b30fcfae 7747YACC=$ac_cv_prog_YACC
f5aebe3e 7748if test -n "$YACC"; then
cd9a469c 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7750$as_echo "$YACC" >&6; }
f5aebe3e 7751else
cd9a469c 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
f5aebe3e 7754fi
7755
cd9a469c 7756
b30fcfae 7757 test -n "$YACC" && break
f5aebe3e 7758done
7759test -n "$YACC" || YACC="$MISSING bison -y"
7760
7761case " $build_configdirs " in
7762 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7763esac
7764
7765for ac_prog in bison
7766do
b30fcfae 7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7768set dummy $ac_prog; ac_word=$2
cd9a469c 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
7771if test "${ac_cv_prog_BISON+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
f5aebe3e 7773else
7774 if test -n "$BISON"; then
7775 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7776else
b30fcfae 7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
cd9a469c 7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7784 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7786 break 2
7787 fi
7788done
cd9a469c 7789 done
7790IFS=$as_save_IFS
b30fcfae 7791
f5aebe3e 7792fi
7793fi
b30fcfae 7794BISON=$ac_cv_prog_BISON
f5aebe3e 7795if test -n "$BISON"; then
cd9a469c 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7797$as_echo "$BISON" >&6; }
f5aebe3e 7798else
cd9a469c 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
f5aebe3e 7801fi
7802
cd9a469c 7803
b30fcfae 7804 test -n "$BISON" && break
f5aebe3e 7805done
7806test -n "$BISON" || BISON="$MISSING bison"
7807
7808case " $build_configdirs " in
7809 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7810esac
7811
7812for ac_prog in gm4 gnum4 m4
7813do
b30fcfae 7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7815set dummy $ac_prog; ac_word=$2
cd9a469c 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if test "${ac_cv_prog_M4+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
f5aebe3e 7820else
7821 if test -n "$M4"; then
7822 ac_cv_prog_M4="$M4" # Let the user override the test.
7823else
b30fcfae 7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
cd9a469c 7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7831 ac_cv_prog_M4="$ac_prog"
cd9a469c 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7833 break 2
7834 fi
7835done
cd9a469c 7836 done
7837IFS=$as_save_IFS
b30fcfae 7838
f5aebe3e 7839fi
7840fi
b30fcfae 7841M4=$ac_cv_prog_M4
f5aebe3e 7842if test -n "$M4"; then
cd9a469c 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7844$as_echo "$M4" >&6; }
f5aebe3e 7845else
cd9a469c 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
f5aebe3e 7848fi
7849
cd9a469c 7850
b30fcfae 7851 test -n "$M4" && break
f5aebe3e 7852done
7853test -n "$M4" || M4="$MISSING m4"
7854
7855case " $build_configdirs " in
7856 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7857esac
7858
7859for ac_prog in flex lex
7860do
b30fcfae 7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7862set dummy $ac_prog; ac_word=$2
cd9a469c 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if test "${ac_cv_prog_LEX+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
f5aebe3e 7867else
7868 if test -n "$LEX"; then
7869 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7870else
b30fcfae 7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
cd9a469c 7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7878 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7880 break 2
7881 fi
7882done
cd9a469c 7883 done
7884IFS=$as_save_IFS
b30fcfae 7885
f5aebe3e 7886fi
7887fi
b30fcfae 7888LEX=$ac_cv_prog_LEX
f5aebe3e 7889if test -n "$LEX"; then
cd9a469c 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7891$as_echo "$LEX" >&6; }
f5aebe3e 7892else
cd9a469c 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
f5aebe3e 7895fi
7896
cd9a469c 7897
b30fcfae 7898 test -n "$LEX" && break
f5aebe3e 7899done
7900test -n "$LEX" || LEX="$MISSING flex"
7901
7902case " $build_configdirs " in
7903 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7904 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7905esac
7906
7907for ac_prog in flex
7908do
b30fcfae 7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7910set dummy $ac_prog; ac_word=$2
cd9a469c 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912$as_echo_n "checking for $ac_word... " >&6; }
7913if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
f5aebe3e 7915else
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7918else
b30fcfae 7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
cd9a469c 7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7926 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7928 break 2
7929 fi
7930done
cd9a469c 7931 done
7932IFS=$as_save_IFS
b30fcfae 7933
f5aebe3e 7934fi
7935fi
b30fcfae 7936FLEX=$ac_cv_prog_FLEX
f5aebe3e 7937if test -n "$FLEX"; then
cd9a469c 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939$as_echo "$FLEX" >&6; }
f5aebe3e 7940else
cd9a469c 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
f5aebe3e 7943fi
7944
cd9a469c 7945
b30fcfae 7946 test -n "$FLEX" && break
f5aebe3e 7947done
7948test -n "$FLEX" || FLEX="$MISSING flex"
7949
7950case " $build_configdirs " in
7951 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7952esac
7953
7954for ac_prog in makeinfo
7955do
b30fcfae 7956 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7957set dummy $ac_prog; ac_word=$2
cd9a469c 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
7960if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
f5aebe3e 7962else
7963 if test -n "$MAKEINFO"; then
7964 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7965else
b30fcfae 7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
cd9a469c 7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7973 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7975 break 2
7976 fi
7977done
cd9a469c 7978 done
7979IFS=$as_save_IFS
b30fcfae 7980
f5aebe3e 7981fi
7982fi
b30fcfae 7983MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 7984if test -n "$MAKEINFO"; then
cd9a469c 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7986$as_echo "$MAKEINFO" >&6; }
f5aebe3e 7987else
cd9a469c 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
f5aebe3e 7990fi
7991
cd9a469c 7992
b30fcfae 7993 test -n "$MAKEINFO" && break
f5aebe3e 7994done
7995test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7996
7997case " $build_configdirs " in
7998 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7999 *)
8000
03caadda 8001 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 8002 # higher, else we use the "missing" dummy.
8003 if ${MAKEINFO} --version \
03caadda 8004 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 8005 :
8006 else
8007 MAKEINFO="$MISSING makeinfo"
8008 fi
8009 ;;
8010
8011esac
71ab34df 8012
f5aebe3e 8013# FIXME: expect and dejagnu may become build tools?
71ab34df 8014
f5aebe3e 8015for ac_prog in expect
8016do
b30fcfae 8017 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8018set dummy $ac_prog; ac_word=$2
cd9a469c 8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
8021if test "${ac_cv_prog_EXPECT+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
f5aebe3e 8023else
8024 if test -n "$EXPECT"; then
8025 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8026else
b30fcfae 8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
cd9a469c 8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8034 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8036 break 2
8037 fi
8038done
cd9a469c 8039 done
8040IFS=$as_save_IFS
b30fcfae 8041
f5aebe3e 8042fi
8043fi
b30fcfae 8044EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 8045if test -n "$EXPECT"; then
cd9a469c 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8047$as_echo "$EXPECT" >&6; }
f5aebe3e 8048else
cd9a469c 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
f5aebe3e 8051fi
71ab34df 8052
cd9a469c 8053
b30fcfae 8054 test -n "$EXPECT" && break
f5aebe3e 8055done
8056test -n "$EXPECT" || EXPECT="expect"
71ab34df 8057
f5aebe3e 8058case " $configdirs " in
8059 *" expect "*)
8060 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8061 ;;
8062esac
71ab34df 8063
f5aebe3e 8064for ac_prog in runtest
8065do
b30fcfae 8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8067set dummy $ac_prog; ac_word=$2
cd9a469c 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
f5aebe3e 8072else
8073 if test -n "$RUNTEST"; then
8074 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 8075else
b30fcfae 8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
cd9a469c 8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8083 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8085 break 2
8086 fi
8087done
cd9a469c 8088 done
8089IFS=$as_save_IFS
b30fcfae 8090
f5aebe3e 8091fi
8092fi
b30fcfae 8093RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 8094if test -n "$RUNTEST"; then
cd9a469c 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8096$as_echo "$RUNTEST" >&6; }
f5aebe3e 8097else
cd9a469c 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
f5aebe3e 8100fi
71ab34df 8101
cd9a469c 8102
b30fcfae 8103 test -n "$RUNTEST" && break
f5aebe3e 8104done
8105test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 8106
f5aebe3e 8107case " $configdirs " in
8108 *" dejagnu "*)
8d365775 8109 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 8110 ;;
8111esac
71ab34df 8112
8113
71ab34df 8114# Host tools.
bb612911 8115ncn_tool_prefix=
8116test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8117ncn_target_tool_prefix=
8118test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8119
95a05732 8120
8121
8122if test -n "$AR"; then
8123 ac_cv_prog_AR=$AR
8124elif test -n "$ac_cv_prog_AR"; then
8125 AR=$ac_cv_prog_AR
8126fi
8127
8128if test -n "$ac_cv_prog_AR"; then
8129 for ncn_progname in ar; do
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if test "${ac_cv_prog_AR+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
95a05732 8136else
8137 if test -n "$AR"; then
8138 ac_cv_prog_AR="$AR" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
cd9a469c 8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8147 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8149 break 2
8150 fi
8151done
cd9a469c 8152 done
8153IFS=$as_save_IFS
95a05732 8154
8155fi
8156fi
8157AR=$ac_cv_prog_AR
8158if test -n "$AR"; then
cd9a469c 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160$as_echo "$AR" >&6; }
95a05732 8161else
cd9a469c 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
95a05732 8164fi
8165
cd9a469c 8166
95a05732 8167 done
8168fi
8169
8170for ncn_progname in ar; do
768691b5 8171 if test -n "$ncn_tool_prefix"; then
8172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if test "${ac_cv_prog_AR+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
bb612911 8178else
8179 if test -n "$AR"; then
8180 ac_cv_prog_AR="$AR" # Let the user override the test.
8181else
b30fcfae 8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
cd9a469c 8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8189 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8191 break 2
8192 fi
8193done
cd9a469c 8194 done
8195IFS=$as_save_IFS
b30fcfae 8196
bb612911 8197fi
8198fi
b30fcfae 8199AR=$ac_cv_prog_AR
bb612911 8200if test -n "$AR"; then
cd9a469c 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8202$as_echo "$AR" >&6; }
bb612911 8203else
cd9a469c 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
bb612911 8206fi
8207
cd9a469c 8208
768691b5 8209 fi
8210 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if test "${ac_cv_prog_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
bb612911 8217else
768691b5 8218 if test -n "$AR"; then
ae48753c 8219 ac_cv_prog_AR="$AR" # Let the user override the test.
8220else
b30fcfae 8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
cd9a469c 8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8228 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8230 break 2
8231 fi
8232done
cd9a469c 8233 done
8234IFS=$as_save_IFS
b30fcfae 8235
bb612911 8236fi
8237fi
b30fcfae 8238AR=$ac_cv_prog_AR
768691b5 8239if test -n "$AR"; then
cd9a469c 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241$as_echo "$AR" >&6; }
bb612911 8242else
cd9a469c 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
bb612911 8245fi
b30fcfae 8246
cd9a469c 8247
768691b5 8248 fi
8249 test -n "$ac_cv_prog_AR" && break
8250done
8251
8252if test -z "$ac_cv_prog_AR" ; then
8253 set dummy ar
8254 if test $build = $host ; then
8255 AR="$2"
bb612911 8256 else
768691b5 8257 AR="${ncn_tool_prefix}$2"
bb612911 8258 fi
bb612911 8259fi
8260
95a05732 8261
8262
8263if test -n "$AS"; then
8264 ac_cv_prog_AS=$AS
8265elif test -n "$ac_cv_prog_AS"; then
8266 AS=$ac_cv_prog_AS
8267fi
8268
8269if test -n "$ac_cv_prog_AS"; then
8270 for ncn_progname in as; do
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if test "${ac_cv_prog_AS+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
95a05732 8277else
8278 if test -n "$AS"; then
8279 ac_cv_prog_AS="$AS" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
cd9a469c 8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8288 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8290 break 2
8291 fi
8292done
cd9a469c 8293 done
8294IFS=$as_save_IFS
95a05732 8295
8296fi
8297fi
8298AS=$ac_cv_prog_AS
8299if test -n "$AS"; then
cd9a469c 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301$as_echo "$AS" >&6; }
95a05732 8302else
cd9a469c 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
95a05732 8305fi
8306
cd9a469c 8307
95a05732 8308 done
8309fi
8310
8311for ncn_progname in as; do
768691b5 8312 if test -n "$ncn_tool_prefix"; then
8313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_prog_AS+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
bb612911 8319else
8320 if test -n "$AS"; then
8321 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8322else
b30fcfae 8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
cd9a469c 8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8330 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8332 break 2
8333 fi
8334done
cd9a469c 8335 done
8336IFS=$as_save_IFS
b30fcfae 8337
bb612911 8338fi
8339fi
b30fcfae 8340AS=$ac_cv_prog_AS
bb612911 8341if test -n "$AS"; then
cd9a469c 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8343$as_echo "$AS" >&6; }
bb612911 8344else
cd9a469c 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
bb612911 8347fi
8348
cd9a469c 8349
768691b5 8350 fi
8351 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
bb612911 8358else
768691b5 8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8361else
b30fcfae 8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
cd9a469c 8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8369 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8371 break 2
8372 fi
8373done
cd9a469c 8374 done
8375IFS=$as_save_IFS
b30fcfae 8376
bb612911 8377fi
8378fi
b30fcfae 8379AS=$ac_cv_prog_AS
768691b5 8380if test -n "$AS"; then
cd9a469c 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382$as_echo "$AS" >&6; }
bb612911 8383else
cd9a469c 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
bb612911 8386fi
b30fcfae 8387
cd9a469c 8388
768691b5 8389 fi
8390 test -n "$ac_cv_prog_AS" && break
8391done
8392
8393if test -z "$ac_cv_prog_AS" ; then
8394 set dummy as
8395 if test $build = $host ; then
8396 AS="$2"
bb612911 8397 else
768691b5 8398 AS="${ncn_tool_prefix}$2"
bb612911 8399 fi
bb612911 8400fi
8401
95a05732 8402
8403
8404if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL=$DLLTOOL
8406elif test -n "$ac_cv_prog_DLLTOOL"; then
8407 DLLTOOL=$ac_cv_prog_DLLTOOL
8408fi
8409
8410if test -n "$ac_cv_prog_DLLTOOL"; then
8411 for ncn_progname in dlltool; do
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
95a05732 8418else
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
cd9a469c 8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8429 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8431 break 2
8432 fi
8433done
cd9a469c 8434 done
8435IFS=$as_save_IFS
95a05732 8436
8437fi
8438fi
8439DLLTOOL=$ac_cv_prog_DLLTOOL
8440if test -n "$DLLTOOL"; then
cd9a469c 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442$as_echo "$DLLTOOL" >&6; }
95a05732 8443else
cd9a469c 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
95a05732 8446fi
8447
cd9a469c 8448
95a05732 8449 done
8450fi
8451
8452for ncn_progname in dlltool; do
768691b5 8453 if test -n "$ncn_tool_prefix"; then
8454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
bb612911 8460else
8461 if test -n "$DLLTOOL"; then
8462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8463else
b30fcfae 8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
cd9a469c 8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8471 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8473 break 2
8474 fi
8475done
cd9a469c 8476 done
8477IFS=$as_save_IFS
b30fcfae 8478
bb612911 8479fi
8480fi
b30fcfae 8481DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8482if test -n "$DLLTOOL"; then
cd9a469c 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8484$as_echo "$DLLTOOL" >&6; }
bb612911 8485else
cd9a469c 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
bb612911 8488fi
8489
cd9a469c 8490
768691b5 8491 fi
8492 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8494set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
bb612911 8499else
768691b5 8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8502else
b30fcfae 8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
cd9a469c 8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8510 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8512 break 2
8513 fi
8514done
cd9a469c 8515 done
8516IFS=$as_save_IFS
b30fcfae 8517
bb612911 8518fi
8519fi
b30fcfae 8520DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8521if test -n "$DLLTOOL"; then
cd9a469c 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523$as_echo "$DLLTOOL" >&6; }
bb612911 8524else
cd9a469c 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
bb612911 8527fi
b30fcfae 8528
cd9a469c 8529
768691b5 8530 fi
8531 test -n "$ac_cv_prog_DLLTOOL" && break
8532done
8533
8534if test -z "$ac_cv_prog_DLLTOOL" ; then
8535 set dummy dlltool
8536 if test $build = $host ; then
8537 DLLTOOL="$2"
bb612911 8538 else
768691b5 8539 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8540 fi
bb612911 8541fi
8542
95a05732 8543
8544
8545if test -n "$LD"; then
8546 ac_cv_prog_LD=$LD
8547elif test -n "$ac_cv_prog_LD"; then
8548 LD=$ac_cv_prog_LD
8549fi
8550
8551if test -n "$ac_cv_prog_LD"; then
8552 for ncn_progname in ld; do
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
8557if test "${ac_cv_prog_LD+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
95a05732 8559else
8560 if test -n "$LD"; then
8561 ac_cv_prog_LD="$LD" # Let the user override the test.
8562else
8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in $PATH
8565do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
cd9a469c 8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8570 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8572 break 2
8573 fi
8574done
cd9a469c 8575 done
8576IFS=$as_save_IFS
95a05732 8577
8578fi
8579fi
8580LD=$ac_cv_prog_LD
8581if test -n "$LD"; then
cd9a469c 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583$as_echo "$LD" >&6; }
95a05732 8584else
cd9a469c 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
95a05732 8587fi
8588
cd9a469c 8589
95a05732 8590 done
8591fi
8592
8593for ncn_progname in ld; do
768691b5 8594 if test -n "$ncn_tool_prefix"; then
8595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
8599if test "${ac_cv_prog_LD+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
bb612911 8601else
8602 if test -n "$LD"; then
8603 ac_cv_prog_LD="$LD" # Let the user override the test.
8604else
b30fcfae 8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
cd9a469c 8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8612 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8614 break 2
8615 fi
8616done
cd9a469c 8617 done
8618IFS=$as_save_IFS
b30fcfae 8619
bb612911 8620fi
8621fi
b30fcfae 8622LD=$ac_cv_prog_LD
bb612911 8623if test -n "$LD"; then
cd9a469c 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8625$as_echo "$LD" >&6; }
bb612911 8626else
cd9a469c 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
bb612911 8629fi
8630
cd9a469c 8631
768691b5 8632 fi
8633 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8635set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if test "${ac_cv_prog_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
bb612911 8640else
768691b5 8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8643else
b30fcfae 8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
cd9a469c 8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8651 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8653 break 2
8654 fi
8655done
cd9a469c 8656 done
8657IFS=$as_save_IFS
b30fcfae 8658
bb612911 8659fi
8660fi
b30fcfae 8661LD=$ac_cv_prog_LD
768691b5 8662if test -n "$LD"; then
cd9a469c 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664$as_echo "$LD" >&6; }
bb612911 8665else
cd9a469c 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
bb612911 8668fi
b30fcfae 8669
cd9a469c 8670
768691b5 8671 fi
8672 test -n "$ac_cv_prog_LD" && break
8673done
8674
8675if test -z "$ac_cv_prog_LD" ; then
8676 set dummy ld
8677 if test $build = $host ; then
8678 LD="$2"
bb612911 8679 else
768691b5 8680 LD="${ncn_tool_prefix}$2"
bb612911 8681 fi
bb612911 8682fi
8683
95a05732 8684
8685
8686if test -n "$LIPO"; then
8687 ac_cv_prog_LIPO=$LIPO
8688elif test -n "$ac_cv_prog_LIPO"; then
8689 LIPO=$ac_cv_prog_LIPO
8690fi
8691
8692if test -n "$ac_cv_prog_LIPO"; then
8693 for ncn_progname in lipo; do
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if test "${ac_cv_prog_LIPO+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
95a05732 8700else
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
cd9a469c 8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8711 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8713 break 2
8714 fi
8715done
cd9a469c 8716 done
8717IFS=$as_save_IFS
95a05732 8718
8719fi
8720fi
8721LIPO=$ac_cv_prog_LIPO
8722if test -n "$LIPO"; then
cd9a469c 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724$as_echo "$LIPO" >&6; }
95a05732 8725else
cd9a469c 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
95a05732 8728fi
8729
cd9a469c 8730
95a05732 8731 done
8732fi
8733
8734for ncn_progname in lipo; do
f5aebe3e 8735 if test -n "$ncn_tool_prefix"; then
8736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8737set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if test "${ac_cv_prog_LIPO+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
f5aebe3e 8742else
8743 if test -n "$LIPO"; then
8744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8745else
b30fcfae 8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
cd9a469c 8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8753 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8755 break 2
8756 fi
8757done
cd9a469c 8758 done
8759IFS=$as_save_IFS
b30fcfae 8760
f5aebe3e 8761fi
8762fi
b30fcfae 8763LIPO=$ac_cv_prog_LIPO
f5aebe3e 8764if test -n "$LIPO"; then
cd9a469c 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766$as_echo "$LIPO" >&6; }
f5aebe3e 8767else
cd9a469c 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
f5aebe3e 8770fi
8771
cd9a469c 8772
f5aebe3e 8773 fi
8774 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8776set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
8779if test "${ac_cv_prog_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
f5aebe3e 8781else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784else
b30fcfae 8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
cd9a469c 8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8792 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8794 break 2
8795 fi
8796done
cd9a469c 8797 done
8798IFS=$as_save_IFS
b30fcfae 8799
f5aebe3e 8800fi
8801fi
b30fcfae 8802LIPO=$ac_cv_prog_LIPO
f5aebe3e 8803if test -n "$LIPO"; then
cd9a469c 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805$as_echo "$LIPO" >&6; }
f5aebe3e 8806else
cd9a469c 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
f5aebe3e 8809fi
b30fcfae 8810
cd9a469c 8811
f5aebe3e 8812 fi
8813 test -n "$ac_cv_prog_LIPO" && break
8814done
8815
8816if test -z "$ac_cv_prog_LIPO" ; then
8817 set dummy lipo
8818 if test $build = $host ; then
8819 LIPO="$2"
8820 else
8821 LIPO="${ncn_tool_prefix}$2"
8822 fi
8823fi
8824
95a05732 8825
8826
8827if test -n "$NM"; then
8828 ac_cv_prog_NM=$NM
8829elif test -n "$ac_cv_prog_NM"; then
8830 NM=$ac_cv_prog_NM
8831fi
8832
8833if test -n "$ac_cv_prog_NM"; then
8834 for ncn_progname in nm; do
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838$as_echo_n "checking for $ac_word... " >&6; }
8839if test "${ac_cv_prog_NM+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
bb612911 8841else
8842 if test -n "$NM"; then
8843 ac_cv_prog_NM="$NM" # Let the user override the test.
8844else
b30fcfae 8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
cd9a469c 8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8852 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8854 break 2
8855 fi
8856done
cd9a469c 8857 done
8858IFS=$as_save_IFS
b30fcfae 8859
bb612911 8860fi
8861fi
b30fcfae 8862NM=$ac_cv_prog_NM
bb612911 8863if test -n "$NM"; then
cd9a469c 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865$as_echo "$NM" >&6; }
bb612911 8866else
cd9a469c 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
bb612911 8869fi
8870
cd9a469c 8871
95a05732 8872 done
8873fi
8874
8875for ncn_progname in nm; do
8876 if test -n "$ncn_tool_prefix"; then
8877 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_NM+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
bb612911 8883else
768691b5 8884 if test -n "$NM"; then
8885 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8886else
b30fcfae 8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
cd9a469c 8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8894 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8896 break 2
8897 fi
8898done
cd9a469c 8899 done
8900IFS=$as_save_IFS
b30fcfae 8901
bb612911 8902fi
8903fi
b30fcfae 8904NM=$ac_cv_prog_NM
768691b5 8905if test -n "$NM"; then
cd9a469c 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8907$as_echo "$NM" >&6; }
bb612911 8908else
cd9a469c 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
bb612911 8911fi
b30fcfae 8912
cd9a469c 8913
768691b5 8914 fi
95a05732 8915 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919$as_echo_n "checking for $ac_word... " >&6; }
8920if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
95a05732 8922else
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
cd9a469c 8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8933 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8935 break 2
8936 fi
8937done
cd9a469c 8938 done
8939IFS=$as_save_IFS
95a05732 8940
8941fi
8942fi
8943NM=$ac_cv_prog_NM
8944if test -n "$NM"; then
cd9a469c 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946$as_echo "$NM" >&6; }
95a05732 8947else
cd9a469c 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
95a05732 8950fi
8951
cd9a469c 8952
95a05732 8953 fi
8954 test -n "$ac_cv_prog_NM" && break
8955done
8956
8957if test -z "$ac_cv_prog_NM" ; then
8958 set dummy nm
8959 if test $build = $host ; then
8960 NM="$2"
8961 else
8962 NM="${ncn_tool_prefix}$2"
8963 fi
8964fi
8965
8966
8967
8968if test -n "$RANLIB"; then
8969 ac_cv_prog_RANLIB=$RANLIB
8970elif test -n "$ac_cv_prog_RANLIB"; then
8971 RANLIB=$ac_cv_prog_RANLIB
8972fi
8973
8974if test -n "$ac_cv_prog_RANLIB"; then
8975 for ncn_progname in ranlib; do
8976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
8980if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
95a05732 8982else
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
cd9a469c 8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8993 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8995 break 2
8996 fi
8997done
cd9a469c 8998 done
8999IFS=$as_save_IFS
95a05732 9000
9001fi
9002fi
9003RANLIB=$ac_cv_prog_RANLIB
9004if test -n "$RANLIB"; then
cd9a469c 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006$as_echo "$RANLIB" >&6; }
95a05732 9007else
cd9a469c 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
95a05732 9010fi
9011
cd9a469c 9012
95a05732 9013 done
9014fi
bb612911 9015
95a05732 9016for ncn_progname in ranlib; do
768691b5 9017 if test -n "$ncn_tool_prefix"; then
9018 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9019set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021$as_echo_n "checking for $ac_word... " >&6; }
9022if test "${ac_cv_prog_RANLIB+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
bb612911 9024else
9025 if test -n "$RANLIB"; then
9026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9027else
b30fcfae 9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
cd9a469c 9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9035 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9037 break 2
9038 fi
9039done
cd9a469c 9040 done
9041IFS=$as_save_IFS
b30fcfae 9042
bb612911 9043fi
9044fi
b30fcfae 9045RANLIB=$ac_cv_prog_RANLIB
bb612911 9046if test -n "$RANLIB"; then
cd9a469c 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9048$as_echo "$RANLIB" >&6; }
bb612911 9049else
cd9a469c 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
bb612911 9052fi
9053
cd9a469c 9054
768691b5 9055 fi
9056 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9058set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
bb612911 9063else
768691b5 9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 9066else
b30fcfae 9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
cd9a469c 9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9074 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9076 break 2
9077 fi
9078done
cd9a469c 9079 done
9080IFS=$as_save_IFS
b30fcfae 9081
bb612911 9082fi
9083fi
b30fcfae 9084RANLIB=$ac_cv_prog_RANLIB
768691b5 9085if test -n "$RANLIB"; then
cd9a469c 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087$as_echo "$RANLIB" >&6; }
bb612911 9088else
cd9a469c 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
bb612911 9091fi
b30fcfae 9092
cd9a469c 9093
bb612911 9094 fi
768691b5 9095 test -n "$ac_cv_prog_RANLIB" && break
9096done
9097
9098if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 9099 RANLIB="true"
bb612911 9100fi
9101
95a05732 9102
9103
9104if test -n "$STRIP"; then
9105 ac_cv_prog_STRIP=$STRIP
9106elif test -n "$ac_cv_prog_STRIP"; then
9107 STRIP=$ac_cv_prog_STRIP
9108fi
9109
9110if test -n "$ac_cv_prog_STRIP"; then
9111 for ncn_progname in strip; do
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if test "${ac_cv_prog_STRIP+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
95a05732 9118else
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
cd9a469c 9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9129 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9131 break 2
9132 fi
9133done
cd9a469c 9134 done
9135IFS=$as_save_IFS
95a05732 9136
9137fi
9138fi
9139STRIP=$ac_cv_prog_STRIP
9140if test -n "$STRIP"; then
cd9a469c 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142$as_echo "$STRIP" >&6; }
95a05732 9143else
cd9a469c 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
95a05732 9146fi
9147
cd9a469c 9148
95a05732 9149 done
9150fi
9151
9152for ncn_progname in strip; do
f5aebe3e 9153 if test -n "$ncn_tool_prefix"; then
9154 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9155set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157$as_echo_n "checking for $ac_word... " >&6; }
9158if test "${ac_cv_prog_STRIP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
f5aebe3e 9160else
9161 if test -n "$STRIP"; then
9162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9163else
b30fcfae 9164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165for as_dir in $PATH
9166do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
cd9a469c 9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9171 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9173 break 2
9174 fi
9175done
cd9a469c 9176 done
9177IFS=$as_save_IFS
b30fcfae 9178
f5aebe3e 9179fi
9180fi
b30fcfae 9181STRIP=$ac_cv_prog_STRIP
f5aebe3e 9182if test -n "$STRIP"; then
cd9a469c 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9184$as_echo "$STRIP" >&6; }
f5aebe3e 9185else
cd9a469c 9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187$as_echo "no" >&6; }
f5aebe3e 9188fi
9189
cd9a469c 9190
f5aebe3e 9191 fi
9192 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9194set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
f5aebe3e 9199else
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9202else
b30fcfae 9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
cd9a469c 9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9210 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9212 break 2
9213 fi
9214done
cd9a469c 9215 done
9216IFS=$as_save_IFS
b30fcfae 9217
f5aebe3e 9218fi
9219fi
b30fcfae 9220STRIP=$ac_cv_prog_STRIP
f5aebe3e 9221if test -n "$STRIP"; then
cd9a469c 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223$as_echo "$STRIP" >&6; }
f5aebe3e 9224else
cd9a469c 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226$as_echo "no" >&6; }
f5aebe3e 9227fi
b30fcfae 9228
cd9a469c 9229
f5aebe3e 9230 fi
9231 test -n "$ac_cv_prog_STRIP" && break
9232done
9233
9234if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9235 STRIP="true"
f5aebe3e 9236fi
9237
95a05732 9238
9239
9240if test -n "$WINDRES"; then
9241 ac_cv_prog_WINDRES=$WINDRES
9242elif test -n "$ac_cv_prog_WINDRES"; then
9243 WINDRES=$ac_cv_prog_WINDRES
9244fi
9245
9246if test -n "$ac_cv_prog_WINDRES"; then
9247 for ncn_progname in windres; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251$as_echo_n "checking for $ac_word... " >&6; }
9252if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
95a05732 9254else
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9257else
9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259for as_dir in $PATH
9260do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
cd9a469c 9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9265 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9267 break 2
9268 fi
9269done
cd9a469c 9270 done
9271IFS=$as_save_IFS
95a05732 9272
9273fi
9274fi
9275WINDRES=$ac_cv_prog_WINDRES
9276if test -n "$WINDRES"; then
cd9a469c 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278$as_echo "$WINDRES" >&6; }
95a05732 9279else
cd9a469c 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281$as_echo "no" >&6; }
95a05732 9282fi
9283
cd9a469c 9284
95a05732 9285 done
9286fi
9287
9288for ncn_progname in windres; do
768691b5 9289 if test -n "$ncn_tool_prefix"; then
9290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293$as_echo_n "checking for $ac_word... " >&6; }
9294if test "${ac_cv_prog_WINDRES+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
bb612911 9296else
9297 if test -n "$WINDRES"; then
9298 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9299else
b30fcfae 9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
cd9a469c 9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9307 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9309 break 2
9310 fi
9311done
cd9a469c 9312 done
9313IFS=$as_save_IFS
b30fcfae 9314
bb612911 9315fi
9316fi
b30fcfae 9317WINDRES=$ac_cv_prog_WINDRES
bb612911 9318if test -n "$WINDRES"; then
cd9a469c 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9320$as_echo "$WINDRES" >&6; }
bb612911 9321else
cd9a469c 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
bb612911 9324fi
9325
cd9a469c 9326
768691b5 9327 fi
9328 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
bb612911 9335else
768691b5 9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9338else
b30fcfae 9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
cd9a469c 9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9346 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9348 break 2
9349 fi
9350done
cd9a469c 9351 done
9352IFS=$as_save_IFS
b30fcfae 9353
bb612911 9354fi
9355fi
b30fcfae 9356WINDRES=$ac_cv_prog_WINDRES
768691b5 9357if test -n "$WINDRES"; then
cd9a469c 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359$as_echo "$WINDRES" >&6; }
bb612911 9360else
cd9a469c 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362$as_echo "no" >&6; }
bb612911 9363fi
b30fcfae 9364
cd9a469c 9365
768691b5 9366 fi
9367 test -n "$ac_cv_prog_WINDRES" && break
9368done
9369
9370if test -z "$ac_cv_prog_WINDRES" ; then
9371 set dummy windres
9372 if test $build = $host ; then
9373 WINDRES="$2"
bb612911 9374 else
768691b5 9375 WINDRES="${ncn_tool_prefix}$2"
bb612911 9376 fi
bb612911 9377fi
9378
95a05732 9379
9380
75d6a0a9 9381if test -n "$WINDMC"; then
9382 ac_cv_prog_WINDMC=$WINDMC
9383elif test -n "$ac_cv_prog_WINDMC"; then
9384 WINDMC=$ac_cv_prog_WINDMC
9385fi
9386
9387if test -n "$ac_cv_prog_WINDMC"; then
9388 for ncn_progname in windmc; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392$as_echo_n "checking for $ac_word... " >&6; }
9393if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
75d6a0a9 9395else
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
cd9a469c 9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9406 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9408 break 2
9409 fi
9410done
cd9a469c 9411 done
9412IFS=$as_save_IFS
75d6a0a9 9413
9414fi
9415fi
9416WINDMC=$ac_cv_prog_WINDMC
9417if test -n "$WINDMC"; then
cd9a469c 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419$as_echo "$WINDMC" >&6; }
75d6a0a9 9420else
cd9a469c 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }
75d6a0a9 9423fi
9424
cd9a469c 9425
75d6a0a9 9426 done
9427fi
9428
9429for ncn_progname in windmc; do
9430 if test -n "$ncn_tool_prefix"; then
9431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9432set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_prog_WINDMC+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
75d6a0a9 9437else
9438 if test -n "$WINDMC"; then
9439 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9440else
9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $PATH
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
cd9a469c 9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9448 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9450 break 2
9451 fi
9452done
cd9a469c 9453 done
9454IFS=$as_save_IFS
75d6a0a9 9455
9456fi
9457fi
9458WINDMC=$ac_cv_prog_WINDMC
9459if test -n "$WINDMC"; then
cd9a469c 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9461$as_echo "$WINDMC" >&6; }
75d6a0a9 9462else
cd9a469c 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464$as_echo "no" >&6; }
75d6a0a9 9465fi
9466
cd9a469c 9467
75d6a0a9 9468 fi
9469 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9471set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if test "${ac_cv_prog_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
75d6a0a9 9476else
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
cd9a469c 9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9487 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9489 break 2
9490 fi
9491done
cd9a469c 9492 done
9493IFS=$as_save_IFS
75d6a0a9 9494
9495fi
9496fi
9497WINDMC=$ac_cv_prog_WINDMC
9498if test -n "$WINDMC"; then
cd9a469c 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500$as_echo "$WINDMC" >&6; }
75d6a0a9 9501else
cd9a469c 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
75d6a0a9 9504fi
9505
cd9a469c 9506
75d6a0a9 9507 fi
9508 test -n "$ac_cv_prog_WINDMC" && break
9509done
9510
9511if test -z "$ac_cv_prog_WINDMC" ; then
9512 set dummy windmc
9513 if test $build = $host ; then
9514 WINDMC="$2"
9515 else
9516 WINDMC="${ncn_tool_prefix}$2"
9517 fi
9518fi
9519
9520
9521
95a05732 9522if test -n "$OBJCOPY"; then
9523 ac_cv_prog_OBJCOPY=$OBJCOPY
9524elif test -n "$ac_cv_prog_OBJCOPY"; then
9525 OBJCOPY=$ac_cv_prog_OBJCOPY
9526fi
9527
9528if test -n "$ac_cv_prog_OBJCOPY"; then
9529 for ncn_progname in objcopy; do
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
95a05732 9536else
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
cd9a469c 9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9547 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9549 break 2
9550 fi
9551done
cd9a469c 9552 done
9553IFS=$as_save_IFS
95a05732 9554
9555fi
9556fi
9557OBJCOPY=$ac_cv_prog_OBJCOPY
9558if test -n "$OBJCOPY"; then
cd9a469c 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560$as_echo "$OBJCOPY" >&6; }
95a05732 9561else
cd9a469c 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
95a05732 9564fi
9565
cd9a469c 9566
95a05732 9567 done
9568fi
9569
9570for ncn_progname in objcopy; do
768691b5 9571 if test -n "$ncn_tool_prefix"; then
9572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9573set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
bb612911 9578else
9579 if test -n "$OBJCOPY"; then
9580 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9581else
b30fcfae 9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
cd9a469c 9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9589 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9591 break 2
9592 fi
9593done
cd9a469c 9594 done
9595IFS=$as_save_IFS
b30fcfae 9596
bb612911 9597fi
9598fi
b30fcfae 9599OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9600if test -n "$OBJCOPY"; then
cd9a469c 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9602$as_echo "$OBJCOPY" >&6; }
bb612911 9603else
cd9a469c 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
bb612911 9606fi
9607
cd9a469c 9608
768691b5 9609 fi
9610 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9612set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
9615if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
bb612911 9617else
768691b5 9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9620else
b30fcfae 9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
cd9a469c 9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9628 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9630 break 2
9631 fi
9632done
cd9a469c 9633 done
9634IFS=$as_save_IFS
b30fcfae 9635
bb612911 9636fi
9637fi
b30fcfae 9638OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9639if test -n "$OBJCOPY"; then
cd9a469c 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641$as_echo "$OBJCOPY" >&6; }
bb612911 9642else
cd9a469c 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
bb612911 9645fi
b30fcfae 9646
cd9a469c 9647
768691b5 9648 fi
9649 test -n "$ac_cv_prog_OBJCOPY" && break
9650done
9651
9652if test -z "$ac_cv_prog_OBJCOPY" ; then
9653 set dummy objcopy
9654 if test $build = $host ; then
9655 OBJCOPY="$2"
bb612911 9656 else
768691b5 9657 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9658 fi
bb612911 9659fi
9660
95a05732 9661
9662
9663if test -n "$OBJDUMP"; then
9664 ac_cv_prog_OBJDUMP=$OBJDUMP
9665elif test -n "$ac_cv_prog_OBJDUMP"; then
9666 OBJDUMP=$ac_cv_prog_OBJDUMP
9667fi
9668
9669if test -n "$ac_cv_prog_OBJDUMP"; then
9670 for ncn_progname in objdump; do
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
95a05732 9677else
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
cd9a469c 9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9688 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9690 break 2
9691 fi
9692done
cd9a469c 9693 done
9694IFS=$as_save_IFS
95a05732 9695
9696fi
9697fi
9698OBJDUMP=$ac_cv_prog_OBJDUMP
9699if test -n "$OBJDUMP"; then
cd9a469c 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701$as_echo "$OBJDUMP" >&6; }
95a05732 9702else
cd9a469c 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
95a05732 9705fi
9706
cd9a469c 9707
95a05732 9708 done
9709fi
9710
9711for ncn_progname in objdump; do
768691b5 9712 if test -n "$ncn_tool_prefix"; then
9713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9714set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
bb612911 9719else
9720 if test -n "$OBJDUMP"; then
9721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9722else
b30fcfae 9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
cd9a469c 9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9730 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9732 break 2
9733 fi
9734done
cd9a469c 9735 done
9736IFS=$as_save_IFS
b30fcfae 9737
bb612911 9738fi
9739fi
b30fcfae 9740OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9741if test -n "$OBJDUMP"; then
cd9a469c 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9743$as_echo "$OBJDUMP" >&6; }
bb612911 9744else
cd9a469c 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
bb612911 9747fi
9748
cd9a469c 9749
768691b5 9750 fi
9751 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
bb612911 9758else
768691b5 9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9761else
b30fcfae 9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
cd9a469c 9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9769 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9771 break 2
9772 fi
9773done
cd9a469c 9774 done
9775IFS=$as_save_IFS
b30fcfae 9776
bb612911 9777fi
9778fi
b30fcfae 9779OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9780if test -n "$OBJDUMP"; then
cd9a469c 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782$as_echo "$OBJDUMP" >&6; }
bb612911 9783else
cd9a469c 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
bb612911 9786fi
b30fcfae 9787
cd9a469c 9788
768691b5 9789 fi
9790 test -n "$ac_cv_prog_OBJDUMP" && break
9791done
9792
9793if test -z "$ac_cv_prog_OBJDUMP" ; then
9794 set dummy objdump
9795 if test $build = $host ; then
9796 OBJDUMP="$2"
bb612911 9797 else
768691b5 9798 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9799 fi
bb612911 9800fi
9801
71ab34df 9802
9803
3f71364d 9804if test -n "$READELF"; then
9805 ac_cv_prog_READELF=$READELF
9806elif test -n "$ac_cv_prog_READELF"; then
9807 READELF=$ac_cv_prog_READELF
9808fi
9809
9810if test -n "$ac_cv_prog_READELF"; then
9811 for ncn_progname in readelf; do
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813set dummy ${ncn_progname}; ac_word=$2
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if test "${ac_cv_prog_READELF+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818else
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9821else
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_READELF="${ncn_progname}"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834 done
9835IFS=$as_save_IFS
9836
9837fi
9838fi
9839READELF=$ac_cv_prog_READELF
9840if test -n "$READELF"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842$as_echo "$READELF" >&6; }
9843else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
9846fi
9847
9848
9849 done
9850fi
9851
9852for ncn_progname in readelf; do
9853 if test -n "$ncn_tool_prefix"; then
9854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9855set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if test "${ac_cv_prog_READELF+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860else
9861 if test -n "$READELF"; then
9862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876 done
9877IFS=$as_save_IFS
9878
9879fi
9880fi
9881READELF=$ac_cv_prog_READELF
9882if test -n "$READELF"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9884$as_echo "$READELF" >&6; }
9885else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891 fi
9892 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894set dummy ${ncn_progname}; ac_word=$2
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896$as_echo_n "checking for $ac_word... " >&6; }
9897if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
9905do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915 done
9916IFS=$as_save_IFS
9917
9918fi
9919fi
9920READELF=$ac_cv_prog_READELF
9921if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923$as_echo "$READELF" >&6; }
9924else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927fi
9928
9929
9930 fi
9931 test -n "$ac_cv_prog_READELF" && break
9932done
9933
9934if test -z "$ac_cv_prog_READELF" ; then
9935 set dummy readelf
9936 if test $build = $host ; then
9937 READELF="$2"
9938 else
9939 READELF="${ncn_tool_prefix}$2"
9940 fi
9941fi
9942
9943
9944
71ab34df 9945
9946
9947
f5aebe3e 9948# Target tools.
b30fcfae 9949
cd9a469c 9950# Check whether --with-build-time-tools was given.
9951if test "${with_build_time_tools+set}" = set; then :
9952 withval=$with_build_time_tools; case x"$withval" in
c47832b1 9953 x/*) ;;
9954 *)
9955 with_build_time_tools=
cd9a469c 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9957$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 9958 ;;
9959 esac
bb612911 9960else
c47832b1 9961 with_build_time_tools=
cd9a469c 9962fi
9963
bb612911 9964
95a05732 9965
9966
9967if test -n "$CC_FOR_TARGET"; then
9968 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9969elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9970 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9971fi
9972
9973if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9974 for ncn_progname in cc gcc; do
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
95a05732 9981else
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
cd9a469c 9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9992 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9994 break 2
9995 fi
9996done
cd9a469c 9997 done
9998IFS=$as_save_IFS
95a05732 9999
10000fi
10001fi
10002CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10003if test -n "$CC_FOR_TARGET"; then
cd9a469c 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10005$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 10006else
cd9a469c 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
95a05732 10009fi
10010
cd9a469c 10011
95a05732 10012 done
10013fi
10014
10015if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10016 for ncn_progname in cc gcc; do
cd9a469c 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10018$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10019 if test -x $with_build_time_tools/${ncn_progname}; then
10020 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10022$as_echo "yes" >&6; }
9886f3d1 10023 break
c47832b1 10024 else
cd9a469c 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
9886f3d1 10027 fi
10028 done
ef8184c7 10029fi
10030
c47832b1 10031if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10032 for ncn_progname in cc gcc; do
10033 if test -n "$ncn_target_tool_prefix"; then
10034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037$as_echo_n "checking for $ac_word... " >&6; }
10038if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
ef8184c7 10040else
10041 if test -n "$CC_FOR_TARGET"; then
10042 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10043else
b30fcfae 10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
cd9a469c 10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10051 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10053 break 2
10054 fi
10055done
cd9a469c 10056 done
10057IFS=$as_save_IFS
b30fcfae 10058
ef8184c7 10059fi
10060fi
b30fcfae 10061CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 10062if test -n "$CC_FOR_TARGET"; then
cd9a469c 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10064$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10065else
cd9a469c 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067$as_echo "no" >&6; }
ef8184c7 10068fi
10069
cd9a469c 10070
c47832b1 10071 fi
10072 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10074set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
ef8184c7 10079else
768691b5 10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 10082else
b30fcfae 10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
cd9a469c 10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10090 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10092 break 2
10093 fi
10094done
cd9a469c 10095 done
10096IFS=$as_save_IFS
b30fcfae 10097
ef8184c7 10098fi
10099fi
b30fcfae 10100CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 10101if test -n "$CC_FOR_TARGET"; then
cd9a469c 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10104else
cd9a469c 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
ef8184c7 10107fi
b30fcfae 10108
cd9a469c 10109
c47832b1 10110 fi
10111 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10112 done
10113fi
b30fcfae 10114
768691b5 10115if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10116 set dummy cc gcc
10117 if test $build = $target ; then
10118 CC_FOR_TARGET="$2"
ef8184c7 10119 else
768691b5 10120 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10121 fi
b7ef8464 10122else
10123 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 10124fi
10125
95a05732 10126
10127
10128if test -n "$CXX_FOR_TARGET"; then
10129 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10130elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10131 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10132fi
10133
10134if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10135 for ncn_progname in c++ g++ cxx gxx; do
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
10140if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
95a05732 10142else
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10145else
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
cd9a469c 10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10153 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10155 break 2
10156 fi
10157done
cd9a469c 10158 done
10159IFS=$as_save_IFS
95a05732 10160
10161fi
10162fi
10163CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10164if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10166$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 10167else
cd9a469c 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
95a05732 10170fi
10171
cd9a469c 10172
95a05732 10173 done
10174fi
10175
10176if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10177 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10179$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10180 if test -x $with_build_time_tools/${ncn_progname}; then
10181 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183$as_echo "yes" >&6; }
c47832b1 10184 break
10185 else
cd9a469c 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187$as_echo "no" >&6; }
c47832b1 10188 fi
10189 done
10190fi
10191
10192if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10193 for ncn_progname in c++ g++ cxx gxx; do
10194 if test -n "$ncn_target_tool_prefix"; then
10195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10196set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
ef8184c7 10201else
10202 if test -n "$CXX_FOR_TARGET"; then
10203 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10204else
b30fcfae 10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
cd9a469c 10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10212 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10214 break 2
10215 fi
10216done
cd9a469c 10217 done
10218IFS=$as_save_IFS
b30fcfae 10219
ef8184c7 10220fi
10221fi
b30fcfae 10222CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 10223if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10225$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10226else
cd9a469c 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228$as_echo "no" >&6; }
ef8184c7 10229fi
10230
cd9a469c 10231
c47832b1 10232 fi
10233 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10235set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
ef8184c7 10240else
768691b5 10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 10243else
b30fcfae 10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
cd9a469c 10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10253 break 2
10254 fi
10255done
cd9a469c 10256 done
10257IFS=$as_save_IFS
b30fcfae 10258
ef8184c7 10259fi
10260fi
b30fcfae 10261CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 10262if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10265else
cd9a469c 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
ef8184c7 10268fi
b30fcfae 10269
cd9a469c 10270
c47832b1 10271 fi
10272 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10273 done
10274fi
b30fcfae 10275
768691b5 10276if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10277 set dummy c++ g++ cxx gxx
10278 if test $build = $target ; then
10279 CXX_FOR_TARGET="$2"
ef8184c7 10280 else
768691b5 10281 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10282 fi
b7ef8464 10283else
10284 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 10285fi
10286
95a05732 10287
10288
10289if test -n "$GCC_FOR_TARGET"; then
10290 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10291elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10292 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10293fi
10294
10295if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10296 for ncn_progname in gcc; do
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10298set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300$as_echo_n "checking for $ac_word... " >&6; }
10301if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
95a05732 10303else
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10306else
10307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308for as_dir in $PATH
10309do
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
cd9a469c 10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10314 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10316 break 2
10317 fi
10318done
cd9a469c 10319 done
10320IFS=$as_save_IFS
95a05732 10321
10322fi
10323fi
10324GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10325if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10327$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 10328else
cd9a469c 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330$as_echo "no" >&6; }
95a05732 10331fi
10332
cd9a469c 10333
95a05732 10334 done
10335fi
10336
10337if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10338 for ncn_progname in gcc; do
cd9a469c 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10340$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10341 if test -x $with_build_time_tools/${ncn_progname}; then
10342 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344$as_echo "yes" >&6; }
c47832b1 10345 break
10346 else
cd9a469c 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
c47832b1 10349 fi
10350 done
10351fi
10352
10353if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10354 for ncn_progname in gcc; do
10355 if test -n "$ncn_target_tool_prefix"; then
10356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10357set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359$as_echo_n "checking for $ac_word... " >&6; }
10360if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
bb612911 10362else
c47832b1 10363 if test -n "$GCC_FOR_TARGET"; then
10364 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10365else
b30fcfae 10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
cd9a469c 10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10373 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10375 break 2
10376 fi
10377done
cd9a469c 10378 done
10379IFS=$as_save_IFS
b30fcfae 10380
bb612911 10381fi
10382fi
b30fcfae 10383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10384if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10386$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10387else
cd9a469c 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
bb612911 10390fi
10391
cd9a469c 10392
c47832b1 10393 fi
10394 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10396set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
bb612911 10401else
c47832b1 10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10404else
b30fcfae 10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
cd9a469c 10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10414 break 2
10415 fi
10416done
cd9a469c 10417 done
10418IFS=$as_save_IFS
b30fcfae 10419
bb612911 10420fi
10421fi
b30fcfae 10422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10423if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10426else
cd9a469c 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
bb612911 10429fi
b30fcfae 10430
cd9a469c 10431
c47832b1 10432 fi
10433 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10434 done
10435fi
b30fcfae 10436
c47832b1 10437if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10438 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10439else
10440 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10441fi
10442
95a05732 10443
10444
10445if test -n "$GCJ_FOR_TARGET"; then
10446 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10447elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10448 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10449fi
10450
10451if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10452 for ncn_progname in gcj; do
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
95a05732 10459else
10460 if test -n "$GCJ_FOR_TARGET"; then
10461 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10462else
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
cd9a469c 10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10470 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
cd9a469c 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10472 break 2
10473 fi
10474done
cd9a469c 10475 done
10476IFS=$as_save_IFS
95a05732 10477
10478fi
10479fi
10480GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10481if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10483$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10484else
cd9a469c 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
95a05732 10487fi
10488
cd9a469c 10489
95a05732 10490 done
10491fi
10492
10493if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10494 for ncn_progname in gcj; do
cd9a469c 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10496$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10497 if test -x $with_build_time_tools/${ncn_progname}; then
10498 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500$as_echo "yes" >&6; }
c47832b1 10501 break
10502 else
cd9a469c 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504$as_echo "no" >&6; }
c47832b1 10505 fi
10506 done
10507fi
10508
10509if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10510 for ncn_progname in gcj; do
10511 if test -n "$ncn_target_tool_prefix"; then
10512 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10513set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
10516if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
c47832b1 10518else
a4af6a58 10519 if test -n "$GCJ_FOR_TARGET"; then
10520 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10521else
b30fcfae 10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
cd9a469c 10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10529 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10531 break 2
10532 fi
10533done
cd9a469c 10534 done
10535IFS=$as_save_IFS
b30fcfae 10536
c47832b1 10537fi
10538fi
95a05732 10539GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10540if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10542$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10543else
cd9a469c 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
95a05732 10546fi
10547
cd9a469c 10548
95a05732 10549 fi
10550 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10552set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
10555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
95a05732 10557else
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10560else
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
cd9a469c 10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
cd9a469c 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10570 break 2
10571 fi
10572done
cd9a469c 10573 done
10574IFS=$as_save_IFS
95a05732 10575
10576fi
10577fi
10578GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10582else
cd9a469c 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
95a05732 10585fi
10586
cd9a469c 10587
95a05732 10588 fi
10589 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10590 done
10591fi
10592
10593if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10594 set dummy gcj
10595 if test $build = $target ; then
10596 GCJ_FOR_TARGET="$2"
10597 else
10598 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10599 fi
b7ef8464 10600else
10601 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 10602fi
10603
10604
10605
10606if test -n "$GFORTRAN_FOR_TARGET"; then
10607 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10608elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10609 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10610fi
10611
95a05732 10612if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10613 for ncn_progname in gfortran; do
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10615set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
c47832b1 10620else
95a05732 10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10623else
b30fcfae 10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
cd9a469c 10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10633 break 2
10634 fi
10635done
cd9a469c 10636 done
10637IFS=$as_save_IFS
b30fcfae 10638
c47832b1 10639fi
10640fi
95a05732 10641GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10642if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10644$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10645else
cd9a469c 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
c47832b1 10648fi
b30fcfae 10649
cd9a469c 10650
c47832b1 10651 done
10652fi
b30fcfae 10653
95a05732 10654if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10655 for ncn_progname in gfortran; do
cd9a469c 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10657$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10658 if test -x $with_build_time_tools/${ncn_progname}; then
10659 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661$as_echo "yes" >&6; }
c47832b1 10662 break
10663 else
cd9a469c 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665$as_echo "no" >&6; }
c47832b1 10666 fi
10667 done
10668fi
10669
10670if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10671 for ncn_progname in gfortran; do
10672 if test -n "$ncn_target_tool_prefix"; then
10673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10674set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
10677if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
c47832b1 10679else
10680 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10681 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10682else
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
cd9a469c 10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10690 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10692 break 2
10693 fi
10694done
cd9a469c 10695 done
10696IFS=$as_save_IFS
b30fcfae 10697
c47832b1 10698fi
10699fi
b30fcfae 10700GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10701if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10703$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10704else
cd9a469c 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
c47832b1 10707fi
10708
cd9a469c 10709
c47832b1 10710 fi
10711 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10713set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715$as_echo_n "checking for $ac_word... " >&6; }
10716if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
c47832b1 10718else
10719 if test -n "$GFORTRAN_FOR_TARGET"; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10721else
b30fcfae 10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
cd9a469c 10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10731 break 2
10732 fi
10733done
cd9a469c 10734 done
10735IFS=$as_save_IFS
b30fcfae 10736
c47832b1 10737fi
10738fi
b30fcfae 10739GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10740if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10743else
cd9a469c 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
c47832b1 10746fi
b30fcfae 10747
cd9a469c 10748
c47832b1 10749 fi
10750 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10751 done
10752fi
b30fcfae 10753
c47832b1 10754if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10755 set dummy gfortran
768691b5 10756 if test $build = $target ; then
c47832b1 10757 GFORTRAN_FOR_TARGET="$2"
bb612911 10758 else
c47832b1 10759 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10760 fi
b7ef8464 10761else
10762 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10763fi
10764
10765
10766
5ff5b630 10767if test -n "$GOC_FOR_TARGET"; then
10768 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10769elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10770 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10771fi
10772
10773if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10774 for ncn_progname in gccgo; do
10775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10776set dummy ${ncn_progname}; ac_word=$2
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778$as_echo_n "checking for $ac_word... " >&6; }
10779if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781else
10782 if test -n "$GOC_FOR_TARGET"; then
10783 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10784else
10785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786for as_dir in $PATH
10787do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796done
10797 done
10798IFS=$as_save_IFS
10799
10800fi
10801fi
10802GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10803if test -n "$GOC_FOR_TARGET"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10805$as_echo "$GOC_FOR_TARGET" >&6; }
10806else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
10809fi
10810
10811
10812 done
10813fi
10814
10815if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10816 for ncn_progname in gccgo; do
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10819 if test -x $with_build_time_tools/${ncn_progname}; then
10820 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822$as_echo "yes" >&6; }
10823 break
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
10827 fi
10828 done
10829fi
10830
10831if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10832 for ncn_progname in gccgo; do
10833 if test -n "$ncn_target_tool_prefix"; then
10834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837$as_echo_n "checking for $ac_word... " >&6; }
10838if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840else
10841 if test -n "$GOC_FOR_TARGET"; then
10842 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855done
10856 done
10857IFS=$as_save_IFS
10858
10859fi
10860fi
10861GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10862if test -n "$GOC_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10864$as_echo "$GOC_FOR_TARGET" >&6; }
10865else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
10868fi
10869
10870
10871 fi
10872 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10874set dummy ${ncn_progname}; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903$as_echo "$GOC_FOR_TARGET" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910 fi
10911 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10912 done
10913fi
10914
10915if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10916 set dummy gccgo
10917 if test $build = $target ; then
10918 GOC_FOR_TARGET="$2"
10919 else
10920 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10921 fi
10922else
10923 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10924fi
10925
10926
10927
c47832b1 10928cat > conftest.c << \EOF
10929#ifdef __GNUC__
10930 gcc_yay;
10931#endif
10932EOF
10933if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10934 have_gcc_for_target=yes
10935else
10936 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10937 have_gcc_for_target=no
10938fi
10939rm conftest.c
10940
10941
10942
10943
10944if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10945 if test -n "$with_build_time_tools"; then
cd9a469c 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10947$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 10948 if test -x $with_build_time_tools/ar; then
10949 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10950 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10952$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 10953 else
cd9a469c 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
ab0da556 10956 fi
c47832b1 10957 elif test $build != $host && test $have_gcc_for_target = yes; then
10958 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 10959 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10960 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 10961 fi
10962fi
38d7211b 10963if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10964 # Extract the first word of "ar", so it can be a program name with args.
10965set dummy ar; ac_word=$2
cd9a469c 10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
10968if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
c47832b1 10970else
b30fcfae 10971 case $AR_FOR_TARGET in
10972 [\\/]* | ?:[\\/]*)
c47832b1 10973 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10974 ;;
c47832b1 10975 *)
b30fcfae 10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $gcc_cv_tool_dirs
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
cd9a469c 10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10983 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10985 break 2
10986 fi
10987done
cd9a469c 10988 done
10989IFS=$as_save_IFS
b30fcfae 10990
c47832b1 10991 ;;
10992esac
10993fi
b30fcfae 10994AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 10995if test -n "$AR_FOR_TARGET"; then
cd9a469c 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 10998else
cd9a469c 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
ef8184c7 11001fi
11002
cd9a469c 11003
c47832b1 11004fi
11005if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 11006
11007
11008if test -n "$AR_FOR_TARGET"; then
11009 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11010elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11011 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11012fi
11013
11014if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11015 for ncn_progname in ar; do
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
11020if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
95a05732 11022else
11023 if test -n "$AR_FOR_TARGET"; then
11024 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11025else
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
cd9a469c 11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11033 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11035 break 2
11036 fi
11037done
cd9a469c 11038 done
11039IFS=$as_save_IFS
95a05732 11040
11041fi
11042fi
11043AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11044if test -n "$AR_FOR_TARGET"; then
cd9a469c 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11046$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 11047else
cd9a469c 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
95a05732 11050fi
11051
cd9a469c 11052
95a05732 11053 done
11054fi
11055
11056if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11057 for ncn_progname in ar; do
cd9a469c 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11059$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11060 if test -x $with_build_time_tools/${ncn_progname}; then
11061 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063$as_echo "yes" >&6; }
c47832b1 11064 break
11065 else
cd9a469c 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
c47832b1 11068 fi
11069 done
11070fi
11071
11072if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11073 for ncn_progname in ar; do
11074 if test -n "$ncn_target_tool_prefix"; then
11075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
11079if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
ef8184c7 11081else
c47832b1 11082 if test -n "$AR_FOR_TARGET"; then
11083 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 11084else
b30fcfae 11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
cd9a469c 11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11092 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11094 break 2
11095 fi
11096done
cd9a469c 11097 done
11098IFS=$as_save_IFS
b30fcfae 11099
ef8184c7 11100fi
11101fi
b30fcfae 11102AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11103if test -n "$AR_FOR_TARGET"; then
cd9a469c 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11105$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 11106else
cd9a469c 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
ef8184c7 11109fi
11110
cd9a469c 11111
c47832b1 11112 fi
11113 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11115set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117$as_echo_n "checking for $ac_word... " >&6; }
11118if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
c47832b1 11120else
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11123else
b30fcfae 11124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
cd9a469c 11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11131 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11133 break 2
11134 fi
11135done
cd9a469c 11136 done
11137IFS=$as_save_IFS
b30fcfae 11138
c47832b1 11139fi
11140fi
b30fcfae 11141AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11142if test -n "$AR_FOR_TARGET"; then
cd9a469c 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11145else
cd9a469c 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
c47832b1 11148fi
b30fcfae 11149
cd9a469c 11150
c47832b1 11151 fi
11152 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11153 done
11154fi
b30fcfae 11155
c47832b1 11156if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11157 set dummy ar
11158 if test $build = $target ; then
11159 AR_FOR_TARGET="$2"
11160 else
11161 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 11162 fi
b7ef8464 11163else
11164 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 11165fi
11166
ab0da556 11167else
11168 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11169fi
11170
11171
11172
11173
11174if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11175 if test -n "$with_build_time_tools"; then
cd9a469c 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11177$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 11178 if test -x $with_build_time_tools/as; then
11179 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11180 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11182$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 11183 else
cd9a469c 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185$as_echo "no" >&6; }
ab0da556 11186 fi
c47832b1 11187 elif test $build != $host && test $have_gcc_for_target = yes; then
11188 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 11189 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11190 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 11191 fi
11192fi
38d7211b 11193if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11194 # Extract the first word of "as", so it can be a program name with args.
11195set dummy as; ac_word=$2
cd9a469c 11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
c47832b1 11200else
b30fcfae 11201 case $AS_FOR_TARGET in
11202 [\\/]* | ?:[\\/]*)
c47832b1 11203 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11204 ;;
c47832b1 11205 *)
b30fcfae 11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207for as_dir in $gcc_cv_tool_dirs
11208do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
cd9a469c 11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11213 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11215 break 2
11216 fi
11217done
cd9a469c 11218 done
11219IFS=$as_save_IFS
b30fcfae 11220
c47832b1 11221 ;;
11222esac
11223fi
b30fcfae 11224AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 11225if test -n "$AS_FOR_TARGET"; then
cd9a469c 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11228else
cd9a469c 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
c47832b1 11231fi
11232
cd9a469c 11233
c47832b1 11234fi
11235if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 11236
11237
11238if test -n "$AS_FOR_TARGET"; then
11239 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11240elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11241 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11242fi
11243
11244if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11245 for ncn_progname in as; do
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249$as_echo_n "checking for $ac_word... " >&6; }
11250if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
95a05732 11252else
11253 if test -n "$AS_FOR_TARGET"; then
11254 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
cd9a469c 11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11263 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11265 break 2
11266 fi
11267done
cd9a469c 11268 done
11269IFS=$as_save_IFS
95a05732 11270
11271fi
11272fi
11273AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11274if test -n "$AS_FOR_TARGET"; then
cd9a469c 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11276$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 11277else
cd9a469c 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279$as_echo "no" >&6; }
95a05732 11280fi
11281
cd9a469c 11282
95a05732 11283 done
11284fi
11285
11286if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11287 for ncn_progname in as; do
cd9a469c 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11290 if test -x $with_build_time_tools/${ncn_progname}; then
11291 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293$as_echo "yes" >&6; }
c47832b1 11294 break
11295 else
cd9a469c 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297$as_echo "no" >&6; }
c47832b1 11298 fi
11299 done
11300fi
11301
11302if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11303 for ncn_progname in as; do
11304 if test -n "$ncn_target_tool_prefix"; then
11305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
11309if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
c47832b1 11311else
11312 if test -n "$AS_FOR_TARGET"; then
11313 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11314else
b30fcfae 11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
cd9a469c 11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11322 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11324 break 2
11325 fi
11326done
cd9a469c 11327 done
11328IFS=$as_save_IFS
b30fcfae 11329
c47832b1 11330fi
11331fi
b30fcfae 11332AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11333if test -n "$AS_FOR_TARGET"; then
cd9a469c 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11335$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11336else
cd9a469c 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
c47832b1 11339fi
11340
cd9a469c 11341
c47832b1 11342 fi
11343 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11345set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
ef8184c7 11350else
c47832b1 11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11353else
b30fcfae 11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
cd9a469c 11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11361 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11363 break 2
11364 fi
11365done
cd9a469c 11366 done
11367IFS=$as_save_IFS
b30fcfae 11368
ef8184c7 11369fi
11370fi
b30fcfae 11371AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11372if test -n "$AS_FOR_TARGET"; then
cd9a469c 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11375else
cd9a469c 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
ef8184c7 11378fi
b30fcfae 11379
cd9a469c 11380
c47832b1 11381 fi
11382 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11383 done
11384fi
b30fcfae 11385
c47832b1 11386if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11387 set dummy as
11388 if test $build = $target ; then
11389 AS_FOR_TARGET="$2"
11390 else
11391 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11392 fi
b7ef8464 11393else
11394 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11395fi
768691b5 11396
ab0da556 11397else
11398 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11399fi
11400
c47832b1 11401
11402
11403
11404if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11405 if test -n "$with_build_time_tools"; then
cd9a469c 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11407$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11408 if test -x $with_build_time_tools/dlltool; then
11409 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11410 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11412$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11413 else
cd9a469c 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
ab0da556 11416 fi
c47832b1 11417 elif test $build != $host && test $have_gcc_for_target = yes; then
11418 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11419 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11420 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11421 fi
11422fi
38d7211b 11423if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11424 # Extract the first word of "dlltool", so it can be a program name with args.
11425set dummy dlltool; ac_word=$2
cd9a469c 11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
ef8184c7 11430else
b30fcfae 11431 case $DLLTOOL_FOR_TARGET in
11432 [\\/]* | ?:[\\/]*)
c47832b1 11433 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11434 ;;
c47832b1 11435 *)
b30fcfae 11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $gcc_cv_tool_dirs
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
cd9a469c 11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11443 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11445 break 2
11446 fi
11447done
cd9a469c 11448 done
11449IFS=$as_save_IFS
b30fcfae 11450
c47832b1 11451 ;;
11452esac
ef8184c7 11453fi
b30fcfae 11454DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11455if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11458else
cd9a469c 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
ef8184c7 11461fi
11462
cd9a469c 11463
c47832b1 11464fi
11465if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11466
11467
11468if test -n "$DLLTOOL_FOR_TARGET"; then
11469 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11470elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11471 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11472fi
11473
11474if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11475 for ncn_progname in dlltool; do
11476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11477set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
95a05732 11482else
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
cd9a469c 11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11493 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11495 break 2
11496 fi
11497done
cd9a469c 11498 done
11499IFS=$as_save_IFS
95a05732 11500
11501fi
11502fi
11503DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11504if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11506$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11507else
cd9a469c 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
95a05732 11510fi
11511
cd9a469c 11512
95a05732 11513 done
11514fi
11515
11516if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11517 for ncn_progname in dlltool; do
cd9a469c 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11519$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11520 if test -x $with_build_time_tools/${ncn_progname}; then
11521 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523$as_echo "yes" >&6; }
c47832b1 11524 break
11525 else
cd9a469c 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
c47832b1 11528 fi
11529 done
11530fi
11531
11532if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11533 for ncn_progname in dlltool; do
11534 if test -n "$ncn_target_tool_prefix"; then
11535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11536set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538$as_echo_n "checking for $ac_word... " >&6; }
11539if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
ef8184c7 11541else
c47832b1 11542 if test -n "$DLLTOOL_FOR_TARGET"; then
11543 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11544else
b30fcfae 11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
cd9a469c 11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11552 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11554 break 2
11555 fi
11556done
cd9a469c 11557 done
11558IFS=$as_save_IFS
b30fcfae 11559
ef8184c7 11560fi
11561fi
b30fcfae 11562DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11563if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11565$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11566else
cd9a469c 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
ef8184c7 11569fi
ef8184c7 11570
cd9a469c 11571
c47832b1 11572 fi
11573 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11575set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577$as_echo_n "checking for $ac_word... " >&6; }
11578if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
ef8184c7 11580else
c47832b1 11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11583else
b30fcfae 11584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
cd9a469c 11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11593 break 2
11594 fi
11595done
cd9a469c 11596 done
11597IFS=$as_save_IFS
b30fcfae 11598
ef8184c7 11599fi
11600fi
b30fcfae 11601DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11602if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11605else
cd9a469c 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
ef8184c7 11608fi
b30fcfae 11609
cd9a469c 11610
c47832b1 11611 fi
11612 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11613 done
11614fi
b30fcfae 11615
c47832b1 11616if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11617 set dummy dlltool
11618 if test $build = $target ; then
11619 DLLTOOL_FOR_TARGET="$2"
11620 else
11621 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11622 fi
b7ef8464 11623else
11624 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11625fi
11626
ab0da556 11627else
11628 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11629fi
11630
ef8184c7 11631
c47832b1 11632
11633
11634if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11635 if test -n "$with_build_time_tools"; then
cd9a469c 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11637$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11638 if test -x $with_build_time_tools/ld; then
11639 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11640 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11642$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11643 else
cd9a469c 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
ab0da556 11646 fi
c47832b1 11647 elif test $build != $host && test $have_gcc_for_target = yes; then
11648 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11649 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11650 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11651 fi
c47832b1 11652fi
38d7211b 11653if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11654 # Extract the first word of "ld", so it can be a program name with args.
11655set dummy ld; ac_word=$2
cd9a469c 11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
11658if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
ef8184c7 11660else
b30fcfae 11661 case $LD_FOR_TARGET in
11662 [\\/]* | ?:[\\/]*)
c47832b1 11663 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11664 ;;
c47832b1 11665 *)
b30fcfae 11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $gcc_cv_tool_dirs
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
cd9a469c 11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11673 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11675 break 2
11676 fi
11677done
cd9a469c 11678 done
11679IFS=$as_save_IFS
b30fcfae 11680
c47832b1 11681 ;;
11682esac
ef8184c7 11683fi
b30fcfae 11684LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11685if test -n "$LD_FOR_TARGET"; then
cd9a469c 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11688else
cd9a469c 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
ef8184c7 11691fi
768691b5 11692
cd9a469c 11693
c47832b1 11694fi
11695if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11696
11697
11698if test -n "$LD_FOR_TARGET"; then
11699 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11700elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11701 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11702fi
11703
11704if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11705 for ncn_progname in ld; do
11706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11707set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709$as_echo_n "checking for $ac_word... " >&6; }
11710if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
95a05732 11712else
11713 if test -n "$LD_FOR_TARGET"; then
11714 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11715else
11716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
cd9a469c 11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11723 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11725 break 2
11726 fi
11727done
cd9a469c 11728 done
11729IFS=$as_save_IFS
95a05732 11730
11731fi
11732fi
11733LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11734if test -n "$LD_FOR_TARGET"; then
cd9a469c 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11736$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11737else
cd9a469c 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; }
95a05732 11740fi
11741
cd9a469c 11742
95a05732 11743 done
11744fi
11745
11746if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11747 for ncn_progname in ld; do
cd9a469c 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11749$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11750 if test -x $with_build_time_tools/${ncn_progname}; then
11751 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753$as_echo "yes" >&6; }
c47832b1 11754 break
11755 else
cd9a469c 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757$as_echo "no" >&6; }
c47832b1 11758 fi
11759 done
bb612911 11760fi
11761
c47832b1 11762if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11763 for ncn_progname in ld; do
11764 if test -n "$ncn_target_tool_prefix"; then
11765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11766set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
11769if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
bb612911 11771else
ef8184c7 11772 if test -n "$LD_FOR_TARGET"; then
11773 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11774else
b30fcfae 11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
cd9a469c 11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11782 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11784 break 2
11785 fi
11786done
cd9a469c 11787 done
11788IFS=$as_save_IFS
b30fcfae 11789
bb612911 11790fi
11791fi
b30fcfae 11792LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 11793if test -n "$LD_FOR_TARGET"; then
cd9a469c 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11795$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11796else
cd9a469c 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
bb612911 11799fi
11800
cd9a469c 11801
c47832b1 11802 fi
11803 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11805set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
bb612911 11810else
768691b5 11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11813else
b30fcfae 11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
cd9a469c 11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11821 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11823 break 2
11824 fi
11825done
cd9a469c 11826 done
11827IFS=$as_save_IFS
b30fcfae 11828
bb612911 11829fi
11830fi
b30fcfae 11831LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 11832if test -n "$LD_FOR_TARGET"; then
cd9a469c 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11835else
cd9a469c 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
bb612911 11838fi
b30fcfae 11839
cd9a469c 11840
c47832b1 11841 fi
11842 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11843 done
11844fi
b30fcfae 11845
768691b5 11846if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11847 set dummy ld
11848 if test $build = $target ; then
11849 LD_FOR_TARGET="$2"
bb612911 11850 else
768691b5 11851 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11852 fi
b7ef8464 11853else
11854 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 11855fi
11856
ab0da556 11857else
11858 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11859fi
11860
11861
11862
11863
11864if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11865 if test -n "$with_build_time_tools"; then
cd9a469c 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11867$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 11868 if test -x $with_build_time_tools/lipo; then
11869 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11870 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11872$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 11873 else
cd9a469c 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
ab0da556 11876 fi
c47832b1 11877 elif test $build != $host && test $have_gcc_for_target = yes; then
11878 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 11879 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11880 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 11881 fi
11882fi
95a05732 11883if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11884 # Extract the first word of "lipo", so it can be a program name with args.
11885set dummy lipo; ac_word=$2
cd9a469c 11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
95a05732 11890else
11891 case $LIPO_FOR_TARGET in
11892 [\\/]* | ?:[\\/]*)
11893 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11894 ;;
11895 *)
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $gcc_cv_tool_dirs
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
cd9a469c 11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11903 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11905 break 2
11906 fi
11907done
cd9a469c 11908 done
11909IFS=$as_save_IFS
95a05732 11910
11911 ;;
11912esac
11913fi
11914LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 11915if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 11918else
cd9a469c 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
95a05732 11921fi
11922
cd9a469c 11923
95a05732 11924fi
11925if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11926
11927
11928if test -n "$LIPO_FOR_TARGET"; then
11929 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11930elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11931 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11932fi
11933
11934if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11935 for ncn_progname in lipo; do
11936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11937set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939$as_echo_n "checking for $ac_word... " >&6; }
11940if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
c47832b1 11942else
95a05732 11943 if test -n "$LIPO_FOR_TARGET"; then
11944 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11945else
11946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
b30fcfae 11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
cd9a469c 11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11953 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11955 break 2
11956 fi
11957done
cd9a469c 11958 done
11959IFS=$as_save_IFS
b30fcfae 11960
c47832b1 11961fi
95a05732 11962fi
11963LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 11964if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11966$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 11967else
cd9a469c 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969$as_echo "no" >&6; }
c47832b1 11970fi
11971
cd9a469c 11972
95a05732 11973 done
c47832b1 11974fi
95a05732 11975
11976if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11977 for ncn_progname in lipo; do
cd9a469c 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11980 if test -x $with_build_time_tools/${ncn_progname}; then
11981 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
c47832b1 11984 break
11985 else
cd9a469c 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
c47832b1 11988 fi
11989 done
11990fi
11991
11992if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11993 for ncn_progname in lipo; do
11994 if test -n "$ncn_target_tool_prefix"; then
11995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
11999if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
9fec3fa8 12001else
12002 if test -n "$LIPO_FOR_TARGET"; then
12003 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12004else
b30fcfae 12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
cd9a469c 12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12012 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12014 break 2
12015 fi
12016done
cd9a469c 12017 done
12018IFS=$as_save_IFS
b30fcfae 12019
9fec3fa8 12020fi
12021fi
b30fcfae 12022LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12023if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12025$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12026else
cd9a469c 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
9fec3fa8 12029fi
12030
cd9a469c 12031
c47832b1 12032 fi
12033 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 12035set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
9fec3fa8 12040else
12041 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12043else
b30fcfae 12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
cd9a469c 12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12053 break 2
12054 fi
12055done
cd9a469c 12056 done
12057IFS=$as_save_IFS
b30fcfae 12058
9fec3fa8 12059fi
12060fi
b30fcfae 12061LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12062if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12065else
cd9a469c 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
9fec3fa8 12068fi
b30fcfae 12069
cd9a469c 12070
c47832b1 12071 fi
12072 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12073 done
12074fi
b30fcfae 12075
9fec3fa8 12076if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12077 set dummy lipo
12078 if test $build = $target ; then
12079 LIPO_FOR_TARGET="$2"
12080 else
12081 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12082 fi
b7ef8464 12083else
12084 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 12085fi
12086
ab0da556 12087else
12088 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 12089fi
12090
12091
12092
12093
12094if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12095 if test -n "$with_build_time_tools"; then
cd9a469c 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12097$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 12098 if test -x $with_build_time_tools/nm; then
12099 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12100 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12102$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 12103 else
cd9a469c 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
ab0da556 12106 fi
c47832b1 12107 elif test $build != $host && test $have_gcc_for_target = yes; then
12108 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 12109 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12110 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 12111 fi
12112fi
38d7211b 12113if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12114 # Extract the first word of "nm", so it can be a program name with args.
12115set dummy nm; ac_word=$2
cd9a469c 12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
c47832b1 12120else
b30fcfae 12121 case $NM_FOR_TARGET in
12122 [\\/]* | ?:[\\/]*)
c47832b1 12123 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12124 ;;
c47832b1 12125 *)
b30fcfae 12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127for as_dir in $gcc_cv_tool_dirs
12128do
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
cd9a469c 12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12133 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12135 break 2
12136 fi
12137done
cd9a469c 12138 done
12139IFS=$as_save_IFS
b30fcfae 12140
c47832b1 12141 ;;
12142esac
12143fi
b30fcfae 12144NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12145if test -n "$NM_FOR_TARGET"; then
cd9a469c 12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 12148else
cd9a469c 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
c47832b1 12151fi
12152
cd9a469c 12153
c47832b1 12154fi
12155if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 12156
12157
12158if test -n "$NM_FOR_TARGET"; then
12159 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12160elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12161 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12162fi
12163
12164if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12165 for ncn_progname in nm; do
12166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12167set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169$as_echo_n "checking for $ac_word... " >&6; }
12170if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
95a05732 12172else
12173 if test -n "$NM_FOR_TARGET"; then
12174 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12175else
12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177for as_dir in $PATH
12178do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
cd9a469c 12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12183 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12185 break 2
12186 fi
12187done
cd9a469c 12188 done
12189IFS=$as_save_IFS
95a05732 12190
12191fi
12192fi
12193NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12194if test -n "$NM_FOR_TARGET"; then
cd9a469c 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12196$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 12197else
cd9a469c 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199$as_echo "no" >&6; }
95a05732 12200fi
12201
cd9a469c 12202
95a05732 12203 done
12204fi
12205
12206if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12207 for ncn_progname in nm; do
cd9a469c 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12210 if test -x $with_build_time_tools/${ncn_progname}; then
12211 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213$as_echo "yes" >&6; }
c47832b1 12214 break
12215 else
cd9a469c 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217$as_echo "no" >&6; }
c47832b1 12218 fi
12219 done
12220fi
12221
12222if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12223 for ncn_progname in nm; do
12224 if test -n "$ncn_target_tool_prefix"; then
12225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 12226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
12229if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
bb612911 12231else
ef8184c7 12232 if test -n "$NM_FOR_TARGET"; then
12233 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12234else
b30fcfae 12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
cd9a469c 12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12242 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12244 break 2
12245 fi
12246done
cd9a469c 12247 done
12248IFS=$as_save_IFS
b30fcfae 12249
bb612911 12250fi
12251fi
b30fcfae 12252NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 12253if test -n "$NM_FOR_TARGET"; then
cd9a469c 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12255$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12256else
cd9a469c 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
bb612911 12259fi
12260
cd9a469c 12261
c47832b1 12262 fi
12263 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12265set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
bb612911 12270else
768691b5 12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12273else
b30fcfae 12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
cd9a469c 12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12281 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12283 break 2
12284 fi
12285done
cd9a469c 12286 done
12287IFS=$as_save_IFS
b30fcfae 12288
bb612911 12289fi
12290fi
b30fcfae 12291NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 12292if test -n "$NM_FOR_TARGET"; then
cd9a469c 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12295else
cd9a469c 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
bb612911 12298fi
b30fcfae 12299
cd9a469c 12300
c47832b1 12301 fi
12302 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12303 done
12304fi
b30fcfae 12305
768691b5 12306if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12307 set dummy nm
12308 if test $build = $target ; then
12309 NM_FOR_TARGET="$2"
bb612911 12310 else
768691b5 12311 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12312 fi
b7ef8464 12313else
12314 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 12315fi
12316
ab0da556 12317else
12318 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12319fi
12320
12321
12322
12323
fc740d70 12324if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12325 if test -n "$with_build_time_tools"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12327$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12328 if test -x $with_build_time_tools/objcopy; then
12329 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12330 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12332$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
12336 fi
12337 elif test $build != $host && test $have_gcc_for_target = yes; then
12338 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12339 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12340 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12341 fi
12342fi
12343if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12344 # Extract the first word of "objcopy", so it can be a program name with args.
12345set dummy objcopy; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 case $OBJCOPY_FOR_TARGET in
12352 [\\/]* | ?:[\\/]*)
12353 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12354 ;;
12355 *)
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $gcc_cv_tool_dirs
12358do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12366 fi
12367done
12368 done
12369IFS=$as_save_IFS
12370
12371 ;;
12372esac
12373fi
12374OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12375if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12378else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384fi
12385if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12386
12387
12388if test -n "$OBJCOPY_FOR_TARGET"; then
12389 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12390elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12391 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12392fi
12393
12394if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12395 for ncn_progname in objcopy; do
12396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12397set dummy ${ncn_progname}; ac_word=$2
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399$as_echo_n "checking for $ac_word... " >&6; }
12400if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12402else
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12405else
12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12416 fi
12417done
12418 done
12419IFS=$as_save_IFS
12420
12421fi
12422fi
12423OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12424if test -n "$OBJCOPY_FOR_TARGET"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12426$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12427else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
12432
12433 done
12434fi
12435
12436if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12437 for ncn_progname in objcopy; do
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12439$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12440 if test -x $with_build_time_tools/${ncn_progname}; then
12441 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443$as_echo "yes" >&6; }
12444 break
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448 fi
12449 done
12450fi
12451
12452if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12453 for ncn_progname in objcopy; do
12454 if test -n "$ncn_target_tool_prefix"; then
12455 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12456set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
12459if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$OBJCOPY_FOR_TARGET"; then
12463 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12483if test -n "$OBJCOPY_FOR_TARGET"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12485$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491
12492 fi
12493 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12495set dummy ${ncn_progname}; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$OBJCOPY_FOR_TARGET"; then
12502 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12522if test -n "$OBJCOPY_FOR_TARGET"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12524$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531 fi
12532 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12533 done
12534fi
12535
12536if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12537 set dummy objcopy
12538 if test $build = $target ; then
12539 OBJCOPY_FOR_TARGET="$2"
12540 else
12541 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12542 fi
12543else
12544 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12545fi
12546
12547else
12548 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12549fi
12550
12551
12552
12553
c47832b1 12554if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12555 if test -n "$with_build_time_tools"; then
cd9a469c 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12557$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 12558 if test -x $with_build_time_tools/objdump; then
12559 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12560 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12562$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 12563 else
cd9a469c 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565$as_echo "no" >&6; }
ab0da556 12566 fi
c47832b1 12567 elif test $build != $host && test $have_gcc_for_target = yes; then
12568 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12569 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12570 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12571 fi
12572fi
38d7211b 12573if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12574 # Extract the first word of "objdump", so it can be a program name with args.
12575set dummy objdump; ac_word=$2
cd9a469c 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
c47832b1 12580else
b30fcfae 12581 case $OBJDUMP_FOR_TARGET in
12582 [\\/]* | ?:[\\/]*)
c47832b1 12583 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12584 ;;
c47832b1 12585 *)
b30fcfae 12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587for as_dir in $gcc_cv_tool_dirs
12588do
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
cd9a469c 12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12593 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12595 break 2
12596 fi
12597done
cd9a469c 12598 done
12599IFS=$as_save_IFS
b30fcfae 12600
c47832b1 12601 ;;
12602esac
12603fi
b30fcfae 12604OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12605if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12608else
cd9a469c 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
c47832b1 12611fi
12612
cd9a469c 12613
c47832b1 12614fi
12615if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12616
12617
12618if test -n "$OBJDUMP_FOR_TARGET"; then
12619 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12620elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12621 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12622fi
12623
12624if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12625 for ncn_progname in objdump; do
12626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
12630if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
95a05732 12632else
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
cd9a469c 12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12643 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12645 break 2
12646 fi
12647done
cd9a469c 12648 done
12649IFS=$as_save_IFS
95a05732 12650
12651fi
12652fi
12653OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12654if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12656$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12657else
cd9a469c 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
95a05732 12660fi
12661
cd9a469c 12662
95a05732 12663 done
12664fi
12665
12666if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12667 for ncn_progname in objdump; do
cd9a469c 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12669$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12670 if test -x $with_build_time_tools/${ncn_progname}; then
12671 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673$as_echo "yes" >&6; }
c47832b1 12674 break
12675 else
cd9a469c 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
c47832b1 12678 fi
12679 done
12680fi
12681
12682if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12683 for ncn_progname in objdump; do
12684 if test -n "$ncn_target_tool_prefix"; then
12685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12686set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
12689if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
ae74ffb7 12691else
12692 if test -n "$OBJDUMP_FOR_TARGET"; then
12693 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12694else
b30fcfae 12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
cd9a469c 12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12702 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12704 break 2
12705 fi
12706done
cd9a469c 12707 done
12708IFS=$as_save_IFS
b30fcfae 12709
ae74ffb7 12710fi
12711fi
b30fcfae 12712OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12713if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12715$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12716else
cd9a469c 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
ae74ffb7 12719fi
12720
cd9a469c 12721
c47832b1 12722 fi
12723 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12725set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
ae74ffb7 12730else
12731 if test -n "$OBJDUMP_FOR_TARGET"; then
12732 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12733else
b30fcfae 12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
cd9a469c 12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12741 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12743 break 2
12744 fi
12745done
cd9a469c 12746 done
12747IFS=$as_save_IFS
b30fcfae 12748
ae74ffb7 12749fi
12750fi
b30fcfae 12751OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12752if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12754$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12755else
cd9a469c 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
ae74ffb7 12758fi
b30fcfae 12759
cd9a469c 12760
c47832b1 12761 fi
12762 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12763 done
12764fi
b30fcfae 12765
ae74ffb7 12766if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12767 set dummy objdump
12768 if test $build = $target ; then
12769 OBJDUMP_FOR_TARGET="$2"
12770 else
12771 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12772 fi
b7ef8464 12773else
12774 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 12775fi
12776
ab0da556 12777else
12778 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12779fi
12780
12781
12782
12783
12784if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12785 if test -n "$with_build_time_tools"; then
cd9a469c 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12787$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 12788 if test -x $with_build_time_tools/ranlib; then
12789 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12790 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12792$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 12793 else
cd9a469c 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
ab0da556 12796 fi
c47832b1 12797 elif test $build != $host && test $have_gcc_for_target = yes; then
12798 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 12799 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12800 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 12801 fi
12802fi
38d7211b 12803if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12804 # Extract the first word of "ranlib", so it can be a program name with args.
12805set dummy ranlib; ac_word=$2
cd9a469c 12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
c47832b1 12810else
b30fcfae 12811 case $RANLIB_FOR_TARGET in
12812 [\\/]* | ?:[\\/]*)
c47832b1 12813 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12814 ;;
c47832b1 12815 *)
b30fcfae 12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $gcc_cv_tool_dirs
12818do
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
cd9a469c 12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12823 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12825 break 2
12826 fi
12827done
cd9a469c 12828 done
12829IFS=$as_save_IFS
b30fcfae 12830
c47832b1 12831 ;;
12832esac
12833fi
b30fcfae 12834RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 12835if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 12838else
cd9a469c 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
c47832b1 12841fi
12842
cd9a469c 12843
c47832b1 12844fi
12845if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 12846
12847
12848if test -n "$RANLIB_FOR_TARGET"; then
12849 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12850elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12851 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12852fi
12853
12854if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12855 for ncn_progname in ranlib; do
12856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12857set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
12860if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
95a05732 12862else
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
cd9a469c 12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12873 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12875 break 2
12876 fi
12877done
cd9a469c 12878 done
12879IFS=$as_save_IFS
95a05732 12880
12881fi
12882fi
12883RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12884if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12886$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 12887else
cd9a469c 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
95a05732 12890fi
12891
cd9a469c 12892
95a05732 12893 done
12894fi
12895
12896if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12897 for ncn_progname in ranlib; do
cd9a469c 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12899$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12900 if test -x $with_build_time_tools/${ncn_progname}; then
12901 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903$as_echo "yes" >&6; }
c47832b1 12904 break
12905 else
cd9a469c 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
c47832b1 12908 fi
12909 done
12910fi
12911
12912if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12913 for ncn_progname in ranlib; do
12914 if test -n "$ncn_target_tool_prefix"; then
12915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 12916set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918$as_echo_n "checking for $ac_word... " >&6; }
12919if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
bb612911 12921else
ef8184c7 12922 if test -n "$RANLIB_FOR_TARGET"; then
12923 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12924else
b30fcfae 12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926for as_dir in $PATH
12927do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
cd9a469c 12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12932 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12934 break 2
12935 fi
12936done
cd9a469c 12937 done
12938IFS=$as_save_IFS
b30fcfae 12939
bb612911 12940fi
12941fi
b30fcfae 12942RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 12943if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12945$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12946else
cd9a469c 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948$as_echo "no" >&6; }
bb612911 12949fi
12950
cd9a469c 12951
c47832b1 12952 fi
12953 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12955set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
12958if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
bb612911 12960else
768691b5 12961 if test -n "$RANLIB_FOR_TARGET"; then
12962 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12963else
b30fcfae 12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
cd9a469c 12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12971 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12973 break 2
12974 fi
12975done
cd9a469c 12976 done
12977IFS=$as_save_IFS
b30fcfae 12978
bb612911 12979fi
12980fi
b30fcfae 12981RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 12982if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12984$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12985else
cd9a469c 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
bb612911 12988fi
b30fcfae 12989
cd9a469c 12990
c47832b1 12991 fi
12992 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12993 done
12994fi
b30fcfae 12995
c47832b1 12996if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12997 set dummy ranlib
12998 if test $build = $target ; then
12999 RANLIB_FOR_TARGET="$2"
13000 else
13001 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13002 fi
b7ef8464 13003else
13004 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 13005fi
768691b5 13006
ab0da556 13007else
13008 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 13009fi
13010
c47832b1 13011
13012
13013
3f71364d 13014if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13015 if test -n "$with_build_time_tools"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13017$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13018 if test -x $with_build_time_tools/readelf; then
13019 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13020 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13022$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026 fi
13027 elif test $build != $host && test $have_gcc_for_target = yes; then
13028 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13029 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13030 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13031 fi
13032fi
13033if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13034 # Extract the first word of "readelf", so it can be a program name with args.
13035set dummy readelf; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13040else
13041 case $READELF_FOR_TARGET in
13042 [\\/]* | ?:[\\/]*)
13043 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13044 ;;
13045 *)
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $gcc_cv_tool_dirs
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057done
13058 done
13059IFS=$as_save_IFS
13060
13061 ;;
13062esac
13063fi
13064READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13065if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067$as_echo "$READELF_FOR_TARGET" >&6; }
13068else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074fi
13075if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13076
13077
13078if test -n "$READELF_FOR_TARGET"; then
13079 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13080elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13081 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13082fi
13083
13084if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13085 for ncn_progname in readelf; do
13086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13087set dummy ${ncn_progname}; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
13090if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092else
13093 if test -n "$READELF_FOR_TARGET"; then
13094 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108 done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13114if test -n "$READELF_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13116$as_echo "$READELF_FOR_TARGET" >&6; }
13117else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122
13123 done
13124fi
13125
13126if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13127 for ncn_progname in readelf; do
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13129$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13130 if test -x $with_build_time_tools/${ncn_progname}; then
13131 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133$as_echo "yes" >&6; }
13134 break
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137$as_echo "no" >&6; }
13138 fi
13139 done
13140fi
13141
13142if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13143 for ncn_progname in readelf; do
13144 if test -n "$ncn_target_tool_prefix"; then
13145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13146set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148$as_echo_n "checking for $ac_word... " >&6; }
13149if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151else
13152 if test -n "$READELF_FOR_TARGET"; then
13153 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13162 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166done
13167 done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13173if test -n "$READELF_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13175$as_echo "$READELF_FOR_TARGET" >&6; }
13176else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180
13181
13182 fi
13183 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13185set dummy ${ncn_progname}; ac_word=$2
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187$as_echo_n "checking for $ac_word... " >&6; }
13188if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13190else
13191 if test -n "$READELF_FOR_TARGET"; then
13192 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13193else
13194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205done
13206 done
13207IFS=$as_save_IFS
13208
13209fi
13210fi
13211READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13212if test -n "$READELF_FOR_TARGET"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13214$as_echo "$READELF_FOR_TARGET" >&6; }
13215else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
13218fi
13219
13220
13221 fi
13222 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13223 done
13224fi
13225
13226if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13227 set dummy readelf
13228 if test $build = $target ; then
13229 READELF_FOR_TARGET="$2"
13230 else
13231 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13232 fi
13233else
13234 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13235fi
13236
13237else
13238 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13239fi
13240
13241
13242
13243
c47832b1 13244if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13245 if test -n "$with_build_time_tools"; then
cd9a469c 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13247$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 13248 if test -x $with_build_time_tools/strip; then
13249 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13250 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13252$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 13253 else
cd9a469c 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
ab0da556 13256 fi
c47832b1 13257 elif test $build != $host && test $have_gcc_for_target = yes; then
13258 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 13259 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13260 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 13261 fi
13262fi
38d7211b 13263if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13264 # Extract the first word of "strip", so it can be a program name with args.
13265set dummy strip; ac_word=$2
cd9a469c 13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
c47832b1 13270else
b30fcfae 13271 case $STRIP_FOR_TARGET in
13272 [\\/]* | ?:[\\/]*)
c47832b1 13273 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13274 ;;
c47832b1 13275 *)
b30fcfae 13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277for as_dir in $gcc_cv_tool_dirs
13278do
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
cd9a469c 13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13283 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13285 break 2
13286 fi
13287done
cd9a469c 13288 done
13289IFS=$as_save_IFS
b30fcfae 13290
c47832b1 13291 ;;
13292esac
13293fi
b30fcfae 13294STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13295if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 13298else
cd9a469c 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
c47832b1 13301fi
13302
cd9a469c 13303
c47832b1 13304fi
13305if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 13306
13307
13308if test -n "$STRIP_FOR_TARGET"; then
13309 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13310elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13311 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13312fi
13313
13314if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13315 for ncn_progname in strip; do
13316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13317set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319$as_echo_n "checking for $ac_word... " >&6; }
13320if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
95a05732 13322else
13323 if test -n "$STRIP_FOR_TARGET"; then
13324 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13325else
13326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
cd9a469c 13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 13333 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13335 break 2
13336 fi
13337done
cd9a469c 13338 done
13339IFS=$as_save_IFS
95a05732 13340
13341fi
13342fi
13343STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13344if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13346$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 13347else
cd9a469c 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349$as_echo "no" >&6; }
95a05732 13350fi
13351
cd9a469c 13352
95a05732 13353 done
13354fi
13355
13356if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13357 for ncn_progname in strip; do
cd9a469c 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13359$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13360 if test -x $with_build_time_tools/${ncn_progname}; then
13361 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13363$as_echo "yes" >&6; }
c47832b1 13364 break
13365 else
cd9a469c 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367$as_echo "no" >&6; }
c47832b1 13368 fi
13369 done
13370fi
13371
13372if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13373 for ncn_progname in strip; do
13374 if test -n "$ncn_target_tool_prefix"; then
13375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 13376set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
13379if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
ae48753c 13381else
13382 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 13383 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
cd9a469c 13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13392 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13394 break 2
13395 fi
13396done
cd9a469c 13397 done
13398IFS=$as_save_IFS
b30fcfae 13399
9fec3fa8 13400fi
13401fi
b30fcfae 13402STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13403if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13405$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13406else
cd9a469c 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
9fec3fa8 13409fi
13410
cd9a469c 13411
c47832b1 13412 fi
13413 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 13415set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
13418if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
9fec3fa8 13420else
13421 if test -n "$STRIP_FOR_TARGET"; then
13422 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13423else
b30fcfae 13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
cd9a469c 13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13431 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13433 break 2
13434 fi
13435done
cd9a469c 13436 done
13437IFS=$as_save_IFS
b30fcfae 13438
9fec3fa8 13439fi
13440fi
b30fcfae 13441STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13442if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13444$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13445else
cd9a469c 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
9fec3fa8 13448fi
b30fcfae 13449
cd9a469c 13450
c47832b1 13451 fi
13452 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13453 done
13454fi
b30fcfae 13455
9fec3fa8 13456if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13457 set dummy strip
13458 if test $build = $target ; then
13459 STRIP_FOR_TARGET="$2"
13460 else
13461 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13462 fi
b7ef8464 13463else
13464 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 13465fi
13466
ab0da556 13467else
13468 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13469fi
13470
13471
13472
13473
13474if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13475 if test -n "$with_build_time_tools"; then
cd9a469c 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13477$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 13478 if test -x $with_build_time_tools/windres; then
13479 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13480 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13482$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 13483 else
cd9a469c 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
ab0da556 13486 fi
c47832b1 13487 elif test $build != $host && test $have_gcc_for_target = yes; then
13488 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 13489 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13490 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 13491 fi
13492fi
38d7211b 13493if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13494 # Extract the first word of "windres", so it can be a program name with args.
13495set dummy windres; ac_word=$2
cd9a469c 13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
13498if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
c47832b1 13500else
b30fcfae 13501 case $WINDRES_FOR_TARGET in
13502 [\\/]* | ?:[\\/]*)
c47832b1 13503 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13504 ;;
c47832b1 13505 *)
b30fcfae 13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507for as_dir in $gcc_cv_tool_dirs
13508do
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
cd9a469c 13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13513 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13515 break 2
13516 fi
13517done
cd9a469c 13518 done
13519IFS=$as_save_IFS
b30fcfae 13520
c47832b1 13521 ;;
13522esac
13523fi
b30fcfae 13524WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13525if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 13528else
cd9a469c 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
c47832b1 13531fi
13532
cd9a469c 13533
c47832b1 13534fi
13535if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 13536
13537
13538if test -n "$WINDRES_FOR_TARGET"; then
13539 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13540elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13541 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13542fi
13543
13544if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13545 for ncn_progname in windres; do
13546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13547set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549$as_echo_n "checking for $ac_word... " >&6; }
13550if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
95a05732 13552else
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13555else
13556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557for as_dir in $PATH
13558do
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
cd9a469c 13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 13563 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13565 break 2
13566 fi
13567done
cd9a469c 13568 done
13569IFS=$as_save_IFS
95a05732 13570
13571fi
13572fi
13573WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13574if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13576$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 13577else
cd9a469c 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579$as_echo "no" >&6; }
95a05732 13580fi
13581
cd9a469c 13582
95a05732 13583 done
13584fi
13585
13586if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13587 for ncn_progname in windres; do
cd9a469c 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13589$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13590 if test -x $with_build_time_tools/${ncn_progname}; then
13591 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593$as_echo "yes" >&6; }
c47832b1 13594 break
13595 else
cd9a469c 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597$as_echo "no" >&6; }
c47832b1 13598 fi
13599 done
13600fi
13601
13602if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13603 for ncn_progname in windres; do
13604 if test -n "$ncn_target_tool_prefix"; then
13605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 13606set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
13609if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
bb612911 13611else
ef8184c7 13612 if test -n "$WINDRES_FOR_TARGET"; then
13613 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 13614else
b30fcfae 13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
cd9a469c 13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13622 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13624 break 2
13625 fi
13626done
cd9a469c 13627 done
13628IFS=$as_save_IFS
b30fcfae 13629
bb612911 13630fi
13631fi
b30fcfae 13632WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 13633if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13635$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 13636else
cd9a469c 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
bb612911 13639fi
13640
cd9a469c 13641
c47832b1 13642 fi
13643 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 13645set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
13648if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
bb612911 13650else
768691b5 13651 if test -n "$WINDRES_FOR_TARGET"; then
13652 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 13653else
b30fcfae 13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
cd9a469c 13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13661 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13663 break 2
13664 fi
13665done
cd9a469c 13666 done
13667IFS=$as_save_IFS
b30fcfae 13668
bb612911 13669fi
13670fi
b30fcfae 13671WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 13672if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13674$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 13675else
cd9a469c 13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
bb612911 13678fi
b30fcfae 13679
cd9a469c 13680
c47832b1 13681 fi
13682 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13683 done
13684fi
b30fcfae 13685
768691b5 13686if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13687 set dummy windres
13688 if test $build = $target ; then
13689 WINDRES_FOR_TARGET="$2"
bb612911 13690 else
768691b5 13691 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13692 fi
b7ef8464 13693else
13694 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 13695fi
13696
ab0da556 13697else
13698 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13699fi
13700
805e22b2 13701
75d6a0a9 13702
13703
13704if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13705 if test -n "$with_build_time_tools"; then
cd9a469c 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13707$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 13708 if test -x $with_build_time_tools/windmc; then
13709 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13710 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13712$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13713 else
cd9a469c 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715$as_echo "no" >&6; }
75d6a0a9 13716 fi
13717 elif test $build != $host && test $have_gcc_for_target = yes; then
13718 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 13719 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13720 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 13721 fi
13722fi
13723if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13724 # Extract the first word of "windmc", so it can be a program name with args.
13725set dummy windmc; ac_word=$2
cd9a469c 13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727$as_echo_n "checking for $ac_word... " >&6; }
13728if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
75d6a0a9 13730else
13731 case $WINDMC_FOR_TARGET in
13732 [\\/]* | ?:[\\/]*)
13733 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13734 ;;
13735 *)
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737for as_dir in $gcc_cv_tool_dirs
13738do
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
cd9a469c 13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13743 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13745 break 2
13746 fi
13747done
cd9a469c 13748 done
13749IFS=$as_save_IFS
75d6a0a9 13750
13751 ;;
13752esac
13753fi
13754WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 13755if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13758else
cd9a469c 13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
75d6a0a9 13761fi
13762
cd9a469c 13763
75d6a0a9 13764fi
13765if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13766
13767
13768if test -n "$WINDMC_FOR_TARGET"; then
13769 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13770elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13771 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13772fi
13773
13774if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13775 for ncn_progname in windmc; do
13776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13777set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779$as_echo_n "checking for $ac_word... " >&6; }
13780if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
75d6a0a9 13782else
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
cd9a469c 13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13793 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13795 break 2
13796 fi
13797done
cd9a469c 13798 done
13799IFS=$as_save_IFS
75d6a0a9 13800
13801fi
13802fi
13803WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13804if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13806$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13807else
cd9a469c 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
75d6a0a9 13810fi
13811
cd9a469c 13812
75d6a0a9 13813 done
13814fi
13815
13816if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13817 for ncn_progname in windmc; do
cd9a469c 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13819$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 13820 if test -x $with_build_time_tools/${ncn_progname}; then
13821 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823$as_echo "yes" >&6; }
75d6a0a9 13824 break
13825 else
cd9a469c 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827$as_echo "no" >&6; }
75d6a0a9 13828 fi
13829 done
13830fi
13831
13832if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13833 for ncn_progname in windmc; do
13834 if test -n "$ncn_target_tool_prefix"; then
13835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13836set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
13839if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
75d6a0a9 13841else
13842 if test -n "$WINDMC_FOR_TARGET"; then
13843 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
cd9a469c 13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13852 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13854 break 2
13855 fi
13856done
cd9a469c 13857 done
13858IFS=$as_save_IFS
75d6a0a9 13859
13860fi
13861fi
13862WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13863if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13865$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13866else
cd9a469c 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868$as_echo "no" >&6; }
75d6a0a9 13869fi
13870
cd9a469c 13871
75d6a0a9 13872 fi
13873 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13875set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877$as_echo_n "checking for $ac_word... " >&6; }
13878if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
75d6a0a9 13880else
13881 if test -n "$WINDMC_FOR_TARGET"; then
13882 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13883else
13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $PATH
13886do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
cd9a469c 13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13891 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13893 break 2
13894 fi
13895done
cd9a469c 13896 done
13897IFS=$as_save_IFS
75d6a0a9 13898
13899fi
13900fi
13901WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13902if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13904$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13905else
cd9a469c 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907$as_echo "no" >&6; }
75d6a0a9 13908fi
13909
cd9a469c 13910
75d6a0a9 13911 fi
13912 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13913 done
13914fi
13915
13916if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13917 set dummy windmc
13918 if test $build = $target ; then
13919 WINDMC_FOR_TARGET="$2"
13920 else
13921 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13922 fi
b7ef8464 13923else
13924 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 13925fi
13926
13927else
13928 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13929fi
13930
13931
f5aebe3e 13932RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13933
cd9a469c 13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13935$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 13936if test "x${build}" != "x${host}" ; then
c47832b1 13937 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
a6c599b5 13939 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13942 else
13943 # Canadian cross, just use what we found
cd9a469c 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
c47832b1 13946 fi
f5aebe3e 13947else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" binutils "*) ;;
13951 *) ok=no ;;
13952 esac
b30fcfae 13953
f5aebe3e 13954 if test $ok = yes; then
13955 # An in-tree tool is available and we can use it
13956 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13958$as_echo "just compiled" >&6; }
c47832b1 13959 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13960 # We already found the complete path
a6c599b5 13961 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13963$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13964 elif test "x$target" = "x$host"; then
13965 # We can use an host tool
13966 AR_FOR_TARGET='$(AR)'
cd9a469c 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13968$as_echo "host tool" >&6; }
f5aebe3e 13969 else
13970 # We need a cross tool
cd9a469c 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13972$as_echo "pre-installed" >&6; }
f5aebe3e 13973 fi
13974fi
a83ffacf 13975
cd9a469c 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13977$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 13978if test "x${build}" != "x${host}" ; then
c47832b1 13979 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13980 # We already found the complete path
a6c599b5 13981 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13983$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13984 else
13985 # Canadian cross, just use what we found
cd9a469c 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987$as_echo "pre-installed" >&6; }
c47832b1 13988 fi
f5aebe3e 13989else
13990 ok=yes
13991 case " ${configdirs} " in
13992 *" gas "*) ;;
13993 *) ok=no ;;
13994 esac
b30fcfae 13995
f5aebe3e 13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000$as_echo "just compiled" >&6; }
c47832b1 14001 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
a6c599b5 14003 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 AS_FOR_TARGET='$(AS)'
cd9a469c 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010$as_echo "host tool" >&6; }
f5aebe3e 14011 else
14012 # We need a cross tool
cd9a469c 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014$as_echo "pre-installed" >&6; }
f5aebe3e 14015 fi
14016fi
a83ffacf 14017
cd9a469c 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14019$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 14020if test "x${build}" != "x${host}" ; then
c47832b1 14021 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
a6c599b5 14023 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14026 else
14027 # Canadian cross, just use what we found
cd9a469c 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029$as_echo "pre-installed" >&6; }
c47832b1 14030 fi
f5aebe3e 14031else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
b30fcfae 14037
f5aebe3e 14038 if test $ok = yes; then
14039 # An in-tree tool is available and we can use it
14040 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14042$as_echo "just compiled" >&6; }
c47832b1 14043 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
a6c599b5 14045 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14048 elif test "x$target" = "x$host"; then
14049 # We can use an host tool
14050 CC_FOR_TARGET='$(CC)'
cd9a469c 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14052$as_echo "host tool" >&6; }
f5aebe3e 14053 else
14054 # We need a cross tool
cd9a469c 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056$as_echo "pre-installed" >&6; }
f5aebe3e 14057 fi
14058fi
a83ffacf 14059
cd9a469c 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14061$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 14062if test "x${build}" != "x${host}" ; then
c47832b1 14063 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14064 # We already found the complete path
a6c599b5 14065 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14067$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14068 else
14069 # Canadian cross, just use what we found
cd9a469c 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14071$as_echo "pre-installed" >&6; }
c47832b1 14072 fi
f5aebe3e 14073else
14074 ok=yes
14075 case " ${configdirs} " in
14076 *" gcc "*) ;;
14077 *) ok=no ;;
14078 esac
14079 case ,${enable_languages}, in
14080 *,c++,*) ;;
14081 *) ok=no ;;
14082 esac
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
b710ec85 14085 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
cd9a469c 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087$as_echo "just compiled" >&6; }
c47832b1 14088 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
a6c599b5 14090 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 CXX_FOR_TARGET='$(CXX)'
cd9a469c 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097$as_echo "host tool" >&6; }
f5aebe3e 14098 else
14099 # We need a cross tool
cd9a469c 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
f5aebe3e 14102 fi
14103fi
a83ffacf 14104
cd9a469c 14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14106$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 14107if test "x${build}" != "x${host}" ; then
c47832b1 14108 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
a6c599b5 14110 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14113 else
14114 # Canadian cross, just use what we found
cd9a469c 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
c47832b1 14117 fi
f5aebe3e 14118else
14119 ok=yes
14120 case " ${configdirs} " in
14121 *" gcc "*) ;;
14122 *) ok=no ;;
14123 esac
14124 case ,${enable_languages}, in
14125 *,c++,*) ;;
14126 *) ok=no ;;
14127 esac
14128 if test $ok = yes; then
14129 # An in-tree tool is available and we can use it
b710ec85 14130 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
cd9a469c 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14132$as_echo "just compiled" >&6; }
c47832b1 14133 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14134 # We already found the complete path
a6c599b5 14135 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14137$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14138 elif test "x$target" = "x$host"; then
14139 # We can use an host tool
14140 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14142$as_echo "host tool" >&6; }
f5aebe3e 14143 else
14144 # We need a cross tool
cd9a469c 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146$as_echo "pre-installed" >&6; }
f5aebe3e 14147 fi
14148fi
a83ffacf 14149
cd9a469c 14150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14151$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 14152if test "x${build}" != "x${host}" ; then
c47832b1 14153 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14154 # We already found the complete path
a6c599b5 14155 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14157$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14158 else
14159 # Canadian cross, just use what we found
cd9a469c 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161$as_echo "pre-installed" >&6; }
c47832b1 14162 fi
f5aebe3e 14163else
14164 ok=yes
14165 case " ${configdirs} " in
14166 *" binutils "*) ;;
14167 *) ok=no ;;
14168 esac
b30fcfae 14169
f5aebe3e 14170 if test $ok = yes; then
14171 # An in-tree tool is available and we can use it
14172 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14174$as_echo "just compiled" >&6; }
c47832b1 14175 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14176 # We already found the complete path
a6c599b5 14177 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14179$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14180 elif test "x$target" = "x$host"; then
14181 # We can use an host tool
14182 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14184$as_echo "host tool" >&6; }
f5aebe3e 14185 else
14186 # We need a cross tool
cd9a469c 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188$as_echo "pre-installed" >&6; }
f5aebe3e 14189 fi
14190fi
a83ffacf 14191
cd9a469c 14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14193$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 14194if test "x${build}" != "x${host}" ; then
c47832b1 14195 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
a6c599b5 14197 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14200 else
14201 # Canadian cross, just use what we found
cd9a469c 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203$as_echo "pre-installed" >&6; }
c47832b1 14204 fi
f5aebe3e 14205else
14206 ok=yes
14207 case " ${configdirs} " in
14208 *" gcc "*) ;;
14209 *) ok=no ;;
14210 esac
b30fcfae 14211
f5aebe3e 14212 if test $ok = yes; then
14213 # An in-tree tool is available and we can use it
14214 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14216$as_echo "just compiled" >&6; }
c47832b1 14217 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14218 # We already found the complete path
a6c599b5 14219 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14221$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14222 elif test "x$target" = "x$host"; then
14223 # We can use an host tool
14224 GCC_FOR_TARGET='$()'
cd9a469c 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14226$as_echo "host tool" >&6; }
f5aebe3e 14227 else
14228 # We need a cross tool
cd9a469c 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14230$as_echo "pre-installed" >&6; }
f5aebe3e 14231 fi
14232fi
a83ffacf 14233
cd9a469c 14234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14235$as_echo_n "checking where to find the target gcj... " >&6; }
f5aebe3e 14236if test "x${build}" != "x${host}" ; then
c47832b1 14237 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14238 # We already found the complete path
a6c599b5 14239 ac_dir=`dirname $GCJ_FOR_TARGET`
cd9a469c 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14241$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14242 else
14243 # Canadian cross, just use what we found
cd9a469c 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245$as_echo "pre-installed" >&6; }
c47832b1 14246 fi
f5aebe3e 14247else
14248 ok=yes
14249 case " ${configdirs} " in
14250 *" gcc "*) ;;
14251 *) ok=no ;;
14252 esac
14253 case ,${enable_languages}, in
14254 *,java,*) ;;
14255 *) ok=no ;;
14256 esac
14257 if test $ok = yes; then
14258 # An in-tree tool is available and we can use it
14259 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14261$as_echo "just compiled" >&6; }
c47832b1 14262 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14263 # We already found the complete path
a6c599b5 14264 ac_dir=`dirname $GCJ_FOR_TARGET`
cd9a469c 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14266$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14267 elif test "x$target" = "x$host"; then
14268 # We can use an host tool
14269 GCJ_FOR_TARGET='$(GCJ)'
cd9a469c 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14271$as_echo "host tool" >&6; }
f5aebe3e 14272 else
14273 # We need a cross tool
cd9a469c 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275$as_echo "pre-installed" >&6; }
f5aebe3e 14276 fi
14277fi
a83ffacf 14278
cd9a469c 14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14280$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 14281if test "x${build}" != "x${host}" ; then
c47832b1 14282 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14283 # We already found the complete path
a6c599b5 14284 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14286$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14287 else
14288 # Canadian cross, just use what we found
cd9a469c 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290$as_echo "pre-installed" >&6; }
c47832b1 14291 fi
f5aebe3e 14292else
14293 ok=yes
14294 case " ${configdirs} " in
14295 *" gcc "*) ;;
14296 *) ok=no ;;
14297 esac
14298 case ,${enable_languages}, in
14299 *,fortran,*) ;;
14300 *) ok=no ;;
14301 esac
14302 if test $ok = yes; then
14303 # An in-tree tool is available and we can use it
14304 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14306$as_echo "just compiled" >&6; }
c47832b1 14307 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
a6c599b5 14309 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14312 elif test "x$target" = "x$host"; then
14313 # We can use an host tool
14314 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14316$as_echo "host tool" >&6; }
f5aebe3e 14317 else
14318 # We need a cross tool
cd9a469c 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320$as_echo "pre-installed" >&6; }
f5aebe3e 14321 fi
14322fi
a83ffacf 14323
5ff5b630 14324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14325$as_echo_n "checking where to find the target gccgo... " >&6; }
14326if test "x${build}" != "x${host}" ; then
14327 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $GOC_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331$as_echo "pre-installed in $ac_dir" >&6; }
14332 else
14333 # Canadian cross, just use what we found
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335$as_echo "pre-installed" >&6; }
14336 fi
14337else
14338 ok=yes
14339 case " ${configdirs} " in
14340 *" gcc "*) ;;
14341 *) ok=no ;;
14342 esac
14343 case ,${enable_languages}, in
14344 *,go,*) ;;
14345 *) ok=no ;;
14346 esac
14347 if test $ok = yes; then
14348 # An in-tree tool is available and we can use it
14349 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14351$as_echo "just compiled" >&6; }
14352 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14353 # We already found the complete path
14354 ac_dir=`dirname $GOC_FOR_TARGET`
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14356$as_echo "pre-installed in $ac_dir" >&6; }
14357 elif test "x$target" = "x$host"; then
14358 # We can use an host tool
14359 GOC_FOR_TARGET='$(GOC)'
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14361$as_echo "host tool" >&6; }
14362 else
14363 # We need a cross tool
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365$as_echo "pre-installed" >&6; }
14366 fi
14367fi
14368
cd9a469c 14369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14370$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 14371if test "x${build}" != "x${host}" ; then
c47832b1 14372 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
a6c599b5 14374 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14377 else
14378 # Canadian cross, just use what we found
cd9a469c 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380$as_echo "pre-installed" >&6; }
c47832b1 14381 fi
f5aebe3e 14382else
14383 ok=yes
14384 case " ${configdirs} " in
14385 *" ld "*) ;;
14386 *) ok=no ;;
14387 esac
b30fcfae 14388
f5aebe3e 14389 if test $ok = yes; then
14390 # An in-tree tool is available and we can use it
14391 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14393$as_echo "just compiled" >&6; }
c47832b1 14394 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14395 # We already found the complete path
a6c599b5 14396 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14398$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14399 elif test "x$target" = "x$host"; then
14400 # We can use an host tool
14401 LD_FOR_TARGET='$(LD)'
cd9a469c 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14403$as_echo "host tool" >&6; }
f5aebe3e 14404 else
14405 # We need a cross tool
cd9a469c 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407$as_echo "pre-installed" >&6; }
f5aebe3e 14408 fi
14409fi
a83ffacf 14410
cd9a469c 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14412$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 14413if test "x${build}" != "x${host}" ; then
c47832b1 14414 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
a6c599b5 14416 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14419 else
14420 # Canadian cross, just use what we found
cd9a469c 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422$as_echo "pre-installed" >&6; }
c47832b1 14423 fi
f5aebe3e 14424else
c47832b1 14425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
a6c599b5 14427 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14430 elif test "x$target" = "x$host"; then
f5aebe3e 14431 # We can use an host tool
14432 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434$as_echo "host tool" >&6; }
f5aebe3e 14435 else
14436 # We need a cross tool
cd9a469c 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438$as_echo "pre-installed" >&6; }
f5aebe3e 14439 fi
14440fi
a83ffacf 14441
cd9a469c 14442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14443$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 14444if test "x${build}" != "x${host}" ; then
c47832b1 14445 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
a6c599b5 14447 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14450 else
14451 # Canadian cross, just use what we found
cd9a469c 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
c47832b1 14454 fi
f5aebe3e 14455else
14456 ok=yes
14457 case " ${configdirs} " in
14458 *" binutils "*) ;;
14459 *) ok=no ;;
14460 esac
b30fcfae 14461
f5aebe3e 14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466$as_echo "just compiled" >&6; }
c47832b1 14467 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
a6c599b5 14469 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 NM_FOR_TARGET='$(NM)'
cd9a469c 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476$as_echo "host tool" >&6; }
f5aebe3e 14477 else
14478 # We need a cross tool
cd9a469c 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480$as_echo "pre-installed" >&6; }
f5aebe3e 14481 fi
14482fi
a83ffacf 14483
fc740d70 14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14485$as_echo_n "checking where to find the target objcopy... " >&6; }
14486if test "x${build}" != "x${host}" ; then
14487 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
14489 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491$as_echo "pre-installed in $ac_dir" >&6; }
14492 else
14493 # Canadian cross, just use what we found
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
14496 fi
14497else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" binutils "*) ;;
14501 *) ok=no ;;
14502 esac
14503
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
14506 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508$as_echo "just compiled" >&6; }
14509 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
14511 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513$as_echo "pre-installed in $ac_dir" >&6; }
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
9b31ae9c 14516 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
fc740d70 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518$as_echo "host tool" >&6; }
14519 else
14520 # We need a cross tool
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522$as_echo "pre-installed" >&6; }
14523 fi
14524fi
14525
cd9a469c 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14527$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 14528if test "x${build}" != "x${host}" ; then
c47832b1 14529 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
a6c599b5 14531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14534 else
14535 # Canadian cross, just use what we found
cd9a469c 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
c47832b1 14538 fi
f5aebe3e 14539else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" binutils "*) ;;
14543 *) ok=no ;;
14544 esac
b30fcfae 14545
f5aebe3e 14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550$as_echo "just compiled" >&6; }
c47832b1 14551 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
a6c599b5 14553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560$as_echo "host tool" >&6; }
f5aebe3e 14561 else
14562 # We need a cross tool
cd9a469c 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564$as_echo "pre-installed" >&6; }
f5aebe3e 14565 fi
14566fi
a83ffacf 14567
cd9a469c 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14569$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 14570if test "x${build}" != "x${host}" ; then
c47832b1 14571 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
a6c599b5 14573 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14576 else
14577 # Canadian cross, just use what we found
cd9a469c 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579$as_echo "pre-installed" >&6; }
c47832b1 14580 fi
f5aebe3e 14581else
14582 ok=yes
14583 case " ${configdirs} " in
14584 *" binutils "*) ;;
14585 *) ok=no ;;
14586 esac
b30fcfae 14587
f5aebe3e 14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592$as_echo "just compiled" >&6; }
c47832b1 14593 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
a6c599b5 14595 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602$as_echo "host tool" >&6; }
f5aebe3e 14603 else
14604 # We need a cross tool
cd9a469c 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606$as_echo "pre-installed" >&6; }
f5aebe3e 14607 fi
14608fi
a83ffacf 14609
3f71364d 14610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14611$as_echo_n "checking where to find the target readelf... " >&6; }
14612if test "x${build}" != "x${host}" ; then
14613 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
14615 ac_dir=`dirname $READELF_FOR_TARGET`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617$as_echo "pre-installed in $ac_dir" >&6; }
14618 else
14619 # Canadian cross, just use what we found
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621$as_echo "pre-installed" >&6; }
14622 fi
14623else
14624 ok=yes
14625 case " ${configdirs} " in
14626 *" binutils "*) ;;
14627 *) ok=no ;;
14628 esac
14629
14630 if test $ok = yes; then
14631 # An in-tree tool is available and we can use it
14632 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14634$as_echo "just compiled" >&6; }
14635 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14636 # We already found the complete path
14637 ac_dir=`dirname $READELF_FOR_TARGET`
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14639$as_echo "pre-installed in $ac_dir" >&6; }
14640 elif test "x$target" = "x$host"; then
14641 # We can use an host tool
14642 READELF_FOR_TARGET='$(READELF)'
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14644$as_echo "host tool" >&6; }
14645 else
14646 # We need a cross tool
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14648$as_echo "pre-installed" >&6; }
14649 fi
14650fi
14651
cd9a469c 14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14653$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 14654if test "x${build}" != "x${host}" ; then
c47832b1 14655 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14656 # We already found the complete path
a6c599b5 14657 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14659$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14660 else
14661 # Canadian cross, just use what we found
cd9a469c 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663$as_echo "pre-installed" >&6; }
c47832b1 14664 fi
f5aebe3e 14665else
14666 ok=yes
14667 case " ${configdirs} " in
14668 *" binutils "*) ;;
14669 *) ok=no ;;
14670 esac
b30fcfae 14671
f5aebe3e 14672 if test $ok = yes; then
14673 # An in-tree tool is available and we can use it
2b7a4d59 14674 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14676$as_echo "just compiled" >&6; }
c47832b1 14677 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
a6c599b5 14679 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14682 elif test "x$target" = "x$host"; then
14683 # We can use an host tool
14684 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14686$as_echo "host tool" >&6; }
f5aebe3e 14687 else
14688 # We need a cross tool
cd9a469c 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14690$as_echo "pre-installed" >&6; }
f5aebe3e 14691 fi
14692fi
a83ffacf 14693
cd9a469c 14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14695$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 14696if test "x${build}" != "x${host}" ; then
c47832b1 14697 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
a6c599b5 14699 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14702 else
14703 # Canadian cross, just use what we found
cd9a469c 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705$as_echo "pre-installed" >&6; }
c47832b1 14706 fi
f5aebe3e 14707else
14708 ok=yes
14709 case " ${configdirs} " in
14710 *" binutils "*) ;;
14711 *) ok=no ;;
14712 esac
b30fcfae 14713
f5aebe3e 14714 if test $ok = yes; then
14715 # An in-tree tool is available and we can use it
14716 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14718$as_echo "just compiled" >&6; }
c47832b1 14719 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
a6c599b5 14721 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14724 elif test "x$target" = "x$host"; then
14725 # We can use an host tool
14726 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14728$as_echo "host tool" >&6; }
f5aebe3e 14729 else
14730 # We need a cross tool
cd9a469c 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14732$as_echo "pre-installed" >&6; }
f5aebe3e 14733 fi
71ab34df 14734fi
49aae208 14735
cd9a469c 14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14737$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 14738if test "x${build}" != "x${host}" ; then
14739 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14740 # We already found the complete path
14741 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14743$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 14744 else
14745 # Canadian cross, just use what we found
cd9a469c 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747$as_echo "pre-installed" >&6; }
75d6a0a9 14748 fi
14749else
14750 ok=yes
14751 case " ${configdirs} " in
14752 *" binutils "*) ;;
14753 *) ok=no ;;
14754 esac
14755
14756 if test $ok = yes; then
14757 # An in-tree tool is available and we can use it
14758 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14760$as_echo "just compiled" >&6; }
75d6a0a9 14761 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
14763 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 14766 elif test "x$target" = "x$host"; then
14767 # We can use an host tool
14768 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14770$as_echo "host tool" >&6; }
75d6a0a9 14771 else
14772 # We need a cross tool
cd9a469c 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14774$as_echo "pre-installed" >&6; }
75d6a0a9 14775 fi
14776fi
14777
49aae208 14778
14779
f5aebe3e 14780
a83ffacf 14781
71ab34df 14782# Certain tools may need extra flags.
14783AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14784RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14785NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14786
f5aebe3e 14787# When building target libraries, except in a Canadian cross, we use
14788# the same toolchain as the compiler we just built.
14789COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14790COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14791COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14792if test $host = $build; then
14793 case " $configdirs " in
14794 *" gcc "*)
14795 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14796 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14797 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14798 ;;
14799 esac
14800fi
14801
14802
14803
14804
14805
cd9a469c 14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14807$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14808# Check whether --enable-maintainer-mode was given.
14809if test "${enable_maintainer_mode+set}" = set; then :
14810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 14811else
14812 USE_MAINTAINER_MODE=no
cd9a469c 14813fi
14814
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14816$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 14817
14818
14819if test "$USE_MAINTAINER_MODE" = yes; then
14820 MAINTAINER_MODE_TRUE=
14821 MAINTAINER_MODE_FALSE='#'
14822else
14823 MAINTAINER_MODE_TRUE='#'
14824 MAINTAINER_MODE_FALSE=
b30fcfae 14825fi
3290c0cf 14826MAINT=$MAINTAINER_MODE_TRUE
14827
2d64c2fd 14828# ---------------------
14829# GCC bootstrap support
14830# ---------------------
14831
14832# Stage specific cflags for build.
14833stage1_cflags="-g"
14834case $build in
14835 vax-*-*)
14836 case ${GCC} in
14837 yes) stage1_cflags="-g -Wa,-J" ;;
14838 *) stage1_cflags="-g -J" ;;
14839 esac ;;
2d64c2fd 14840esac
14841
f508ba97 14842
2d64c2fd 14843
39f34cfc 14844# Enable --enable-checking in stage1 of the compiler.
cd9a469c 14845# Check whether --enable-stage1-checking was given.
14846if test "${enable_stage1_checking+set}" = set; then :
14847 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 14848else
f6be6a96 14849 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
868af6b6 14850 # For --disable-checking or implicit --enable-checking=release, avoid
14851 # setting --enable-checking=gc in the default stage1 checking for LTO
14852 # bootstraps. See PR62077.
14853 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14854 case $BUILD_CONFIG in
14855 *lto*)
14856 if test "x$enable_checking" = x && \
14857 test -d ${srcdir}/gcc && \
14858 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14859 stage1_checking=--enable-checking=yes,types
14860 fi;;
14861 *) stage1_checking=--enable-checking=yes,types;;
14862 esac
39f34cfc 14863else
f6be6a96 14864 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 14865fi
cd9a469c 14866fi
39f34cfc 14867
14868
5084f823 14869
cd9a469c 14870# Enable -Werror in bootstrap stage2 and later.
14871# Check whether --enable-werror was given.
14872if test "${enable_werror+set}" = set; then :
14873 enableval=$enable_werror;
2d64c2fd 14874else
dd979235 14875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 14876 enable_werror=yes
dc914c6d 14877else
14878 enable_werror=no
14879fi
cd9a469c 14880fi
14881
c0c5068d 14882case ${enable_werror} in
14883 yes) stage2_werror_flag="--enable-werror-always" ;;
14884 *) stage2_werror_flag="" ;;
2d64c2fd 14885esac
14886
14887
2bd17377 14888# Enable --enable-host-shared.
14889# Check whether --enable-host-shared was given.
14890if test "${enable_host_shared+set}" = set; then :
14891 enableval=$enable_host_shared; host_shared=$enableval
14892else
14893 host_shared=no
14894fi
14895
14896
14897
5c524c74 14898# PR jit/64780: Require the user to explicitly specify
14899# --enable-host-shared if the jit is enabled, hinting
14900# that they might want to do a separate configure/build of
14901# the jit, to avoid users from slowing down the rest of the
14902# compiler by enabling the jit.
14903if test ${host_shared} = "no" ; then
14904 case "${enable_languages}" in
14905 *jit*)
14906 as_fn_error "
14907Enabling language \"jit\" requires --enable-host-shared.
14908
14909--enable-host-shared typically slows the rest of the compiler down by
14910a few %, so you must explicitly enable it.
14911
14912If you want to build both the jit and the regular compiler, it is often
14913best to do this via two separate configure/builds, in separate
14914directories, to avoid imposing the performance cost of
14915--enable-host-shared on the regular compiler." "$LINENO" 5
14916 ;;
14917 *)
14918 ;;
14919 esac
14920fi
14921
6fe86052 14922# Specify what files to not compare during bootstrap.
14923
14924compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14925case "$target" in
14926 hppa*64*-*-hpux*) ;;
14927 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
62f0972f 14928 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
6fe86052 14929esac
14930
14931
cd9a469c 14932ac_config_files="$ac_config_files Makefile"
14933
b30fcfae 14934cat >confcache <<\_ACEOF
71ab34df 14935# This file is a shell script that caches the results of configure
14936# tests run on this system so they can be shared between configure
b30fcfae 14937# scripts and configure runs, see configure's option --config-cache.
14938# It is not useful on other systems. If it contains results you don't
14939# want to keep, you may remove or edit it.
71ab34df 14940#
b30fcfae 14941# config.status only pays attention to the cache file if you give it
14942# the --recheck option to rerun configure.
71ab34df 14943#
b30fcfae 14944# `ac_cv_env_foo' variables (set or unset) will be overridden when
14945# loading this file, other *unset* `ac_cv_foo' will be assigned the
14946# following values.
14947
14948_ACEOF
14949
71ab34df 14950# The following way of writing the cache mishandles newlines in values,
14951# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 14952# So, we kill variables containing newlines.
71ab34df 14953# Ultrix sh set writes to stderr and can't be redirected directly,
14954# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 14955(
14956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14957 eval ac_val=\$$ac_var
14958 case $ac_val in #(
14959 *${as_nl}*)
14960 case $ac_var in #(
14961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14963 esac
14964 case $ac_var in #(
14965 _ | IFS | as_nl) ;; #(
14966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14967 *) { eval $ac_var=; unset $ac_var;} ;;
14968 esac ;;
14969 esac
14970 done
14971
b30fcfae 14972 (set) 2>&1 |
cd9a469c 14973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14974 *${as_nl}ac_space=\ *)
14975 # `set' does not quote correctly, so add quotes: double-quote
14976 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 14977 sed -n \
14978 "s/'/'\\\\''/g;
14979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 14980 ;; #(
b30fcfae 14981 *)
14982 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 14983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 14984 ;;
cd9a469c 14985 esac |
14986 sort
14987) |
b30fcfae 14988 sed '
cd9a469c 14989 /^ac_cv_env_/b end
b30fcfae 14990 t clear
cd9a469c 14991 :clear
b30fcfae 14992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14993 t end
cd9a469c 14994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14995 :end' >>confcache
14996if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14997 if test -w "$cache_file"; then
14998 test "x$cache_file" != "x/dev/null" &&
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15000$as_echo "$as_me: updating cache $cache_file" >&6;}
b30fcfae 15001 cat confcache >$cache_file
71ab34df 15002 else
cd9a469c 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15004$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 15005 fi
805e22b2 15006fi
71ab34df 15007rm -f confcache
a8298541 15008
71ab34df 15009test "x$prefix" = xNONE && prefix=$ac_default_prefix
15010# Let make expand exec_prefix.
15011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 15012
71ab34df 15013# Transform confdefs.h into DEFS.
15014# Protect against shell expansion while executing Makefile rules.
15015# Protect against Makefile macro expansion.
b30fcfae 15016#
15017# If the first sed substitution is executed (which looks for macros that
cd9a469c 15018# take arguments), then branch to the quote section. Otherwise,
b30fcfae 15019# look for a macro that doesn't take arguments.
cd9a469c 15020ac_script='
15021:mline
15022/\\$/{
15023 N
15024 s,\\\n,,
15025 b mline
15026}
b30fcfae 15027t clear
cd9a469c 15028:clear
15029s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15030t quote
cd9a469c 15031s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15032t quote
cd9a469c 15033b any
15034:quote
15035s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15036s/\[/\\&/g
15037s/\]/\\&/g
15038s/\$/$$/g
15039H
15040:any
15041${
15042 g
15043 s/^\n//
15044 s/\n/ /g
15045 p
15046}
15047'
15048DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 15049
15050
15051ac_libobjs=
15052ac_ltlibobjs=
15053for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15054 # 1. Remove the extension, and $U if already installed.
cd9a469c 15055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15058 # will be set to the directory where LIBOBJS objects are built.
15059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 15061done
15062LIBOBJS=$ac_libobjs
a4af6a58 15063
b30fcfae 15064LTLIBOBJS=$ac_ltlibobjs
a83ffacf 15065
ae48753c 15066
b30fcfae 15067
15068: ${CONFIG_STATUS=./config.status}
cd9a469c 15069ac_write_fail=0
b30fcfae 15070ac_clean_files_save=$ac_clean_files
15071ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 15072{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15073$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15074as_write_fail=0
15075cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 15076#! $SHELL
15077# Generated by $as_me.
71ab34df 15078# Run this file to recreate the current configuration.
71ab34df 15079# Compiler output produced by configure, useful for debugging
b30fcfae 15080# configure, is in config.log if it exists.
a83ffacf 15081
b30fcfae 15082debug=false
15083ac_cs_recheck=false
15084ac_cs_silent=false
b30fcfae 15085
cd9a469c 15086SHELL=\${CONFIG_SHELL-$SHELL}
15087export SHELL
15088_ASEOF
15089cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15090## -------------------- ##
15091## M4sh Initialization. ##
15092## -------------------- ##
15093
15094# Be more Bourne compatible
15095DUALCASE=1; export DUALCASE # for MKS sh
15096if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 15097 emulate sh
15098 NULLCMD=:
cd9a469c 15099 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 15100 # is contrary to our usage. Disable this feature.
15101 alias -g '${1+"$@"}'='"$@"'
cd9a469c 15102 setopt NO_GLOB_SUBST
15103else
15104 case `(set -o) 2>/dev/null` in #(
15105 *posix*) :
15106 set -o posix ;; #(
15107 *) :
15108 ;;
15109esac
b30fcfae 15110fi
b30fcfae 15111
cd9a469c 15112
15113as_nl='
15114'
15115export as_nl
15116# Printing a long string crashes Solaris 7 /usr/bin/printf.
15117as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15118as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15119as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15120# Prefer a ksh shell builtin over an external printf program on Solaris,
15121# but without wasting forks for bash or zsh.
15122if test -z "$BASH_VERSION$ZSH_VERSION" \
15123 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15124 as_echo='print -r --'
15125 as_echo_n='print -rn --'
15126elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15127 as_echo='printf %s\n'
15128 as_echo_n='printf %s'
15129else
15130 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15131 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15132 as_echo_n='/usr/ucb/echo -n'
15133 else
15134 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15135 as_echo_n_body='eval
15136 arg=$1;
15137 case $arg in #(
15138 *"$as_nl"*)
15139 expr "X$arg" : "X\\(.*\\)$as_nl";
15140 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15141 esac;
15142 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15143 '
15144 export as_echo_n_body
15145 as_echo_n='sh -c $as_echo_n_body as_echo'
15146 fi
15147 export as_echo_body
15148 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 15149fi
15150
cd9a469c 15151# The user is always right.
15152if test "${PATH_SEPARATOR+set}" != set; then
15153 PATH_SEPARATOR=:
15154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15156 PATH_SEPARATOR=';'
15157 }
15158fi
15159
15160
15161# IFS
15162# We need space, tab and new line, in precisely that order. Quoting is
15163# there to prevent editors from complaining about space-tab.
15164# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15165# splitting by setting IFS to empty value.)
15166IFS=" "" $as_nl"
15167
15168# Find who we are. Look in the path if we contain no directory separator.
15169case $0 in #((
15170 *[\\/]* ) as_myself=$0 ;;
15171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172for as_dir in $PATH
15173do
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15177 done
15178IFS=$as_save_IFS
15179
15180 ;;
15181esac
15182# We did not find ourselves, most probably we were run as `sh COMMAND'
15183# in which case we are not to be found in the path.
15184if test "x$as_myself" = x; then
15185 as_myself=$0
15186fi
15187if test ! -f "$as_myself"; then
15188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15189 exit 1
15190fi
b30fcfae 15191
cd9a469c 15192# Unset variables that we do not need and which cause bugs (e.g. in
15193# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15194# suppresses any "Segmentation fault" message there. '((' could
15195# trigger a bug in pdksh 5.2.14.
15196for as_var in BASH_ENV ENV MAIL MAILPATH
15197do eval test x\${$as_var+set} = xset \
15198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15199done
b30fcfae 15200PS1='$ '
15201PS2='> '
15202PS4='+ '
15203
15204# NLS nuisances.
cd9a469c 15205LC_ALL=C
15206export LC_ALL
15207LANGUAGE=C
15208export LANGUAGE
15209
15210# CDPATH.
15211(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15212
15213
15214# as_fn_error ERROR [LINENO LOG_FD]
15215# ---------------------------------
15216# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15217# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15218# script with status $?, using 1 if that was 0.
15219as_fn_error ()
15220{
15221 as_status=$?; test $as_status -eq 0 && as_status=1
15222 if test "$3"; then
15223 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b30fcfae 15225 fi
cd9a469c 15226 $as_echo "$as_me: error: $1" >&2
15227 as_fn_exit $as_status
15228} # as_fn_error
15229
15230
15231# as_fn_set_status STATUS
15232# -----------------------
15233# Set $? to STATUS, without forking.
15234as_fn_set_status ()
15235{
15236 return $1
15237} # as_fn_set_status
15238
15239# as_fn_exit STATUS
15240# -----------------
15241# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15242as_fn_exit ()
15243{
15244 set +e
15245 as_fn_set_status $1
15246 exit $1
15247} # as_fn_exit
15248
15249# as_fn_unset VAR
15250# ---------------
15251# Portably unset VAR.
15252as_fn_unset ()
15253{
15254 { eval $1=; unset $1;}
15255}
15256as_unset=as_fn_unset
15257# as_fn_append VAR VALUE
15258# ----------------------
15259# Append the text in VALUE to the end of the definition contained in VAR. Take
15260# advantage of any shell optimizations that allow amortized linear growth over
15261# repeated appends, instead of the typical quadratic growth present in naive
15262# implementations.
15263if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15264 eval 'as_fn_append ()
15265 {
15266 eval $1+=\$2
15267 }'
15268else
15269 as_fn_append ()
15270 {
15271 eval $1=\$$1\$2
15272 }
15273fi # as_fn_append
15274
15275# as_fn_arith ARG...
15276# ------------------
15277# Perform arithmetic evaluation on the ARGs, and store the result in the
15278# global $as_val. Take advantage of shells that can avoid forks. The arguments
15279# must be portable across $(()) and expr.
15280if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15281 eval 'as_fn_arith ()
15282 {
15283 as_val=$(( $* ))
15284 }'
15285else
15286 as_fn_arith ()
15287 {
15288 as_val=`expr "$@" || test $? -eq 1`
15289 }
15290fi # as_fn_arith
15291
b30fcfae 15292
cd9a469c 15293if expr a : '\(a\)' >/dev/null 2>&1 &&
15294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 15295 as_expr=expr
15296else
15297 as_expr=false
15298fi
15299
cd9a469c 15300if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 15301 as_basename=basename
15302else
15303 as_basename=false
15304fi
15305
cd9a469c 15306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15307 as_dirname=dirname
15308else
15309 as_dirname=false
15310fi
b30fcfae 15311
cd9a469c 15312as_me=`$as_basename -- "$0" ||
b30fcfae 15313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15314 X"$0" : 'X\(//\)$' \| \
cd9a469c 15315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15316$as_echo X/"$0" |
15317 sed '/^.*\/\([^/][^/]*\)\/*$/{
15318 s//\1/
15319 q
15320 }
15321 /^X\/\(\/\/\)$/{
15322 s//\1/
15323 q
15324 }
15325 /^X\/\(\/\).*/{
15326 s//\1/
15327 q
15328 }
15329 s/.*/./; q'`
5084f823 15330
5084f823 15331# Avoid depending upon Character Ranges.
15332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15335as_cr_digits='0123456789'
15336as_cr_alnum=$as_cr_Letters$as_cr_digits
15337
cd9a469c 15338ECHO_C= ECHO_N= ECHO_T=
15339case `echo -n x` in #(((((
15340-n*)
15341 case `echo 'xy\c'` in
15342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15343 xy) ECHO_C='\c';;
15344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15345 ECHO_T=' ';;
15346 esac;;
15347*)
15348 ECHO_N='-n';;
b30fcfae 15349esac
15350
cd9a469c 15351rm -f conf$$ conf$$.exe conf$$.file
15352if test -d conf$$.dir; then
15353 rm -f conf$$.dir/conf$$.file
b30fcfae 15354else
cd9a469c 15355 rm -f conf$$.dir
15356 mkdir conf$$.dir 2>/dev/null
b30fcfae 15357fi
cd9a469c 15358if (echo >conf$$.file) 2>/dev/null; then
15359 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 15360 as_ln_s='ln -s'
cd9a469c 15361 # ... but there are two gotchas:
15362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15364 # In both cases, we have to default to `cp -p'.
15365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15366 as_ln_s='cp -p'
15367 elif ln conf$$.file conf$$ 2>/dev/null; then
15368 as_ln_s=ln
15369 else
15370 as_ln_s='cp -p'
5084f823 15371 fi
b30fcfae 15372else
15373 as_ln_s='cp -p'
15374fi
cd9a469c 15375rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15376rmdir conf$$.dir 2>/dev/null
15377
15378
15379# as_fn_mkdir_p
15380# -------------
15381# Create "$as_dir" as a directory, including parents if necessary.
15382as_fn_mkdir_p ()
15383{
15384
15385 case $as_dir in #(
15386 -*) as_dir=./$as_dir;;
15387 esac
15388 test -d "$as_dir" || eval $as_mkdir_p || {
15389 as_dirs=
15390 while :; do
15391 case $as_dir in #(
15392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15393 *) as_qdir=$as_dir;;
15394 esac
15395 as_dirs="'$as_qdir' $as_dirs"
15396 as_dir=`$as_dirname -- "$as_dir" ||
15397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15398 X"$as_dir" : 'X\(//\)[^/]' \| \
15399 X"$as_dir" : 'X\(//\)$' \| \
15400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15401$as_echo X"$as_dir" |
15402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\(\/\/\)[^/].*/{
15407 s//\1/
15408 q
15409 }
15410 /^X\(\/\/\)$/{
15411 s//\1/
15412 q
15413 }
15414 /^X\(\/\).*/{
15415 s//\1/
15416 q
15417 }
15418 s/.*/./; q'`
15419 test -d "$as_dir" && break
15420 done
15421 test -z "$as_dirs" || eval "mkdir $as_dirs"
15422 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15423
b30fcfae 15424
cd9a469c 15425} # as_fn_mkdir_p
b30fcfae 15426if mkdir -p . 2>/dev/null; then
cd9a469c 15427 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 15428else
15429 test -d ./-p && rmdir ./-p
15430 as_mkdir_p=false
15431fi
15432
cd9a469c 15433if test -x / >/dev/null 2>&1; then
15434 as_test_x='test -x'
15435else
15436 if ls -dL / >/dev/null 2>&1; then
15437 as_ls_L_option=L
15438 else
15439 as_ls_L_option=
15440 fi
15441 as_test_x='
15442 eval sh -c '\''
15443 if test -d "$1"; then
15444 test -d "$1/.";
15445 else
15446 case $1 in #(
15447 -*)set "./$1";;
15448 esac;
15449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15450 ???[sx]*):;;*)false;;esac;fi
15451 '\'' sh
15452 '
15453fi
15454as_executable_p=$as_test_x
b30fcfae 15455
15456# Sed expression to map a string onto a valid CPP name.
15457as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15458
15459# Sed expression to map a string onto a valid variable name.
15460as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15461
15462
b30fcfae 15463exec 6>&1
cd9a469c 15464## ----------------------------------- ##
15465## Main body of $CONFIG_STATUS script. ##
15466## ----------------------------------- ##
15467_ASEOF
15468test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15469
15470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15471# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 15472# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 15473# values after options handling.
15474ac_log="
b30fcfae 15475This file was extended by $as_me, which was
cd9a469c 15476generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 15477
15478 CONFIG_FILES = $CONFIG_FILES
15479 CONFIG_HEADERS = $CONFIG_HEADERS
15480 CONFIG_LINKS = $CONFIG_LINKS
15481 CONFIG_COMMANDS = $CONFIG_COMMANDS
15482 $ $0 $@
15483
cd9a469c 15484on `(hostname || uname -n) 2>/dev/null | sed 1q`
15485"
15486
b30fcfae 15487_ACEOF
15488
cd9a469c 15489case $ac_config_files in *"
15490"*) set x $ac_config_files; shift; ac_config_files=$*;;
15491esac
b30fcfae 15492
5084f823 15493
5084f823 15494
cd9a469c 15495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496# Files that config.status was made for.
15497config_files="$ac_config_files"
b30fcfae 15498
cd9a469c 15499_ACEOF
5084f823 15500
cd9a469c 15501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15502ac_cs_usage="\
cd9a469c 15503\`$as_me' instantiates files and other configuration actions
15504from templates according to the current configuration. Unless the files
15505and actions are specified as TAGs, all are instantiated by default.
b30fcfae 15506
cd9a469c 15507Usage: $0 [OPTION]... [TAG]...
b30fcfae 15508
15509 -h, --help print this help, then exit
cd9a469c 15510 -V, --version print version number and configuration settings, then exit
15511 -q, --quiet, --silent
15512 do not print progress messages
b30fcfae 15513 -d, --debug don't remove temporary files
15514 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 15515 --file=FILE[:TEMPLATE]
15516 instantiate the configuration file FILE
b30fcfae 15517
15518Configuration files:
15519$config_files
15520
cd9a469c 15521Report bugs to the package provider."
5084f823 15522
cd9a469c 15523_ACEOF
15524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 15525ac_cs_version="\\
15526config.status
cd9a469c 15527configured by $0, generated by GNU Autoconf 2.64,
15528 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 15529
cd9a469c 15530Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 15531This config.status script is free software; the Free Software Foundation
15532gives unlimited permission to copy, distribute and modify it."
cd9a469c 15533
15534ac_pwd='$ac_pwd'
15535srcdir='$srcdir'
15536INSTALL='$INSTALL'
b181f265 15537AWK='$AWK'
cd9a469c 15538test -n "\$AWK" || AWK=awk
b30fcfae 15539_ACEOF
15540
cd9a469c 15541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542# The default lists apply if the user does not specify any file.
b30fcfae 15543ac_need_defaults=:
15544while test $# != 0
b1660f25 15545do
b30fcfae 15546 case $1 in
15547 --*=*)
cd9a469c 15548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 15550 ac_shift=:
15551 ;;
cd9a469c 15552 *)
b30fcfae 15553 ac_option=$1
15554 ac_optarg=$2
15555 ac_shift=shift
15556 ;;
b30fcfae 15557 esac
15558
15559 case $ac_option in
15560 # Handling of the options.
71ab34df 15561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 15562 ac_cs_recheck=: ;;
cd9a469c 15563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15564 $as_echo "$ac_cs_version"; exit ;;
15565 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 15566 debug=: ;;
15567 --file | --fil | --fi | --f )
15568 $ac_shift
cd9a469c 15569 case $ac_optarg in
15570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571 esac
15572 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 15573 ac_need_defaults=false;;
cd9a469c 15574 --he | --h | --help | --hel | -h )
15575 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 15576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15578 ac_cs_silent=: ;;
15579
15580 # This is an error.
cd9a469c 15581 -*) as_fn_error "unrecognized option: \`$1'
15582Try \`$0 --help' for more information." ;;
b30fcfae 15583
cd9a469c 15584 *) as_fn_append ac_config_targets " $1"
15585 ac_need_defaults=false ;;
b30fcfae 15586
a83ffacf 15587 esac
b30fcfae 15588 shift
a83ffacf 15589done
15590
b30fcfae 15591ac_configure_extra_args=
a83ffacf 15592
b30fcfae 15593if $ac_cs_silent; then
15594 exec 6>/dev/null
15595 ac_configure_extra_args="$ac_configure_extra_args --silent"
15596fi
a83ffacf 15597
b30fcfae 15598_ACEOF
cd9a469c 15599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 15600if \$ac_cs_recheck; then
cd9a469c 15601 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15602 shift
15603 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15604 CONFIG_SHELL='$SHELL'
15605 export CONFIG_SHELL
15606 exec "\$@"
b30fcfae 15607fi
15608
15609_ACEOF
cd9a469c 15610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611exec 5>>config.log
15612{
15613 echo
15614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15615## Running $as_me. ##
15616_ASBOX
15617 $as_echo "$ac_log"
15618} >&5
b30fcfae 15619
cd9a469c 15620_ACEOF
15621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 15622#
15623# INIT-COMMANDS
15624#
15625extrasub_build="$extrasub_build"
15626 extrasub_host="$extrasub_host"
15627 extrasub_target="$extrasub_target"
15628
cd9a469c 15629_ACEOF
b30fcfae 15630
cd9a469c 15631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 15632
cd9a469c 15633# Handling of arguments.
b30fcfae 15634for ac_config_target in $ac_config_targets
15635do
cd9a469c 15636 case $ac_config_target in
15637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15638
15639 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 15640 esac
15641done
15642
cd9a469c 15643
b30fcfae 15644# If the user did not use the arguments to specify the items to instantiate,
15645# then the envvar interface is used. Set only those that are not.
15646# We use the long form for the default assignment because of an extremely
15647# bizarre bug on SunOS 4.1.3.
15648if $ac_need_defaults; then
15649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15650fi
15651
15652# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 15653# simply because there is no reason against having it here, and in addition,
b30fcfae 15654# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 15655# Hook for its removal unless debugging.
15656# Note that there is a small window in which the directory will not be cleaned:
15657# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 15658$debug ||
15659{
cd9a469c 15660 tmp=
15661 trap 'exit_status=$?
15662 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15663' 0
15664 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 15665}
b30fcfae 15666# Create a (secure) tmp directory for tmp files.
15667
15668{
cd9a469c 15669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b30fcfae 15670 test -n "$tmp" && test -d "$tmp"
15671} ||
15672{
cd9a469c 15673 tmp=./conf$$-$RANDOM
15674 (umask 077 && mkdir "$tmp")
15675} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15676
15677# Set up the scripts for CONFIG_FILES section.
15678# No need to generate them if there are no CONFIG_FILES.
15679# This happens for instance with `./config.status config.h'.
15680if test -n "$CONFIG_FILES"; then
15681
15682if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15683 ac_cs_awk_getline=:
15684 ac_cs_awk_pipe_init=
15685 ac_cs_awk_read_file='
15686 while ((getline aline < (F[key])) > 0)
15687 print(aline)
15688 close(F[key])'
15689 ac_cs_awk_pipe_fini=
15690else
15691 ac_cs_awk_getline=false
15692 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15693 ac_cs_awk_read_file='
15694 print "|#_!!_#|"
15695 print "cat " F[key] " &&"
15696 '$ac_cs_awk_pipe_init
15697 # The final `:' finishes the AND list.
15698 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15699fi
15700ac_cr=`echo X | tr X '\015'`
15701# On cygwin, bash can eat \r inside `` if the user requested igncr.
15702# But we know of no other shell where ac_cr would be empty at this
15703# point, so we can use a bashism as a fallback.
15704if test "x$ac_cr" = x; then
15705 eval ac_cr=\$\'\\r\'
15706fi
15707ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15708if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15709 ac_cs_awk_cr='\r'
15710else
15711 ac_cs_awk_cr=$ac_cr
15712fi
15713
15714echo 'BEGIN {' >"$tmp/subs1.awk" &&
15715_ACEOF
15716
15717# Create commands to substitute file output variables.
b30fcfae 15718{
cd9a469c 15719 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15720 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15721 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15722 echo "_ACAWK" &&
15723 echo "_ACEOF"
15724} >conf$$files.sh &&
15725. ./conf$$files.sh ||
15726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727rm -f conf$$files.sh
b30fcfae 15728
cd9a469c 15729{
15730 echo "cat >conf$$subs.awk <<_ACEOF" &&
15731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15732 echo "_ACEOF"
15733} >conf$$subs.sh ||
15734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15736ac_delim='%!_!# '
15737for ac_last_try in false false false false false :; do
15738 . ./conf$$subs.sh ||
15739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740
15741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15742 if test $ac_delim_n = $ac_delim_num; then
15743 break
15744 elif $ac_last_try; then
15745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15746 else
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15748 fi
15749done
15750rm -f conf$$subs.sh
15751
15752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5084f823 15754_ACEOF
cd9a469c 15755sed -n '
15756h
15757s/^/S["/; s/!.*/"]=/
15758p
15759g
15760s/^[^!]*!//
15761:repl
15762t repl
15763s/'"$ac_delim"'$//
15764t delim
15765:nl
15766h
15767s/\(.\{148\}\).*/\1/
15768t more1
15769s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15770p
15771n
15772b repl
15773:more1
15774s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775p
15776g
15777s/.\{148\}//
15778t nl
15779:delim
15780h
15781s/\(.\{148\}\).*/\1/
15782t more2
15783s/["\\]/\\&/g; s/^/"/; s/$/"/
15784p
15785b
15786:more2
15787s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15788p
15789g
15790s/.\{148\}//
15791t delim
15792' <conf$$subs.awk | sed '
15793/^[^""]/{
15794 N
15795 s/\n//
15796}
15797' >>$CONFIG_STATUS || ac_write_fail=1
15798rm -f conf$$subs.awk
15799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800_ACAWK
15801cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15802 for (key in S) S_is_set[key] = 1
15803 FS = "\a"
15804 \$ac_cs_awk_pipe_init
15805}
15806{
15807 line = $ 0
15808 nfields = split(line, field, "@")
15809 substed = 0
15810 len = length(field[1])
15811 for (i = 2; i < nfields; i++) {
15812 key = field[i]
15813 keylen = length(key)
15814 if (S_is_set[key]) {
15815 value = S[key]
15816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15817 len += length(value) + length(field[++i])
15818 substed = 1
15819 } else
15820 len += 1 + keylen
15821 }
15822 if (nfields == 3 && !substed) {
15823 key = field[2]
15824 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15825 \$ac_cs_awk_read_file
15826 next
15827 }
15828 }
15829 print line
15830}
15831\$ac_cs_awk_pipe_fini
15832_ACAWK
15833_ACEOF
15834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15837else
15838 cat
15839fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15841_ACEOF
15842
15843# VPATH may cause trouble with some makes, so we remove $(srcdir),
15844# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15845# trailing colons and then remove the whole line if VPATH becomes empty
15846# (actually we leave an empty line to preserve line numbers).
15847if test "x$srcdir" = x.; then
15848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15849s/:*\$(srcdir):*/:/
15850s/:*\${srcdir}:*/:/
15851s/:*@srcdir@:*/:/
15852s/^\([^=]*=[ ]*\):*/\1/
15853s/:*$//
15854s/^[^=]*=[ ]*$//
15855}'
15856fi
5084f823 15857
cd9a469c 15858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859fi # test -n "$CONFIG_FILES"
5084f823 15860
b30fcfae 15861
cd9a469c 15862eval set X " :F $CONFIG_FILES "
15863shift
15864for ac_tag
15865do
15866 case $ac_tag in
15867 :[FHLC]) ac_mode=$ac_tag; continue;;
15868 esac
15869 case $ac_mode$ac_tag in
15870 :[FHL]*:*);;
15871 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15872 :[FH]-) ac_tag=-:-;;
15873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15874 esac
15875 ac_save_IFS=$IFS
15876 IFS=:
15877 set x $ac_tag
15878 IFS=$ac_save_IFS
15879 shift
15880 ac_file=$1
15881 shift
a8298541 15882
cd9a469c 15883 case $ac_mode in
15884 :L) ac_source=$1;;
15885 :[FH])
15886 ac_file_inputs=
15887 for ac_f
15888 do
15889 case $ac_f in
15890 -) ac_f="$tmp/stdin";;
15891 *) # Look for the file first in the build tree, then in the source tree
15892 # (if the path is not absolute). The absolute path cannot be DOS-style,
15893 # because $ac_f cannot contain `:'.
15894 test -f "$ac_f" ||
15895 case $ac_f in
15896 [\\/$]*) false;;
15897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15898 esac ||
15899 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15900 esac
15901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15902 as_fn_append ac_file_inputs " '$ac_f'"
15903 done
b30fcfae 15904
cd9a469c 15905 # Let's still pretend it is `configure' which instantiates (i.e., don't
15906 # use $as_me), people would be surprised to read:
15907 # /* config.h. Generated by config.status. */
15908 configure_input='Generated from '`
15909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15910 `' by configure.'
15911 if test x"$ac_file" != x-; then
15912 configure_input="$ac_file. $configure_input"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15914$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 15915 fi
cd9a469c 15916 # Neutralize special characters interpreted by sed in replacement strings.
15917 case $configure_input in #(
15918 *\&* | *\|* | *\\* )
15919 ac_sed_conf_input=`$as_echo "$configure_input" |
15920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15921 *) ac_sed_conf_input=$configure_input;;
15922 esac
570af75a 15923
cd9a469c 15924 case $ac_tag in
15925 *:-:* | *:-) cat >"$tmp/stdin" \
15926 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15927 esac
15928 ;;
570af75a 15929 esac
15930
cd9a469c 15931 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 15932$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15933 X"$ac_file" : 'X\(//\)[^/]' \| \
15934 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 15935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15936$as_echo X"$ac_file" |
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\/\)[^/].*/{
15942 s//\1/
15943 q
15944 }
15945 /^X\(\/\/\)$/{
15946 s//\1/
15947 q
15948 }
15949 /^X\(\/\).*/{
15950 s//\1/
15951 q
15952 }
15953 s/.*/./; q'`
15954 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 15955 ac_builddir=.
a83ffacf 15956
cd9a469c 15957case "$ac_dir" in
15958.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15959*)
15960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15961 # A ".." for each directory in $ac_dir_suffix.
15962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15963 case $ac_top_builddir_sub in
15964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15966 esac ;;
15967esac
15968ac_abs_top_builddir=$ac_pwd
15969ac_abs_builddir=$ac_pwd$ac_dir_suffix
15970# for backward compatibility:
15971ac_top_builddir=$ac_top_build_prefix
b30fcfae 15972
15973case $srcdir in
cd9a469c 15974 .) # We are building in place.
b30fcfae 15975 ac_srcdir=.
cd9a469c 15976 ac_top_srcdir=$ac_top_builddir_sub
15977 ac_abs_top_srcdir=$ac_pwd ;;
15978 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 15979 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 15980 ac_top_srcdir=$srcdir
15981 ac_abs_top_srcdir=$srcdir ;;
15982 *) # Relative name.
15983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15984 ac_top_srcdir=$ac_top_build_prefix$srcdir
15985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 15986esac
cd9a469c 15987ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 15988
a83ffacf 15989
cd9a469c 15990 case $ac_mode in
15991 :F)
15992 #
15993 # CONFIG_FILE
15994 #
b30fcfae 15995
15996 case $INSTALL in
15997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 15998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 15999 esac
cd9a469c 16000_ACEOF
570af75a 16001
cd9a469c 16002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16003# If the template does not know about datarootdir, expand it.
16004# FIXME: This hack should be removed a few years after 2.60.
16005ac_datarootdir_hack=; ac_datarootdir_seen=
16006ac_sed_dataroot='
16007/datarootdir/ {
16008 p
16009 q
16010}
16011/@datadir@/p
16012/@docdir@/p
16013/@infodir@/p
16014/@localedir@/p
16015/@mandir@/p'
16016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16017*datarootdir*) ac_datarootdir_seen=yes;;
16018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 16021_ACEOF
cd9a469c 16022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 ac_datarootdir_hack='
16024 s&@datadir@&$datadir&g
16025 s&@docdir@&$docdir&g
16026 s&@infodir@&$infodir&g
16027 s&@localedir@&$localedir&g
16028 s&@mandir@&$mandir&g
16029 s&\\\${datarootdir}&$datarootdir&g' ;;
16030esac
16031_ACEOF
16032
16033# Neutralize VPATH when `$srcdir' = `.'.
16034# Shell code in configure.ac might set extrasub.
16035# FIXME: do we really want to maintain this feature?
16036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037ac_sed_extra="$ac_vpsub
b30fcfae 16038$extrasub
16039_ACEOF
cd9a469c 16040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 16041:t
16042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 16043s|@configure_input@|$ac_sed_conf_input|;t t
16044s&@top_builddir@&$ac_top_builddir_sub&;t t
16045s&@top_build_prefix@&$ac_top_build_prefix&;t t
16046s&@srcdir@&$ac_srcdir&;t t
16047s&@abs_srcdir@&$ac_abs_srcdir&;t t
16048s&@top_srcdir@&$ac_top_srcdir&;t t
16049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16050s&@builddir@&$ac_builddir&;t t
16051s&@abs_builddir@&$ac_abs_builddir&;t t
16052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16053s&@INSTALL@&$ac_INSTALL&;t t
16054$ac_datarootdir_hack
16055"
16056eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16057if $ac_cs_awk_getline; then
16058 $AWK -f "$tmp/subs.awk"
16059else
16060 $AWK -f "$tmp/subs.awk" | $SHELL
16061fi >$tmp/out \
16062 || as_fn_error "could not create $ac_file" "$LINENO" 5
16063
16064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16068which seems to be undefined. Please make sure it is defined." >&5
16069$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16070which seems to be undefined. Please make sure it is defined." >&2;}
16071
16072 rm -f "$tmp/stdin"
16073 case $ac_file in
16074 -) cat "$tmp/out" && rm -f "$tmp/out";;
16075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16076 esac \
16077 || as_fn_error "could not create $ac_file" "$LINENO" 5
16078 ;;
570af75a 16079
570af75a 16080
a8298541 16081
cd9a469c 16082 esac
16083
8bb79148 16084
16085 case $ac_file$ac_mode in
16086 "Makefile":F) sed "$extrasub_build" Makefile |
16087 sed "$extrasub_host" |
16088 sed "$extrasub_target" > mf$$
16089 mv -f mf$$ Makefile ;;
16090
16091 esac
cd9a469c 16092done # for ac_tag
16093
16094
16095as_fn_exit 0
b30fcfae 16096_ACEOF
b30fcfae 16097ac_clean_files=$ac_clean_files_save
16098
cd9a469c 16099test $ac_write_fail = 0 ||
16100 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16101
b30fcfae 16102
16103# configure is writing to config.log, and then calls config.status.
16104# config.status does its own redirection, appending to config.log.
16105# Unfortunately, on DOS this fails, as config.log is still kept open
16106# by configure, so config.status won't be able to write to it; its
16107# output is simply discarded. So we exec the FD to /dev/null,
16108# effectively closing config.log, so it can be properly (re)opened and
16109# appended to by config.status. When coming back to configure, we
16110# need to make the FD available again.
16111if test "$no_create" != yes; then
16112 ac_cs_success=:
16113 ac_config_status_args=
16114 test "$silent" = yes &&
16115 ac_config_status_args="$ac_config_status_args --quiet"
16116 exec 5>/dev/null
16117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16118 exec 5>>config.log
16119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16120 # would make configure fail if this is the last instruction.
cd9a469c 16121 $ac_cs_success || as_fn_exit $?
16122fi
16123if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16125$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 16126fi
a8298541 16127