]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
[PR 78365] Prudent type handling in IPA VR-prop
[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
cd9a469c 586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
3f71364d 589READELF
cd9a469c 590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
cd9a469c 610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
5ff5b630 616GOC_FOR_BUILD
cd9a469c 617GFORTRAN_FOR_BUILD
cd9a469c 618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
1fda3360 625target_configdirs
cd9a469c 626configdirs
cd9a469c 627build_configdirs
cd9a469c 628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
372a3f1e 635target_configargs
636host_configargs
637build_configargs
719faf1c 638BUILD_CONFIG
ed9516f5 639LDFLAGS_FOR_TARGET
cd9a469c 640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
c850ece7 644extra_host_zlib_configure_flags
7bfefa9d 645extra_host_libiberty_configure_flags
944792ef 646stage1_languages
1015a063 647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
87e20041 649islinc
429cca51 650isllibs
45fc5243 651islver
cd9a469c 652poststage1_ldflags
d6dfe18a 653poststage1_libs
cd9a469c 654stage1_ldflags
13687c85 655stage1_libs
e4128452 656extra_isl_gmp_configure_flags
cd9a469c 657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
d3a7dd32 675extra_liboffloadmic_configure_flags
cd9a469c 676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
b181f265 680AWK
681SED
cd9a469c 682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
6406d366 749with_system_zlib
a3d93be3 750enable_as_accelerator_for
751enable_offload_targets
cd9a469c 752enable_gold
1e369e5f 753enable_ld
afb6adb9 754enable_compressed_debug_sections
d9d975ae 755enable_libquadmath
756enable_libquadmath_support
cd9a469c 757enable_libada
758enable_libssp
a3ba808f 759enable_libstdcxx
d3a7dd32 760enable_liboffloadmic
6c59dfa4 761enable_bootstrap
cd9a469c 762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
cd9a469c 773with_stage1_libs
13687c85 774with_stage1_ldflags
cd9a469c 775with_boot_libs
d6dfe18a 776with_boot_ldflags
87e20041 777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
7bfefa9d 781enable_lto
1015a063 782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
cd9a469c 784enable_stage1_languages
03869f98 785enable_objc_gc
baf71228 786with_target_bdw_gc
787with_target_bdw_gc_include
788with_target_bdw_gc_lib
cd9a469c 789with_build_sysroot
790with_debug_prefix_map
a2059f7a 791with_build_config
ee055341 792enable_vtable_verify
cd9a469c 793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
2bd17377 798enable_host_shared
cd9a469c 799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
372a3f1e 811build_configargs
812host_configargs
813target_configargs
cd9a469c 814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
3f71364d 826READELF
cd9a469c 827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
cd9a469c 830GFORTRAN_FOR_TARGET
5ff5b630 831GOC_FOR_TARGET
cd9a469c 832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
fc740d70 838OBJCOPY_FOR_TARGET
cd9a469c 839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
3f71364d 841READELF_FOR_TARGET
cd9a469c 842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
71ab34df 846
847# Initialize some variables set by options.
b30fcfae 848ac_init_help=
849ac_init_version=false
cd9a469c 850ac_unrecognized_opts=
851ac_unrecognized_sep=
71ab34df 852# The variables have the same names as the options, with
853# dashes changed to underlines.
b30fcfae 854cache_file=/dev/null
71ab34df 855exec_prefix=NONE
71ab34df 856no_create=
71ab34df 857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
71ab34df 865verbose=
866x_includes=NONE
867x_libraries=NONE
b30fcfae 868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 874# (The list follows the same order as the GNU Coding Standards.)
71ab34df 875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
cd9a469c 878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
71ab34df 880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
71ab34df 883includedir='${prefix}/include'
884oldincludedir='/usr/include'
cd9a469c 885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
a8298541 894
71ab34df 895ac_prev=
cd9a469c 896ac_dashdash=
71ab34df 897for ac_option
898do
71ab34df 899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
cd9a469c 901 eval $ac_prev=\$ac_option
71ab34df 902 ac_prev=
903 continue
904 fi
a8298541 905
cd9a469c 906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
71ab34df 910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
cd9a469c 913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
71ab34df 916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 920 bindir=$ac_optarg ;;
71ab34df 921
922 -build | --build | --buil | --bui | --bu)
b30fcfae 923 ac_prev=build_alias ;;
71ab34df 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 925 build_alias=$ac_optarg ;;
71ab34df 926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
71ab34df 936
cd9a469c 937 -datadir | --datadir | --datadi | --datad)
71ab34df 938 ac_prev=datadir ;;
cd9a469c 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b30fcfae 940 datadir=$ac_optarg ;;
71ab34df 941
cd9a469c 942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
71ab34df 949 -disable-* | --disable-*)
cd9a469c 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 951 # Reject names that are not valid shell variable names.
cd9a469c 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
71ab34df 974
975 -enable-* | --enable-*)
cd9a469c 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 977 # Reject names that are not valid shell variable names.
cd9a469c 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
5084f823 988 esac
cd9a469c 989 eval enable_$ac_useropt=\$ac_optarg ;;
71ab34df 990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
b30fcfae 998 exec_prefix=$ac_optarg ;;
71ab34df 999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
b30fcfae 1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
71ab34df 1010
1011 -host | --host | --hos | --ho)
b30fcfae 1012 ac_prev=host_alias ;;
71ab34df 1013 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 1014 host_alias=$ac_optarg ;;
71ab34df 1015
cd9a469c 1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
71ab34df 1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 1027 includedir=$ac_optarg ;;
71ab34df 1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 1032 infodir=$ac_optarg ;;
71ab34df 1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 1037 libdir=$ac_optarg ;;
71ab34df 1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
b30fcfae 1044 libexecdir=$ac_optarg ;;
71ab34df 1045
cd9a469c 1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
71ab34df 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1052 | --localstate | --localstat | --localsta | --localst | --locals)
71ab34df 1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b30fcfae 1056 localstatedir=$ac_optarg ;;
71ab34df 1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 1061 mandir=$ac_optarg ;;
71ab34df 1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 1068 | --no-cr | --no-c | -n)
71ab34df 1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 1082 oldincludedir=$ac_optarg ;;
71ab34df 1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 1087 prefix=$ac_optarg ;;
71ab34df 1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 1094 program_prefix=$ac_optarg ;;
71ab34df 1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 1101 program_suffix=$ac_optarg ;;
71ab34df 1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 1118 program_transform_name=$ac_optarg ;;
71ab34df 1119
cd9a469c 1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
71ab34df 1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
b30fcfae 1138 sbindir=$ac_optarg ;;
71ab34df 1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
b30fcfae 1149 sharedstatedir=$ac_optarg ;;
71ab34df 1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
b30fcfae 1154 site=$ac_optarg ;;
71ab34df 1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 1159 srcdir=$ac_optarg ;;
71ab34df 1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 1166 sysconfdir=$ac_optarg ;;
71ab34df 1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 1169 ac_prev=target_alias ;;
71ab34df 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 1171 target_alias=$ac_optarg ;;
71ab34df 1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
b30fcfae 1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
71ab34df 1178
1179 -with-* | --with-*)
cd9a469c 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 1181 # Reject names that are not valid shell variable names.
cd9a469c 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
5084f823 1192 esac
cd9a469c 1193 eval with_$ac_useropt=\$ac_optarg ;;
71ab34df 1194
1195 -without-* | --without-*)
cd9a469c 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 1197 # Reject names that are not valid shell variable names.
cd9a469c 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
71ab34df 1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 1220 x_includes=$ac_optarg ;;
71ab34df 1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 1227 x_libraries=$ac_optarg ;;
71ab34df 1228
cd9a469c 1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
71ab34df 1231 ;;
1232
b30fcfae 1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
cd9a469c 1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
b30fcfae 1241 export $ac_envvar ;;
1242
71ab34df 1243 *)
b30fcfae 1244 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b30fcfae 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b30fcfae 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
71ab34df 1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
b30fcfae 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1256 as_fn_error "missing argument to $ac_option"
ae48753c 1257fi
ae48753c 1258
cd9a469c 1259if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5084f823 1264 esac
cd9a469c 1265fi
5084f823 1266
cd9a469c 1267# Check all directory arguments for consistency.
1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
5084f823 1272do
cd9a469c 1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
5084f823 1281 case $ac_val in
cd9a469c 1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
71ab34df 1284 esac
cd9a469c 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
71ab34df 1286done
1287
b30fcfae 1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
a83ffacf 1294
b30fcfae 1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
cd9a469c 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b30fcfae 1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
71ab34df 1310
71ab34df 1311
cd9a469c 1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
71ab34df 1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
cd9a469c 1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
71ab34df 1347 srcdir=$ac_confdir
cd9a469c 1348 if test ! -r "$srcdir/$ac_unique_file"; then
71ab34df 1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
cd9a469c 1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
13d2f2b2 1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
d2d2630b 1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
cd9a469c 1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
b30fcfae 1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
b30fcfae 1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1415 [$ac_default_prefix]
b30fcfae 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1417 [PREFIX]
b30fcfae 1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
cd9a469c 1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
b30fcfae 1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
cd9a469c 1467 --disable-option-checking ignore unrecognized --enable/--with options
b30fcfae 1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a3d93be3 1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1e369e5f 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
8747a938 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
325f661b 1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
afb6adb9 1480 Enable compressed debug sections for gas, gold or ld
1481 by default
d9d975ae 1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
09c2d953 1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
a3ba808f 1487 --disable-libstdcxx do not build libstdc++-v3 directory
d3a7dd32 1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
6c59dfa4 1490 --enable-bootstrap enable bootstrapping [yes if native build]
87e20041 1491 --disable-isl-version-check
7458b15a 1492 disable check for isl version
7bfefa9d 1493 --enable-lto enable link time optimization support
1015a063 1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
8747a938 1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
03869f98 1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
d5f3a33f 1505 --enable-vtable-verify Enable vtable verification feature
09c2d953 1506 --enable-serial-[{host,target,build}-]configure
8747a938 1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
b30fcfae 1516 --enable-werror enable -Werror in bootstrap stage2 and later
2bd17377 1517 --enable-host-shared build host code as shared libraries
b30fcfae 1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
6406d366 1523 --with-system-zlib use installed libz
8747a938 1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
09c2d953 1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
8747a938 1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
b30fcfae 1533 --with-mpfr-include=PATH
09c2d953 1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
8747a938 1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
09c2d953 1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
13687c85 1543 --with-stage1-libs=LIBS libraries for stage1
8747a938 1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
8747a938 1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
71130ef8 1549 --with-isl=PATH Specify prefix directory for the installed isl
8747a938 1550 package. Equivalent to
87e20041 1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
7458b15a 1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
baf71228 1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
09c2d953 1565 --with-build-sysroot=SYSROOT
b30fcfae 1566 use sysroot as the system root during the build
5f1f2de5 1567 --with-debug-prefix-map='A=B C=D ...'
8747a938 1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
09c2d953 1571 --with-build-time-tools=PATH
b30fcfae 1572 use given path to find target tools during the build
b30fcfae 1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
cd9a469c 1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
eae5b2bc 1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
372a3f1e 1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
95a05732 1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
75d6a0a9 1599 WINDMC WINDMC for the host
95a05732 1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
3f71364d 1602 READELF READELF for the host
95a05732 1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
95a05732 1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
5ff5b630 1611 GOC_FOR_TARGET
1612 GOC for the target
95a05732 1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
fc740d70 1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
95a05732 1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
3f71364d 1631 READELF_FOR_TARGET
1632 READELF for the target
95a05732 1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
75d6a0a9 1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
b30fcfae 1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
cd9a469c 1643Report bugs to the package provider.
b30fcfae 1644_ACEOF
cd9a469c 1645ac_status=$?
b30fcfae 1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
b30fcfae 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
b30fcfae 1654 ac_builddir=.
1655
cd9a469c 1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
b30fcfae 1671
1672case $srcdir in
cd9a469c 1673 .) # We are building in place.
b30fcfae 1674 ac_srcdir=.
cd9a469c 1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 1678 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5084f823 1685esac
cd9a469c 1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
b30fcfae 1696 else
cd9a469c 1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
b30fcfae 1700 done
1701fi
1702
cd9a469c 1703test -n "$ac_init_help" && exit $ac_status
b30fcfae 1704if $ac_init_version; then
1705 cat <<\_ACEOF
cd9a469c 1706configure
1707generated by GNU Autoconf 2.64
b30fcfae 1708
cd9a469c 1709Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
cd9a469c 1713 exit
a83ffacf 1714fi
cd9a469c 1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_cxx_try_compile LINENO
1759# ----------------------------
1760# Try to compile conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_cxx_try_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794} # ac_fn_cxx_try_compile
1795
13687c85 1796# ac_fn_cxx_try_link LINENO
1797# -------------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_link ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840} # ac_fn_cxx_try_link
1841
cd9a469c 1842# ac_fn_c_try_link LINENO
1843# -----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_link ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886} # ac_fn_c_try_link
1887cat >config.log <<_ACEOF
b30fcfae 1888This file contains any messages produced by compilers while
1889running configure, to aid debugging if configure makes a mistake.
1890
1891It was created by $as_me, which was
cd9a469c 1892generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 1893
1894 $ $0 $@
1895
1896_ACEOF
cd9a469c 1897exec 5>>config.log
b30fcfae 1898{
1899cat <<_ASUNAME
1900## --------- ##
1901## Platform. ##
1902## --------- ##
1903
1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921_ASUNAME
1922
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
cd9a469c 1928 $as_echo "PATH: $as_dir"
1929 done
1930IFS=$as_save_IFS
b30fcfae 1931
1932} >&5
1933
1934cat >&5 <<_ACEOF
1935
1936
1937## ----------- ##
1938## Core tests. ##
1939## ----------- ##
1940
1941_ACEOF
1942
1943
1944# Keep a trace of the command line.
1945# Strip out --no-create and --no-recursion so they do not pile up.
1946# Strip out --silent because we don't want to record it for future runs.
1947# Also quote any args containing shell meta-characters.
1948# Make two passes to allow for proper duplicate-argument suppression.
1949ac_configure_args=
1950ac_configure_args0=
1951ac_configure_args1=
b30fcfae 1952ac_must_keep_next=false
1953for ac_pass in 1 2
1954do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
cd9a469c 1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1964 esac
1965 case $ac_pass in
cd9a469c 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b30fcfae 1967 2)
cd9a469c 1968 as_fn_append ac_configure_args1 " '$ac_arg'"
b30fcfae 1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
cd9a469c 1984 as_fn_append ac_configure_args " '$ac_arg'"
b30fcfae 1985 ;;
1986 esac
1987 done
1988done
cd9a469c 1989{ ac_configure_args0=; unset ac_configure_args0;}
1990{ ac_configure_args1=; unset ac_configure_args1;}
b30fcfae 1991
1992# When interrupted or exit'd, cleanup temporary files, and complete
1993# config.log. We remove comments because anyway the quotes in there
1994# would cause problems or look ugly.
cd9a469c 1995# WARNING: Use '\'' to represent an apostrophe within the trap.
1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b30fcfae 1997trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003## ---------------- ##
2004## Cache variables. ##
2005## ---------------- ##
2006_ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
cd9a469c 2009(
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
b30fcfae 2025 (set) 2>&1 |
cd9a469c 2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
b30fcfae 2028 sed -n \
cd9a469c 2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
b30fcfae 2032 *)
cd9a469c 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 2034 ;;
cd9a469c 2035 esac |
2036 sort
2037)
b30fcfae 2038 echo
2039
2040 cat <<\_ASBOX
2041## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##
2044_ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
cd9a469c 2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
cd9a469c 2058## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##
b30fcfae 2061_ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
cd9a469c 2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##
2079_ASBOX
2080 echo
cd9a469c 2081 cat confdefs.h
b30fcfae 2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
cd9a469c 2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
b30fcfae 2087 } >&5
cd9a469c 2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 2090 exit $exit_status
cd9a469c 2091' 0
b30fcfae 2092for ac_signal in 1 2 13 15; do
cd9a469c 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b30fcfae 2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2098rm -f -r conftest* confdefs.h
2099
2100$as_echo "/* confdefs.h */" > confdefs.h
b30fcfae 2101
2102# Predefined preprocessor variables.
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_NAME "$PACKAGE_NAME"
2106_ACEOF
2107
b30fcfae 2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110_ACEOF
2111
b30fcfae 2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_VERSION "$PACKAGE_VERSION"
2114_ACEOF
a83ffacf 2115
b30fcfae 2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
b30fcfae 2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122_ACEOF
2123
cd9a469c 2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_URL "$PACKAGE_URL"
2126_ACEOF
2127
b30fcfae 2128
2129# Let the site file select an alternate cache file if it wants to.
cd9a469c 2130# Prefer an explicitly selected file to automatically selected ones.
2131ac_site_file1=NONE
2132ac_site_file2=NONE
2133if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
71ab34df 2141fi
cd9a469c 2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144 test "x$ac_site_file" = xNONE && continue
71ab34df 2145 if test -r "$ac_site_file"; then
cd9a469c 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b30fcfae 2148 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 2149 . "$ac_site_file"
2150 fi
2151done
2152
2153if test -r "$cache_file"; then
b30fcfae 2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
cd9a469c 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158$as_echo "$as_me: loading cache $cache_file" >&6;}
b30fcfae 2159 case $cache_file in
cd9a469c 2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
b30fcfae 2162 esac
2163 fi
71ab34df 2164else
cd9a469c 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166$as_echo "$as_me: creating cache $cache_file" >&6;}
b30fcfae 2167 >$cache_file
2168fi
2169
2170# Check that the precious variables saved in the cache have kept the same
2171# value.
2172ac_cache_corrupted=false
cd9a469c 2173for ac_var in $ac_precious_vars; do
b30fcfae 2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
b30fcfae 2178 case $ac_old_set,$ac_new_set in
2179 set,)
cd9a469c 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b30fcfae 2182 ac_cache_corrupted=: ;;
2183 ,set)
cd9a469c 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b30fcfae 2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
cd9a469c 2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b30fcfae 2217 esac
2218 fi
2219done
2220if $ac_cache_corrupted; then
cd9a469c 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
71ab34df 2226fi
cd9a469c 2227## -------------------- ##
2228## Main body of script. ##
2229## -------------------- ##
71ab34df 2230
5084f823 2231ac_ext=c
2232ac_cpp='$CPP $CPPFLAGS'
2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
b30fcfae 2237
2238
2239
b30fcfae 2240
2241
cd2f3773 2242
b30fcfae 2243
4e8a889d 2244
2245progname=$0
2246# if PWD already has a value, it is probably wrong.
2247if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249# Export original configure arguments for use by sub-configures.
2250# Quote arguments with shell meta charatcers.
2251TOPLEVEL_CONFIGURE_ARGUMENTS=
2252set -- "$progname" "$@"
2253for ac_arg
2254do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264done
2265if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267fi
2268# Remove the initial space we just introduced and, as these will be
2269# expanded by make, quote '$'.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
b30fcfae 2272
2273# Find the build, host, and target systems.
71ab34df 2274ac_aux_dir=
cd9a469c 2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
71ab34df 2283done
2284if test -z "$ac_aux_dir"; then
cd9a469c 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
71ab34df 2286fi
cd9a469c 2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
71ab34df 2296
b30fcfae 2297# Make sure we can run config.sub.
cd9a469c 2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
b30fcfae 2321build=$ac_cv_build
cd9a469c 2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
71ab34df 2333
71ab34df 2334
b30fcfae 2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
ae48753c 2338esac
2339
2340
ae48753c 2341
b30fcfae 2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
ae48753c 2345esac
2346
ae48753c 2347
b30fcfae 2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
ae48753c 2352esac
2353
ae48753c 2354
b30fcfae 2355
2356
2357test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
b30fcfae 2360 program_transform_name=s,y,y,
ae48753c 2361
cd9a469c 2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363$as_echo_n "checking host system type... " >&6; }
2364if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
ae48753c 2366else
cd9a469c 2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372fi
b30fcfae 2373
ae48753c 2374fi
cd9a469c 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376$as_echo "$ac_cv_host" >&6; }
2377case $ac_cv_host in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380esac
b30fcfae 2381host=$ac_cv_host
cd9a469c 2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_host
2384shift
2385host_cpu=$1
2386host_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390host_os=$*
2391IFS=$ac_save_IFS
2392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5084f823 2393
2394
cd9a469c 2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396$as_echo_n "checking target system type... " >&6; }
2397if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
b30fcfae 2399else
cd9a469c 2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405fi
b30fcfae 2406
2407fi
cd9a469c 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409$as_echo "$ac_cv_target" >&6; }
2410case $ac_cv_target in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413esac
b30fcfae 2414target=$ac_cv_target
cd9a469c 2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_target
2417shift
2418target_cpu=$1
2419target_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423target_os=$*
2424IFS=$ac_save_IFS
2425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b30fcfae 2426
2427
2428# The aliases save the names the user supplied, while $host etc.
2429# will get canonicalized.
2430test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
cd9a469c 2434
71ab34df 2435test "$program_prefix" != NONE &&
cd9a469c 2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
71ab34df 2437# Use a double $ so make ignores it.
2438test "$program_suffix" != NONE &&
cd9a469c 2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440# Double any \ or $.
b30fcfae 2441# By default was `s,x,x', remove it if useless.
cd9a469c 2442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ae48753c 2444
71ab34df 2445
2446
450e6c84 2447# Get 'install' or 'install-sh' and its variants.
2448# Find a good install program. We prefer a C program (faster),
2449# so one script is as good as another. But avoid the broken or
2450# incompatible versions:
2451# SysV /etc/install, /usr/sbin/install
2452# SunOS /usr/etc/install
2453# IRIX /sbin/install
2454# AIX /bin/install
b30fcfae 2455# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 2459# OS/2's system install, which has a completely different semantic
450e6c84 2460# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2461# Reject install programs that cannot install multiple files.
cd9a469c 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463$as_echo_n "checking for a BSD-compatible install... " >&6; }
450e6c84 2464if test -z "$INSTALL"; then
cd9a469c 2465if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
b30fcfae 2467else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
cd9a469c 2473 # Account for people who put trailing slashes in PATH elements.
2474case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
b30fcfae 2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b30fcfae 2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
450e6c84 2486 if test $ac_prog = install &&
b30fcfae 2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 2488 # AIX install. It has an incompatible calling convention.
2489 :
b30fcfae 2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
450e6c84 2494 else
82eaf560 2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
450e6c84 2507 fi
2508 fi
2509 done
b30fcfae 2510 done
2511 ;;
2512esac
cd9a469c 2513
2514 done
2515IFS=$as_save_IFS
b30fcfae 2516
82eaf560 2517rm -rf conftest.one conftest.two conftest.dir
450e6c84 2518
2519fi
2520 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 2521 INSTALL=$ac_cv_path_install
450e6c84 2522 else
82eaf560 2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
450e6c84 2525 # break other packages using the cache if that directory is
82eaf560 2526 # removed, or if the value is a relative name.
b30fcfae 2527 INSTALL=$ac_install_sh
450e6c84 2528 fi
2529fi
cd9a469c 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531$as_echo "$INSTALL" >&6; }
450e6c84 2532
2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534# It thinks the first close brace ends the variable substitution.
2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
b30fcfae 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 2538
2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
cd9a469c 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542$as_echo_n "checking whether ln works... " >&6; }
2543if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
599a3eac 2545else
2546 rm -f conftestdata_t
2547echo >conftestdata_f
2548if ln conftestdata_f conftestdata_t 2>/dev/null
2549then
2550 acx_cv_prog_LN=ln
2551else
2552 acx_cv_prog_LN=no
2553fi
2554rm -f conftestdata_f conftestdata_t
2555
2556fi
2557if test $acx_cv_prog_LN = no; then
2558 LN="cp"
cd9a469c 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560$as_echo "no, using $LN" >&6; }
599a3eac 2561else
2562 LN="$acx_cv_prog_LN"
cd9a469c 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
599a3eac 2565fi
2566
cd9a469c 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568$as_echo_n "checking whether ln -s works... " >&6; }
b30fcfae 2569LN_S=$as_ln_s
2570if test "$LN_S" = "ln -s"; then
cd9a469c 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572$as_echo "yes" >&6; }
a4af6a58 2573else
cd9a469c 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575$as_echo "no, using $LN_S" >&6; }
5965d276 2576fi
2577
b181f265 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601# Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603case `"$ac_path_SED" --version 2>&1` in
2604*GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606*)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637else
2638 ac_cv_path_SED=$SED
2639fi
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643$as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686 test -n "$AWK" && break
2687done
2688
450e6c84 2689
e8eddfdd 2690srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693# a relative path.
2694if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696fi
2697
71ab34df 2698# Set srcdir to "." if that's what it is.
2699# This is important for multilib support.
2700pwd=`${PWDCMD-pwd}`
71ab34df 2701if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
a8298541 2703fi
2704
71ab34df 2705topsrcdir=$srcpwd
ed37269d 2706
71ab34df 2707extra_host_args=
14ac9144 2708
71ab34df 2709### To add a new directory to the tree, first choose whether it is a target
2710### or a host dependent tool. Then put it into the appropriate list
2711### (library or tools, host or target), doing a dependency sort.
a8298541 2712
b30fcfae 2713# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 2714# configdirs, or target_configdirs; see the serialization section below.
a8298541 2715
b30fcfae 2716# Dependency sorting is only needed when *configuration* must be done in
2717# a particular order. In all cases a dependency should be specified in
71ab34df 2718# the Makefile, whether or not it's implicitly specified here.
a8298541 2719
71ab34df 2720# Double entries in build_configdirs, configdirs, or target_configdirs may
2721# cause circular dependencies and break everything horribly.
a8298541 2722
2f8725b0 2723# these library is used by various programs built for the build
2724# environment
2725#
9245d2c5 2726build_libs="build-libiberty build-libcpp"
2f8725b0 2727
2728# these tools are built for the build environment
4fc99708 2729build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2f8725b0 2730
71ab34df 2731# these libraries are used by various programs built for the host environment
429cca51 2732#f
572cf1f7 2733host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
71ab34df 2734
71ab34df 2735# these tools are built for the host environment
2736# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737# know that we are building the simulator.
2738# binutils, gas and ld appear in that order because it makes sense to run
2739# "make check" in that particular order.
af7c5662 2740# If --enable-gold is used, "gold" may replace "ld".
dcfe52b6 2741host_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 2742
71ab34df 2743# these libraries are built for the target environment, and are built after
2744# the host libraries and the host tools (which may be a cross compiler)
5ab7e123 2745# Note that libiberty is not a target library.
27bfe7b7 2746target_libraries="target-libgcc \
ecd3459e 2747 target-libbacktrace \
71ab34df 2748 target-libgloss \
2749 target-newlib \
a0191bfe 2750 target-libgomp \
4710dd51 2751 target-libcilkrts \
d3a7dd32 2752 target-liboffloadmic \
6db1d2ca 2753 target-libatomic \
4c0315d0 2754 target-libitm \
54d7d5f2 2755 target-libstdc++-v3 \
549e2197 2756 target-libsanitizer \
b710ec85 2757 target-libvtv \
202baac8 2758 target-libmpx \
0d55f4d0 2759 target-libssp \
87969c8c 2760 target-libquadmath \
4ee9c684 2761 target-libgfortran \
38cf534f 2762 target-libffi \
93341878 2763 target-libobjc \
5ff5b630 2764 target-libada \
2765 target-libgo"
71ab34df 2766
328637e8 2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
71ab34df 2769#
328637e8 2770# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2771# list belongs in this list.
71ab34df 2772#
4fc99708 2773target_tools="target-rda"
a8298541 2774
71ab34df 2775################################################################################
a8298541 2776
71ab34df 2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
71ab34df 2782configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2784build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2785
d2d2630b 2786
2787
71ab34df 2788################################################################################
a8298541 2789
71ab34df 2790srcname="gnu development package"
a8298541 2791
71ab34df 2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
a8298541 2794
71ab34df 2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
a8298541 2799else
71ab34df 2800 is_cross_compiler=yes
b30fcfae 2801fi
a8298541 2802
2f61b8ca 2803# Find the build and target subdir names.
6f4f34a7 2804
d3e7b04c 2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2815build_subdir="build-${build_noncanonical}"
b30fcfae 2816
cd9a469c 2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2820else
2821 build_libsubdir="$build_subdir"
cd9a469c 2822fi
2823
c1eb9e31 2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
6f4f34a7 2831# No prefix.
2832target_subdir=${target_noncanonical}
b30fcfae 2833
04a2e841 2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
a8298541 2839
71ab34df 2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
a8298541 2844
71ab34df 2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
3d47fcf5 2849 noconfigdirs="$noconfigdirs ld gold"
a8298541 2850fi
2851
71ab34df 2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
a8298541 2857fi
2858
7bfefa9d 2859use_included_zlib=
6406d366 2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
7bfefa9d 2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
b30fcfae 2872# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2873# it's not even worth trying to configure, much less build, that tool.
a8298541 2874
71ab34df 2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
f843f075 2878 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2879 # We won't be able to build gdbtk without X.
b30fcfae 2880 enable_gdbtk=no
71ab34df 2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
a8298541 2884
6c9785b4 2885# Some are only suitable for cross toolchains.
71ab34df 2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2891esac
a8298541 2892
71ab34df 2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
e8eddfdd 2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
a8298541 2900fi
2901
71ab34df 2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
a8298541 2907
a3d93be3 2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
67cedda8 2910 enableval=$enable_as_accelerator_for;
a3d93be3 2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
1e369e5f 2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
85516948 2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
1e369e5f 2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
85516948 2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
1e369e5f 2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
cd9a469c 2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 2948else
2949 ENABLE_GOLD=no
cd9a469c 2950fi
2951
1e369e5f 2952case "${ENABLE_GOLD}" in
2953 yes|default)
af7c5662 2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
e4c33dd2 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
9d36d513 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
af7c5662 2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
3d47fcf5 2972 case "${target}" in
58f62c51 2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ca7ff757 2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
1e369e5f 2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
af7c5662 2979 ENABLE_GOLD=yes
3d47fcf5 2980 ;;
2981 esac
af7c5662 2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
1e369e5f 2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
85516948 3001 if test x${default_ld} != x; then
1e369e5f 3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
3d47fcf5 3018
afb6adb9 3019# PR gas/19109
3020# Decide the default method for compressing debug sections.
3021# Provide a configure time option to override our default.
3022# Check whether --enable-compressed_debug_sections was given.
3023if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029else
3030 enable_compressed_debug_sections=
3031fi
3032
3033
71ab34df 3034# Configure extra directories which are host specific
a8298541 3035
71ab34df 3036case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039esac
a8298541 3040
ff7dcf6a 3041# A target can indicate whether a language isn't supported for some reason.
3042# Only spaces may be used in this macro; not newlines or tabs.
3043unsupported_languages=
3044
b30fcfae 3045# Remove more programs from consideration, based on the host or
71ab34df 3046# target this usually means that a port of the program doesn't
3047# exist yet.
c7879c37 3048
71ab34df 3049case "${host}" in
b2240ff6 3050 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 3051 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 3052 ;;
71ab34df 3053esac
c7879c37 3054
4ee9c684 3055
d9d975ae 3056# Check whether --enable-libquadmath was given.
3057if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059else
3060 ENABLE_LIBQUADMATH=yes
3061fi
3062
3063if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065fi
3066
3067
3068# Check whether --enable-libquadmath-support was given.
3069if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073fi
3074
3075enable_libquadmath_support=
3076if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078fi
3079
3080
cd9a469c 3081# Check whether --enable-libada was given.
3082if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 3084else
3085 ENABLE_LIBADA=yes
cd9a469c 3086fi
3087
93341878 3088if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 3089 noconfigdirs="$noconfigdirs gnattools"
93341878 3090fi
3091
cd9a469c 3092# Check whether --enable-libssp was given.
3093if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 3095else
3096 ENABLE_LIBSSP=yes
cd9a469c 3097fi
3098
07da5214 3099
a3ba808f 3100# Check whether --enable-libstdcxx was given.
3101if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103else
3104 ENABLE_LIBSTDCXX=default
3105fi
3106
3107if test "${ENABLE_LIBSTDCXX}" = "no" ; then
df148e44 3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a3ba808f 3109fi
3110
d3a7dd32 3111# If this is accelerator compiler and its target is intelmic we enable
3112# target liboffloadmic by default. If this is compiler with offloading
3113# for intelmic we enable host liboffloadmic by default. Otherwise
3114# liboffloadmic is disabled by default.
3115# Check whether --enable-liboffloadmic was given.
3116if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122esac
3123else
67cedda8 3124 if test x"$enable_as_accelerator_for" != x; then
d3a7dd32 3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144fi
3145fi
3146
3147
3148
fdcd05c8 3149# Enable libgomp by default on hosted POSIX systems, and a few others.
50996fe5 3150if test x$enable_libgomp = x ; then
1e8e9920 3151 case "${target}" in
3bef4012 3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3153 ;;
e3a1fe08 3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3155 ;;
5641963c 3156 *-*-solaris2* | *-*-hpux11*)
1e8e9920 3157 ;;
634efbee 3158 *-*-darwin* | *-*-aix*)
1e8e9920 3159 ;;
fdcd05c8 3160 nvptx*-*-*)
3161 ;;
1e8e9920 3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
50996fe5 3166fi
1e8e9920 3167
6db1d2ca 3168# Disable libatomic on unsupported systems.
3169if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172$as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183 fi
3184 fi
3185fi
3186
4710dd51 3187# Disable libcilkrts on unsupported systems.
3188if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191$as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201$as_echo "yes" >&6; }
3202 fi
3203 fi
3204fi
3205
d3a7dd32 3206# Disable liboffloadmic on unsupported systems.
3207if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210$as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
42b15c81 3225# Disable libitm on unsupported systems.
3226if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3229$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3235$as_echo "no" >&6; }
42b15c81 3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3239$as_echo "yes" >&6; }
42b15c81 3240 fi
3241 fi
4c0315d0 3242fi
3243
492e75a7 3244# Disable libsanitizer on unsupported systems.
3245if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248$as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259 fi
3260 fi
3261fi
3262
b710ec85 3263# Disable libvtv on unsupported systems.
3264if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267$as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
6d0992e1 3270 test "$VTV_SUPPORTED" != "yes")
b710ec85 3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 fi
3279 fi
3280fi
3281
202baac8 3282
3283# Enable libmpx on supported systems by request.
3284if test -d ${srcdir}/libmpx; then
067ef0d9 3285 if test x$enable_libmpx = x; then
202baac8 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287$as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
202baac8 3299 fi
3300fi
3301
3302
3303
62f0972f 3304# Disable libquadmath for some systems.
3305case "${target}" in
c36ee471 3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
62f0972f 3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314esac
3315
d5831552 3316# Disable libssp for some systems.
3317case "${target}" in
3318 avr-*-*)
76c19016 3319 # No hosted I/O support.
d5831552 3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
78e515f7 3324 ;;
3325 rl78-*-*)
9d5fd7d0 3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
78e515f7 3329 noconfigdirs="$noconfigdirs target-libssp"
d5831552 3330 ;;
8992df51 3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
d5831552 3335esac
3336
d5831552 3337# Disable libstdc++-v3 for some systems.
a3ba808f 3338# Allow user to override this if they pass --enable-libstdc++-v3
3339if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
b6616c9c 3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
a3ba808f 3355 esac
3356fi
d5831552 3357
3358# Disable Fortran for some systems.
3359case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364esac
3365
38cf534f 3366# Disable libffi for some systems.
3367case "${target}" in
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3376 ;;
3377 *-*-netware*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3382 ;;
3383 *-*-rtems*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3385 ;;
3386 *-*-tpf*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3388 ;;
3389 *-*-uclinux*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3391 ;;
3392 *-*-vxworks*)
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
88afddbc 3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
38cf534f 3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 arm*-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 arm-wince-pe)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 arm*-*-symbianelf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 cris-*-* | crisv32-*-*)
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3416 esac
3417 ;;
3418 hppa*64*-*-hpux*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
3423 hppa*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 ia64*-*-*vms*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 x86_64-*-mingw*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3437 ;;
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 rs6000-*-aix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 ft32-*-*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-lynxos*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454esac
3455
3456# Disable the go frontend on systems where it is known to not work. Please keep
3457# this in sync with contrib/config-list.mk.
3458case "${target}" in
3459*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462esac
3463
a6999726 3464# Disable libgo for some systems where it is known to not work.
3465# For testing, you can easily override this with --enable-libgo.
3466if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479fi
3480
1c5767f1 3481# Default libgloss CPU subdirectory.
3482libgloss_dir="$target_cpu"
4ee9c684 3483
e0942c78 3484case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
e26fddfa 3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
e0942c78 3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518esac
3519
d556f192 3520# Disable newlib and libgloss for various target OSes.
71ab34df 3521case "${target}" in
d556f192 3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
71ab34df 3552 *-*-chorusos)
71559dce 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3554 ;;
d556f192 3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585esac
3586
3587case "${target}" in
3588 *-*-chorusos)
3589 ;;
38f4c967 3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
40c500e1 3598 powerpc-*-darwin*)
dba2c8ea 3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3600 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3601 ;;
ea864ded 3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
3606 x86_64-*-darwin[912]*)
d9f9f3af 3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3609 ;;
fce068fd 3610 *-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3613 ;;
e3a1fe08 3614 *-*-dragonfly*)
e3a1fe08 3615 ;;
c01dd063 3616 *-*-freebsd*)
4ee9c684 3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
4ee9c684 3621 ;;
336577be 3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
336577be 3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
71ab34df 3626 *-*-netbsd*)
71ab34df 3627 ;;
634f7a13 3628 *-*-netware*)
71ab34df 3629 ;;
1d6aa005 3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
71ab34df 3633 *-*-rtems*)
f24be480 3634 noconfigdirs="$noconfigdirs target-libgloss"
d781ea5c 3635 # this is not caught below because this stanza matches earlier
3636 case $target in
3637 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3638 esac
71ab34df 3639 ;;
9f88bc9d 3640 # The tpf target doesn't support gdb yet.
3641 *-*-tpf*)
d556f192 3642 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3643 ;;
688429c4 3644 *-*-uclinux*)
d556f192 3645 noconfigdirs="$noconfigdirs target-rda"
688429c4 3646 ;;
71ab34df 3647 *-*-vxworks*)
71ab34df 3648 ;;
3649 alpha*-dec-osf*)
3650 # ld works, but does not support shared libraries.
71ab34df 3651 # gas doesn't generate exception information.
d556f192 3652 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3653 ;;
3654 alpha*-*-*vms*)
f24be480 3655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3656 ;;
71ab34df 3657 alpha*-*-*)
3658 # newlib is not 64 bit ready
f24be480 3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3660 ;;
71ab34df 3661 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3662 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3663 ;;
194b906d 3664 arc*-*-*)
3665 noconfigdirs="$noconfigdirs sim"
3666 ;;
71ab34df 3667 arm-*-pe*)
f24be480 3668 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3669 ;;
71ab34df 3670 arm-*-riscix*)
71559dce 3671 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3672 ;;
fd28e216 3673 avr-*-*)
3674 if test x${with_avrlibc} != xno; then
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 fi
3677 ;;
71ab34df 3678 c4x-*-* | tic4x-*-*)
71559dce 3679 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3680 ;;
71559dce 3681 tic54x-*-*)
3682 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3683 ;;
71ab34df 3684 d10v-*-*)
71559dce 3685 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3686 ;;
3687 d30v-*-*)
71559dce 3688 noconfigdirs="$noconfigdirs gdb"
71ab34df 3689 ;;
3690 fr30-*-elf*)
f24be480 3691 noconfigdirs="$noconfigdirs gdb"
71ab34df 3692 ;;
6406d366 3693 ft32-*-*)
3694 noconfigdirs="$noconfigdirs target-rda gprof"
3695 ;;
ca2751b6 3696 moxie-*-*)
6406d366 3697 noconfigdirs="$noconfigdirs"
ca2751b6 3698 ;;
71ab34df 3699 h8300*-*-*)
f24be480 3700 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3701 ;;
3702 h8500-*-*)
71559dce 3703 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3704 ;;
e8eddfdd 3705 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3706 ;;
6406d366 3707 hppa*64*-*-hpux*)
3708 noconfigdirs="$noconfigdirs gdb"
3709 ;;
3710 hppa*-*-hpux11*)
3711 noconfigdirs="$noconfigdirs gdb ld"
3712 ;;
6bd59761 3713 hppa*64*-*-linux*)
71ab34df 3714 ;;
99684e84 3715 hppa*-*-linux*)
08261f02 3716 ;;
71ab34df 3717 hppa*-*-*elf* | \
71ab34df 3718 hppa*-*-lites* | \
3719 hppa*-*-openbsd* | \
3720 hppa*64*-*-*)
71ab34df 3721 ;;
1c5767f1 3722 hppa*-*-pro*)
1c5767f1 3723 ;;
71ab34df 3724 hppa*-*-*)
f24be480 3725 noconfigdirs="$noconfigdirs ld"
71ab34df 3726 ;;
4a9237fb 3727 i960-*-*)
71559dce 3728 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3729 ;;
71ab34df 3730 ia64*-*-elf*)
3731 # No gdb support yet.
6c9785b4 3732 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3733 ;;
3734 ia64*-**-hpux*)
1aca86a6 3735 # No ld support yet.
6406d366 3736 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
71ab34df 3737 ;;
8408ca00 3738 ia64*-*-*vms*)
3211401d 3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs libgui itcl ld"
8408ca00 3741 ;;
ec2eb8fb 3742 i[3456789]86-w64-mingw*)
ec2eb8fb 3743 ;;
3744 i[3456789]86-*-mingw*)
d6d689df 3745 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3746 ;;
71ab34df 3747 *-*-cygwin*)
3748 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3749 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3750 # always build newlib if winsup directory is present.
d6d689df 3751 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3752 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3753 elif test -d "$srcdir/newlib"; then
d6d689df 3754 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3755 fi
b30fcfae 3756 ;;
f74ea578 3757 i[3456789]86-*-pe)
17b3d2a8 3758 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3759 ;;
f74ea578 3760 i[3456789]86-*-sco3.2v5*)
71ab34df 3761 # The linker does not yet know about weak symbols in COFF,
3762 # and is not configured to handle mixed ELF and COFF.
71559dce 3763 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3764 ;;
f74ea578 3765 i[3456789]86-*-sco*)
71559dce 3766 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3767 ;;
14f27bc6 3768 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
f74ea578 3771 i[3456789]86-*-sysv4*)
71559dce 3772 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3773 ;;
f74ea578 3774 i[3456789]86-*-beos*)
d556f192 3775 noconfigdirs="$noconfigdirs gdb"
602d002b 3776 ;;
ab0da556 3777 i[3456789]86-*-rdos*)
d556f192 3778 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3779 ;;
71ab34df 3780 mmix-*-*)
f24be480 3781 noconfigdirs="$noconfigdirs gdb"
71ab34df 3782 ;;
957985d9 3783 mt-*-*)
f6fa11cb 3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
71ab34df 3786 powerpc-*-aix*)
3787 # copied from rs6000-*-* entry
d556f192 3788 noconfigdirs="$noconfigdirs gprof"
71ab34df 3789 ;;
6bd59761 3790 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3791 target_configdirs="$target_configdirs target-winsup"
71559dce 3792 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3793 # always build newlib.
3794 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3795 ;;
3796 # This is temporary until we can link against shared libraries
3797 powerpcle-*-solaris*)
71559dce 3798 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3799 ;;
3800 powerpc-*-beos*)
d556f192 3801 noconfigdirs="$noconfigdirs gdb"
71ab34df 3802 ;;
71ab34df 3803 rs6000-*-lynxos*)
d556f192 3804 noconfigdirs="$noconfigdirs gprof"
71ab34df 3805 ;;
3806 rs6000-*-aix*)
d556f192 3807 noconfigdirs="$noconfigdirs gprof"
71ab34df 3808 ;;
3809 rs6000-*-*)
f24be480 3810 noconfigdirs="$noconfigdirs gprof"
71ab34df 3811 ;;
3812 m68k-apollo-*)
71559dce 3813 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3814 ;;
ba2b484f 3815 microblaze*)
f24be480 3816 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3817 ;;
d781ea5c 3818 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
68c9bc25 3819 if test x$with_newlib = xyes; then
3820 noconfigdirs="$noconfigdirs gprof"
3821 fi
68c9bc25 3822 ;;
71ab34df 3823 mips*-*-irix5*)
71559dce 3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3825 ;;
3826 mips*-*-irix6*)
f24be480 3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3828 ;;
71ab34df 3829 mips*-*-bsd*)
d6449910 3830 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
71ab34df 3831 ;;
71ab34df 3832 mips*-*-linux*)
71ab34df 3833 ;;
d6449910 3834 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3835 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3836 noconfigdirs="$noconfigdirs ld gas gprof"
3837 ;;
71ab34df 3838 mips*-*-*)
f24be480 3839 noconfigdirs="$noconfigdirs gprof"
71ab34df 3840 ;;
8ce80784 3841 nvptx*-*-*)
8ce80784 3842 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3843 ;;
d781ea5c 3844 or1k*-*-*)
3845 noconfigdirs="$noconfigdirs gdb"
3846 ;;
9a9b5abf 3847 sh-*-*)
39f6b116 3848 case "${target}" in
3849 sh*-*-elf)
f24be480 3850 ;;
39f6b116 3851 *)
f24be480 3852 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3853 esac
71ab34df 3854 ;;
71ab34df 3855 sparc-*-sunos4*)
d556f192 3856 if test x${is_cross_compiler} = xno ; then
71ab34df 3857 use_gnu_ld=no
3858 fi
3859 ;;
fa0a53e3 3860 tic6x-*-*)
ccdfa490 3861 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3862 ;;
2da35515 3863 tilepro*-*-* | tilegx*-*-*)
e5fa74b2 3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
71ab34df 3866 v810-*-*)
71559dce 3867 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3868 ;;
3869 vax-*-*)
f24be480 3870 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3871 ;;
71ab34df 3872esac
a8298541 3873
71ab34df 3874# If we aren't building newlib, then don't build libgloss, since libgloss
3875# depends upon some newlib header files.
3876case "${noconfigdirs}" in
3877 *target-libgloss*) ;;
3878 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3879esac
3880
71ab34df 3881# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3882host_makefile_frag=/dev/null
3883if test -d ${srcdir}/config ; then
3884case "${host}" in
f74ea578 3885 i[3456789]86-*-msdosdjgpp*)
71ab34df 3886 host_makefile_frag="config/mh-djgpp"
3887 ;;
3888 *-cygwin*)
45043b2b 3889
cd9a469c 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3891$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3892echo a >cygwin-cat-check
82d97a59 3893if test `cat cygwin-cat-check` = a ; then
45043b2b 3894 rm cygwin-cat-check
cd9a469c 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896$as_echo "yes" >&6; }
45043b2b 3897else
3898 rm cygwin-cat-check
cd9a469c 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901 as_fn_error "The cat command does not ignore carriage return characters.
45043b2b 3902 Please either mount the build directory in binary mode or run the following
3903 commands before running any configure script:
3904set -o igncr
3905export SHELLOPTS
cd9a469c 3906 " "$LINENO" 5
45043b2b 3907fi
3908
71ab34df 3909 host_makefile_frag="config/mh-cygwin"
3910 ;;
5a92bcc2 3911 *-mingw*)
70d8e49e 3912 host_makefile_frag="config/mh-mingw"
a378fc89 3913 ;;
bed3355c 3914 alpha*-linux*)
539ded76 3915 host_makefile_frag="config/mh-alpha-linux"
3916 ;;
d2b94e36 3917 hppa*-hp-hpux10*)
d2b94e36 3918 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 3919 ;;
b2240ff6 3920 hppa*-hp-hpux*)
d2b94e36 3921 host_makefile_frag="config/mh-pa"
3922 ;;
3923 hppa*-*)
3924 host_makefile_frag="config/mh-pa"
3925 ;;
16463c8d 3926 *-*-darwin*)
3927 host_makefile_frag="config/mh-darwin"
0222d984 3928 ;;
9d44a802 3929 powerpc-*-aix*)
3930 host_makefile_frag="config/mh-ppc-aix"
3931 ;;
3932 rs6000-*-aix*)
3933 host_makefile_frag="config/mh-ppc-aix"
3934 ;;
71ab34df 3935esac
3936fi
3937
8e1fea1a 3938if test "${build}" != "${host}" ; then
93c5e793 3939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 3941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 3942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
93c5e793 3943 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 3944 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
93c5e793 3945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3951else
3952 AR_FOR_BUILD="\$(AR)"
3953 AS_FOR_BUILD="\$(AS)"
a4af6a58 3954 CC_FOR_BUILD="\$(CC)"
93c5e793 3955 CXX_FOR_BUILD="\$(CXX)"
93c5e793 3956 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 3957 GOC_FOR_BUILD="\$(GOC)"
93c5e793 3958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3959 LD_FOR_BUILD="\$(LD)"
3960 NM_FOR_BUILD="\$(NM)"
3961 RANLIB_FOR_BUILD="\$(RANLIB)"
3962 WINDRES_FOR_BUILD="\$(WINDRES)"
3963 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 3964fi
3965
3966ac_ext=c
b30fcfae 3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3973set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975$as_echo_n "checking for $ac_word... " >&6; }
3976if test "${ac_cv_prog_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
b30fcfae 3978else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981else
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
cd9a469c 3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3991 break 2
3992 fi
3993done
cd9a469c 3994 done
3995IFS=$as_save_IFS
b30fcfae 3996
3997fi
3998fi
3999CC=$ac_cv_prog_CC
4000if test -n "$CC"; then
cd9a469c 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002$as_echo "$CC" >&6; }
b30fcfae 4003else
cd9a469c 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
b30fcfae 4006fi
4007
cd9a469c 4008
b30fcfae 4009fi
4010if test -z "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
a4af6a58 4012 # Extract the first word of "gcc", so it can be a program name with args.
4013set dummy gcc; ac_word=$2
cd9a469c 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015$as_echo_n "checking for $ac_word... " >&6; }
4016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
b30fcfae 4018else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
cd9a469c 4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4029 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4031 break 2
4032 fi
4033done
cd9a469c 4034 done
4035IFS=$as_save_IFS
b30fcfae 4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
cd9a469c 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042$as_echo "$ac_ct_CC" >&6; }
b30fcfae 4043else
cd9a469c 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
b30fcfae 4046fi
4047
cd9a469c 4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052yes:)
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055ac_tool_warned=yes ;;
4056esac
4057 CC=$ac_ct_CC
4058 fi
b30fcfae 4059else
4060 CC="$ac_cv_prog_CC"
4061fi
4062
4063if test -z "$CC"; then
cd9a469c 4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 4066set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
8e1fea1a 4071else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
b30fcfae 4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
cd9a469c 4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4082 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4084 break 2
4085 fi
4086done
cd9a469c 4087 done
4088IFS=$as_save_IFS
b30fcfae 4089
a83ffacf 4090fi
a83ffacf 4091fi
b30fcfae 4092CC=$ac_cv_prog_CC
ae48753c 4093if test -n "$CC"; then
cd9a469c 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095$as_echo "$CC" >&6; }
5084f823 4096else
cd9a469c 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
5084f823 4099fi
4100
5084f823 4101
cd9a469c 4102 fi
b30fcfae 4103fi
8e1fea1a 4104if test -z "$CC"; then
4105 # Extract the first word of "cc", so it can be a program name with args.
4106set dummy cc; ac_word=$2
cd9a469c 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
4109if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
8e1fea1a 4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
a83ffacf 4115 ac_prog_rejected=no
b30fcfae 4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
cd9a469c 4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4124 ac_prog_rejected=yes
4125 continue
4126 fi
4127 ac_cv_prog_CC="cc"
cd9a469c 4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4129 break 2
4130 fi
4131done
cd9a469c 4132 done
4133IFS=$as_save_IFS
b30fcfae 4134
8e1fea1a 4135if test $ac_prog_rejected = yes; then
4136 # We found a bogon in the path, so make sure we never use it.
4137 set dummy $ac_cv_prog_CC
4138 shift
b30fcfae 4139 if test $# != 0; then
8e1fea1a 4140 # We chose a different compiler from the bogus one.
4141 # However, it has the same basename, so the bogon will be chosen
4142 # first if we set CC to just the basename; use the full file name.
4143 shift
b30fcfae 4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 4145 fi
4146fi
4147fi
4148fi
b30fcfae 4149CC=$ac_cv_prog_CC
8e1fea1a 4150if test -n "$CC"; then
cd9a469c 4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152$as_echo "$CC" >&6; }
8e1fea1a 4153else
cd9a469c 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
8e1fea1a 4156fi
4157
cd9a469c 4158
b30fcfae 4159fi
4160if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
cd9a469c 4162 for ac_prog in cl.exe
b30fcfae 4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
8e1fea1a 4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
b30fcfae 4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
cd9a469c 4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4183 break 2
4184 fi
4185done
cd9a469c 4186 done
4187IFS=$as_save_IFS
b30fcfae 4188
8e1fea1a 4189fi
4190fi
b30fcfae 4191CC=$ac_cv_prog_CC
8e1fea1a 4192if test -n "$CC"; then
cd9a469c 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194$as_echo "$CC" >&6; }
b1660f25 4195else
cd9a469c 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
a4af6a58 4198fi
ae48753c 4199
cd9a469c 4200
b30fcfae 4201 test -n "$CC" && break
4202 done
ae48753c 4203fi
b30fcfae 4204if test -z "$CC"; then
4205 ac_ct_CC=$CC
cd9a469c 4206 for ac_prog in cl.exe
b30fcfae 4207do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209set dummy $ac_prog; ac_word=$2
cd9a469c 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
a83ffacf 4214else
b30fcfae 4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 4217else
b30fcfae 4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
cd9a469c 4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4225 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4227 break 2
4228 fi
4229done
cd9a469c 4230 done
4231IFS=$as_save_IFS
b30fcfae 4232
ae48753c 4233fi
4234fi
b30fcfae 4235ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236if test -n "$ac_ct_CC"; then
cd9a469c 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4238$as_echo "$ac_ct_CC" >&6; }
a4af6a58 4239else
cd9a469c 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
ae48753c 4242fi
a83ffacf 4243
cd9a469c 4244
b30fcfae 4245 test -n "$ac_ct_CC" && break
4246done
4247
cd9a469c 4248 if test "x$ac_ct_CC" = x; then
4249 CC=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 CC=$ac_ct_CC
4258 fi
b30fcfae 4259fi
4260
4261fi
4262
4263
cd9a469c 4264test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error "no acceptable C compiler found in \$PATH
4267See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4268
4269# Provide some information about the compiler.
cd9a469c 4270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4271set X $ac_compile
4272ac_compiler=$2
4273for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280$as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4282 ac_status=$?
cd9a469c 4283 if test -s conftest.err; then
4284 sed '10a\
4285... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4288 rm -f conftest.er1 conftest.err
4289 fi
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292done
b30fcfae 4293
cd9a469c 4294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305ac_clean_files_save=$ac_clean_files
cd9a469c 4306ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b30fcfae 4307# Try to create an executable without -o first, disregard a.out.
4308# It will help us diagnose broken compilers, and finding out an intuition
4309# of exeext.
cd9a469c 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311$as_echo_n "checking for C compiler default output file name... " >&6; }
4312ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4313
4314# The possible output files:
4315ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4316
4317ac_rmfiles=
4318for ac_file in $ac_files
4319do
4320 case $ac_file in
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4323 esac
4324done
4325rm -f $ac_rmfiles
4326
4327if { { ac_try="$ac_link_default"
4328case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link_default") 2>&5
b30fcfae 4335 ac_status=$?
cd9a469c 4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340# in a Makefile. We should not override ac_cv_exeext if it was cached,
4341# so that the user can short-circuit this test for compilers unknown to
4342# Autoconf.
4343for ac_file in $ac_files ''
b30fcfae 4344do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
cd9a469c 4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4348 ;;
4349 [ab].out )
4350 # We found the default executable, but exeext='' is most
4351 # certainly right.
4352 break;;
4353 *.* )
cd9a469c 4354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4355 then :; else
4356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 fi
4358 # We set ac_cv_exeext here because the later test for it is not
4359 # safe: cross compilers may not add the suffix if given an `-o'
4360 # argument, so we may need to know it at that point already.
4361 # Even if this section looks crufty: it has the advantage of
4362 # actually working.
b30fcfae 4363 break;;
4364 * )
4365 break;;
4366 esac
4367done
cd9a469c 4368test "$ac_cv_exeext" = no && ac_cv_exeext=
4369
b30fcfae 4370else
cd9a469c 4371 ac_file=''
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4374$as_echo "$ac_file" >&6; }
4375if test -z "$ac_file"; then :
4376 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4377sed 's/^/| /' conftest.$ac_ext >&5
4378
cd9a469c 4379{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381{ as_fn_set_status 77
4382as_fn_error "C compiler cannot create executables
4383See \`config.log' for more details." "$LINENO" 5; }; }
b30fcfae 4384fi
b30fcfae 4385ac_exeext=$ac_cv_exeext
b30fcfae 4386
cd9a469c 4387# Check that the compiler produces executables we can run. If not, either
b30fcfae 4388# the compiler is broken, or we cross compile.
cd9a469c 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4390$as_echo_n "checking whether the C compiler works... " >&6; }
b30fcfae 4391# If not cross compiling, check that we can run a simple program.
4392if test "$cross_compiling" != yes; then
4393 if { ac_try='./$ac_file'
cd9a469c 4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
b30fcfae 4401 ac_status=$?
cd9a469c 4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
b30fcfae 4404 cross_compiling=no
4405 else
4406 if test "$cross_compiling" = maybe; then
4407 cross_compiling=yes
4408 else
cd9a469c 4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411as_fn_error "cannot run C compiled programs.
b30fcfae 4412If you meant to cross compile, use \`--host'.
cd9a469c 4413See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4414 fi
4415 fi
4416fi
cd9a469c 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418$as_echo "yes" >&6; }
b30fcfae 4419
cd9a469c 4420rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b30fcfae 4421ac_clean_files=$ac_clean_files_save
cd9a469c 4422# Check that the compiler produces executables we can run. If not, either
b30fcfae 4423# the compiler is broken, or we cross compile.
cd9a469c 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425$as_echo_n "checking whether we are cross compiling... " >&6; }
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4427$as_echo "$cross_compiling" >&6; }
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430$as_echo_n "checking for suffix of executables... " >&6; }
4431if { { ac_try="$ac_link"
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") 2>&5
b30fcfae 4439 ac_status=$?
cd9a469c 4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
b30fcfae 4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444# work properly (i.e., refer to `conftest.exe'), while it won't with
4445# `rm'.
4446for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
cd9a469c 4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4451 break;;
4452 * ) break;;
4453 esac
4454done
ae48753c 4455else
cd9a469c 4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458as_fn_error "cannot compute suffix of executables: cannot compile and link
4459See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4460fi
b30fcfae 4461rm -f conftest$ac_cv_exeext
cd9a469c 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4464
4465rm -f conftest.$ac_ext
4466EXEEXT=$ac_cv_exeext
4467ac_exeext=$EXEEXT
cd9a469c 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469$as_echo_n "checking for suffix of object files... " >&6; }
4470if test "${ac_cv_objext+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
b30fcfae 4472else
cd9a469c 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4474/* end confdefs.h. */
4475
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484rm -f conftest.o conftest.obj
cd9a469c 4485if { { ac_try="$ac_compile"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_compile") 2>&5
b30fcfae 4493 ac_status=$?
cd9a469c 4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 for ac_file in conftest.o conftest.obj conftest.*; do
4497 test -f "$ac_file" || continue;
b30fcfae 4498 case $ac_file in
cd9a469c 4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4501 break;;
4502 esac
4503done
4504else
cd9a469c 4505 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4506sed 's/^/| /' conftest.$ac_ext >&5
4507
cd9a469c 4508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510as_fn_error "cannot compute suffix of object files: cannot compile
4511See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4512fi
b30fcfae 4513rm -f conftest.$ac_cv_objext conftest.$ac_ext
4514fi
cd9a469c 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4516$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4517OBJEXT=$ac_cv_objext
4518ac_objext=$OBJEXT
cd9a469c 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4521if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
b30fcfae 4523else
cd9a469c 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4525/* end confdefs.h. */
4526
4527int
4528main ()
4529{
4530#ifndef __GNUC__
4531 choke me
4532#endif
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
cd9a469c 4538if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4539 ac_compiler_gnu=yes
4540else
cd9a469c 4541 ac_compiler_gnu=no
b30fcfae 4542fi
cd9a469c 4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4544ac_cv_c_compiler_gnu=$ac_compiler_gnu
4545
4546fi
cd9a469c 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4549if test $ac_compiler_gnu = yes; then
4550 GCC=yes
4551else
4552 GCC=
4553fi
b30fcfae 4554ac_test_CFLAGS=${CFLAGS+set}
4555ac_save_CFLAGS=$CFLAGS
cd9a469c 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4557$as_echo_n "checking whether $CC accepts -g... " >&6; }
4558if test "${ac_cv_prog_cc_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4566/* end confdefs.h. */
4567
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
cd9a469c 4576if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4577 ac_cv_prog_cc_g=yes
4578else
cd9a469c 4579 CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581/* end confdefs.h. */
4582
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"; then :
4592
4593else
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
ae48753c 4598
cd9a469c 4599int
4600main ()
4601{
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4609fi
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4611fi
cd9a469c 4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4613fi
cd9a469c 4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4618$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4619if test "$ac_test_CFLAGS" = set; then
b30fcfae 4620 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4621elif test $ac_cv_prog_cc_g = yes; then
4622 if test "$GCC" = yes; then
4623 CFLAGS="-g -O2"
4624 else
4625 CFLAGS="-g"
4626 fi
4627else
4628 if test "$GCC" = yes; then
4629 CFLAGS="-O2"
4630 else
4631 CFLAGS=
4632 fi
4633fi
cd9a469c 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4636if test "${ac_cv_prog_cc_c89+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
b30fcfae 4638else
cd9a469c 4639 ac_cv_prog_cc_c89=no
b30fcfae 4640ac_save_CC=$CC
cd9a469c 4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4642/* end confdefs.h. */
4643#include <stdarg.h>
4644#include <stdio.h>
4645#include <sys/types.h>
4646#include <sys/stat.h>
4647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4648struct buf { int x; };
4649FILE * (*rcsopen) (struct buf *, struct stat *, int);
4650static char *e (p, i)
4651 char **p;
4652 int i;
4653{
4654 return p[i];
4655}
4656static char *f (char * (*g) (char **, int), char **p, ...)
4657{
4658 char *s;
4659 va_list v;
4660 va_start (v,p);
4661 s = g (p, va_arg (v,int));
4662 va_end (v);
4663 return s;
4664}
4665
4666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4667 function prototypes and stuff, but not '\xHH' hex character constants.
4668 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4669 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4671 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4672 that's true only with -std. */
b30fcfae 4673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4674
cd9a469c 4675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4676 inside strings and character constants. */
4677#define FOO(x) 'x'
4678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4679
b30fcfae 4680int test (int i, double x);
4681struct s1 {int (*f) (int a);};
4682struct s2 {int (*f) (double a);};
4683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4684int argc;
4685char **argv;
4686int
4687main ()
4688{
4689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4690 ;
4691 return 0;
4692}
4693_ACEOF
cd9a469c 4694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4696do
4697 CC="$ac_save_CC $ac_arg"
cd9a469c 4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4700fi
cd9a469c 4701rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4703done
cd9a469c 4704rm -f conftest.$ac_ext
b30fcfae 4705CC=$ac_save_CC
4706
4707fi
cd9a469c 4708# AC_CACHE_VAL
4709case "x$ac_cv_prog_cc_c89" in
4710 x)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4712$as_echo "none needed" >&6; } ;;
4713 xno)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715$as_echo "unsupported" >&6; } ;;
b30fcfae 4716 *)
cd9a469c 4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4720esac
cd9a469c 4721if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4722
5084f823 4723fi
4724
5084f823 4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
cd9a469c 4731ac_ext=cpp
5084f823 4732ac_cpp='$CXXCPP $CPPFLAGS'
4733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4736if test -z "$CXX"; then
4737 if test -n "$CCC"; then
4738 CXX=$CCC
4739 else
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4742 do
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_CXX+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
5084f823 4749else
4750 if test -n "$CXX"; then
4751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
cd9a469c 4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084f823 4760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4762 break 2
4763 fi
4764done
cd9a469c 4765 done
4766IFS=$as_save_IFS
8e1fea1a 4767
eae5b2bc 4768fi
4769fi
4770CXX=$ac_cv_prog_CXX
4771if test -n "$CXX"; then
cd9a469c 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4773$as_echo "$CXX" >&6; }
eae5b2bc 4774else
cd9a469c 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
eae5b2bc 4777fi
4778
cd9a469c 4779
eae5b2bc 4780 test -n "$CXX" && break
4781 done
4782fi
4783if test -z "$CXX"; then
4784 ac_ct_CXX=$CXX
cd9a469c 4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4786do
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788set dummy $ac_prog; ac_word=$2
cd9a469c 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790$as_echo_n "checking for $ac_word... " >&6; }
4791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
eae5b2bc 4793else
4794 if test -n "$ac_ct_CXX"; then
4795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4796else
4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
cd9a469c 4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eae5b2bc 4804 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4806 break 2
4807 fi
4808done
cd9a469c 4809 done
4810IFS=$as_save_IFS
eae5b2bc 4811
4812fi
4813fi
4814ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4815if test -n "$ac_ct_CXX"; then
cd9a469c 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4817$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4818else
cd9a469c 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
eae5b2bc 4821fi
4822
cd9a469c 4823
eae5b2bc 4824 test -n "$ac_ct_CXX" && break
4825done
eae5b2bc 4826
cd9a469c 4827 if test "x$ac_ct_CXX" = x; then
4828 CXX="g++"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831yes:)
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834ac_tool_warned=yes ;;
4835esac
4836 CXX=$ac_ct_CXX
4837 fi
eae5b2bc 4838fi
4839
cd9a469c 4840 fi
4841fi
eae5b2bc 4842# Provide some information about the compiler.
cd9a469c 4843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4844set X $ac_compile
4845ac_compiler=$2
4846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4855 ac_status=$?
cd9a469c 4856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 fi
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
eae5b2bc 4866
cd9a469c 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4868$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
eae5b2bc 4871else
cd9a469c 4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878#ifndef __GNUC__
4879 choke me
4880#endif
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
cd9a469c 4886if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4887 ac_compiler_gnu=yes
4888else
cd9a469c 4889 ac_compiler_gnu=no
eae5b2bc 4890fi
cd9a469c 4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4892ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4893
4894fi
cd9a469c 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4896$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4897if test $ac_compiler_gnu = yes; then
4898 GXX=yes
4899else
4900 GXX=
4901fi
eae5b2bc 4902ac_test_CXXFLAGS=${CXXFLAGS+set}
4903ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4905$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4906if test "${ac_cv_prog_cxx_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4910 ac_cxx_werror_flag=yes
4911 ac_cv_prog_cxx_g=no
4912 CXXFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4914/* end confdefs.h. */
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
cd9a469c 4924if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4925 ac_cv_prog_cxx_g=yes
4926else
cd9a469c 4927 CXXFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4929/* end confdefs.h. */
cd9a469c 4930
eae5b2bc 4931int
4932main ()
4933{
cd9a469c 4934
eae5b2bc 4935 ;
4936 return 0;
4937}
4938_ACEOF
cd9a469c 4939if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 4940
cd9a469c 4941else
4942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 CXXFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4945/* end confdefs.h. */
cd9a469c 4946
eae5b2bc 4947int
4948main ()
4949{
cd9a469c 4950
eae5b2bc 4951 ;
4952 return 0;
4953}
4954_ACEOF
cd9a469c 4955if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_cv_prog_cxx_g=yes
570af75a 4957fi
cd9a469c 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4966$as_echo "$ac_cv_prog_cxx_g" >&6; }
4967if test "$ac_test_CXXFLAGS" = set; then
4968 CXXFLAGS=$ac_save_CXXFLAGS
4969elif test $ac_cv_prog_cxx_g = yes; then
4970 if test "$GXX" = yes; then
4971 CXXFLAGS="-g -O2"
4972 else
4973 CXXFLAGS="-g"
4974 fi
4975else
4976 if test "$GXX" = yes; then
4977 CXXFLAGS="-O2"
4978 else
4979 CXXFLAGS=
4980 fi
eae5b2bc 4981fi
eae5b2bc 4982ac_ext=c
4983ac_cpp='$CPP $CPPFLAGS'
4984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989# We must set the default linker to the linker used by gcc for the correct
4990# operation of libtool. If LD is not defined and we are using gcc, try to
4991# set the LD default to the ld used by gcc.
4992if test -z "$LD"; then
4993 if test "$GCC" = yes; then
4994 case $build in
4995 *-*-mingw*)
4996 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4997 *)
4998 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4999 esac
5000 case $gcc_prog_ld in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 LD="$gcc_prog_ld" ;;
5004 esac
5005 fi
2f8725b0 5006fi
5007
13687c85 5008# Check whether -static-libstdc++ -static-libgcc is supported.
5009have_static_libs=no
5010if test "$GCC" = yes; then
5011 saved_LDFLAGS="$LDFLAGS"
5012
5013 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5015$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5016 ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
74f1ea54 5025
5026#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5027#error -static-libstdc++ not implemented
5028#endif
13687c85 5029int main() {}
5030_ACEOF
5031if ac_fn_cxx_try_link "$LINENO"; then :
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033$as_echo "yes" >&6; }; have_static_libs=yes
5034else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 LDFLAGS="$saved_LDFLAGS"
5048fi
5049
2f8725b0 5050
5051
8e1fea1a 5052
b30fcfae 5053if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 5055set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
8e1fea1a 5060else
5061 if test -n "$GNATBIND"; then
5062 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5063else
b30fcfae 5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
cd9a469c 5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5071 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5073 break 2
5074 fi
5075done
cd9a469c 5076 done
5077IFS=$as_save_IFS
b30fcfae 5078
8e1fea1a 5079fi
5080fi
b30fcfae 5081GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 5082if test -n "$GNATBIND"; then
cd9a469c 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5084$as_echo "$GNATBIND" >&6; }
8e1fea1a 5085else
cd9a469c 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
8e1fea1a 5088fi
5089
cd9a469c 5090
b30fcfae 5091fi
8e1fea1a 5092if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 5093 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 5094 # Extract the first word of "gnatbind", so it can be a program name with args.
5095set dummy gnatbind; ac_word=$2
cd9a469c 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
8e1fea1a 5100else
b30fcfae 5101 if test -n "$ac_ct_GNATBIND"; then
5102 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 5103else
b30fcfae 5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
cd9a469c 5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5111 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5113 break 2
5114 fi
5115done
cd9a469c 5116 done
5117IFS=$as_save_IFS
b30fcfae 5118
8e1fea1a 5119fi
5120fi
b30fcfae 5121ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5122if test -n "$ac_ct_GNATBIND"; then
cd9a469c 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5124$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 5125else
cd9a469c 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
8e1fea1a 5128fi
5129
cd9a469c 5130 if test "x$ac_ct_GNATBIND" = x; then
5131 GNATBIND="no"
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137ac_tool_warned=yes ;;
5138esac
5139 GNATBIND=$ac_ct_GNATBIND
5140 fi
8e1fea1a 5141else
b30fcfae 5142 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 5143fi
5144
b30fcfae 5145if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 5147set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
a18b2c54 5152else
5153 if test -n "$GNATMAKE"; then
5154 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5155else
b30fcfae 5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
cd9a469c 5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5163 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5165 break 2
5166 fi
5167done
cd9a469c 5168 done
5169IFS=$as_save_IFS
b30fcfae 5170
a18b2c54 5171fi
5172fi
b30fcfae 5173GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 5174if test -n "$GNATMAKE"; then
cd9a469c 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5176$as_echo "$GNATMAKE" >&6; }
a18b2c54 5177else
cd9a469c 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
a18b2c54 5180fi
5181
cd9a469c 5182
b30fcfae 5183fi
a18b2c54 5184if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 5185 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 5186 # Extract the first word of "gnatmake", so it can be a program name with args.
5187set dummy gnatmake; ac_word=$2
cd9a469c 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
a18b2c54 5192else
b30fcfae 5193 if test -n "$ac_ct_GNATMAKE"; then
5194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 5195else
b30fcfae 5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
cd9a469c 5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5205 break 2
5206 fi
5207done
cd9a469c 5208 done
5209IFS=$as_save_IFS
b30fcfae 5210
a18b2c54 5211fi
5212fi
b30fcfae 5213ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5214if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5216$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 5217else
cd9a469c 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
a18b2c54 5220fi
5221
cd9a469c 5222 if test "x$ac_ct_GNATMAKE" = x; then
5223 GNATMAKE="no"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226yes:)
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229ac_tool_warned=yes ;;
5230esac
5231 GNATMAKE=$ac_ct_GNATMAKE
5232 fi
a18b2c54 5233else
b30fcfae 5234 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 5235fi
5236
cd9a469c 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5238$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5239if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
8e1fea1a 5241else
5242 cat >conftest.adb <<EOF
5243procedure conftest is begin null; end conftest;
5244EOF
5245acx_cv_cc_gcc_supports_ada=no
5246# There is a bug in old released versions of GCC which causes the
5247# driver to exit successfully when the appropriate language module
5248# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249# Therefore we must check for the error message as well as an
5250# unsuccessful exit.
216de822 5251# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252# given a .adb file, but produce no object file. So we must check
5253# if an object file was really produced to guard against this.
8e1fea1a 5254errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 5255if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 5256 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 5257fi
5258rm -f conftest.*
5259fi
cd9a469c 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 5262
9d5fd7d0 5263if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 5264 have_gnat=yes
5265else
5266 have_gnat=no
5267fi
5268
cd9a469c 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5270$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5271if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
7bcc3b4a 5273else
5274 echo abfoo >t1
5275 echo cdfoo >t2
efbca99c 5276 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 5277 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5278 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5279 :
5280 else
5281 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5282 fi
5283 fi
7bcc3b4a 5284 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5285 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 5286 :
7bcc3b4a 5287 else
5288 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5289 fi
5290 fi
5291 rm t1 t2
5292
5293fi
cd9a469c 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5295$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5296do_compare="$gcc_cv_prog_cmp_skip"
5297
5298
8e1fea1a 5299
6c59dfa4 5300# Check whether --enable-bootstrap was given.
5301if test "${enable_bootstrap+set}" = set; then :
5302 enableval=$enable_bootstrap;
5303else
5304 enable_bootstrap=default
5305fi
5306
5307
5308# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5309if test -r $srcdir/gcc/configure; then
5310 have_compiler=yes
5311else
5312 have_compiler=no
5313fi
6c59dfa4 5314
5315case "$have_compiler:$host:$target:$enable_bootstrap" in
5316 *:*:*:no) ;;
5317
5318 # Default behavior. Enable bootstrap if we have a compiler
5319 # and we are in a native configuration.
5320 yes:$build:$build:default)
5321 enable_bootstrap=yes ;;
5322
5323 *:*:*:default)
5324 enable_bootstrap=no ;;
5325
5326 # We have a compiler and we are in a native configuration, bootstrap is ok
5327 yes:$build:$build:yes)
5328 ;;
5329
5330 # Other configurations, but we have a compiler. Assume the user knows
5331 # what he's doing.
5332 yes:*:*:yes)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5334$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5335 ;;
5336
5337 # No compiler: if they passed --enable-bootstrap explicitly, fail
5338 no:*:*:yes)
5339 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5340
5341 # Fail if wrong command line
5342 *)
5343 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5344 ;;
5345esac
5346
27590679 5347# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5348# C++98 compiler can still start the bootstrap.
5349if test "$enable_bootstrap:$GXX" = "yes:yes"; then
dce53dbc 5350 CXX="$CXX -std=gnu++98"
27590679 5351fi
5352
c3fc6a63 5353# Used for setting $lt_cv_objdir
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5355$as_echo_n "checking for objdir... " >&6; }
5356if test "${lt_cv_objdir+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 rm -f .libs 2>/dev/null
5360mkdir .libs 2>/dev/null
5361if test -d .libs; then
5362 lt_cv_objdir=.libs
5363else
5364 # MS-DOS does not allow filenames that begin with a dot.
5365 lt_cv_objdir=_libs
5366fi
5367rmdir .libs 2>/dev/null
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5370$as_echo "$lt_cv_objdir" >&6; }
5371objdir=$lt_cv_objdir
5372
5373
5374
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define LT_OBJDIR "$lt_cv_objdir/"
5379_ACEOF
5380
5381
5382
7601a55c 5383# Check for GMP, MPFR and MPC
16de6a81 5384gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5385gmpinc=
d45318b3 5386have_gmp=no
7601a55c 5387
5388# Specify a location for mpc
5389# check for this first so it ends up on the link line before mpfr.
5390
cd9a469c 5391# Check whether --with-mpc was given.
5392if test "${with_mpc+set}" = set; then :
5393 withval=$with_mpc;
5394fi
7601a55c 5395
7601a55c 5396
73f813e1 5397# Check whether --with-mpc-include was given.
cd9a469c 5398if test "${with_mpc_include+set}" = set; then :
5399 withval=$with_mpc_include;
5400fi
7601a55c 5401
7601a55c 5402
73f813e1 5403# Check whether --with-mpc-lib was given.
cd9a469c 5404if test "${with_mpc_lib+set}" = set; then :
5405 withval=$with_mpc_lib;
5406fi
7601a55c 5407
7601a55c 5408
5409if test "x$with_mpc" != x; then
16de6a81 5410 gmplibs="-L$with_mpc/lib $gmplibs"
5411 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5412fi
5413if test "x$with_mpc_include" != x; then
16de6a81 5414 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5415fi
5416if test "x$with_mpc_lib" != x; then
16de6a81 5417 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5418fi
5419if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5421 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5422 # Do not test the mpc version. Assume that it is sufficient, since
5423 # it is in the source tree, and the library has not been built yet
5424 # but it would be included on the link line in the version check below
5425 # hence making the test fail.
16de6a81 5426 have_gmp=yes
7601a55c 5427fi
d45318b3 5428
5ca838b8 5429# Specify a location for mpfr
5430# check for this first so it ends up on the link line before gmp.
b30fcfae 5431
cd9a469c 5432# Check whether --with-mpfr-dir was given.
5433if test "${with_mpfr_dir+set}" = set; then :
5434 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5435Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5436fi
5437
5ca838b8 5438
5439
cd9a469c 5440# Check whether --with-mpfr was given.
5441if test "${with_mpfr+set}" = set; then :
5442 withval=$with_mpfr;
5443fi
b30fcfae 5444
5ca838b8 5445
73f813e1 5446# Check whether --with-mpfr-include was given.
cd9a469c 5447if test "${with_mpfr_include+set}" = set; then :
5448 withval=$with_mpfr_include;
5449fi
b30fcfae 5450
a5144c1d 5451
73f813e1 5452# Check whether --with-mpfr-lib was given.
cd9a469c 5453if test "${with_mpfr_lib+set}" = set; then :
5454 withval=$with_mpfr_lib;
5455fi
a5144c1d 5456
5ca838b8 5457
5458if test "x$with_mpfr" != x; then
5459 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5460 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5461fi
a5144c1d 5462if test "x$with_mpfr_include" != x; then
16de6a81 5463 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5464fi
5465if test "x$with_mpfr_lib" != x; then
5466 gmplibs="-L$with_mpfr_lib $gmplibs"
5467fi
d45318b3 5468if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
efa1150d 5469 # MPFR v3.1.0 moved the sources into a src sub-directory.
5470 if ! test -d ${srcdir}/mpfr/src; then
5471 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5472 fi
4b2246ef 5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5475 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
d45318b3 5476 # Do not test the mpfr version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5481fi
5ca838b8 5482
4ee9c684 5483# Specify a location for gmp
b30fcfae 5484
cd9a469c 5485# Check whether --with-gmp-dir was given.
5486if test "${with_gmp_dir+set}" = set; then :
5487 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5488Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5489fi
5490
4ee9c684 5491
4ee9c684 5492
cd9a469c 5493# Check whether --with-gmp was given.
5494if test "${with_gmp+set}" = set; then :
5495 withval=$with_gmp;
5496fi
b30fcfae 5497
4ee9c684 5498
73f813e1 5499# Check whether --with-gmp-include was given.
cd9a469c 5500if test "${with_gmp_include+set}" = set; then :
5501 withval=$with_gmp_include;
5502fi
b30fcfae 5503
a5144c1d 5504
73f813e1 5505# Check whether --with-gmp-lib was given.
cd9a469c 5506if test "${with_gmp_lib+set}" = set; then :
5507 withval=$with_gmp_lib;
5508fi
a5144c1d 5509
5510
4ee9c684 5511
5ca838b8 5512if test "x$with_gmp" != x; then
5513 gmplibs="-L$with_gmp/lib $gmplibs"
5514 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5515fi
a5144c1d 5516if test "x$with_gmp_include" != x; then
5517 gmpinc="-I$with_gmp_include $gmpinc"
5518fi
5519if test "x$with_gmp_lib" != x; then
5520 gmplibs="-L$with_gmp_lib $gmplibs"
5521fi
d45318b3 5522if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5523 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5524 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5525 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5526 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e4128452 5527 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 5528 # Do not test the gmp version. Assume that it is sufficient, since
5529 # it is in the source tree, and the library has not been built yet
5530 # but it would be included on the link line in the version check below
5531 # hence making the test fail.
5532 have_gmp=yes
5533fi
4ee9c684 5534
16c9b2e3 5535if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5536 have_gmp=yes
5537 saved_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5539 # Check for the recommended and required versions of GMP.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5541$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5542
5543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5544/* end confdefs.h. */
5545#include "gmp.h"
5546int
5547main ()
5548{
5549
5550 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5551 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
f819bb73 5552 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
17b6993a 5553 choke me
5554 #endif
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5562/* end confdefs.h. */
17b6993a 5563#include <gmp.h>
b30fcfae 5564int
5565main ()
5566{
4ee9c684 5567
17b6993a 5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5571 choke me
5572 #endif
b30fcfae 5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
cd9a469c 5578if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
17b6993a 5581else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583$as_echo "buggy but acceptable" >&6; }
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5586else
cd9a469c 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5589fi
cd9a469c 5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5591
7601a55c 5592 # If we have GMP, check the MPFR version.
d45318b3 5593 if test x"$have_gmp" = xyes; then
17b6993a 5594 # Check for the recommended and required versions of MPFR.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5596$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5598/* end confdefs.h. */
6a086156 5599#include <gmp.h>
d45318b3 5600 #include <mpfr.h>
b30fcfae 5601int
5602main ()
5603{
112f3d57 5604
cb1d9044 5605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
d45318b3 5606 choke me
5607 #endif
b30fcfae 5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
cd9a469c 5613if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5615/* end confdefs.h. */
0157cc75 5616#include <gmp.h>
d45318b3 5617 #include <mpfr.h>
b30fcfae 5618int
5619main ()
5620{
0157cc75 5621
17b6993a 5622 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5623 choke me
5624 #endif
7601a55c 5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
cd9a469c 5630if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632$as_echo "yes" >&6; }
7601a55c 5633else
cd9a469c 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5635$as_echo "buggy but acceptable" >&6; }
7601a55c 5636fi
cd9a469c 5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5638else
cd9a469c 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }; have_gmp=no
7601a55c 5641fi
cd9a469c 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5643 fi
5644
5645 # Check for the MPC header version.
16de6a81 5646 if test x"$have_gmp" = xyes ; then
17b6993a 5647 # Check for the recommended and required versions of MPC.
cd9a469c 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5649$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5651/* end confdefs.h. */
5652#include <mpc.h>
5653int
5654main ()
5655{
5656
17b6993a 5657 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 choke me
5659 #endif
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668#include <mpc.h>
5669int
5670main ()
5671{
5672
5673 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5674 choke me
5675 #endif
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
cd9a469c 5681if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5683$as_echo "yes" >&6; }
17b6993a 5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686$as_echo "buggy but acceptable" >&6; }
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5689else
cd9a469c 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5691$as_echo "no" >&6; }; have_gmp=no
7601a55c 5692fi
cd9a469c 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5694 fi
5695
5696 # Now check the MPFR library.
5697 if test x"$have_gmp" = xyes; then
5698 saved_LIBS="$LIBS"
5699 LIBS="$LIBS $gmplibs"
16de6a81 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5701$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5703/* end confdefs.h. */
16de6a81 5704#include <mpc.h>
7601a55c 5705int
5706main ()
5707{
5708
5709 mpfr_t n;
5710 mpfr_t x;
16de6a81 5711 mpc_t c;
7601a55c 5712 int t;
5713 mpfr_init (n);
5714 mpfr_init (x);
5715 mpfr_atan2 (n, n, x, GMP_RNDN);
5716 mpfr_erfc (n, x, GMP_RNDN);
5717 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5718 mpfr_clear(n);
5719 mpfr_clear(x);
5720 mpc_init2 (c, 53);
5721 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5722 mpc_cosh (c, c, MPC_RNDNN);
5723 mpc_pow (c, c, c, MPC_RNDNN);
5724 mpc_acosh (c, c, MPC_RNDNN);
5725 mpc_clear (c);
b30fcfae 5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
cd9a469c 5731if ac_fn_c_try_link "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
b30fcfae 5734else
cd9a469c 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5737fi
cd9a469c 5738rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
7601a55c 5740 LIBS="$saved_LIBS"
5741 fi
5742
d45318b3 5743 CFLAGS="$saved_CFLAGS"
4ee9c684 5744
17b6993a 5745# The library versions listed in the error message below should match
5746# the HARD-minimums enforced above.
d45318b3 5747 if test x$have_gmp != xyes; then
cb1d9044 5748 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
16de6a81 5749Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5750their locations. Source code for these libraries can be found at
5751their respective hosting sites as well as at
5752ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5753http://gcc.gnu.org/install/prerequisites.html for additional info. If
5754you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5755make sure that you have installed both the libraries and the header
5756files. They may be located in separate packages." "$LINENO" 5
d45318b3 5757 fi
6a086156 5758fi
5759
7601a55c 5760# Flags needed for both GMP, MPFR and/or MPC.
5761
5762
4ee9c684 5763
5764
5765
bff7ea4a 5766
e4128452 5767
13687c85 5768# Libraries to use for stage1 or when not bootstrapping.
7ab76cec 5769
13687c85 5770# Check whether --with-stage1-libs was given.
5771if test "${with_stage1_libs+set}" = set; then :
5772 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5773 stage1_libs=
7ab76cec 5774 else
13687c85 5775 stage1_libs=$withval
7ab76cec 5776 fi
5777else
9d71bbdc 5778 stage1_libs=
cd9a469c 5779fi
5780
7ab76cec 5781
5782
13687c85 5783# Linker flags to use for stage1 or when not bootstrapping.
7ab76cec 5784
13687c85 5785# Check whether --with-stage1-ldflags was given.
5786if test "${with_stage1_ldflags+set}" = set; then :
5787 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5788 stage1_ldflags=
7ab76cec 5789 else
13687c85 5790 stage1_ldflags=$withval
7ab76cec 5791 fi
5792else
13687c85 5793 stage1_ldflags=
5794 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5795 # if supported. But if the user explicitly specified the libraries to use,
5796 # trust that they are doing what they want.
5797 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5798 stage1_ldflags="-static-libstdc++ -static-libgcc"
5799 fi
cd9a469c 5800fi
5801
7ab76cec 5802
5803
9d71bbdc 5804# Libraries to use for stage2 and later builds.
7ab76cec 5805
cd9a469c 5806# Check whether --with-boot-libs was given.
5807if test "${with_boot_libs+set}" = set; then :
5808 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5809 poststage1_libs=
5810 else
5811 poststage1_libs=$withval
5812 fi
5813else
9d71bbdc 5814 poststage1_libs=
cd9a469c 5815fi
5816
7ab76cec 5817
5818
d6dfe18a 5819# Linker flags to use for stage2 and later builds.
5820
5821# Check whether --with-boot-ldflags was given.
5822if test "${with_boot_ldflags+set}" = set; then :
5823 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5824 poststage1_ldflags=
5825 else
5826 poststage1_ldflags=$withval
5827 fi
5828else
5829 poststage1_ldflags=
7deb2d70 5830 # In stages 2 and 3, default to linking libstdc++ and libgcc
5831 # statically. But if the user explicitly specified the libraries to
5832 # use, trust that they are doing what they want.
5833 if test "$poststage1_libs" = ""; then
d6dfe18a 5834 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5835 fi
5836fi
5837
5838
5839
71130ef8 5840# GCC GRAPHITE dependency isl.
572cf1f7 5841# Basic setup is inlined here, actual checks are in config/isl.m4
255b6be7 5842
5843
87e20041 5844# Check whether --with-isl was given.
5845if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
cd9a469c 5847fi
255b6be7 5848
255b6be7 5849
429cca51 5850# Treat --without-isl as a request to disable
83d54ac4 5851# GRAPHITE support and skip all following checks.
429cca51 5852if test "x$with_isl" != "xno"; then
71130ef8 5853 # Check for isl
83d54ac4 5854
5855
87e20041 5856# Check whether --with-isl-include was given.
5857if test "${with_isl_include+set}" = set; then :
5858 withval=$with_isl_include;
cd9a469c 5859fi
5860
255b6be7 5861
87e20041 5862# Check whether --with-isl-lib was given.
5863if test "${with_isl_lib+set}" = set; then :
5864 withval=$with_isl_lib;
cd9a469c 5865fi
255b6be7 5866
255b6be7 5867
87e20041 5868 # Check whether --enable-isl-version-check was given.
5869if test "${enable_isl_version_check+set}" = set; then :
5870 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5871else
5872 ENABLE_ISL_CHECK=yes
062b4a94 5873fi
5874
5875
87e20041 5876 # Initialize isllibs and islinc.
5877 case $with_isl in
5878 no)
5879 isllibs=
5880 islinc=
5881 ;;
5882 "" | yes)
5883 ;;
5884 *)
5885 isllibs="-L$with_isl/lib"
5886 islinc="-I$with_isl/include"
5887 ;;
5888 esac
5889 if test "x${with_isl_include}" != x ; then
5890 islinc="-I$with_isl_include"
5891 fi
5892 if test "x${with_isl_lib}" != x; then
5893 isllibs="-L$with_isl_lib"
5894 fi
5895 if test "x${islinc}" = x && test "x${isllibs}" = x \
5896 && test -d ${srcdir}/isl; then
5897 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5898 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5899 ENABLE_ISL_CHECK=no
7458b15a 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5901$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
87e20041 5902 fi
062b4a94 5903
429cca51 5904 isllibs="${isllibs} -lisl"
5905
062b4a94 5906
062b4a94 5907
078393c7 5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
07ae8272 5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
078393c7 5916
ae5394fd 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5918$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
b6de67fd 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ac3b11e 5920/* end confdefs.h. */
7458b15a 5921#include <isl/ctx.h>
6ac3b11e 5922int
5923main ()
5924{
7458b15a 5925isl_ctx_get_max_operations (isl_ctx_alloc ());
6ac3b11e 5926 ;
5927 return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"; then :
078393c7 5931 gcc_cv_isl=yes
6ac3b11e 5932else
5933 gcc_cv_isl=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
078393c7 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5938$as_echo "$gcc_cv_isl" >&6; }
5939
7458b15a 5940 if test "${gcc_cv_isl}" = no ; then
ae5394fd 5941 { $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
5942$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
7458b15a 5943 fi
5944
ae5394fd 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5946$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
45fc5243 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949#include <isl/schedule.h>
5950int
5951main ()
5952{
5953isl_options_set_schedule_serialize_sccs (NULL, 0);
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_link "$LINENO"; then :
5959 ac_has_isl_options_set_schedule_serialize_sccs=yes
5960else
5961 ac_has_isl_options_set_schedule_serialize_sccs=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5966$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5967
5968 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5969 islver="0.15"
5970
5971 fi
5972
078393c7 5973 CFLAGS=$_isl_saved_CFLAGS
5974 LDFLAGS=$_isl_saved_LDFLAGS
5975 LIBS=$_isl_saved_LIBS
5976 fi
5977
5978
255b6be7 5979
255b6be7 5980
87e20041 5981
5982
87e20041 5983 if test "x${with_isl}" = xno; then
5984 graphite_requested=no
5985 elif test "x${with_isl}" != x \
5986 || test "x${with_isl_include}" != x \
5987 || test "x${with_isl_lib}" != x ; then
5988 graphite_requested=yes
5989 else
5990 graphite_requested=no
062b4a94 5991 fi
5362e323 5992
5362e323 5993
5994
87e20041 5995 if test "${gcc_cv_isl}" = no ; then
5996 isllibs=
5997 islinc=
5998 fi
5999
6000 if test "${graphite_requested}" = yes \
6001 && test "x${isllibs}" = x \
6002 && test "x${islinc}" = x ; then
255b6be7 6003
71130ef8 6004 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
87e20041 6005 fi
255b6be7 6006
a3c81e03 6007
a3c81e03 6008fi
6009
71130ef8 6010# If the isl check failed, disable builds of in-tree variant of isl
83d54ac4 6011if test "x$with_isl" = xno ||
83d54ac4 6012 test "x$gcc_cv_isl" = xno; then
572cf1f7 6013 noconfigdirs="$noconfigdirs isl"
83d54ac4 6014 islinc=
bacb15cb 6015fi
6016
83d54ac4 6017
6018
6019
7bfefa9d 6020# Check for LTO support.
6021# Check whether --enable-lto was given.
6022if test "${enable_lto+set}" = set; then :
6023 enableval=$enable_lto; enable_lto=$enableval
6024else
6025 enable_lto=yes; default_enable_lto=yes
6026fi
6027
6028
1a4f45ec 6029
9bdbb0bc 6030
6031
6032target_elf=no
6033case $target in
6034 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6035 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
cb7a0f1d 6036 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
0f769573 6037 nvptx-*-none)
9bdbb0bc 6038 target_elf=no
6039 ;;
6040 *)
6041 target_elf=yes
6042 ;;
6043esac
6044
6045if test $target_elf = yes; then :
25630dc7 6046 # ELF platforms build the lto-plugin always.
6047 build_lto_plugin=yes
9bdbb0bc 6048
9bdbb0bc 6049else
6050 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6051 case $target in
7aa50266 6052 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
25630dc7 6053 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6054 *) enable_lto=no ;;
6055 esac
9bdbb0bc 6056 else
62932e4d 6057 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6058 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6059 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6060 # warn during gcc/ subconfigure; unless you're bootstrapping with
6061 # -flto it won't be needed until after installation anyway.
6062 case $target in
7aa50266 6063 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9bdbb0bc 6064 *) if test x"$enable_lto" = x"yes"; then
6065 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6066 fi
6067 ;;
6068 esac
6069 fi
ca42e774 6070 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6071 # Build it unless LTO was explicitly disabled.
ca42e774 6072 case $target in
25630dc7 6073 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6074 *) ;;
6075 esac
25630dc7 6076
9bdbb0bc 6077fi
6078
7bfefa9d 6079
1015a063 6080# Check whether --enable-linker-plugin-configure-flags was given.
6081if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6083else
6084 extra_linker_plugin_configure_flags=
6085fi
6086
6087
6088# Check whether --enable-linker-plugin-flags was given.
6089if test "${enable_linker_plugin_flags+set}" = set; then :
6090 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6091else
6092 extra_linker_plugin_flags=
6093fi
6094
6095
6096
255b6be7 6097
2b15d2ba 6098# By default, C and C++ are the only stage 1 languages.
9c3a0a29 6099stage1_languages=,c,
2d64c2fd 6100
7ab76cec 6101# Target libraries that we bootstrap.
5c96a839 6102bootstrap_target_libs=,target-libgcc,
7ab76cec 6103
8e1fea1a 6104# Figure out what language subdirectories are present.
6105# Look if the user specified --enable-languages="..."; if not, use
6106# the environment variable $LANGUAGES if defined. $LANGUAGES might
6107# go away some day.
6108# NB: embedded tabs in this IF block -- do not untabify
6109if test -d ${srcdir}/gcc; then
6110 if test x"${enable_languages+set}" != xset; then
6111 if test x"${LANGUAGES+set}" = xset; then
6112 enable_languages="${LANGUAGES}"
e757a6a8 6113 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8e1fea1a 6114 else
6115 enable_languages=all
6116 fi
6117 else
6118 if test x"${enable_languages}" = x ||
6119 test x"${enable_languages}" = xyes;
6120 then
e757a6a8 6121 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8e1fea1a 6122 exit 1
6123 fi
6124 fi
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6126
2c718da0 6127 # 'f95' is the old name for the 'fortran' language. We issue a warning
6128 # and make the substitution.
6129 case ,${enable_languages}, in
6130 *,f95,*)
e757a6a8 6131 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2c718da0 6132 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6133 ;;
6134 esac
6135
2b15d2ba 6136 # If bootstrapping, C++ must be enabled.
6137 case ",$enable_languages,:$enable_bootstrap" in
6138 *,c++,*:*) ;;
6139 *:yes)
6c59dfa4 6140 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6141 enable_languages="${enable_languages},c++"
6142 else
2b15d2ba 6143 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6c59dfa4 6144 fi
6145 ;;
6146 esac
6147
8e1fea1a 6148 # First scan to see if an enabled language requires some other language.
6149 # We assume that a given config-lang.in will list all the language
6150 # front ends it requires, even if some are required indirectly.
6151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6152 case ${lang_frag} in
6153 ..) ;;
6154 # The odd quoting in the next line works around
6155 # an apparent bug in bash 1.12 on linux.
6156 ${srcdir}/gcc/[*]/config-lang.in) ;;
6157 *)
101ddbe4 6158 # From the config-lang.in, get $language, $lang_requires, and
6159 # $lang_requires_boot_languages.
8e1fea1a 6160 language=
6161 lang_requires=
101ddbe4 6162 lang_requires_boot_languages=
8e1fea1a 6163 . ${lang_frag}
101ddbe4 6164 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6165 case ,${enable_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6168 *,$language,*)
6169 echo " \`$other' language required by \`$language'; enabling" 1>&2
6170 enable_languages="${enable_languages},${other}"
6171 ;;
6172 esac
6173 done
101ddbe4 6174 for other in ${lang_requires_boot_languages} ; do
6175 if test "$other" != "c"; then
6176 case ,${enable_stage1_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6179 *)
6180 case ,${enable_languages}, in
6181 *,$language,*)
6182 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6183 enable_stage1_languages="$enable_stage1_languages,${other}"
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 done
8e1fea1a 6190 ;;
6191 esac
6192 done
6193
9c3a0a29 6194 new_enable_languages=,c,
7bfefa9d 6195
6196 # If LTO is enabled, add the LTO front end.
7bfefa9d 6197 if test "$enable_lto" = "yes" ; then
d6ef094a 6198 case ,${enable_languages}, in
6199 *,lto,*) ;;
6200 *) enable_languages="${enable_languages},lto" ;;
6201 esac
ca42e774 6202 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6203 configdirs="$configdirs lto-plugin"
7bfefa9d 6204 fi
6205 fi
6206
dd87c525 6207 # If we're building an offloading compiler, add the LTO front end.
6208 if test x"$enable_as_accelerator_for" != x ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6213 fi
6214
8e1fea1a 6215 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6216 potential_languages=,c,
8e1fea1a 6217
604a285a 6218 enabled_target_libs=
6219 disabled_target_libs=
6220
8e1fea1a 6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
b30fcfae 6228 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6229 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6230 language=
6231 target_libs=
6232 lang_dirs=
5dee13c2 6233 subdir_requires=
9c3a0a29 6234 boot_language=no
6235 build_by_default=yes
8e1fea1a 6236 . ${lang_frag}
9c3a0a29 6237 if test x${language} = x; then
6238 echo "${lang_frag} doesn't set \$language." 1>&2
6239 exit 1
6240 fi
6241
ef3c41c7 6242 if test "$language" = "c++"; then
2b15d2ba 6243 boot_language=yes
7ab76cec 6244 fi
6245
a2ecd49c 6246 add_this_lang=no
9c3a0a29 6247 case ,${enable_languages}, in
6248 *,${language},*)
e53d55e7 6249 # Language was explicitly selected; include it
6250 # unless it is C, which is enabled by default.
6251 if test "$language" != "c"; then
6252 add_this_lang=yes
6253 fi
8e1fea1a 6254 ;;
9c3a0a29 6255 *,all,*)
6256 # 'all' was selected, select it if it is a default language
a2ecd49c 6257 if test "$language" != "c"; then
6258 add_this_lang=${build_by_default}
6259 fi
8e1fea1a 6260 ;;
6261 esac
4ee9c684 6262
5dee13c2 6263 # Disable languages that need other directories if these aren't available.
9333ae0b 6264 for i in $subdir_requires; do
3891e7d9 6265 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 6266 case ,${enable_languages}, in
6267 *,${language},*)
6268 # Specifically requested language; tell them.
cd9a469c 6269 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6270 ;;
6271 *)
6272 # Silently disable.
9c3a0a29 6273 add_this_lang=unsupported
5dee13c2 6274 ;;
6275 esac
6276 done
6277
9c3a0a29 6278 # Disable Ada if no preexisting GNAT is available.
6279 case ,${enable_languages},:${language}:${have_gnat} in
6280 *,${language},*:ada:no)
6281 # Specifically requested language; tell them.
cd9a469c 6282 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6283 ;;
6284 *:ada:no)
6285 # Silently disable.
6286 add_this_lang=unsupported
6287 ;;
6288 esac
6289
ff7dcf6a 6290 # Disable a language that is unsupported by the target.
6291 case " $unsupported_languages " in
6292 *" $language "*)
9c3a0a29 6293 add_this_lang=unsupported
ff7dcf6a 6294 ;;
6295 esac
6296
4ee9c684 6297 case $add_this_lang in
9c3a0a29 6298 unsupported)
8e1fea1a 6299 # Remove language-dependent dirs.
604a285a 6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6302 ;;
9c3a0a29 6303 no)
6304 # Remove language-dependent dirs; still show language as supported.
604a285a 6305 disabled_target_libs="$disabled_target_libs $target_libs"
6306 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6307 potential_languages="${potential_languages}${language},"
6308 ;;
6309 yes)
6310 new_enable_languages="${new_enable_languages}${language},"
6311 potential_languages="${potential_languages}${language},"
2d64c2fd 6312 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6313 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6314 case "${boot_language}:,$enable_stage1_languages," in
6315 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6316 # Add to (comma-separated) list of stage 1 languages.
32027446 6317 case ",$stage1_languages," in
6318 *,$language,* | ,yes, | ,all,) ;;
6319 *) stage1_languages="${stage1_languages}${language}," ;;
6320 esac
7ab76cec 6321 # We need to bootstrap any supporting libraries.
6322 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6323 ;;
6324 esac
6325 ;;
8e1fea1a 6326 esac
6327 ;;
6328 esac
6329 done
6330
604a285a 6331 # Add target libraries which are only needed for disabled languages
6332 # to noconfigdirs.
6333 if test -n "$disabled_target_libs"; then
6334 for dir in $disabled_target_libs; do
6335 case " $enabled_target_libs " in
6336 *" ${dir} "*) ;;
6337 *) noconfigdirs="$noconfigdirs $dir" ;;
6338 esac
6339 done
6340 fi
6341
cd9a469c 6342 # Check whether --enable-stage1-languages was given.
6343if test "${enable_stage1_languages+set}" = set; then :
6344 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6345 ,no,|,,)
6346 # Set it to something that will have no effect in the loop below
6347 enable_stage1_languages=c ;;
6348 ,yes,)
6349 enable_stage1_languages=`echo $new_enable_languages | \
6350 sed -e "s/^,//" -e "s/,$//" ` ;;
6351 *,all,*)
6352 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6353 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6354 esac
6355
6356 # Add "good" languages from enable_stage1_languages to stage1_languages,
6357 # while "bad" languages go in missing_languages. Leave no duplicates.
6358 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6359 case $potential_languages in
6360 *,$i,*)
6361 case $stage1_languages in
6362 *,$i,*) ;;
6363 *) stage1_languages="$stage1_languages$i," ;;
6364 esac ;;
6365 *)
6366 case $missing_languages in
6367 *,$i,*) ;;
6368 *) missing_languages="$missing_languages$i," ;;
6369 esac ;;
6370 esac
6371 done
cd9a469c 6372fi
6373
9c3a0a29 6374
6375 # Remove leading/trailing commas that were added for simplicity
6376 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6377 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6378 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6380
8e1fea1a 6381 if test "x$missing_languages" != x; then
cd9a469c 6382 as_fn_error "
e8bfe1fa 6383The following requested languages could not be built: ${missing_languages}
cd9a469c 6384Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6385 fi
8e1fea1a 6386 if test "x$new_enable_languages" != "x$enable_languages"; then
6387 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6388 enable_languages="$new_enable_languages"
8e1fea1a 6389 fi
9c3a0a29 6390
b30fcfae 6391
b0e9b581 6392 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6393fi
6394
50996fe5 6395# Handle --disable-<component> generically.
6396for dir in $configdirs $build_configdirs $target_configdirs ; do
6397 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6398 varname=`echo $dirname | sed -e s/+/_/g`
6399 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6400 noconfigdirs="$noconfigdirs $dir"
6401 fi
6402done
6403
03869f98 6404# Check for Boehm's garbage collector
6405# Check whether --enable-objc-gc was given.
6406if test "${enable_objc_gc+set}" = set; then :
baf71228 6407 enableval=$enable_objc_gc;
6408fi
6409
6410
6411# Check whether --with-target-bdw-gc was given.
6412if test "${with_target_bdw_gc+set}" = set; then :
6413 withval=$with_target_bdw_gc;
6414fi
6415
6416
6417# Check whether --with-target-bdw-gc-include was given.
6418if test "${with_target_bdw_gc_include+set}" = set; then :
6419 withval=$with_target_bdw_gc_include;
6420fi
6421
6422
6423# Check whether --with-target-bdw-gc-lib was given.
6424if test "${with_target_bdw_gc_lib+set}" = set; then :
6425 withval=$with_target_bdw_gc_lib;
6426fi
6427
6428
6429case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6431$as_echo_n "checking for bdw garbage collector... " >&6; }
6432 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
74dfdbe3 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6434$as_echo "using bdw-gc in default locations" >&6; }
baf71228 6435 else
6436 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6437 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6438 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6439 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6442$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6443 fi
6444 fi
03869f98 6445esac
6446
d3a7dd32 6447# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
b33ca042 6448case ,${enable_languages}, in
df148e44 6449 *,c++,*)
6450 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6451 case "${noconfigdirs}" in
6452 *target-libstdc++-v3*)
6453 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6454 ;;
6455 *) ;;
6456 esac
6457 ;;
b33ca042 6458 *)
d3a7dd32 6459 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
b33ca042 6460 ;;
6461esac
6462
e8eddfdd 6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
8e1fea1a 6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
e8eddfdd 6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
8e1fea1a 6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
8e1fea1a 6502# Quietly strip out all directories which aren't configurable in this tree.
6503# This relies on all configurable subdirectories being autoconfiscated, which
6504# is now the case.
2f8725b0 6505build_configdirs_all="$build_configdirs"
6506build_configdirs=
6507for i in ${build_configdirs_all} ; do
b30fcfae 6508 j=`echo $i | sed -e s/build-//g`
2f8725b0 6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512done
6513
8e1fea1a 6514configdirs_all="$configdirs"
6515configdirs=
6516for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520done
2f8725b0 6521
8e1fea1a 6522target_configdirs_all="$target_configdirs"
6523target_configdirs=
6524for i in ${target_configdirs_all} ; do
b30fcfae 6525 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529done
6530
1015a063 6531# libiberty-linker-plugin is special: it doesn't have its own source directory,
6532# so we have to add it after the preceding checks.
6533if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6534then
6535 case " $configdirs " in
6536 *" libiberty "*)
6537 # If we can build libiberty, we can also build libiberty-linker-plugin.
6538 configdirs="$configdirs libiberty-linker-plugin"
6539 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6540 --with-libiberty=../libiberty-linker-plugin";;
6541 *)
6542 as_fn_error "libiberty missing" "$LINENO" 5;;
6543 esac
6544fi
6545
944792ef 6546# Sometimes we have special requirements for the host libiberty.
6547extra_host_libiberty_configure_flags=
c850ece7 6548extra_host_zlib_configure_flags=
944792ef 6549case " $configdirs " in
6550 *" lto-plugin "* | *" libcc1 "*)
6551 # When these are to be built as shared libraries, the same applies to
6552 # libiberty.
6553 extra_host_libiberty_configure_flags=--enable-shared
6554 ;;
c850ece7 6555 *" bfd "*)
6556 # When bfd is to be built as a shared library, the same applies to
6557 # zlib.
6558 if test "$enable_shared" = "yes"; then
6559 extra_host_zlib_configure_flags=--enable-host-shared
6560 fi
6561 ;;
944792ef 6562esac
6563
6564
c850ece7 6565
8e1fea1a 6566# Produce a warning message for the subdirs we can't configure.
6567# This isn't especially interesting in the Cygnus tree, but in the individual
6568# FSF releases, it's important to let people know when their machine isn't
6569# supported by the one or two programs in a package.
6570
6571if test -n "${notsupp}" && test -z "${norecursion}" ; then
6572 # If $appdirs is non-empty, at least one of those directories must still
6573 # be configured, or we error out. (E.g., if the gas release supports a
6574 # specified target in some subdirs but not the gas subdir, we shouldn't
6575 # pretend that all is well.)
6576 if test -n "$appdirs" ; then
6577 for dir in $appdirs ; do
6578 if test -r $dir/Makefile.in ; then
6579 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 appdirs=""
6581 break
6582 fi
2f8725b0 6583 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6584 appdirs=""
6585 break
6586 fi
6587 fi
6588 done
6589 if test -n "$appdirs" ; then
6590 echo "*** This configuration is not supported by this package." 1>&2
6591 exit 1
6592 fi
6593 fi
6594 # Okay, some application will build, or we don't care to check. Still
6595 # notify of subdirs not getting built.
6596 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6597 echo " ${notsupp}" 1>&2
6598 echo " (Any other directories should still work fine.)" 1>&2
6599fi
6600
6601case "$host" in
6602 *msdosdjgpp*)
6603 enable_gdbtk=no ;;
6604esac
6605
eae5b2bc 6606# To find our prefix, in gcc_cv_tool_prefix.
6607
6608# The user is always right.
6609if test "${PATH_SEPARATOR+set}" != set; then
6610 echo "#! /bin/sh" >conf$$.sh
6611 echo "exit 0" >>conf$$.sh
6612 chmod +x conf$$.sh
6613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6614 PATH_SEPARATOR=';'
6615 else
6616 PATH_SEPARATOR=:
6617 fi
6618 rm -f conf$$.sh
6619fi
6620
6621
6622
6623if test "x$exec_prefix" = xNONE; then
6624 if test "x$prefix" = xNONE; then
6625 gcc_cv_tool_prefix=$ac_default_prefix
6626 else
6627 gcc_cv_tool_prefix=$prefix
6628 fi
6629else
6630 gcc_cv_tool_prefix=$exec_prefix
6631fi
6632
6633# If there is no compiler in the tree, use the PATH only. In any
6634# case, if there is no compiler in the tree nobody should use
6635# AS_FOR_TARGET and LD_FOR_TARGET.
6636if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6637 gcc_version=`cat $srcdir/gcc/BASE-VER`
6638 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6639 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6640 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6643 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6644else
6645 gcc_cv_tool_dirs=
6646fi
6647
6648if test x$build = x$target && test -n "$md_exec_prefix"; then
6649 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6650fi
6651
6652
6653
8e1fea1a 6654copy_dirs=
6655
b30fcfae 6656
cd9a469c 6657# Check whether --with-build-sysroot was given.
6658if test "${with_build_sysroot+set}" = set; then :
6659 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6660 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6661 fi
6662else
6663 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6664fi
ffa8502d 6665
6666
5f1f2de5 6667
cd9a469c 6668
6669# Check whether --with-debug-prefix-map was given.
6670if test "${with_debug_prefix_map+set}" = set; then :
6671 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6672 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6673 for debug_map in $withval; do
6674 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6675 done
6676 fi
6677else
6678 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6679fi
6680
5f1f2de5 6681
6682
c898f165 6683# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6684# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6685# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6686# We want to ensure that TARGET libraries (which we know are built with
6687# gcc) are built with "-O2 -g", so include those options when setting
6688# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6689if test "x$CFLAGS_FOR_TARGET" = x; then
f5fad380 6690 if test "x${is_cross_compiler}" = xyes; then
6691 CFLAGS_FOR_TARGET="-g -O2"
6692 else
6693 CFLAGS_FOR_TARGET=$CFLAGS
6694 case " $CFLAGS " in
6695 *" -O2 "*) ;;
6696 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6697 esac
6698 case " $CFLAGS " in
6699 *" -g "* | *" -g3 "*) ;;
6700 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6701 esac
6702 fi
c898f165 6703fi
6704
6705
6706if test "x$CXXFLAGS_FOR_TARGET" = x; then
f5fad380 6707 if test "x${is_cross_compiler}" = xyes; then
6708 CXXFLAGS_FOR_TARGET="-g -O2"
6709 else
6710 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6711 case " $CXXFLAGS " in
6712 *" -O2 "*) ;;
6713 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6714 esac
6715 case " $CXXFLAGS " in
6716 *" -g "* | *" -g3 "*) ;;
6717 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 esac
6719 fi
c898f165 6720fi
6721
6722
ed9516f5 6723
6724
8e1fea1a 6725# Handle --with-headers=XXX. If the value is not "yes", the contents of
6726# the named directory are copied to $(tooldir)/sys-include.
6727if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6728 if test x${is_cross_compiler} = xno ; then
6729 echo 1>&2 '***' --with-headers is only supported when cross compiling
6730 exit 1
6731 fi
6732 if test x"${with_headers}" != xyes ; then
eae5b2bc 6733 x=${gcc_cv_tool_prefix}
b30fcfae 6734 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6735 fi
6736fi
6737
6738# Handle --with-libs=XXX. If the value is not "yes", the contents of
6739# the name directories are copied to $(tooldir)/lib. Multiple directories
6740# are permitted.
6741if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6742 if test x${is_cross_compiler} = xno ; then
6743 echo 1>&2 '***' --with-libs is only supported when cross compiling
6744 exit 1
6745 fi
6746 if test x"${with_libs}" != xyes ; then
6747 # Copy the libraries in reverse order, so that files in the first named
6748 # library override files in subsequent libraries.
eae5b2bc 6749 x=${gcc_cv_tool_prefix}
8e1fea1a 6750 for l in ${with_libs}; do
b30fcfae 6751 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6752 done
6753 fi
6754fi
6755
7bfefa9d 6756# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6757#
6758# This is done by determining whether or not the appropriate directory
6759# is available, and by checking whether or not specific configurations
6760# have requested that this magic not happen.
b30fcfae 6761#
6762# The command line options always override the explicit settings in
e757a6a8 6763# configure.ac, and the settings in configure.ac override this magic.
c47832b1 6764#
b30fcfae 6765# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6766# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6767# --without-gnu-ld options for the configure script. Similarly, if
6768# the default is to use the included zlib and you don't want to do that,
6769# you should use the --with-system-zlib option for the configure script.
c47832b1 6770
6771if test x${use_gnu_as} = x &&
6772 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6773 with_gnu_as=yes
6774 extra_host_args="$extra_host_args --with-gnu-as"
6775fi
6776
6777if test x${use_gnu_ld} = x &&
3d47fcf5 6778 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6779 with_gnu_ld=yes
6780 extra_host_args="$extra_host_args --with-gnu-ld"
6781fi
6782
7bfefa9d 6783if test x${use_included_zlib} = x &&
6784 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6785 :
6786else
6787 with_system_zlib=yes
6788 extra_host_args="$extra_host_args --with-system-zlib"
6789fi
6790
c47832b1 6791# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6792# can detect this case.
6793
6794if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6795 with_newlib=yes
6796 extra_host_args="$extra_host_args --with-newlib"
6797fi
6798
8e1fea1a 6799# Handle ${copy_dirs}
6800set fnord ${copy_dirs}
6801shift
6802while test $# != 0 ; do
6803 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6804 :
6805 else
6806 echo Copying $1 to $2
6807
6808 # Use the install script to create the directory and all required
6809 # parent directories.
6810 if test -d $2 ; then
6811 :
6812 else
6813 echo >config.temp
6814 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6815 fi
6816
6817 # Copy the directory, assuming we have tar.
6818 # FIXME: Should we use B in the second tar? Not all systems support it.
6819 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6820
6821 # It is the responsibility of the user to correctly adjust all
6822 # symlinks. If somebody can figure out how to handle them correctly
6823 # here, feel free to add the code.
6824
6825 echo $1 > $2/COPIED
6826 fi
6827 shift; shift
6828done
6829
c47832b1 6830# Determine a target-dependent exec_prefix that the installed
6831# gcc will search in. Keep this list sorted by triplet, with
6832# the *-*-osname triplets last.
6833md_exec_prefix=
6834case "${target}" in
09c2d953 6835 i[34567]86-pc-msdosdjgpp*)
c47832b1 6836 md_exec_prefix=/dev/env/DJDIR/bin
6837 ;;
c47832b1 6838 *-*-hpux* | \
c47832b1 6839 *-*-nto-qnx* | \
93faf308 6840 *-*-solaris2*)
c47832b1 6841 md_exec_prefix=/usr/ccs/bin
6842 ;;
6843esac
6844
71ab34df 6845extra_arflags_for_target=
6846extra_nmflags_for_target=
6847extra_ranlibflags_for_target=
6848target_makefile_frag=/dev/null
6849case "${target}" in
57c7de11 6850 spu-*-*)
6851 target_makefile_frag="config/mt-spu"
6852 ;;
d781ea5c 6853 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
f8520ad7 6854 target_makefile_frag="config/mt-sde"
6855 ;;
3013c2c7 6856 mipsisa*-*-elfoabi*)
6857 target_makefile_frag="config/mt-mips-elfoabi"
6858 ;;
559b0712 6859 mips*-*-*linux* | mips*-*-gnu*)
6860 target_makefile_frag="config/mt-mips-gnu"
6861 ;;
2481a2c1 6862 nios2-*-elf*)
6863 target_makefile_frag="config/mt-nios2-elf"
6864 ;;
3bef4012 6865 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 6866 target_makefile_frag="config/mt-gnu"
71ab34df 6867 ;;
6868 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 6869 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 6870 # commands to handle both 32-bit and 64-bit objects. These flags are
6871 # harmless if we're using GNU nm or ar.
6872 extra_arflags_for_target=" -X32_64"
6873 extra_nmflags_for_target=" -B -X32_64"
6874 ;;
71ab34df 6875esac
6876
6877alphaieee_frag=/dev/null
6878case $target in
6879 alpha*-*-*)
6880 # This just makes sure to use the -mieee option to build target libs.
6881 # This should probably be set individually by each library.
6882 alphaieee_frag="config/mt-alphaieee"
6883 ;;
6884esac
6885
6886# If --enable-target-optspace always use -Os instead of -O2 to build
6887# the target libraries, similarly if it is not specified, use -Os
6888# on selected platforms.
6889ospace_frag=/dev/null
6890case "${enable_target_optspace}:${target}" in
6891 yes:*)
6892 ospace_frag="config/mt-ospace"
6893 ;;
6894 :d30v-*)
6895 ospace_frag="config/mt-d30v"
6896 ;;
1c26a2ee 6897 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
71ab34df 6898 ospace_frag="config/mt-ospace"
6899 ;;
6900 no:* | :*)
6901 ;;
6902 *)
6903 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6904 ;;
6905esac
6906
71ab34df 6907# Some systems (e.g., one of the i386-aix systems the gas testers are
6908# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 6909tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 6910build_tooldir=${tooldir}
6911
71ab34df 6912# Create a .gdbinit file which runs the one in srcdir
6913# and tells GDB to look there for source files.
6914
6915if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919# ${NO_EDIT}
6920dir ${srcdir}
6921dir .
6922source ${srcdir}/.gdbinit
6923EOF
6924 ;;
6925 esac
6926fi
6927
71ab34df 6928# Make sure that the compiler is able to generate an executable. If it
6929# can't, we are probably in trouble. We don't care whether we can run the
6930# executable--we might be using a cross compiler--we only care whether it
6931# can be created. At this point the main configure script has set CC.
6932we_are_ok=no
6933echo "int main () { return 0; }" > conftest.c
6934${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6938 fi
b30fcfae 6939fi
71ab34df 6940case $we_are_ok in
6941 no)
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6946 ;;
6947esac
6948rm -f conftest*
6949
7d804f04 6950# Decide which environment variable is used to find dynamic libraries.
71ab34df 6951case "${host}" in
6952 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 6953 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 6954 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 6955 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6956esac
6957
7d804f04 6958# On systems where the dynamic library environment variable is PATH,
6959# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6960# built executables to PATH.
6961if test "$RPATH_ENVVAR" = PATH; then
6962 GCC_SHLIB_SUBDIR=/shlib
6963else
6964 GCC_SHLIB_SUBDIR=
6965fi
6966
ee055341 6967# Adjust the toplevel makefile according to whether bootstrap was selected.
6968case $enable_bootstrap in
6969 yes)
6970 bootstrap_suffix=bootstrap
6971 BUILD_CONFIG=bootstrap-debug
6972 ;;
6973 no)
6974 bootstrap_suffix=no-bootstrap
6975 BUILD_CONFIG=
6976 ;;
6977esac
6978
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6980$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6981
6982
6983# Check whether --with-build-config was given.
6984if test "${with_build_config+set}" = set; then :
6985 withval=$with_build_config; case $with_build_config in
6986 yes) with_build_config= ;;
6987 no) with_build_config= BUILD_CONFIG= ;;
6988 esac
6989fi
6990
6991
6992if test "x${with_build_config}" != x; then
6993 BUILD_CONFIG=$with_build_config
6994else
6995 case $BUILD_CONFIG in
6996 bootstrap-debug)
6997 if echo "int f (void) { return 0; }" > conftest.c &&
6998 ${CC} -c conftest.c &&
6999 mv conftest.o conftest.o.g0 &&
7000 ${CC} -c -g conftest.c &&
7001 mv conftest.o conftest.o.g &&
7002 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7003 :
7004 else
7005 BUILD_CONFIG=
7006 fi
7007 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7008 ;;
7009 esac
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7012$as_echo "$BUILD_CONFIG" >&6; }
7013
7014
7015# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7017$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7018# Check whether --enable-vtable-verify was given.
7019if test "${enable_vtable_verify+set}" = set; then :
7020 enableval=$enable_vtable_verify; case "$enableval" in
7021 yes) enable_vtable_verify=yes ;;
7022 no) enable_vtable_verify=no ;;
7023 *) enable_vtable_verify=no;;
7024 esac
7025else
7026 enable_vtable_verify=no
7027fi
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7030$as_echo "$enable_vtable_verify" >&6; }
7031
71ab34df 7032# Record target_configdirs and the configure arguments for target and
7033# build configuration in Makefile.
7034target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 7035build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
f4ae1a00 7036bootstrap_fixincludes=no
71ab34df 7037
5c96a839 7038# If we are building libgomp, bootstrap it.
7039if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7041fi
7042
ee055341 7043# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7044# or bootstrap-ubsan, bootstrap it.
7045if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7046 case "$BUILD_CONFIG" in
7047 *bootstrap-asan* | *bootstrap-ubsan* )
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
f4ae1a00 7049 bootstrap_fixincludes=yes
ee055341 7050 ;;
7051 esac
579abfee 7052fi
7053
ee055341 7054# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7055if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7056 test "$enable_vtable_verify" != no; then
b710ec85 7057 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7058fi
7059
08814ca4 7060# If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7061# bootstrap it.
202baac8 7062if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
08814ca4 7063 case "$BUILD_CONFIG" in
7064 *bootstrap-mpx* )
7065 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7066 ;;
7067 esac
202baac8 7068fi
7069
71ab34df 7070# Determine whether gdb needs tk/tcl or not.
7071# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7072# and in that case we want gdb to be built without tk. Ugh!
7073# In fact I believe gdb is the *only* package directly dependent on tk,
7074# so we should be able to put the 'maybe's in unconditionally and
7075# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7076# 100% sure that that's safe though.
8fdaf281 7077
f843f075 7078gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 7079case "$enable_gdbtk" in
7080 no)
7081 GDB_TK="" ;;
8fdaf281 7082 yes)
7083 GDB_TK="${gdb_tk}" ;;
71ab34df 7084 *)
8fdaf281 7085 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7086 # distro. Eventually someone will fix this and move Insight, nee
7087 # gdbtk to a separate directory.
7088 if test -d ${srcdir}/gdb/gdbtk ; then
7089 GDB_TK="${gdb_tk}"
7090 else
7091 GDB_TK=""
7092 fi
7093 ;;
71ab34df 7094esac
415470be 7095CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7096INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 7097
01b41571 7098# Strip out unwanted targets.
6f4f34a7 7099
7100# While at that, we remove Makefiles if we were started for recursive
7101# configuration, so that the top-level Makefile reconfigures them,
7102# like we used to do when configure itself was recursive.
6f4f34a7 7103
8bb79148 7104# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7105# but now we're fixing up the Makefile ourselves with the additional
7106# commands passed to AC_CONFIG_FILES. Use separate variables
7107# extrasub-{build,host,target} not because there is any reason to split
7108# the substitutions up that way, but only to remain below the limit of
7109# 99 commands in a script, for HP-UX sed.
7110# Do not nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 7111
7b5fee3e 7112case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7113 yes:yes:*\ gold\ *:*,c++,*) ;;
7114 yes:yes:*\ gold\ *:*)
7115 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7116 ;;
7117esac
7118
8bb79148 7119extrasub_build=
2f8725b0 7120for module in ${build_configdirs} ; do
93f93279 7121 if test -z "${no_recursion}" \
7122 && test -f ${build_subdir}/${module}/Makefile; then
7123 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7124 rm -f ${build_subdir}/${module}/Makefile
7125 fi
8bb79148 7126 extrasub_build="$extrasub_build
93f93279 7127/^@if build-$module\$/d
7128/^@endif build-$module\$/d
7129/^@if build-$module-$bootstrap_suffix\$/d
7130/^@endif build-$module-$bootstrap_suffix\$/d"
7131done
8bb79148 7132extrasub_host=
93f93279 7133for module in ${configdirs} ; do
9c19a746 7134 if test -z "${no_recursion}"; then
35d84d10 7135 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7136 if test -f ${file}; then
7137 echo 1>&2 "*** removing ${file} to force reconfigure"
7138 rm -f ${file}
7139 fi
7140 done
93f93279 7141 fi
f4ae1a00 7142 case ${module},${bootstrap_fixincludes} in
7143 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7144 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7145 esac
8bb79148 7146 extrasub_host="$extrasub_host
93f93279 7147/^@if $module\$/d
7148/^@endif $module\$/d
f4ae1a00 7149/^@if $module-$host_bootstrap_suffix\$/d
7150/^@endif $module-$host_bootstrap_suffix\$/d"
93f93279 7151done
8bb79148 7152extrasub_target=
93f93279 7153for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
7ab76cec 7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
8bb79148 7166 extrasub_target="$extrasub_target
93f93279 7167/^@if target-$module\$/d
7168/^@endif target-$module\$/d
7ab76cec 7169/^@if target-$module-$target_bootstrap_suffix\$/d
7170/^@endif target-$module-$target_bootstrap_suffix\$/d"
93f93279 7171done
7172
8bb79148 7173# Do the final fixup along with target modules.
7174extrasub_target="$extrasub_target
01b41571 7175/^@if /,/^@endif /d"
71ab34df 7176
7177# Create the serialization dependencies. This uses a temporary file.
7178
cd9a469c 7179# Check whether --enable-serial-configure was given.
7180if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182fi
11d8013a 7183
7184
622c1fa9 7185case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191esac
7192
71ab34df 7193# These force 'configure's to be done one at a time, to avoid problems
7194# with contention over a shared config.cache.
7195rm -f serdep.tmp
11d8013a 7196echo '# serdep.tmp' > serdep.tmp
71ab34df 7197olditem=
622c1fa9 7198test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7199for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
11d8013a 7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7203 esac
7204 olditem=${item}
7205done
7206olditem=
622c1fa9 7207test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7208for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
11d8013a 7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7212 esac
7213 olditem=${item}
7214done
7215olditem=
622c1fa9 7216test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7217for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
11d8013a 7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7221 esac
7222 olditem=${item}
7223done
7224serialization_dependencies=serdep.tmp
7225
7226
11d8013a 7227# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7228# target, nonopt, and variable assignments. These are the ones we
412c2e81 7229# might not want to pass down to subconfigures. The exception being
7230# --cache-file=/dev/null, which is used to turn off the use of cache
7231# files altogether, and which should be passed on to subconfigures.
7232# Also strip program-prefix, program-suffix, and program-transform-name,
7233# so that we can pass down a consistent program-transform-name.
b30fcfae 7234baseargs=
0e4d1862 7235tbaseargs=
b30fcfae 7236keep_next=no
7237skip_next=no
7238eval "set -- $ac_configure_args"
4ff792a4 7239for ac_arg
7240do
b30fcfae 7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
0e4d1862 7251 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
0e4d1862 7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
572cf1f7 7293 mpc | mpfr | gmp | isl)
0e4d1862 7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
b30fcfae 7306 case "$ac_arg" in
412c2e81 7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
0e4d1862 7311 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
b30fcfae 7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
0e4d1862 7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
b30fcfae 7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353done
7354# Remove the initial space we just introduced and, as these will be
7355# expanded by make, quote '$'.
7356baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7357
fbfea1fa 7358# Add in --program-transform-name, after --program-prefix and
7359# --program-suffix have been applied to it. Autoconf has already
7360# doubled dollar signs and backslashes in program_transform_name; we want
7361# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7362# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7363# Also, because we want to override the logic in subdir configure scripts to
7364# choose program_transform_name, replace any s,x,x, with s,y,y,.
7365sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366${program_transform_name}
7367EOF_SED
7368gcc_transform_name=`cat conftestsed.out`
7369rm -f conftestsed.out
7370baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7371tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7372if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
0e4d1862 7374 tbaseargs="$tbaseargs --silent"
af7bb0c0 7375fi
cd2f3773 7376baseargs="$baseargs --disable-option-checking"
0e4d1862 7377tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7378
372a3f1e 7379# Record and document user additions to sub configure arguments.
7380
7381
7382
7383
71ab34df 7384# For the build-side libraries, we just need to pretend we're native,
7385# and not use the same cache file. Multilibs are neither needed nor
b85b703b 7386# desired. We can't even use the same cache file for all build-side
7387# libraries, as they're compiled differently; some with C, some with
7388# C++ or with different feature-enabling options.
7389build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
71ab34df 7390
7391# For host modules, accept cache file option, or specification as blank.
7392case "${cache_file}" in
7393"") # empty
7394 cache_file_option="" ;;
7395/* | [A-Za-z]:[\\/]* ) # absolute path
7396 cache_file_option="--cache-file=${cache_file}" ;;
7397*) # relative path
7398 cache_file_option="--cache-file=../${cache_file}" ;;
7399esac
7400
ba1081ef 7401# Host dirs don't like to share a cache file either, horribly enough.
7402# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7403host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7404
0e4d1862 7405target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7406
7407# Passing a --with-cross-host argument lets the target libraries know
7408# whether they are being built with a cross-compiler or being built
7409# native. However, it would be better to use other mechanisms to make the
7410# sorts of decisions they want to make on this basis. Please consider
7411# this option to be deprecated. FIXME.
7412if test x${is_cross_compiler} = xyes ; then
b30fcfae 7413 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7414fi
7415
87ebeb4c 7416# Special user-friendly check for native x86_64-linux build, if
7417# multilib is not explicitly enabled.
7418case "$target:$have_compiler:$host:$target:$enable_multilib" in
7419 x86_64-*linux*:yes:$build:$build:)
6efd9d79 7420 # Make sure we have a development environment that handles 32-bit
87ebeb4c 7421 dev64=no
7422 echo "int main () { return 0; }" > conftest.c
7423 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7424 if test $? = 0 ; then
7425 if test -s conftest || test -s conftest.exe ; then
7426 dev64=yes
7427 fi
7428 fi
7429 rm -f conftest*
7430 if test x${dev64} != xyes ; then
6efd9d79 7431 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 7432 fi
7433 ;;
7434esac
7435
59a40389 7436# Default to --enable-multilib.
7437if test x${enable_multilib} = x ; then
71ab34df 7438 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7439fi
71ab34df 7440
7441# Pass --with-newlib if appropriate. Note that target_configdirs has
7442# changed from the earlier setting of with_newlib.
7443if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7444 target_configargs="--with-newlib ${target_configargs}"
7445fi
7446
74fef112 7447# Different target subdirs use different values of certain variables
7448# (notably CXX). Worse, multilibs use *lots* of different values.
7449# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7450# it doesn't automatically accept command-line overrides of them.
7451# This means it's not safe for target subdirs to share a cache file,
7452# which is disgusting, but there you have it. Hopefully this can be
7453# fixed in future. It's still worthwhile to use a cache file for each
7454# directory. I think.
7455
a8abbd9d 7456# Pass the appropriate --build, --host, --target and --cache-file arguments.
7457# We need to pass --target, as newer autoconf's requires consistency
7458# for target_alias and gcc doesn't manage it consistently.
d45318b3 7459target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7460
71ab34df 7461FLAGS_FOR_TARGET=
7462case " $target_configdirs " in
7463 *" newlib "*)
7464 case " $target_configargs " in
7465 *" --with-newlib "*)
7466 case "$target" in
fe284774 7467 *-cygwin*)
db54564d 7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
fe284774 7469 ;;
71ab34df 7470 esac
7471
7472 # If we're not building GCC, don't discard standard headers.
7473 if test -d ${srcdir}/gcc; then
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7475
7476 if test "${build}" != "${host}"; then
7477 # On Canadian crosses, CC_FOR_TARGET will have already been set
7478 # by `configure', so we won't have an opportunity to add -Bgcc/
7479 # to it. This is right: we don't want to search that directory
7480 # for binaries, but we want the header files in there, so add
7481 # them explicitly.
e619f0a6 7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7483
7484 # Someone might think of using the pre-installed headers on
7485 # Canadian crosses, in case the installed compiler is not fully
7486 # compatible with the compiler being built. In this case, it
7487 # would be better to flag an error than risking having
7488 # incompatible object files being constructed. We can't
7489 # guarantee that an error will be flagged, but let's hope the
7490 # compiler will do it, when presented with incompatible header
7491 # files.
7492 fi
7493 fi
7494
7495 case "${target}-${is_cross_compiler}" in
f74ea578 7496 i[3456789]86-*-linux*-no)
71ab34df 7497 # Here host == target, so we don't need to build gcc,
7498 # so we don't want to discard standard headers.
7499 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7500 ;;
7501 *)
7502 # If we're building newlib, use its generic headers last, but search
7503 # for any libc-related directories first (so make it the last -B
7504 # switch).
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7506
7507 # If we're building libgloss, find the startup file, simulator library
7508 # and linker script.
7509 case " $target_configdirs " in
7510 *" libgloss "*)
7511 # Look for startup file, simulator library and maybe linker script.
7512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7513 # Look for libnosys.a in case the target needs it.
7514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7515 # Most targets have the linker script in the source directory.
7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7517 ;;
7518 esac
71ab34df 7519 ;;
7520 esac
7521 ;;
7522 esac
7523 ;;
7524esac
fe284774 7525
d6d689df 7526case "$target" in
fe284774 7527 x86_64-*mingw* | *-w64-mingw*)
7528 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7529 # however, use a symlink named 'mingw' in ${prefix} .
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7531 ;;
7532 *-mingw*)
7533 # MinGW can't be handled as Cygwin above since it does not use newlib.
7534 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'
7535 ;;
d6d689df 7536esac
71ab34df 7537
d8e9ea04 7538# Allow the user to override the flags for
7539# our build compiler if desired.
823e8b8d 7540if test x"${build}" = x"${host}" ; then
7541 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7542 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7543 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7544fi
d8e9ea04 7545
71ab34df 7546# On Canadian crosses, we'll be searching the right directories for
7547# the previously-installed cross compiler, so don't bother to add
7548# flags for directories within the install tree of the compiler
7549# being built; programs in there won't even run.
7550if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7551 # Search for pre-installed headers if nothing else fits.
5750c7d4 7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7553fi
7554
7555if test "x${use_gnu_ld}" = x &&
7556 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7557 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7559fi
7560
24714a39 7561# Search for other target-specific linker scripts and such.
7562case "${target}" in
38d7211b 7563 mep*)
7564 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7565 ;;
24714a39 7566esac
7567
71ab34df 7568# Makefile fragments.
03c65091 7569for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7570do
7571 eval fragval=\$$frag
7572 if test $fragval != /dev/null; then
7573 eval $frag=${srcdir}/$fragval
7574 fi
7575done
71ab34df 7576
7577
7578
7579
7580
7581# Miscellanea: directories, flags, etc.
7582
7583
7584
7585
7586
7587
7588
7d804f04 7589
2f8725b0 7590# Build module lists & subconfigure args.
71ab34df 7591
7592
7593
f5aebe3e 7594# Host module lists & subconfigure args.
7595
7596
7597
1fda3360 7598
f5aebe3e 7599# Target module lists & subconfigure args.
7600
7601
7602
7603# Build tools.
7604
7605
7606
93c5e793 7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
f5aebe3e 7620# Generate default definitions for YACC, M4, LEX and other programs that run
7621# on the build machine. These are used if the Makefile can't locate these
7622# programs in objdir.
7623MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7624
7625for ac_prog in 'bison -y' byacc yacc
7626do
b30fcfae 7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7628set dummy $ac_prog; ac_word=$2
cd9a469c 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630$as_echo_n "checking for $ac_word... " >&6; }
7631if test "${ac_cv_prog_YACC+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
f5aebe3e 7633else
7634 if test -n "$YACC"; then
7635 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7636else
b30fcfae 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
cd9a469c 7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7644 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7646 break 2
7647 fi
7648done
cd9a469c 7649 done
7650IFS=$as_save_IFS
b30fcfae 7651
f5aebe3e 7652fi
7653fi
b30fcfae 7654YACC=$ac_cv_prog_YACC
f5aebe3e 7655if test -n "$YACC"; then
cd9a469c 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7657$as_echo "$YACC" >&6; }
f5aebe3e 7658else
cd9a469c 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660$as_echo "no" >&6; }
f5aebe3e 7661fi
7662
cd9a469c 7663
b30fcfae 7664 test -n "$YACC" && break
f5aebe3e 7665done
7666test -n "$YACC" || YACC="$MISSING bison -y"
7667
7668case " $build_configdirs " in
7669 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7670esac
7671
7672for ac_prog in bison
7673do
b30fcfae 7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7675set dummy $ac_prog; ac_word=$2
cd9a469c 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if test "${ac_cv_prog_BISON+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
f5aebe3e 7680else
7681 if test -n "$BISON"; then
7682 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7683else
b30fcfae 7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
cd9a469c 7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7691 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7693 break 2
7694 fi
7695done
cd9a469c 7696 done
7697IFS=$as_save_IFS
b30fcfae 7698
f5aebe3e 7699fi
7700fi
b30fcfae 7701BISON=$ac_cv_prog_BISON
f5aebe3e 7702if test -n "$BISON"; then
cd9a469c 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7704$as_echo "$BISON" >&6; }
f5aebe3e 7705else
cd9a469c 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
f5aebe3e 7708fi
7709
cd9a469c 7710
b30fcfae 7711 test -n "$BISON" && break
f5aebe3e 7712done
7713test -n "$BISON" || BISON="$MISSING bison"
7714
7715case " $build_configdirs " in
7716 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7717esac
7718
7719for ac_prog in gm4 gnum4 m4
7720do
b30fcfae 7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7722set dummy $ac_prog; ac_word=$2
cd9a469c 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if test "${ac_cv_prog_M4+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
f5aebe3e 7727else
7728 if test -n "$M4"; then
7729 ac_cv_prog_M4="$M4" # Let the user override the test.
7730else
b30fcfae 7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
cd9a469c 7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7738 ac_cv_prog_M4="$ac_prog"
cd9a469c 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7740 break 2
7741 fi
7742done
cd9a469c 7743 done
7744IFS=$as_save_IFS
b30fcfae 7745
f5aebe3e 7746fi
7747fi
b30fcfae 7748M4=$ac_cv_prog_M4
f5aebe3e 7749if test -n "$M4"; then
cd9a469c 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7751$as_echo "$M4" >&6; }
f5aebe3e 7752else
cd9a469c 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
f5aebe3e 7755fi
7756
cd9a469c 7757
b30fcfae 7758 test -n "$M4" && break
f5aebe3e 7759done
7760test -n "$M4" || M4="$MISSING m4"
7761
7762case " $build_configdirs " in
7763 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7764esac
7765
7766for ac_prog in flex lex
7767do
b30fcfae 7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7769set dummy $ac_prog; ac_word=$2
cd9a469c 7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if test "${ac_cv_prog_LEX+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
f5aebe3e 7774else
7775 if test -n "$LEX"; then
7776 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7777else
b30fcfae 7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
cd9a469c 7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7785 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7787 break 2
7788 fi
7789done
cd9a469c 7790 done
7791IFS=$as_save_IFS
b30fcfae 7792
f5aebe3e 7793fi
7794fi
b30fcfae 7795LEX=$ac_cv_prog_LEX
f5aebe3e 7796if test -n "$LEX"; then
cd9a469c 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7798$as_echo "$LEX" >&6; }
f5aebe3e 7799else
cd9a469c 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
f5aebe3e 7802fi
7803
cd9a469c 7804
b30fcfae 7805 test -n "$LEX" && break
f5aebe3e 7806done
7807test -n "$LEX" || LEX="$MISSING flex"
7808
7809case " $build_configdirs " in
7810 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7811 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7812esac
7813
7814for ac_prog in flex
7815do
b30fcfae 7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7817set dummy $ac_prog; ac_word=$2
cd9a469c 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if test "${ac_cv_prog_FLEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
f5aebe3e 7822else
7823 if test -n "$FLEX"; then
7824 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7825else
b30fcfae 7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
cd9a469c 7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7833 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7835 break 2
7836 fi
7837done
cd9a469c 7838 done
7839IFS=$as_save_IFS
b30fcfae 7840
f5aebe3e 7841fi
7842fi
b30fcfae 7843FLEX=$ac_cv_prog_FLEX
f5aebe3e 7844if test -n "$FLEX"; then
cd9a469c 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7846$as_echo "$FLEX" >&6; }
f5aebe3e 7847else
cd9a469c 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
f5aebe3e 7850fi
7851
cd9a469c 7852
b30fcfae 7853 test -n "$FLEX" && break
f5aebe3e 7854done
7855test -n "$FLEX" || FLEX="$MISSING flex"
7856
7857case " $build_configdirs " in
7858 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859esac
7860
7861for ac_prog in makeinfo
7862do
b30fcfae 7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7864set dummy $ac_prog; ac_word=$2
cd9a469c 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866$as_echo_n "checking for $ac_word... " >&6; }
7867if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
f5aebe3e 7869else
7870 if test -n "$MAKEINFO"; then
7871 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7872else
b30fcfae 7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
cd9a469c 7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7880 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7882 break 2
7883 fi
7884done
cd9a469c 7885 done
7886IFS=$as_save_IFS
b30fcfae 7887
f5aebe3e 7888fi
7889fi
b30fcfae 7890MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 7891if test -n "$MAKEINFO"; then
cd9a469c 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7893$as_echo "$MAKEINFO" >&6; }
f5aebe3e 7894else
cd9a469c 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
f5aebe3e 7897fi
7898
cd9a469c 7899
b30fcfae 7900 test -n "$MAKEINFO" && break
f5aebe3e 7901done
7902test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7903
7904case " $build_configdirs " in
7905 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7906 *)
7907
03caadda 7908 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 7909 # higher, else we use the "missing" dummy.
7910 if ${MAKEINFO} --version \
03caadda 7911 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 7912 :
7913 else
7914 MAKEINFO="$MISSING makeinfo"
7915 fi
7916 ;;
7917
7918esac
71ab34df 7919
f5aebe3e 7920# FIXME: expect and dejagnu may become build tools?
71ab34df 7921
f5aebe3e 7922for ac_prog in expect
7923do
b30fcfae 7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7925set dummy $ac_prog; ac_word=$2
cd9a469c 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if test "${ac_cv_prog_EXPECT+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
f5aebe3e 7930else
7931 if test -n "$EXPECT"; then
7932 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7933else
b30fcfae 7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
cd9a469c 7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7941 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7943 break 2
7944 fi
7945done
cd9a469c 7946 done
7947IFS=$as_save_IFS
b30fcfae 7948
f5aebe3e 7949fi
7950fi
b30fcfae 7951EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 7952if test -n "$EXPECT"; then
cd9a469c 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7954$as_echo "$EXPECT" >&6; }
f5aebe3e 7955else
cd9a469c 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
f5aebe3e 7958fi
71ab34df 7959
cd9a469c 7960
b30fcfae 7961 test -n "$EXPECT" && break
f5aebe3e 7962done
7963test -n "$EXPECT" || EXPECT="expect"
71ab34df 7964
f5aebe3e 7965case " $configdirs " in
7966 *" expect "*)
7967 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7968 ;;
7969esac
71ab34df 7970
f5aebe3e 7971for ac_prog in runtest
7972do
b30fcfae 7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7974set dummy $ac_prog; ac_word=$2
cd9a469c 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
f5aebe3e 7979else
7980 if test -n "$RUNTEST"; then
7981 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 7982else
b30fcfae 7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
cd9a469c 7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7990 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7992 break 2
7993 fi
7994done
cd9a469c 7995 done
7996IFS=$as_save_IFS
b30fcfae 7997
f5aebe3e 7998fi
7999fi
b30fcfae 8000RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 8001if test -n "$RUNTEST"; then
cd9a469c 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8003$as_echo "$RUNTEST" >&6; }
f5aebe3e 8004else
cd9a469c 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
f5aebe3e 8007fi
71ab34df 8008
cd9a469c 8009
b30fcfae 8010 test -n "$RUNTEST" && break
f5aebe3e 8011done
8012test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 8013
f5aebe3e 8014case " $configdirs " in
8015 *" dejagnu "*)
8d365775 8016 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 8017 ;;
8018esac
71ab34df 8019
8020
71ab34df 8021# Host tools.
bb612911 8022ncn_tool_prefix=
8023test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8024ncn_target_tool_prefix=
8025test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8026
95a05732 8027
8028
8029if test -n "$AR"; then
8030 ac_cv_prog_AR=$AR
8031elif test -n "$ac_cv_prog_AR"; then
8032 AR=$ac_cv_prog_AR
8033fi
8034
8035if test -n "$ac_cv_prog_AR"; then
8036 for ncn_progname in ar; do
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
95a05732 8043else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
cd9a469c 8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8054 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8056 break 2
8057 fi
8058done
cd9a469c 8059 done
8060IFS=$as_save_IFS
95a05732 8061
8062fi
8063fi
8064AR=$ac_cv_prog_AR
8065if test -n "$AR"; then
cd9a469c 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067$as_echo "$AR" >&6; }
95a05732 8068else
cd9a469c 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
95a05732 8071fi
8072
cd9a469c 8073
95a05732 8074 done
8075fi
8076
8077for ncn_progname in ar; do
768691b5 8078 if test -n "$ncn_tool_prefix"; then
8079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8080set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
bb612911 8085else
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR="$AR" # Let the user override the test.
8088else
b30fcfae 8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
cd9a469c 8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8096 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8098 break 2
8099 fi
8100done
cd9a469c 8101 done
8102IFS=$as_save_IFS
b30fcfae 8103
bb612911 8104fi
8105fi
b30fcfae 8106AR=$ac_cv_prog_AR
bb612911 8107if test -n "$AR"; then
cd9a469c 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8109$as_echo "$AR" >&6; }
bb612911 8110else
cd9a469c 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
bb612911 8113fi
8114
cd9a469c 8115
768691b5 8116 fi
8117 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8119set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
bb612911 8124else
768691b5 8125 if test -n "$AR"; then
ae48753c 8126 ac_cv_prog_AR="$AR" # Let the user override the test.
8127else
b30fcfae 8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
cd9a469c 8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8135 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8137 break 2
8138 fi
8139done
cd9a469c 8140 done
8141IFS=$as_save_IFS
b30fcfae 8142
bb612911 8143fi
8144fi
b30fcfae 8145AR=$ac_cv_prog_AR
768691b5 8146if test -n "$AR"; then
cd9a469c 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8148$as_echo "$AR" >&6; }
bb612911 8149else
cd9a469c 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
bb612911 8152fi
b30fcfae 8153
cd9a469c 8154
768691b5 8155 fi
8156 test -n "$ac_cv_prog_AR" && break
8157done
8158
8159if test -z "$ac_cv_prog_AR" ; then
8160 set dummy ar
8161 if test $build = $host ; then
8162 AR="$2"
bb612911 8163 else
768691b5 8164 AR="${ncn_tool_prefix}$2"
bb612911 8165 fi
bb612911 8166fi
8167
95a05732 8168
8169
8170if test -n "$AS"; then
8171 ac_cv_prog_AS=$AS
8172elif test -n "$ac_cv_prog_AS"; then
8173 AS=$ac_cv_prog_AS
8174fi
8175
8176if test -n "$ac_cv_prog_AS"; then
8177 for ncn_progname in as; do
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
95a05732 8184else
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
cd9a469c 8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8195 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8197 break 2
8198 fi
8199done
cd9a469c 8200 done
8201IFS=$as_save_IFS
95a05732 8202
8203fi
8204fi
8205AS=$ac_cv_prog_AS
8206if test -n "$AS"; then
cd9a469c 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208$as_echo "$AS" >&6; }
95a05732 8209else
cd9a469c 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
95a05732 8212fi
8213
cd9a469c 8214
95a05732 8215 done
8216fi
8217
8218for ncn_progname in as; do
768691b5 8219 if test -n "$ncn_tool_prefix"; then
8220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8221set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if test "${ac_cv_prog_AS+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
bb612911 8226else
8227 if test -n "$AS"; then
8228 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8229else
b30fcfae 8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
cd9a469c 8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8237 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8239 break 2
8240 fi
8241done
cd9a469c 8242 done
8243IFS=$as_save_IFS
b30fcfae 8244
bb612911 8245fi
8246fi
b30fcfae 8247AS=$ac_cv_prog_AS
bb612911 8248if test -n "$AS"; then
cd9a469c 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8250$as_echo "$AS" >&6; }
bb612911 8251else
cd9a469c 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
bb612911 8254fi
8255
cd9a469c 8256
768691b5 8257 fi
8258 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if test "${ac_cv_prog_AS+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
bb612911 8265else
768691b5 8266 if test -n "$AS"; then
8267 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8268else
b30fcfae 8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
cd9a469c 8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8276 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8278 break 2
8279 fi
8280done
cd9a469c 8281 done
8282IFS=$as_save_IFS
b30fcfae 8283
bb612911 8284fi
8285fi
b30fcfae 8286AS=$ac_cv_prog_AS
768691b5 8287if test -n "$AS"; then
cd9a469c 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289$as_echo "$AS" >&6; }
bb612911 8290else
cd9a469c 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
bb612911 8293fi
b30fcfae 8294
cd9a469c 8295
768691b5 8296 fi
8297 test -n "$ac_cv_prog_AS" && break
8298done
8299
8300if test -z "$ac_cv_prog_AS" ; then
8301 set dummy as
8302 if test $build = $host ; then
8303 AS="$2"
bb612911 8304 else
768691b5 8305 AS="${ncn_tool_prefix}$2"
bb612911 8306 fi
bb612911 8307fi
8308
95a05732 8309
8310
8311if test -n "$DLLTOOL"; then
8312 ac_cv_prog_DLLTOOL=$DLLTOOL
8313elif test -n "$ac_cv_prog_DLLTOOL"; then
8314 DLLTOOL=$ac_cv_prog_DLLTOOL
8315fi
8316
8317if test -n "$ac_cv_prog_DLLTOOL"; then
8318 for ncn_progname in dlltool; do
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
8323if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
95a05732 8325else
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
cd9a469c 8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8338 break 2
8339 fi
8340done
cd9a469c 8341 done
8342IFS=$as_save_IFS
95a05732 8343
8344fi
8345fi
8346DLLTOOL=$ac_cv_prog_DLLTOOL
8347if test -n "$DLLTOOL"; then
cd9a469c 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349$as_echo "$DLLTOOL" >&6; }
95a05732 8350else
cd9a469c 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
95a05732 8353fi
8354
cd9a469c 8355
95a05732 8356 done
8357fi
8358
8359for ncn_progname in dlltool; do
768691b5 8360 if test -n "$ncn_tool_prefix"; then
8361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8362set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
8365if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
bb612911 8367else
8368 if test -n "$DLLTOOL"; then
8369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8370else
b30fcfae 8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
cd9a469c 8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8380 break 2
8381 fi
8382done
cd9a469c 8383 done
8384IFS=$as_save_IFS
b30fcfae 8385
bb612911 8386fi
8387fi
b30fcfae 8388DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8389if test -n "$DLLTOOL"; then
cd9a469c 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8391$as_echo "$DLLTOOL" >&6; }
bb612911 8392else
cd9a469c 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
bb612911 8395fi
8396
cd9a469c 8397
768691b5 8398 fi
8399 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403$as_echo_n "checking for $ac_word... " >&6; }
8404if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
bb612911 8406else
768691b5 8407 if test -n "$DLLTOOL"; then
8408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8409else
b30fcfae 8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
cd9a469c 8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8417 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8419 break 2
8420 fi
8421done
cd9a469c 8422 done
8423IFS=$as_save_IFS
b30fcfae 8424
bb612911 8425fi
8426fi
b30fcfae 8427DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8428if test -n "$DLLTOOL"; then
cd9a469c 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8430$as_echo "$DLLTOOL" >&6; }
bb612911 8431else
cd9a469c 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
bb612911 8434fi
b30fcfae 8435
cd9a469c 8436
768691b5 8437 fi
8438 test -n "$ac_cv_prog_DLLTOOL" && break
8439done
8440
8441if test -z "$ac_cv_prog_DLLTOOL" ; then
8442 set dummy dlltool
8443 if test $build = $host ; then
8444 DLLTOOL="$2"
bb612911 8445 else
768691b5 8446 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8447 fi
bb612911 8448fi
8449
95a05732 8450
8451
8452if test -n "$LD"; then
8453 ac_cv_prog_LD=$LD
8454elif test -n "$ac_cv_prog_LD"; then
8455 LD=$ac_cv_prog_LD
8456fi
8457
8458if test -n "$ac_cv_prog_LD"; then
8459 for ncn_progname in ld; do
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
95a05732 8466else
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
cd9a469c 8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8477 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8479 break 2
8480 fi
8481done
cd9a469c 8482 done
8483IFS=$as_save_IFS
95a05732 8484
8485fi
8486fi
8487LD=$ac_cv_prog_LD
8488if test -n "$LD"; then
cd9a469c 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490$as_echo "$LD" >&6; }
95a05732 8491else
cd9a469c 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
95a05732 8494fi
8495
cd9a469c 8496
95a05732 8497 done
8498fi
8499
8500for ncn_progname in ld; do
768691b5 8501 if test -n "$ncn_tool_prefix"; then
8502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8503set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if test "${ac_cv_prog_LD+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
bb612911 8508else
8509 if test -n "$LD"; then
8510 ac_cv_prog_LD="$LD" # Let the user override the test.
8511else
b30fcfae 8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
cd9a469c 8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8519 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8521 break 2
8522 fi
8523done
cd9a469c 8524 done
8525IFS=$as_save_IFS
b30fcfae 8526
bb612911 8527fi
8528fi
b30fcfae 8529LD=$ac_cv_prog_LD
bb612911 8530if test -n "$LD"; then
cd9a469c 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8532$as_echo "$LD" >&6; }
bb612911 8533else
cd9a469c 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
bb612911 8536fi
8537
cd9a469c 8538
768691b5 8539 fi
8540 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; }
8545if test "${ac_cv_prog_LD+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
bb612911 8547else
768691b5 8548 if test -n "$LD"; then
8549 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8550else
b30fcfae 8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
cd9a469c 8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8558 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8560 break 2
8561 fi
8562done
cd9a469c 8563 done
8564IFS=$as_save_IFS
b30fcfae 8565
bb612911 8566fi
8567fi
b30fcfae 8568LD=$ac_cv_prog_LD
768691b5 8569if test -n "$LD"; then
cd9a469c 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8571$as_echo "$LD" >&6; }
bb612911 8572else
cd9a469c 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
bb612911 8575fi
b30fcfae 8576
cd9a469c 8577
768691b5 8578 fi
8579 test -n "$ac_cv_prog_LD" && break
8580done
8581
8582if test -z "$ac_cv_prog_LD" ; then
8583 set dummy ld
8584 if test $build = $host ; then
8585 LD="$2"
bb612911 8586 else
768691b5 8587 LD="${ncn_tool_prefix}$2"
bb612911 8588 fi
bb612911 8589fi
8590
95a05732 8591
8592
8593if test -n "$LIPO"; then
8594 ac_cv_prog_LIPO=$LIPO
8595elif test -n "$ac_cv_prog_LIPO"; then
8596 LIPO=$ac_cv_prog_LIPO
8597fi
8598
8599if test -n "$ac_cv_prog_LIPO"; then
8600 for ncn_progname in lipo; do
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
95a05732 8607else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
cd9a469c 8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8618 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8620 break 2
8621 fi
8622done
cd9a469c 8623 done
8624IFS=$as_save_IFS
95a05732 8625
8626fi
8627fi
8628LIPO=$ac_cv_prog_LIPO
8629if test -n "$LIPO"; then
cd9a469c 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631$as_echo "$LIPO" >&6; }
95a05732 8632else
cd9a469c 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
95a05732 8635fi
8636
cd9a469c 8637
95a05732 8638 done
8639fi
8640
8641for ncn_progname in lipo; do
f5aebe3e 8642 if test -n "$ncn_tool_prefix"; then
8643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8644set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
8647if test "${ac_cv_prog_LIPO+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
f5aebe3e 8649else
8650 if test -n "$LIPO"; then
8651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8652else
b30fcfae 8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
cd9a469c 8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8660 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8662 break 2
8663 fi
8664done
cd9a469c 8665 done
8666IFS=$as_save_IFS
b30fcfae 8667
f5aebe3e 8668fi
8669fi
b30fcfae 8670LIPO=$ac_cv_prog_LIPO
f5aebe3e 8671if test -n "$LIPO"; then
cd9a469c 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8673$as_echo "$LIPO" >&6; }
f5aebe3e 8674else
cd9a469c 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
f5aebe3e 8677fi
8678
cd9a469c 8679
f5aebe3e 8680 fi
8681 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685$as_echo_n "checking for $ac_word... " >&6; }
8686if test "${ac_cv_prog_LIPO+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
f5aebe3e 8688else
8689 if test -n "$LIPO"; then
8690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8691else
b30fcfae 8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
cd9a469c 8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8699 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8701 break 2
8702 fi
8703done
cd9a469c 8704 done
8705IFS=$as_save_IFS
b30fcfae 8706
f5aebe3e 8707fi
8708fi
b30fcfae 8709LIPO=$ac_cv_prog_LIPO
f5aebe3e 8710if test -n "$LIPO"; then
cd9a469c 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8712$as_echo "$LIPO" >&6; }
f5aebe3e 8713else
cd9a469c 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
f5aebe3e 8716fi
b30fcfae 8717
cd9a469c 8718
f5aebe3e 8719 fi
8720 test -n "$ac_cv_prog_LIPO" && break
8721done
8722
8723if test -z "$ac_cv_prog_LIPO" ; then
8724 set dummy lipo
8725 if test $build = $host ; then
8726 LIPO="$2"
8727 else
8728 LIPO="${ncn_tool_prefix}$2"
8729 fi
8730fi
8731
95a05732 8732
8733
8734if test -n "$NM"; then
8735 ac_cv_prog_NM=$NM
8736elif test -n "$ac_cv_prog_NM"; then
8737 NM=$ac_cv_prog_NM
8738fi
8739
8740if test -n "$ac_cv_prog_NM"; then
8741 for ncn_progname in nm; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
bb612911 8748else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751else
b30fcfae 8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
cd9a469c 8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8759 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8761 break 2
8762 fi
8763done
cd9a469c 8764 done
8765IFS=$as_save_IFS
b30fcfae 8766
bb612911 8767fi
8768fi
b30fcfae 8769NM=$ac_cv_prog_NM
bb612911 8770if test -n "$NM"; then
cd9a469c 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772$as_echo "$NM" >&6; }
bb612911 8773else
cd9a469c 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
bb612911 8776fi
8777
cd9a469c 8778
95a05732 8779 done
8780fi
8781
8782for ncn_progname in nm; do
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787$as_echo_n "checking for $ac_word... " >&6; }
8788if test "${ac_cv_prog_NM+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
bb612911 8790else
768691b5 8791 if test -n "$NM"; then
8792 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8793else
b30fcfae 8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
cd9a469c 8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8801 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8803 break 2
8804 fi
8805done
cd9a469c 8806 done
8807IFS=$as_save_IFS
b30fcfae 8808
bb612911 8809fi
8810fi
b30fcfae 8811NM=$ac_cv_prog_NM
768691b5 8812if test -n "$NM"; then
cd9a469c 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8814$as_echo "$NM" >&6; }
bb612911 8815else
cd9a469c 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
bb612911 8818fi
b30fcfae 8819
cd9a469c 8820
768691b5 8821 fi
95a05732 8822 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
8827if test "${ac_cv_prog_NM+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
95a05732 8829else
8830 if test -n "$NM"; then
8831 ac_cv_prog_NM="$NM" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
cd9a469c 8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8840 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8842 break 2
8843 fi
8844done
cd9a469c 8845 done
8846IFS=$as_save_IFS
95a05732 8847
8848fi
8849fi
8850NM=$ac_cv_prog_NM
8851if test -n "$NM"; then
cd9a469c 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8853$as_echo "$NM" >&6; }
95a05732 8854else
cd9a469c 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
95a05732 8857fi
8858
cd9a469c 8859
95a05732 8860 fi
8861 test -n "$ac_cv_prog_NM" && break
8862done
8863
8864if test -z "$ac_cv_prog_NM" ; then
8865 set dummy nm
8866 if test $build = $host ; then
8867 NM="$2"
8868 else
8869 NM="${ncn_tool_prefix}$2"
8870 fi
8871fi
8872
8873
8874
8875if test -n "$RANLIB"; then
8876 ac_cv_prog_RANLIB=$RANLIB
8877elif test -n "$ac_cv_prog_RANLIB"; then
8878 RANLIB=$ac_cv_prog_RANLIB
8879fi
8880
8881if test -n "$ac_cv_prog_RANLIB"; then
8882 for ncn_progname in ranlib; do
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
95a05732 8889else
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
cd9a469c 8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8900 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8902 break 2
8903 fi
8904done
cd9a469c 8905 done
8906IFS=$as_save_IFS
95a05732 8907
8908fi
8909fi
8910RANLIB=$ac_cv_prog_RANLIB
8911if test -n "$RANLIB"; then
cd9a469c 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913$as_echo "$RANLIB" >&6; }
95a05732 8914else
cd9a469c 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
95a05732 8917fi
8918
cd9a469c 8919
95a05732 8920 done
8921fi
bb612911 8922
95a05732 8923for ncn_progname in ranlib; do
768691b5 8924 if test -n "$ncn_tool_prefix"; then
8925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928$as_echo_n "checking for $ac_word... " >&6; }
8929if test "${ac_cv_prog_RANLIB+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
bb612911 8931else
8932 if test -n "$RANLIB"; then
8933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8934else
b30fcfae 8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
cd9a469c 8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8942 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8944 break 2
8945 fi
8946done
cd9a469c 8947 done
8948IFS=$as_save_IFS
b30fcfae 8949
bb612911 8950fi
8951fi
b30fcfae 8952RANLIB=$ac_cv_prog_RANLIB
bb612911 8953if test -n "$RANLIB"; then
cd9a469c 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8955$as_echo "$RANLIB" >&6; }
bb612911 8956else
cd9a469c 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958$as_echo "no" >&6; }
bb612911 8959fi
8960
cd9a469c 8961
768691b5 8962 fi
8963 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967$as_echo_n "checking for $ac_word... " >&6; }
8968if test "${ac_cv_prog_RANLIB+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
bb612911 8970else
768691b5 8971 if test -n "$RANLIB"; then
8972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 8973else
b30fcfae 8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
cd9a469c 8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8981 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8983 break 2
8984 fi
8985done
cd9a469c 8986 done
8987IFS=$as_save_IFS
b30fcfae 8988
bb612911 8989fi
8990fi
b30fcfae 8991RANLIB=$ac_cv_prog_RANLIB
768691b5 8992if test -n "$RANLIB"; then
cd9a469c 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8994$as_echo "$RANLIB" >&6; }
bb612911 8995else
cd9a469c 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
bb612911 8998fi
b30fcfae 8999
cd9a469c 9000
bb612911 9001 fi
768691b5 9002 test -n "$ac_cv_prog_RANLIB" && break
9003done
9004
9005if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 9006 RANLIB="true"
bb612911 9007fi
9008
95a05732 9009
9010
9011if test -n "$STRIP"; then
9012 ac_cv_prog_STRIP=$STRIP
9013elif test -n "$ac_cv_prog_STRIP"; then
9014 STRIP=$ac_cv_prog_STRIP
9015fi
9016
9017if test -n "$ac_cv_prog_STRIP"; then
9018 for ncn_progname in strip; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
95a05732 9025else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
cd9a469c 9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9036 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9038 break 2
9039 fi
9040done
cd9a469c 9041 done
9042IFS=$as_save_IFS
95a05732 9043
9044fi
9045fi
9046STRIP=$ac_cv_prog_STRIP
9047if test -n "$STRIP"; then
cd9a469c 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049$as_echo "$STRIP" >&6; }
95a05732 9050else
cd9a469c 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
95a05732 9053fi
9054
cd9a469c 9055
95a05732 9056 done
9057fi
9058
9059for ncn_progname in strip; do
f5aebe3e 9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if test "${ac_cv_prog_STRIP+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
f5aebe3e 9067else
9068 if test -n "$STRIP"; then
9069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9070else
b30fcfae 9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
cd9a469c 9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9078 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9080 break 2
9081 fi
9082done
cd9a469c 9083 done
9084IFS=$as_save_IFS
b30fcfae 9085
f5aebe3e 9086fi
9087fi
b30fcfae 9088STRIP=$ac_cv_prog_STRIP
f5aebe3e 9089if test -n "$STRIP"; then
cd9a469c 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9091$as_echo "$STRIP" >&6; }
f5aebe3e 9092else
cd9a469c 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
f5aebe3e 9095fi
9096
cd9a469c 9097
f5aebe3e 9098 fi
9099 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_STRIP+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
f5aebe3e 9106else
9107 if test -n "$STRIP"; then
9108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9109else
b30fcfae 9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
cd9a469c 9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9117 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9119 break 2
9120 fi
9121done
cd9a469c 9122 done
9123IFS=$as_save_IFS
b30fcfae 9124
f5aebe3e 9125fi
9126fi
b30fcfae 9127STRIP=$ac_cv_prog_STRIP
f5aebe3e 9128if test -n "$STRIP"; then
cd9a469c 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9130$as_echo "$STRIP" >&6; }
f5aebe3e 9131else
cd9a469c 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
f5aebe3e 9134fi
b30fcfae 9135
cd9a469c 9136
f5aebe3e 9137 fi
9138 test -n "$ac_cv_prog_STRIP" && break
9139done
9140
9141if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9142 STRIP="true"
f5aebe3e 9143fi
9144
95a05732 9145
9146
9147if test -n "$WINDRES"; then
9148 ac_cv_prog_WINDRES=$WINDRES
9149elif test -n "$ac_cv_prog_WINDRES"; then
9150 WINDRES=$ac_cv_prog_WINDRES
9151fi
9152
9153if test -n "$ac_cv_prog_WINDRES"; then
9154 for ncn_progname in windres; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
95a05732 9161else
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
cd9a469c 9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9172 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9174 break 2
9175 fi
9176done
cd9a469c 9177 done
9178IFS=$as_save_IFS
95a05732 9179
9180fi
9181fi
9182WINDRES=$ac_cv_prog_WINDRES
9183if test -n "$WINDRES"; then
cd9a469c 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185$as_echo "$WINDRES" >&6; }
95a05732 9186else
cd9a469c 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
95a05732 9189fi
9190
cd9a469c 9191
95a05732 9192 done
9193fi
9194
9195for ncn_progname in windres; do
768691b5 9196 if test -n "$ncn_tool_prefix"; then
9197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200$as_echo_n "checking for $ac_word... " >&6; }
9201if test "${ac_cv_prog_WINDRES+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
bb612911 9203else
9204 if test -n "$WINDRES"; then
9205 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9206else
b30fcfae 9207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208for as_dir in $PATH
9209do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
cd9a469c 9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9214 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9216 break 2
9217 fi
9218done
cd9a469c 9219 done
9220IFS=$as_save_IFS
b30fcfae 9221
bb612911 9222fi
9223fi
b30fcfae 9224WINDRES=$ac_cv_prog_WINDRES
bb612911 9225if test -n "$WINDRES"; then
cd9a469c 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9227$as_echo "$WINDRES" >&6; }
bb612911 9228else
cd9a469c 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
bb612911 9231fi
9232
cd9a469c 9233
768691b5 9234 fi
9235 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
9240if test "${ac_cv_prog_WINDRES+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
bb612911 9242else
768691b5 9243 if test -n "$WINDRES"; then
9244 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9245else
b30fcfae 9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
cd9a469c 9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9253 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9255 break 2
9256 fi
9257done
cd9a469c 9258 done
9259IFS=$as_save_IFS
b30fcfae 9260
bb612911 9261fi
9262fi
b30fcfae 9263WINDRES=$ac_cv_prog_WINDRES
768691b5 9264if test -n "$WINDRES"; then
cd9a469c 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9266$as_echo "$WINDRES" >&6; }
bb612911 9267else
cd9a469c 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
bb612911 9270fi
b30fcfae 9271
cd9a469c 9272
768691b5 9273 fi
9274 test -n "$ac_cv_prog_WINDRES" && break
9275done
9276
9277if test -z "$ac_cv_prog_WINDRES" ; then
9278 set dummy windres
9279 if test $build = $host ; then
9280 WINDRES="$2"
bb612911 9281 else
768691b5 9282 WINDRES="${ncn_tool_prefix}$2"
bb612911 9283 fi
bb612911 9284fi
9285
95a05732 9286
9287
75d6a0a9 9288if test -n "$WINDMC"; then
9289 ac_cv_prog_WINDMC=$WINDMC
9290elif test -n "$ac_cv_prog_WINDMC"; then
9291 WINDMC=$ac_cv_prog_WINDMC
9292fi
9293
9294if test -n "$ac_cv_prog_WINDMC"; then
9295 for ncn_progname in windmc; do
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
9300if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
75d6a0a9 9302else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305else
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
cd9a469c 9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9313 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9315 break 2
9316 fi
9317done
cd9a469c 9318 done
9319IFS=$as_save_IFS
75d6a0a9 9320
9321fi
9322fi
9323WINDMC=$ac_cv_prog_WINDMC
9324if test -n "$WINDMC"; then
cd9a469c 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326$as_echo "$WINDMC" >&6; }
75d6a0a9 9327else
cd9a469c 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
75d6a0a9 9330fi
9331
cd9a469c 9332
75d6a0a9 9333 done
9334fi
9335
9336for ncn_progname in windmc; do
9337 if test -n "$ncn_tool_prefix"; then
9338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9339set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341$as_echo_n "checking for $ac_word... " >&6; }
9342if test "${ac_cv_prog_WINDMC+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
75d6a0a9 9344else
9345 if test -n "$WINDMC"; then
9346 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9347else
9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349for as_dir in $PATH
9350do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
cd9a469c 9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9355 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9357 break 2
9358 fi
9359done
cd9a469c 9360 done
9361IFS=$as_save_IFS
75d6a0a9 9362
9363fi
9364fi
9365WINDMC=$ac_cv_prog_WINDMC
9366if test -n "$WINDMC"; then
cd9a469c 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9368$as_echo "$WINDMC" >&6; }
75d6a0a9 9369else
cd9a469c 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371$as_echo "no" >&6; }
75d6a0a9 9372fi
9373
cd9a469c 9374
75d6a0a9 9375 fi
9376 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9378set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380$as_echo_n "checking for $ac_word... " >&6; }
9381if test "${ac_cv_prog_WINDMC+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
75d6a0a9 9383else
9384 if test -n "$WINDMC"; then
9385 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9386else
9387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388for as_dir in $PATH
9389do
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
cd9a469c 9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9394 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9396 break 2
9397 fi
9398done
cd9a469c 9399 done
9400IFS=$as_save_IFS
75d6a0a9 9401
9402fi
9403fi
9404WINDMC=$ac_cv_prog_WINDMC
9405if test -n "$WINDMC"; then
cd9a469c 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9407$as_echo "$WINDMC" >&6; }
75d6a0a9 9408else
cd9a469c 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410$as_echo "no" >&6; }
75d6a0a9 9411fi
9412
cd9a469c 9413
75d6a0a9 9414 fi
9415 test -n "$ac_cv_prog_WINDMC" && break
9416done
9417
9418if test -z "$ac_cv_prog_WINDMC" ; then
9419 set dummy windmc
9420 if test $build = $host ; then
9421 WINDMC="$2"
9422 else
9423 WINDMC="${ncn_tool_prefix}$2"
9424 fi
9425fi
9426
9427
9428
95a05732 9429if test -n "$OBJCOPY"; then
9430 ac_cv_prog_OBJCOPY=$OBJCOPY
9431elif test -n "$ac_cv_prog_OBJCOPY"; then
9432 OBJCOPY=$ac_cv_prog_OBJCOPY
9433fi
9434
9435if test -n "$ac_cv_prog_OBJCOPY"; then
9436 for ncn_progname in objcopy; do
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
9441if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
95a05732 9443else
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
cd9a469c 9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9456 break 2
9457 fi
9458done
cd9a469c 9459 done
9460IFS=$as_save_IFS
95a05732 9461
9462fi
9463fi
9464OBJCOPY=$ac_cv_prog_OBJCOPY
9465if test -n "$OBJCOPY"; then
cd9a469c 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467$as_echo "$OBJCOPY" >&6; }
95a05732 9468else
cd9a469c 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
95a05732 9471fi
9472
cd9a469c 9473
95a05732 9474 done
9475fi
9476
9477for ncn_progname in objcopy; do
768691b5 9478 if test -n "$ncn_tool_prefix"; then
9479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9480set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
9483if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
bb612911 9485else
9486 if test -n "$OBJCOPY"; then
9487 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9488else
b30fcfae 9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
cd9a469c 9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9496 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9498 break 2
9499 fi
9500done
cd9a469c 9501 done
9502IFS=$as_save_IFS
b30fcfae 9503
bb612911 9504fi
9505fi
b30fcfae 9506OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9507if test -n "$OBJCOPY"; then
cd9a469c 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9509$as_echo "$OBJCOPY" >&6; }
bb612911 9510else
cd9a469c 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
bb612911 9513fi
9514
cd9a469c 9515
768691b5 9516 fi
9517 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9519set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521$as_echo_n "checking for $ac_word... " >&6; }
9522if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
bb612911 9524else
768691b5 9525 if test -n "$OBJCOPY"; then
9526 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9527else
b30fcfae 9528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
cd9a469c 9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9535 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9537 break 2
9538 fi
9539done
cd9a469c 9540 done
9541IFS=$as_save_IFS
b30fcfae 9542
bb612911 9543fi
9544fi
b30fcfae 9545OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9546if test -n "$OBJCOPY"; then
cd9a469c 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9548$as_echo "$OBJCOPY" >&6; }
bb612911 9549else
cd9a469c 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551$as_echo "no" >&6; }
bb612911 9552fi
b30fcfae 9553
cd9a469c 9554
768691b5 9555 fi
9556 test -n "$ac_cv_prog_OBJCOPY" && break
9557done
9558
9559if test -z "$ac_cv_prog_OBJCOPY" ; then
9560 set dummy objcopy
9561 if test $build = $host ; then
9562 OBJCOPY="$2"
bb612911 9563 else
768691b5 9564 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9565 fi
bb612911 9566fi
9567
95a05732 9568
9569
9570if test -n "$OBJDUMP"; then
9571 ac_cv_prog_OBJDUMP=$OBJDUMP
9572elif test -n "$ac_cv_prog_OBJDUMP"; then
9573 OBJDUMP=$ac_cv_prog_OBJDUMP
9574fi
9575
9576if test -n "$ac_cv_prog_OBJDUMP"; then
9577 for ncn_progname in objdump; do
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
95a05732 9584else
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
cd9a469c 9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9597 break 2
9598 fi
9599done
cd9a469c 9600 done
9601IFS=$as_save_IFS
95a05732 9602
9603fi
9604fi
9605OBJDUMP=$ac_cv_prog_OBJDUMP
9606if test -n "$OBJDUMP"; then
cd9a469c 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608$as_echo "$OBJDUMP" >&6; }
95a05732 9609else
cd9a469c 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
95a05732 9612fi
9613
cd9a469c 9614
95a05732 9615 done
9616fi
9617
9618for ncn_progname in objdump; do
768691b5 9619 if test -n "$ncn_tool_prefix"; then
9620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623$as_echo_n "checking for $ac_word... " >&6; }
9624if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
bb612911 9626else
9627 if test -n "$OBJDUMP"; then
9628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9629else
b30fcfae 9630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631for as_dir in $PATH
9632do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
cd9a469c 9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9637 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9639 break 2
9640 fi
9641done
cd9a469c 9642 done
9643IFS=$as_save_IFS
b30fcfae 9644
bb612911 9645fi
9646fi
b30fcfae 9647OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9648if test -n "$OBJDUMP"; then
cd9a469c 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9650$as_echo "$OBJDUMP" >&6; }
bb612911 9651else
cd9a469c 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653$as_echo "no" >&6; }
bb612911 9654fi
9655
cd9a469c 9656
768691b5 9657 fi
9658 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662$as_echo_n "checking for $ac_word... " >&6; }
9663if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
bb612911 9665else
768691b5 9666 if test -n "$OBJDUMP"; then
9667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9668else
b30fcfae 9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670for as_dir in $PATH
9671do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
cd9a469c 9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9676 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9678 break 2
9679 fi
9680done
cd9a469c 9681 done
9682IFS=$as_save_IFS
b30fcfae 9683
bb612911 9684fi
9685fi
b30fcfae 9686OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9687if test -n "$OBJDUMP"; then
cd9a469c 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689$as_echo "$OBJDUMP" >&6; }
bb612911 9690else
cd9a469c 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
bb612911 9693fi
b30fcfae 9694
cd9a469c 9695
768691b5 9696 fi
9697 test -n "$ac_cv_prog_OBJDUMP" && break
9698done
9699
9700if test -z "$ac_cv_prog_OBJDUMP" ; then
9701 set dummy objdump
9702 if test $build = $host ; then
9703 OBJDUMP="$2"
bb612911 9704 else
768691b5 9705 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9706 fi
bb612911 9707fi
9708
71ab34df 9709
9710
3f71364d 9711if test -n "$READELF"; then
9712 ac_cv_prog_READELF=$READELF
9713elif test -n "$ac_cv_prog_READELF"; then
9714 READELF=$ac_cv_prog_READELF
9715fi
9716
9717if test -n "$ac_cv_prog_READELF"; then
9718 for ncn_progname in readelf; do
9719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9720set dummy ${ncn_progname}; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if test "${ac_cv_prog_READELF+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$READELF"; then
9727 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_prog_READELF="${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746READELF=$ac_cv_prog_READELF
9747if test -n "$READELF"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9749$as_echo "$READELF" >&6; }
9750else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756 done
9757fi
9758
9759for ncn_progname in readelf; do
9760 if test -n "$ncn_tool_prefix"; then
9761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764$as_echo_n "checking for $ac_word... " >&6; }
9765if test "${ac_cv_prog_READELF+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$READELF"; then
9769 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783 done
9784IFS=$as_save_IFS
9785
9786fi
9787fi
9788READELF=$ac_cv_prog_READELF
9789if test -n "$READELF"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9791$as_echo "$READELF" >&6; }
9792else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
9795fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801set dummy ${ncn_progname}; ac_word=$2
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803$as_echo_n "checking for $ac_word... " >&6; }
9804if test "${ac_cv_prog_READELF+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806else
9807 if test -n "$READELF"; then
9808 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9809else
9810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $PATH
9812do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_READELF="${ncn_progname}"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821done
9822 done
9823IFS=$as_save_IFS
9824
9825fi
9826fi
9827READELF=$ac_cv_prog_READELF
9828if test -n "$READELF"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9830$as_echo "$READELF" >&6; }
9831else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835
9836
9837 fi
9838 test -n "$ac_cv_prog_READELF" && break
9839done
9840
9841if test -z "$ac_cv_prog_READELF" ; then
9842 set dummy readelf
9843 if test $build = $host ; then
9844 READELF="$2"
9845 else
9846 READELF="${ncn_tool_prefix}$2"
9847 fi
9848fi
9849
9850
9851
71ab34df 9852
9853
9854
f5aebe3e 9855# Target tools.
b30fcfae 9856
cd9a469c 9857# Check whether --with-build-time-tools was given.
9858if test "${with_build_time_tools+set}" = set; then :
9859 withval=$with_build_time_tools; case x"$withval" in
c47832b1 9860 x/*) ;;
9861 *)
9862 with_build_time_tools=
cd9a469c 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9864$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 9865 ;;
9866 esac
bb612911 9867else
c47832b1 9868 with_build_time_tools=
cd9a469c 9869fi
9870
bb612911 9871
95a05732 9872
9873
9874if test -n "$CC_FOR_TARGET"; then
9875 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9876elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9877 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9878fi
9879
9880if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9881 for ncn_progname in cc gcc; do
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
9886if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
95a05732 9888else
9889 if test -n "$CC_FOR_TARGET"; then
9890 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9891else
9892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
cd9a469c 9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9899 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9901 break 2
9902 fi
9903done
cd9a469c 9904 done
9905IFS=$as_save_IFS
95a05732 9906
9907fi
9908fi
9909CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9910if test -n "$CC_FOR_TARGET"; then
cd9a469c 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9912$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 9913else
cd9a469c 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
95a05732 9916fi
9917
cd9a469c 9918
95a05732 9919 done
9920fi
9921
9922if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9923 for ncn_progname in cc gcc; do
cd9a469c 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 9926 if test -x $with_build_time_tools/${ncn_progname}; then
9927 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929$as_echo "yes" >&6; }
9886f3d1 9930 break
c47832b1 9931 else
cd9a469c 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
9886f3d1 9934 fi
9935 done
ef8184c7 9936fi
9937
c47832b1 9938if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9939 for ncn_progname in cc gcc; do
9940 if test -n "$ncn_target_tool_prefix"; then
9941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
ef8184c7 9947else
9948 if test -n "$CC_FOR_TARGET"; then
9949 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9950else
b30fcfae 9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
cd9a469c 9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9958 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9960 break 2
9961 fi
9962done
cd9a469c 9963 done
9964IFS=$as_save_IFS
b30fcfae 9965
ef8184c7 9966fi
9967fi
b30fcfae 9968CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 9969if test -n "$CC_FOR_TARGET"; then
cd9a469c 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9971$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 9972else
cd9a469c 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974$as_echo "no" >&6; }
ef8184c7 9975fi
9976
cd9a469c 9977
c47832b1 9978 fi
9979 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9981set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
ef8184c7 9986else
768691b5 9987 if test -n "$CC_FOR_TARGET"; then
9988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 9989else
b30fcfae 9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
cd9a469c 9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9999 break 2
10000 fi
10001done
cd9a469c 10002 done
10003IFS=$as_save_IFS
b30fcfae 10004
ef8184c7 10005fi
10006fi
b30fcfae 10007CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 10008if test -n "$CC_FOR_TARGET"; then
cd9a469c 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10010$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10011else
cd9a469c 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
ef8184c7 10014fi
b30fcfae 10015
cd9a469c 10016
c47832b1 10017 fi
10018 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10019 done
10020fi
b30fcfae 10021
768691b5 10022if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10023 set dummy cc gcc
10024 if test $build = $target ; then
10025 CC_FOR_TARGET="$2"
ef8184c7 10026 else
768691b5 10027 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10028 fi
b7ef8464 10029else
10030 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 10031fi
10032
95a05732 10033
10034
10035if test -n "$CXX_FOR_TARGET"; then
10036 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10037elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10038 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10039fi
10040
10041if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10042 for ncn_progname in c++ g++ cxx gxx; do
10043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10044set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
10047if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
95a05732 10049else
10050 if test -n "$CXX_FOR_TARGET"; then
10051 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10052else
10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
cd9a469c 10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10060 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10062 break 2
10063 fi
10064done
cd9a469c 10065 done
10066IFS=$as_save_IFS
95a05732 10067
10068fi
10069fi
10070CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10071if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10073$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 10074else
cd9a469c 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076$as_echo "no" >&6; }
95a05732 10077fi
10078
cd9a469c 10079
95a05732 10080 done
10081fi
10082
10083if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10084 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10086$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10087 if test -x $with_build_time_tools/${ncn_progname}; then
10088 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090$as_echo "yes" >&6; }
c47832b1 10091 break
10092 else
cd9a469c 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
c47832b1 10095 fi
10096 done
10097fi
10098
10099if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10100 for ncn_progname in c++ g++ cxx gxx; do
10101 if test -n "$ncn_target_tool_prefix"; then
10102 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10103set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105$as_echo_n "checking for $ac_word... " >&6; }
10106if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
ef8184c7 10108else
10109 if test -n "$CXX_FOR_TARGET"; then
10110 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10111else
b30fcfae 10112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
cd9a469c 10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10119 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10121 break 2
10122 fi
10123done
cd9a469c 10124 done
10125IFS=$as_save_IFS
b30fcfae 10126
ef8184c7 10127fi
10128fi
b30fcfae 10129CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 10130if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10132$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10133else
cd9a469c 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135$as_echo "no" >&6; }
ef8184c7 10136fi
10137
cd9a469c 10138
c47832b1 10139 fi
10140 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10142set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144$as_echo_n "checking for $ac_word... " >&6; }
10145if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
ef8184c7 10147else
768691b5 10148 if test -n "$CXX_FOR_TARGET"; then
10149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 10150else
b30fcfae 10151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
cd9a469c 10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10160 break 2
10161 fi
10162done
cd9a469c 10163 done
10164IFS=$as_save_IFS
b30fcfae 10165
ef8184c7 10166fi
10167fi
b30fcfae 10168CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 10169if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10171$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10172else
cd9a469c 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
ef8184c7 10175fi
b30fcfae 10176
cd9a469c 10177
c47832b1 10178 fi
10179 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10180 done
10181fi
b30fcfae 10182
768691b5 10183if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10184 set dummy c++ g++ cxx gxx
10185 if test $build = $target ; then
10186 CXX_FOR_TARGET="$2"
ef8184c7 10187 else
768691b5 10188 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10189 fi
b7ef8464 10190else
10191 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 10192fi
10193
95a05732 10194
10195
10196if test -n "$GCC_FOR_TARGET"; then
10197 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10198elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10199 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10200fi
10201
10202if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10203 for ncn_progname in gcc; do
10204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10205set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
10208if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
95a05732 10210else
10211 if test -n "$GCC_FOR_TARGET"; then
10212 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10213else
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
cd9a469c 10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10221 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10223 break 2
10224 fi
10225done
cd9a469c 10226 done
10227IFS=$as_save_IFS
95a05732 10228
10229fi
10230fi
10231GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10232if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10234$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 10235else
cd9a469c 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237$as_echo "no" >&6; }
95a05732 10238fi
10239
cd9a469c 10240
95a05732 10241 done
10242fi
10243
10244if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10245 for ncn_progname in gcc; do
cd9a469c 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10247$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10248 if test -x $with_build_time_tools/${ncn_progname}; then
10249 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251$as_echo "yes" >&6; }
c47832b1 10252 break
10253 else
cd9a469c 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255$as_echo "no" >&6; }
c47832b1 10256 fi
10257 done
10258fi
10259
10260if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10261 for ncn_progname in gcc; do
10262 if test -n "$ncn_target_tool_prefix"; then
10263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10264set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266$as_echo_n "checking for $ac_word... " >&6; }
10267if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
bb612911 10269else
c47832b1 10270 if test -n "$GCC_FOR_TARGET"; then
10271 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10272else
b30fcfae 10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
cd9a469c 10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10280 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10282 break 2
10283 fi
10284done
cd9a469c 10285 done
10286IFS=$as_save_IFS
b30fcfae 10287
bb612911 10288fi
10289fi
b30fcfae 10290GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10291if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10293$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10294else
cd9a469c 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296$as_echo "no" >&6; }
bb612911 10297fi
10298
cd9a469c 10299
c47832b1 10300 fi
10301 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10303set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
10306if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
bb612911 10308else
c47832b1 10309 if test -n "$GCC_FOR_TARGET"; then
10310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10311else
b30fcfae 10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
cd9a469c 10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10321 break 2
10322 fi
10323done
cd9a469c 10324 done
10325IFS=$as_save_IFS
b30fcfae 10326
bb612911 10327fi
10328fi
b30fcfae 10329GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10330if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10332$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10333else
cd9a469c 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
bb612911 10336fi
b30fcfae 10337
cd9a469c 10338
c47832b1 10339 fi
10340 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10341 done
10342fi
b30fcfae 10343
c47832b1 10344if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10345 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10346else
10347 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10348fi
10349
95a05732 10350
10351
95a05732 10352if test -n "$GFORTRAN_FOR_TARGET"; then
10353 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10354elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10355 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10356fi
10357
95a05732 10358if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10359 for ncn_progname in gfortran; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10361set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
10364if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
c47832b1 10366else
95a05732 10367 if test -n "$GFORTRAN_FOR_TARGET"; then
10368 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10369else
b30fcfae 10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
cd9a469c 10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10377 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10379 break 2
10380 fi
10381done
cd9a469c 10382 done
10383IFS=$as_save_IFS
b30fcfae 10384
c47832b1 10385fi
10386fi
95a05732 10387GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10388if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10390$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10391else
cd9a469c 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
c47832b1 10394fi
b30fcfae 10395
cd9a469c 10396
c47832b1 10397 done
10398fi
b30fcfae 10399
95a05732 10400if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10401 for ncn_progname in gfortran; do
cd9a469c 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10403$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10404 if test -x $with_build_time_tools/${ncn_progname}; then
10405 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407$as_echo "yes" >&6; }
c47832b1 10408 break
10409 else
cd9a469c 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
c47832b1 10412 fi
10413 done
10414fi
10415
10416if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10417 for ncn_progname in gfortran; do
10418 if test -n "$ncn_target_tool_prefix"; then
10419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10420set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
10423if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
c47832b1 10425else
10426 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10427 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
cd9a469c 10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10436 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10438 break 2
10439 fi
10440done
cd9a469c 10441 done
10442IFS=$as_save_IFS
b30fcfae 10443
c47832b1 10444fi
10445fi
b30fcfae 10446GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10447if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10449$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10450else
cd9a469c 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
c47832b1 10453fi
10454
cd9a469c 10455
c47832b1 10456 fi
10457 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10459set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461$as_echo_n "checking for $ac_word... " >&6; }
10462if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
c47832b1 10464else
10465 if test -n "$GFORTRAN_FOR_TARGET"; then
10466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10467else
b30fcfae 10468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469for as_dir in $PATH
10470do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
cd9a469c 10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10477 break 2
10478 fi
10479done
cd9a469c 10480 done
10481IFS=$as_save_IFS
b30fcfae 10482
c47832b1 10483fi
10484fi
b30fcfae 10485GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10486if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10488$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10489else
cd9a469c 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491$as_echo "no" >&6; }
c47832b1 10492fi
b30fcfae 10493
cd9a469c 10494
c47832b1 10495 fi
10496 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10497 done
10498fi
b30fcfae 10499
c47832b1 10500if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10501 set dummy gfortran
768691b5 10502 if test $build = $target ; then
c47832b1 10503 GFORTRAN_FOR_TARGET="$2"
bb612911 10504 else
c47832b1 10505 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10506 fi
b7ef8464 10507else
10508 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10509fi
10510
10511
10512
5ff5b630 10513if test -n "$GOC_FOR_TARGET"; then
10514 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10515elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10516 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517fi
10518
10519if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10520 for ncn_progname in gccgo; do
10521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10522set dummy ${ncn_progname}; ac_word=$2
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524$as_echo_n "checking for $ac_word... " >&6; }
10525if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527else
10528 if test -n "$GOC_FOR_TARGET"; then
10529 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10530else
10531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546fi
10547fi
10548GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10549if test -n "$GOC_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10551$as_echo "$GOC_FOR_TARGET" >&6; }
10552else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555fi
10556
10557
10558 done
10559fi
10560
10561if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10562 for ncn_progname in gccgo; do
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10564$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10565 if test -x $with_build_time_tools/${ncn_progname}; then
10566 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568$as_echo "yes" >&6; }
10569 break
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573 fi
10574 done
10575fi
10576
10577if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10578 for ncn_progname in gccgo; do
10579 if test -n "$ncn_target_tool_prefix"; then
10580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10581set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
10584if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586else
10587 if test -n "$GOC_FOR_TARGET"; then
10588 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602 done
10603IFS=$as_save_IFS
10604
10605fi
10606fi
10607GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10608if test -n "$GOC_FOR_TARGET"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10610$as_echo "$GOC_FOR_TARGET" >&6; }
10611else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615
10616
10617 fi
10618 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620set dummy ${ncn_progname}; ac_word=$2
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622$as_echo_n "checking for $ac_word... " >&6; }
10623if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625else
10626 if test -n "$GOC_FOR_TARGET"; then
10627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641 done
10642IFS=$as_save_IFS
10643
10644fi
10645fi
10646GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10647if test -n "$GOC_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10649$as_echo "$GOC_FOR_TARGET" >&6; }
10650else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655
10656 fi
10657 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10662 set dummy gccgo
10663 if test $build = $target ; then
10664 GOC_FOR_TARGET="$2"
10665 else
10666 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10667 fi
10668else
10669 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10670fi
10671
10672
10673
c47832b1 10674cat > conftest.c << \EOF
10675#ifdef __GNUC__
10676 gcc_yay;
10677#endif
10678EOF
10679if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10680 have_gcc_for_target=yes
10681else
10682 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10683 have_gcc_for_target=no
10684fi
10685rm conftest.c
10686
10687
10688
10689
10690if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
cd9a469c 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10693$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 10694 if test -x $with_build_time_tools/ar; then
10695 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10696 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10698$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 10699 else
cd9a469c 10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
ab0da556 10702 fi
c47832b1 10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 10705 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10706 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 10707 fi
10708fi
38d7211b 10709if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10710 # Extract the first word of "ar", so it can be a program name with args.
10711set dummy ar; ac_word=$2
cd9a469c 10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713$as_echo_n "checking for $ac_word... " >&6; }
10714if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
c47832b1 10716else
b30fcfae 10717 case $AR_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
c47832b1 10719 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10720 ;;
c47832b1 10721 *)
b30fcfae 10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $gcc_cv_tool_dirs
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
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_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 10737 ;;
10738esac
10739fi
b30fcfae 10740AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 10741if test -n "$AR_FOR_TARGET"; then
cd9a469c 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10743$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 10744else
cd9a469c 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
ef8184c7 10747fi
10748
cd9a469c 10749
c47832b1 10750fi
10751if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 10752
10753
10754if test -n "$AR_FOR_TARGET"; then
10755 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10756elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10757 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10758fi
10759
10760if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10761 for ncn_progname in ar; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
10766if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
95a05732 10768else
10769 if test -n "$AR_FOR_TARGET"; then
10770 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10771else
10772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773for as_dir in $PATH
10774do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
cd9a469c 10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10779 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10781 break 2
10782 fi
10783done
cd9a469c 10784 done
10785IFS=$as_save_IFS
95a05732 10786
10787fi
10788fi
10789AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10790if test -n "$AR_FOR_TARGET"; then
cd9a469c 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10792$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 10793else
cd9a469c 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
95a05732 10796fi
10797
cd9a469c 10798
95a05732 10799 done
10800fi
10801
10802if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10803 for ncn_progname in ar; do
cd9a469c 10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
c47832b1 10810 break
10811 else
cd9a469c 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
c47832b1 10814 fi
10815 done
10816fi
10817
10818if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10819 for ncn_progname in ar; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10822set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
10825if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
ef8184c7 10827else
c47832b1 10828 if test -n "$AR_FOR_TARGET"; then
10829 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 10830else
b30fcfae 10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
cd9a469c 10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10838 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10840 break 2
10841 fi
10842done
cd9a469c 10843 done
10844IFS=$as_save_IFS
b30fcfae 10845
ef8184c7 10846fi
10847fi
b30fcfae 10848AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 10849if test -n "$AR_FOR_TARGET"; then
cd9a469c 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10851$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 10852else
cd9a469c 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
ef8184c7 10855fi
10856
cd9a469c 10857
c47832b1 10858 fi
10859 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
10864if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
c47832b1 10866else
10867 if test -n "$AR_FOR_TARGET"; then
10868 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10869else
b30fcfae 10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
cd9a469c 10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10877 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10879 break 2
10880 fi
10881done
cd9a469c 10882 done
10883IFS=$as_save_IFS
b30fcfae 10884
c47832b1 10885fi
10886fi
b30fcfae 10887AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 10888if test -n "$AR_FOR_TARGET"; then
cd9a469c 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10890$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 10891else
cd9a469c 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
c47832b1 10894fi
b30fcfae 10895
cd9a469c 10896
c47832b1 10897 fi
10898 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10899 done
10900fi
b30fcfae 10901
c47832b1 10902if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10903 set dummy ar
10904 if test $build = $target ; then
10905 AR_FOR_TARGET="$2"
10906 else
10907 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 10908 fi
b7ef8464 10909else
10910 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 10911fi
10912
ab0da556 10913else
10914 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 10915fi
10916
10917
10918
10919
10920if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
cd9a469c 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10923$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 10924 if test -x $with_build_time_tools/as; then
10925 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10926 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10928$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 10929 else
cd9a469c 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
ab0da556 10932 fi
c47832b1 10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 10935 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10936 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 10937 fi
10938fi
38d7211b 10939if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10940 # Extract the first word of "as", so it can be a program name with args.
10941set dummy as; ac_word=$2
cd9a469c 10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
c47832b1 10946else
b30fcfae 10947 case $AS_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
c47832b1 10949 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10950 ;;
c47832b1 10951 *)
b30fcfae 10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $gcc_cv_tool_dirs
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
cd9a469c 10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10959 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10961 break 2
10962 fi
10963done
cd9a469c 10964 done
10965IFS=$as_save_IFS
b30fcfae 10966
c47832b1 10967 ;;
10968esac
10969fi
b30fcfae 10970AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 10971if test -n "$AS_FOR_TARGET"; then
cd9a469c 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10973$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 10974else
cd9a469c 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
c47832b1 10977fi
10978
cd9a469c 10979
c47832b1 10980fi
10981if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 10982
10983
10984if test -n "$AS_FOR_TARGET"; then
10985 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10986elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10987 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10988fi
10989
10990if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10991 for ncn_progname in as; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995$as_echo_n "checking for $ac_word... " >&6; }
10996if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
95a05732 10998else
10999 if test -n "$AS_FOR_TARGET"; then
11000 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
cd9a469c 11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11009 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11011 break 2
11012 fi
11013done
cd9a469c 11014 done
11015IFS=$as_save_IFS
95a05732 11016
11017fi
11018fi
11019AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11020if test -n "$AS_FOR_TARGET"; then
cd9a469c 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11022$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 11023else
cd9a469c 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025$as_echo "no" >&6; }
95a05732 11026fi
11027
cd9a469c 11028
95a05732 11029 done
11030fi
11031
11032if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11033 for ncn_progname in as; do
cd9a469c 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11035$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11036 if test -x $with_build_time_tools/${ncn_progname}; then
11037 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039$as_echo "yes" >&6; }
c47832b1 11040 break
11041 else
cd9a469c 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
c47832b1 11044 fi
11045 done
11046fi
11047
11048if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11049 for ncn_progname in as; do
11050 if test -n "$ncn_target_tool_prefix"; then
11051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11052set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
11055if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
c47832b1 11057else
11058 if test -n "$AS_FOR_TARGET"; then
11059 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11060else
b30fcfae 11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
cd9a469c 11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11068 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11070 break 2
11071 fi
11072done
cd9a469c 11073 done
11074IFS=$as_save_IFS
b30fcfae 11075
c47832b1 11076fi
11077fi
b30fcfae 11078AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11079if test -n "$AS_FOR_TARGET"; then
cd9a469c 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11081$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11082else
cd9a469c 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084$as_echo "no" >&6; }
c47832b1 11085fi
11086
cd9a469c 11087
c47832b1 11088 fi
11089 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11091set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
ef8184c7 11096else
c47832b1 11097 if test -n "$AS_FOR_TARGET"; then
11098 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11099else
b30fcfae 11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
cd9a469c 11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11107 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11109 break 2
11110 fi
11111done
cd9a469c 11112 done
11113IFS=$as_save_IFS
b30fcfae 11114
ef8184c7 11115fi
11116fi
b30fcfae 11117AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11118if test -n "$AS_FOR_TARGET"; then
cd9a469c 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11120$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11121else
cd9a469c 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
ef8184c7 11124fi
b30fcfae 11125
cd9a469c 11126
c47832b1 11127 fi
11128 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11129 done
11130fi
b30fcfae 11131
c47832b1 11132if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11133 set dummy as
11134 if test $build = $target ; then
11135 AS_FOR_TARGET="$2"
11136 else
11137 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11138 fi
b7ef8464 11139else
11140 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11141fi
768691b5 11142
ab0da556 11143else
11144 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11145fi
11146
c47832b1 11147
11148
11149
11150if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11151 if test -n "$with_build_time_tools"; then
cd9a469c 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11153$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11154 if test -x $with_build_time_tools/dlltool; then
11155 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11156 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11158$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11159 else
cd9a469c 11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
ab0da556 11162 fi
c47832b1 11163 elif test $build != $host && test $have_gcc_for_target = yes; then
11164 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11165 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11166 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11167 fi
11168fi
38d7211b 11169if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11170 # Extract the first word of "dlltool", so it can be a program name with args.
11171set dummy dlltool; ac_word=$2
cd9a469c 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173$as_echo_n "checking for $ac_word... " >&6; }
11174if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
ef8184c7 11176else
b30fcfae 11177 case $DLLTOOL_FOR_TARGET in
11178 [\\/]* | ?:[\\/]*)
c47832b1 11179 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11180 ;;
c47832b1 11181 *)
b30fcfae 11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $gcc_cv_tool_dirs
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
cd9a469c 11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11189 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11191 break 2
11192 fi
11193done
cd9a469c 11194 done
11195IFS=$as_save_IFS
b30fcfae 11196
c47832b1 11197 ;;
11198esac
ef8184c7 11199fi
b30fcfae 11200DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11201if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11203$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11204else
cd9a469c 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
ef8184c7 11207fi
11208
cd9a469c 11209
c47832b1 11210fi
11211if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11212
11213
11214if test -n "$DLLTOOL_FOR_TARGET"; then
11215 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11216elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11217 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11218fi
11219
11220if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11221 for ncn_progname in dlltool; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
95a05732 11228else
11229 if test -n "$DLLTOOL_FOR_TARGET"; then
11230 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
cd9a469c 11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11239 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11241 break 2
11242 fi
11243done
cd9a469c 11244 done
11245IFS=$as_save_IFS
95a05732 11246
11247fi
11248fi
11249DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11250if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11252$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11253else
cd9a469c 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
95a05732 11256fi
11257
cd9a469c 11258
95a05732 11259 done
11260fi
11261
11262if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11263 for ncn_progname in dlltool; do
cd9a469c 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11265$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11266 if test -x $with_build_time_tools/${ncn_progname}; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269$as_echo "yes" >&6; }
c47832b1 11270 break
11271 else
cd9a469c 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
c47832b1 11274 fi
11275 done
11276fi
11277
11278if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11279 for ncn_progname in dlltool; do
11280 if test -n "$ncn_target_tool_prefix"; then
11281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11282set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
ef8184c7 11287else
c47832b1 11288 if test -n "$DLLTOOL_FOR_TARGET"; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11290else
b30fcfae 11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
cd9a469c 11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11298 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11300 break 2
11301 fi
11302done
cd9a469c 11303 done
11304IFS=$as_save_IFS
b30fcfae 11305
ef8184c7 11306fi
11307fi
b30fcfae 11308DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11309if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11311$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11312else
cd9a469c 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
ef8184c7 11315fi
ef8184c7 11316
cd9a469c 11317
c47832b1 11318 fi
11319 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
ef8184c7 11326else
c47832b1 11327 if test -n "$DLLTOOL_FOR_TARGET"; then
11328 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11329else
b30fcfae 11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
cd9a469c 11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11337 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11339 break 2
11340 fi
11341done
cd9a469c 11342 done
11343IFS=$as_save_IFS
b30fcfae 11344
ef8184c7 11345fi
11346fi
b30fcfae 11347DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11348if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11350$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11351else
cd9a469c 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
ef8184c7 11354fi
b30fcfae 11355
cd9a469c 11356
c47832b1 11357 fi
11358 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11359 done
11360fi
b30fcfae 11361
c47832b1 11362if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11363 set dummy dlltool
11364 if test $build = $target ; then
11365 DLLTOOL_FOR_TARGET="$2"
11366 else
11367 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11368 fi
b7ef8464 11369else
11370 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11371fi
11372
ab0da556 11373else
11374 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11375fi
11376
ef8184c7 11377
c47832b1 11378
11379
11380if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
cd9a469c 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11383$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11384 if test -x $with_build_time_tools/ld; then
11385 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11386 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11388$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11389 else
cd9a469c 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
ab0da556 11392 fi
c47832b1 11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11395 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11396 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11397 fi
c47832b1 11398fi
38d7211b 11399if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11400 # Extract the first word of "ld", so it can be a program name with args.
11401set dummy ld; ac_word=$2
cd9a469c 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403$as_echo_n "checking for $ac_word... " >&6; }
11404if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
ef8184c7 11406else
b30fcfae 11407 case $LD_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
c47832b1 11409 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11410 ;;
c47832b1 11411 *)
b30fcfae 11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $gcc_cv_tool_dirs
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
cd9a469c 11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11419 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11421 break 2
11422 fi
11423done
cd9a469c 11424 done
11425IFS=$as_save_IFS
b30fcfae 11426
c47832b1 11427 ;;
11428esac
ef8184c7 11429fi
b30fcfae 11430LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11431if test -n "$LD_FOR_TARGET"; then
cd9a469c 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11433$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11434else
cd9a469c 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
ef8184c7 11437fi
768691b5 11438
cd9a469c 11439
c47832b1 11440fi
11441if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11442
11443
11444if test -n "$LD_FOR_TARGET"; then
11445 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11446elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11447 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11448fi
11449
11450if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11451 for ncn_progname in ld; do
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455$as_echo_n "checking for $ac_word... " >&6; }
11456if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
95a05732 11458else
11459 if test -n "$LD_FOR_TARGET"; then
11460 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11461else
11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
cd9a469c 11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11469 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11471 break 2
11472 fi
11473done
cd9a469c 11474 done
11475IFS=$as_save_IFS
95a05732 11476
11477fi
11478fi
11479LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11480if test -n "$LD_FOR_TARGET"; then
cd9a469c 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11482$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11483else
cd9a469c 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
95a05732 11486fi
11487
cd9a469c 11488
95a05732 11489 done
11490fi
11491
11492if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11493 for ncn_progname in ld; do
cd9a469c 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11495$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11496 if test -x $with_build_time_tools/${ncn_progname}; then
11497 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499$as_echo "yes" >&6; }
c47832b1 11500 break
11501 else
cd9a469c 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
c47832b1 11504 fi
11505 done
bb612911 11506fi
11507
c47832b1 11508if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11509 for ncn_progname in ld; do
11510 if test -n "$ncn_target_tool_prefix"; then
11511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11512set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514$as_echo_n "checking for $ac_word... " >&6; }
11515if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
bb612911 11517else
ef8184c7 11518 if test -n "$LD_FOR_TARGET"; then
11519 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11520else
b30fcfae 11521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522for as_dir in $PATH
11523do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
cd9a469c 11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11528 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11530 break 2
11531 fi
11532done
cd9a469c 11533 done
11534IFS=$as_save_IFS
b30fcfae 11535
bb612911 11536fi
11537fi
b30fcfae 11538LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 11539if test -n "$LD_FOR_TARGET"; then
cd9a469c 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11541$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11542else
cd9a469c 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
bb612911 11545fi
11546
cd9a469c 11547
c47832b1 11548 fi
11549 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11551set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
bb612911 11556else
768691b5 11557 if test -n "$LD_FOR_TARGET"; then
11558 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11559else
b30fcfae 11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
cd9a469c 11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11567 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11569 break 2
11570 fi
11571done
cd9a469c 11572 done
11573IFS=$as_save_IFS
b30fcfae 11574
bb612911 11575fi
11576fi
b30fcfae 11577LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 11578if test -n "$LD_FOR_TARGET"; then
cd9a469c 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11580$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11581else
cd9a469c 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
bb612911 11584fi
b30fcfae 11585
cd9a469c 11586
c47832b1 11587 fi
11588 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11589 done
11590fi
b30fcfae 11591
768691b5 11592if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11593 set dummy ld
11594 if test $build = $target ; then
11595 LD_FOR_TARGET="$2"
bb612911 11596 else
768691b5 11597 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11598 fi
b7ef8464 11599else
11600 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 11601fi
11602
ab0da556 11603else
11604 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11605fi
11606
11607
11608
11609
11610if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11611 if test -n "$with_build_time_tools"; then
cd9a469c 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11613$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 11614 if test -x $with_build_time_tools/lipo; then
11615 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11616 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11618$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 11619 else
cd9a469c 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
ab0da556 11622 fi
c47832b1 11623 elif test $build != $host && test $have_gcc_for_target = yes; then
11624 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 11625 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11626 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 11627 fi
11628fi
95a05732 11629if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11630 # Extract the first word of "lipo", so it can be a program name with args.
11631set dummy lipo; ac_word=$2
cd9a469c 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
95a05732 11636else
11637 case $LIPO_FOR_TARGET in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $gcc_cv_tool_dirs
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
cd9a469c 11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11649 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11651 break 2
11652 fi
11653done
cd9a469c 11654 done
11655IFS=$as_save_IFS
95a05732 11656
11657 ;;
11658esac
11659fi
11660LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 11661if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11663$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 11664else
cd9a469c 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
95a05732 11667fi
11668
cd9a469c 11669
95a05732 11670fi
11671if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11672
11673
11674if test -n "$LIPO_FOR_TARGET"; then
11675 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11676elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11677 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11678fi
11679
11680if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11681 for ncn_progname in lipo; do
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
11686if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
c47832b1 11688else
95a05732 11689 if test -n "$LIPO_FOR_TARGET"; then
11690 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
b30fcfae 11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
cd9a469c 11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11699 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11701 break 2
11702 fi
11703done
cd9a469c 11704 done
11705IFS=$as_save_IFS
b30fcfae 11706
c47832b1 11707fi
95a05732 11708fi
11709LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 11710if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11712$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 11713else
cd9a469c 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
c47832b1 11716fi
11717
cd9a469c 11718
95a05732 11719 done
c47832b1 11720fi
95a05732 11721
11722if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11723 for ncn_progname in lipo; do
cd9a469c 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11725$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11726 if test -x $with_build_time_tools/${ncn_progname}; then
11727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729$as_echo "yes" >&6; }
c47832b1 11730 break
11731 else
cd9a469c 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
c47832b1 11734 fi
11735 done
11736fi
11737
11738if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11739 for ncn_progname in lipo; do
11740 if test -n "$ncn_target_tool_prefix"; then
11741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
9fec3fa8 11747else
11748 if test -n "$LIPO_FOR_TARGET"; then
11749 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11750else
b30fcfae 11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
cd9a469c 11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11758 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11760 break 2
11761 fi
11762done
cd9a469c 11763 done
11764IFS=$as_save_IFS
b30fcfae 11765
9fec3fa8 11766fi
11767fi
b30fcfae 11768LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 11769if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11771$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 11772else
cd9a469c 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
9fec3fa8 11775fi
11776
cd9a469c 11777
c47832b1 11778 fi
11779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 11781set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
9fec3fa8 11786else
11787 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 11788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11789else
b30fcfae 11790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
cd9a469c 11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11799 break 2
11800 fi
11801done
cd9a469c 11802 done
11803IFS=$as_save_IFS
b30fcfae 11804
9fec3fa8 11805fi
11806fi
b30fcfae 11807LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 11808if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11810$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 11811else
cd9a469c 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
9fec3fa8 11814fi
b30fcfae 11815
cd9a469c 11816
c47832b1 11817 fi
11818 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11819 done
11820fi
b30fcfae 11821
9fec3fa8 11822if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11823 set dummy lipo
11824 if test $build = $target ; then
11825 LIPO_FOR_TARGET="$2"
11826 else
11827 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11828 fi
b7ef8464 11829else
11830 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 11831fi
11832
ab0da556 11833else
11834 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 11835fi
11836
11837
11838
11839
11840if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11841 if test -n "$with_build_time_tools"; then
cd9a469c 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11843$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 11844 if test -x $with_build_time_tools/nm; then
11845 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11846 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11848$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 11849 else
cd9a469c 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
ab0da556 11852 fi
c47832b1 11853 elif test $build != $host && test $have_gcc_for_target = yes; then
11854 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 11855 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11856 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 11857 fi
11858fi
38d7211b 11859if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11860 # Extract the first word of "nm", so it can be a program name with args.
11861set dummy nm; ac_word=$2
cd9a469c 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
c47832b1 11866else
b30fcfae 11867 case $NM_FOR_TARGET in
11868 [\\/]* | ?:[\\/]*)
c47832b1 11869 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11870 ;;
c47832b1 11871 *)
b30fcfae 11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $gcc_cv_tool_dirs
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
cd9a469c 11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11879 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11881 break 2
11882 fi
11883done
cd9a469c 11884 done
11885IFS=$as_save_IFS
b30fcfae 11886
c47832b1 11887 ;;
11888esac
11889fi
b30fcfae 11890NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 11891if test -n "$NM_FOR_TARGET"; then
cd9a469c 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11893$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 11894else
cd9a469c 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
c47832b1 11897fi
11898
cd9a469c 11899
c47832b1 11900fi
11901if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 11902
11903
11904if test -n "$NM_FOR_TARGET"; then
11905 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11906elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11907 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11908fi
11909
11910if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11911 for ncn_progname in nm; do
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
11916if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
95a05732 11918else
11919 if test -n "$NM_FOR_TARGET"; then
11920 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11921else
11922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923for as_dir in $PATH
11924do
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
cd9a469c 11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11929 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11931 break 2
11932 fi
11933done
cd9a469c 11934 done
11935IFS=$as_save_IFS
95a05732 11936
11937fi
11938fi
11939NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11940if test -n "$NM_FOR_TARGET"; then
cd9a469c 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11942$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 11943else
cd9a469c 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
95a05732 11946fi
11947
cd9a469c 11948
95a05732 11949 done
11950fi
11951
11952if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11953 for ncn_progname in nm; do
cd9a469c 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11955$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11956 if test -x $with_build_time_tools/${ncn_progname}; then
11957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
c47832b1 11960 break
11961 else
cd9a469c 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
c47832b1 11964 fi
11965 done
11966fi
11967
11968if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11969 for ncn_progname in nm; do
11970 if test -n "$ncn_target_tool_prefix"; then
11971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 11972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974$as_echo_n "checking for $ac_word... " >&6; }
11975if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
bb612911 11977else
ef8184c7 11978 if test -n "$NM_FOR_TARGET"; then
11979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 11980else
b30fcfae 11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982for as_dir in $PATH
11983do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
cd9a469c 11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11990 break 2
11991 fi
11992done
cd9a469c 11993 done
11994IFS=$as_save_IFS
b30fcfae 11995
bb612911 11996fi
11997fi
b30fcfae 11998NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 11999if test -n "$NM_FOR_TARGET"; then
cd9a469c 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12001$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12002else
cd9a469c 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
bb612911 12005fi
12006
cd9a469c 12007
c47832b1 12008 fi
12009 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12011set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
bb612911 12016else
768691b5 12017 if test -n "$NM_FOR_TARGET"; then
12018 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12019else
b30fcfae 12020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021for as_dir in $PATH
12022do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
cd9a469c 12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12027 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12029 break 2
12030 fi
12031done
cd9a469c 12032 done
12033IFS=$as_save_IFS
b30fcfae 12034
bb612911 12035fi
12036fi
b30fcfae 12037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 12038if test -n "$NM_FOR_TARGET"; then
cd9a469c 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12040$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12041else
cd9a469c 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
bb612911 12044fi
b30fcfae 12045
cd9a469c 12046
c47832b1 12047 fi
12048 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12049 done
12050fi
b30fcfae 12051
768691b5 12052if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12053 set dummy nm
12054 if test $build = $target ; then
12055 NM_FOR_TARGET="$2"
bb612911 12056 else
768691b5 12057 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12058 fi
b7ef8464 12059else
12060 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 12061fi
12062
ab0da556 12063else
12064 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12065fi
12066
12067
12068
12069
fc740d70 12070if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12071 if test -n "$with_build_time_tools"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12073$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12074 if test -x $with_build_time_tools/objcopy; then
12075 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12076 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12078$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
12082 fi
12083 elif test $build != $host && test $have_gcc_for_target = yes; then
12084 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12085 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12086 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12087 fi
12088fi
12089if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12090 # Extract the first word of "objcopy", so it can be a program name with args.
12091set dummy objcopy; ac_word=$2
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
12094if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096else
12097 case $OBJCOPY_FOR_TARGET in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $gcc_cv_tool_dirs
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113done
12114 done
12115IFS=$as_save_IFS
12116
12117 ;;
12118esac
12119fi
12120OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12121if test -n "$OBJCOPY_FOR_TARGET"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12123$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12124else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
12127fi
12128
12129
12130fi
12131if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12132
12133
12134if test -n "$OBJCOPY_FOR_TARGET"; then
12135 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12136elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12137 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12138fi
12139
12140if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12141 for ncn_progname in objcopy; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143set dummy ${ncn_progname}; ac_word=$2
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145$as_echo_n "checking for $ac_word... " >&6; }
12146if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148else
12149 if test -n "$OBJCOPY_FOR_TARGET"; then
12150 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163done
12164 done
12165IFS=$as_save_IFS
12166
12167fi
12168fi
12169OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12170if test -n "$OBJCOPY_FOR_TARGET"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12172$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12173else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
12176fi
12177
12178
12179 done
12180fi
12181
12182if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12183 for ncn_progname in objcopy; do
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12186 if test -x $with_build_time_tools/${ncn_progname}; then
12187 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189$as_echo "yes" >&6; }
12190 break
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
12194 fi
12195 done
12196fi
12197
12198if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12199 for ncn_progname in objcopy; do
12200 if test -n "$ncn_target_tool_prefix"; then
12201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$OBJCOPY_FOR_TARGET"; then
12209 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222done
12223 done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12229if test -n "$OBJCOPY_FOR_TARGET"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12231$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12232else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238 fi
12239 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12241set dummy ${ncn_progname}; ac_word=$2
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246else
12247 if test -n "$OBJCOPY_FOR_TARGET"; then
12248 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12249else
12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251for as_dir in $PATH
12252do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261done
12262 done
12263IFS=$as_save_IFS
12264
12265fi
12266fi
12267OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12268if test -n "$OBJCOPY_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12270$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12271else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
12274fi
12275
12276
12277 fi
12278 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12279 done
12280fi
12281
12282if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12283 set dummy objcopy
12284 if test $build = $target ; then
12285 OBJCOPY_FOR_TARGET="$2"
12286 else
12287 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12288 fi
12289else
12290 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12291fi
12292
12293else
12294 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12295fi
12296
12297
12298
12299
c47832b1 12300if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12301 if test -n "$with_build_time_tools"; then
cd9a469c 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12303$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 12304 if test -x $with_build_time_tools/objdump; then
12305 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12306 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12308$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 12309 else
cd9a469c 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
ab0da556 12312 fi
c47832b1 12313 elif test $build != $host && test $have_gcc_for_target = yes; then
12314 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12315 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12316 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12317 fi
12318fi
38d7211b 12319if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12320 # Extract the first word of "objdump", so it can be a program name with args.
12321set dummy objdump; ac_word=$2
cd9a469c 12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
c47832b1 12326else
b30fcfae 12327 case $OBJDUMP_FOR_TARGET in
12328 [\\/]* | ?:[\\/]*)
c47832b1 12329 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12330 ;;
c47832b1 12331 *)
b30fcfae 12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $gcc_cv_tool_dirs
12334do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
cd9a469c 12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12339 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12341 break 2
12342 fi
12343done
cd9a469c 12344 done
12345IFS=$as_save_IFS
b30fcfae 12346
c47832b1 12347 ;;
12348esac
12349fi
b30fcfae 12350OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12351if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12353$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12354else
cd9a469c 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
c47832b1 12357fi
12358
cd9a469c 12359
c47832b1 12360fi
12361if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12362
12363
12364if test -n "$OBJDUMP_FOR_TARGET"; then
12365 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12366elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12367 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12368fi
12369
12370if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12371 for ncn_progname in objdump; do
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375$as_echo_n "checking for $ac_word... " >&6; }
12376if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
95a05732 12378else
12379 if test -n "$OBJDUMP_FOR_TARGET"; then
12380 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12381else
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
cd9a469c 12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12389 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12391 break 2
12392 fi
12393done
cd9a469c 12394 done
12395IFS=$as_save_IFS
95a05732 12396
12397fi
12398fi
12399OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12400if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12402$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12403else
cd9a469c 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405$as_echo "no" >&6; }
95a05732 12406fi
12407
cd9a469c 12408
95a05732 12409 done
12410fi
12411
12412if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12413 for ncn_progname in objdump; do
cd9a469c 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12416 if test -x $with_build_time_tools/${ncn_progname}; then
12417 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419$as_echo "yes" >&6; }
c47832b1 12420 break
12421 else
cd9a469c 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
c47832b1 12424 fi
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12429 for ncn_progname in objdump; do
12430 if test -n "$ncn_target_tool_prefix"; then
12431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
12435if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
ae74ffb7 12437else
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12440else
b30fcfae 12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
cd9a469c 12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12448 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12450 break 2
12451 fi
12452done
cd9a469c 12453 done
12454IFS=$as_save_IFS
b30fcfae 12455
ae74ffb7 12456fi
12457fi
b30fcfae 12458OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12459if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12461$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12462else
cd9a469c 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
ae74ffb7 12465fi
12466
cd9a469c 12467
c47832b1 12468 fi
12469 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12471set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
ae74ffb7 12476else
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12479else
b30fcfae 12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
cd9a469c 12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12487 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12489 break 2
12490 fi
12491done
cd9a469c 12492 done
12493IFS=$as_save_IFS
b30fcfae 12494
ae74ffb7 12495fi
12496fi
b30fcfae 12497OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12498if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12500$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12501else
cd9a469c 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
ae74ffb7 12504fi
b30fcfae 12505
cd9a469c 12506
c47832b1 12507 fi
12508 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12509 done
12510fi
b30fcfae 12511
ae74ffb7 12512if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12513 set dummy objdump
12514 if test $build = $target ; then
12515 OBJDUMP_FOR_TARGET="$2"
12516 else
12517 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12518 fi
b7ef8464 12519else
12520 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 12521fi
12522
ab0da556 12523else
12524 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12525fi
12526
12527
12528
12529
12530if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12531 if test -n "$with_build_time_tools"; then
cd9a469c 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12533$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 12534 if test -x $with_build_time_tools/ranlib; then
12535 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12536 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12538$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 12539 else
cd9a469c 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
ab0da556 12542 fi
c47832b1 12543 elif test $build != $host && test $have_gcc_for_target = yes; then
12544 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 12545 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12546 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 12547 fi
12548fi
38d7211b 12549if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12550 # Extract the first word of "ranlib", so it can be a program name with args.
12551set dummy ranlib; ac_word=$2
cd9a469c 12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
12554if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
c47832b1 12556else
b30fcfae 12557 case $RANLIB_FOR_TARGET in
12558 [\\/]* | ?:[\\/]*)
c47832b1 12559 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12560 ;;
c47832b1 12561 *)
b30fcfae 12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $gcc_cv_tool_dirs
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
cd9a469c 12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12569 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12571 break 2
12572 fi
12573done
cd9a469c 12574 done
12575IFS=$as_save_IFS
b30fcfae 12576
c47832b1 12577 ;;
12578esac
12579fi
b30fcfae 12580RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 12581if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12583$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 12584else
cd9a469c 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
c47832b1 12587fi
12588
cd9a469c 12589
c47832b1 12590fi
12591if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 12592
12593
12594if test -n "$RANLIB_FOR_TARGET"; then
12595 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12596elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12597 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12598fi
12599
12600if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12601 for ncn_progname in ranlib; do
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605$as_echo_n "checking for $ac_word... " >&6; }
12606if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
95a05732 12608else
12609 if test -n "$RANLIB_FOR_TARGET"; then
12610 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12611else
12612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613for as_dir in $PATH
12614do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
cd9a469c 12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12619 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12621 break 2
12622 fi
12623done
cd9a469c 12624 done
12625IFS=$as_save_IFS
95a05732 12626
12627fi
12628fi
12629RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12630if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12632$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 12633else
cd9a469c 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635$as_echo "no" >&6; }
95a05732 12636fi
12637
cd9a469c 12638
95a05732 12639 done
12640fi
12641
12642if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12643 for ncn_progname in ranlib; do
cd9a469c 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12646 if test -x $with_build_time_tools/${ncn_progname}; then
12647 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649$as_echo "yes" >&6; }
c47832b1 12650 break
12651 else
cd9a469c 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
c47832b1 12654 fi
12655 done
12656fi
12657
12658if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12659 for ncn_progname in ranlib; do
12660 if test -n "$ncn_target_tool_prefix"; then
12661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 12662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664$as_echo_n "checking for $ac_word... " >&6; }
12665if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
bb612911 12667else
ef8184c7 12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12670else
b30fcfae 12671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672for as_dir in $PATH
12673do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
cd9a469c 12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12678 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12680 break 2
12681 fi
12682done
cd9a469c 12683 done
12684IFS=$as_save_IFS
b30fcfae 12685
bb612911 12686fi
12687fi
b30fcfae 12688RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 12689if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12691$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12692else
cd9a469c 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
bb612911 12695fi
12696
cd9a469c 12697
c47832b1 12698 fi
12699 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12701set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
bb612911 12706else
768691b5 12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12709else
b30fcfae 12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
cd9a469c 12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12717 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12719 break 2
12720 fi
12721done
cd9a469c 12722 done
12723IFS=$as_save_IFS
b30fcfae 12724
bb612911 12725fi
12726fi
b30fcfae 12727RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 12728if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12730$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12731else
cd9a469c 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
bb612911 12734fi
b30fcfae 12735
cd9a469c 12736
c47832b1 12737 fi
12738 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12739 done
12740fi
b30fcfae 12741
c47832b1 12742if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12743 set dummy ranlib
12744 if test $build = $target ; then
12745 RANLIB_FOR_TARGET="$2"
12746 else
12747 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12748 fi
b7ef8464 12749else
12750 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 12751fi
768691b5 12752
ab0da556 12753else
12754 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 12755fi
12756
c47832b1 12757
12758
12759
3f71364d 12760if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12761 if test -n "$with_build_time_tools"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12763$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12764 if test -x $with_build_time_tools/readelf; then
12765 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12766 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12768$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772 fi
12773 elif test $build != $host && test $have_gcc_for_target = yes; then
12774 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12775 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12776 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12777 fi
12778fi
12779if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12780 # Extract the first word of "readelf", so it can be a program name with args.
12781set dummy readelf; ac_word=$2
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
12784if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786else
12787 case $READELF_FOR_TARGET in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $gcc_cv_tool_dirs
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804 done
12805IFS=$as_save_IFS
12806
12807 ;;
12808esac
12809fi
12810READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12811if test -n "$READELF_FOR_TARGET"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12813$as_echo "$READELF_FOR_TARGET" >&6; }
12814else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819
12820fi
12821if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12822
12823
12824if test -n "$READELF_FOR_TARGET"; then
12825 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12826elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12827 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12828fi
12829
12830if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12831 for ncn_progname in readelf; do
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833set dummy ${ncn_progname}; ac_word=$2
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835$as_echo_n "checking for $ac_word... " >&6; }
12836if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838else
12839 if test -n "$READELF_FOR_TARGET"; then
12840 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12841else
12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in $PATH
12844do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853done
12854 done
12855IFS=$as_save_IFS
12856
12857fi
12858fi
12859READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12860if test -n "$READELF_FOR_TARGET"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12862$as_echo "$READELF_FOR_TARGET" >&6; }
12863else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866fi
12867
12868
12869 done
12870fi
12871
12872if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12873 for ncn_progname in readelf; do
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12875$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12876 if test -x $with_build_time_tools/${ncn_progname}; then
12877 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879$as_echo "yes" >&6; }
12880 break
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884 fi
12885 done
12886fi
12887
12888if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12889 for ncn_progname in readelf; do
12890 if test -n "$ncn_target_tool_prefix"; then
12891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12892set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894$as_echo_n "checking for $ac_word... " >&6; }
12895if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897else
12898 if test -n "$READELF_FOR_TARGET"; then
12899 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12900else
12901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902for as_dir in $PATH
12903do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912done
12913 done
12914IFS=$as_save_IFS
12915
12916fi
12917fi
12918READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12919if test -n "$READELF_FOR_TARGET"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12921$as_echo "$READELF_FOR_TARGET" >&6; }
12922else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924$as_echo "no" >&6; }
12925fi
12926
12927
12928 fi
12929 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931set dummy ${ncn_progname}; ac_word=$2
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936else
12937 if test -n "$READELF_FOR_TARGET"; then
12938 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12950 fi
12951done
12952 done
12953IFS=$as_save_IFS
12954
12955fi
12956fi
12957READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12958if test -n "$READELF_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12960$as_echo "$READELF_FOR_TARGET" >&6; }
12961else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
12964fi
12965
12966
12967 fi
12968 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12973 set dummy readelf
12974 if test $build = $target ; then
12975 READELF_FOR_TARGET="$2"
12976 else
12977 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12978 fi
12979else
12980 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12981fi
12982
12983else
12984 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12985fi
12986
12987
12988
12989
c47832b1 12990if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12991 if test -n "$with_build_time_tools"; then
cd9a469c 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12993$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 12994 if test -x $with_build_time_tools/strip; then
12995 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12996 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12998$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 12999 else
cd9a469c 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
ab0da556 13002 fi
c47832b1 13003 elif test $build != $host && test $have_gcc_for_target = yes; then
13004 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 13005 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13006 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 13007 fi
13008fi
38d7211b 13009if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13010 # Extract the first word of "strip", so it can be a program name with args.
13011set dummy strip; ac_word=$2
cd9a469c 13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013$as_echo_n "checking for $ac_word... " >&6; }
13014if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
c47832b1 13016else
b30fcfae 13017 case $STRIP_FOR_TARGET in
13018 [\\/]* | ?:[\\/]*)
c47832b1 13019 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13020 ;;
c47832b1 13021 *)
b30fcfae 13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $gcc_cv_tool_dirs
13024do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
cd9a469c 13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13029 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13031 break 2
13032 fi
13033done
cd9a469c 13034 done
13035IFS=$as_save_IFS
b30fcfae 13036
c47832b1 13037 ;;
13038esac
13039fi
b30fcfae 13040STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13041if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13043$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 13044else
cd9a469c 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
c47832b1 13047fi
13048
cd9a469c 13049
c47832b1 13050fi
13051if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 13052
13053
13054if test -n "$STRIP_FOR_TARGET"; then
13055 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13056elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13057 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13058fi
13059
13060if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13061 for ncn_progname in strip; do
13062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13063set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065$as_echo_n "checking for $ac_word... " >&6; }
13066if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13067 $as_echo_n "(cached) " >&6
95a05732 13068else
13069 if test -n "$STRIP_FOR_TARGET"; then
13070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13071else
13072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073for as_dir in $PATH
13074do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
cd9a469c 13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 13079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13081 break 2
13082 fi
13083done
cd9a469c 13084 done
13085IFS=$as_save_IFS
95a05732 13086
13087fi
13088fi
13089STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13090if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13092$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 13093else
cd9a469c 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
95a05732 13096fi
13097
cd9a469c 13098
95a05732 13099 done
13100fi
13101
13102if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13103 for ncn_progname in strip; do
cd9a469c 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13105$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13106 if test -x $with_build_time_tools/${ncn_progname}; then
13107 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13109$as_echo "yes" >&6; }
c47832b1 13110 break
13111 else
cd9a469c 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
c47832b1 13114 fi
13115 done
13116fi
13117
13118if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13119 for ncn_progname in strip; do
13120 if test -n "$ncn_target_tool_prefix"; then
13121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 13122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124$as_echo_n "checking for $ac_word... " >&6; }
13125if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
ae48753c 13127else
13128 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 13129 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13130else
13131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
cd9a469c 13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13138 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13140 break 2
13141 fi
13142done
cd9a469c 13143 done
13144IFS=$as_save_IFS
b30fcfae 13145
9fec3fa8 13146fi
13147fi
b30fcfae 13148STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13149if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13151$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13152else
cd9a469c 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
9fec3fa8 13155fi
13156
cd9a469c 13157
c47832b1 13158 fi
13159 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 13161set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163$as_echo_n "checking for $ac_word... " >&6; }
13164if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
9fec3fa8 13166else
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13169else
b30fcfae 13170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171for as_dir in $PATH
13172do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
cd9a469c 13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13179 break 2
13180 fi
13181done
cd9a469c 13182 done
13183IFS=$as_save_IFS
b30fcfae 13184
9fec3fa8 13185fi
13186fi
b30fcfae 13187STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13188if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13190$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13191else
cd9a469c 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193$as_echo "no" >&6; }
9fec3fa8 13194fi
b30fcfae 13195
cd9a469c 13196
c47832b1 13197 fi
13198 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13199 done
13200fi
b30fcfae 13201
9fec3fa8 13202if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13203 set dummy strip
13204 if test $build = $target ; then
13205 STRIP_FOR_TARGET="$2"
13206 else
13207 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13208 fi
b7ef8464 13209else
13210 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 13211fi
13212
ab0da556 13213else
13214 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13215fi
13216
13217
13218
13219
13220if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13221 if test -n "$with_build_time_tools"; then
cd9a469c 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13223$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 13224 if test -x $with_build_time_tools/windres; then
13225 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13226 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13228$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 13229 else
cd9a469c 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
ab0da556 13232 fi
c47832b1 13233 elif test $build != $host && test $have_gcc_for_target = yes; then
13234 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 13235 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13236 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 13237 fi
13238fi
38d7211b 13239if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13240 # Extract the first word of "windres", so it can be a program name with args.
13241set dummy windres; ac_word=$2
cd9a469c 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
13244if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
c47832b1 13246else
b30fcfae 13247 case $WINDRES_FOR_TARGET in
13248 [\\/]* | ?:[\\/]*)
c47832b1 13249 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13250 ;;
c47832b1 13251 *)
b30fcfae 13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253for as_dir in $gcc_cv_tool_dirs
13254do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
cd9a469c 13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13259 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13261 break 2
13262 fi
13263done
cd9a469c 13264 done
13265IFS=$as_save_IFS
b30fcfae 13266
c47832b1 13267 ;;
13268esac
13269fi
b30fcfae 13270WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13271if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13273$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 13274else
cd9a469c 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
c47832b1 13277fi
13278
cd9a469c 13279
c47832b1 13280fi
13281if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 13282
13283
13284if test -n "$WINDRES_FOR_TARGET"; then
13285 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13286elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13287 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13288fi
13289
13290if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13291 for ncn_progname in windres; do
13292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295$as_echo_n "checking for $ac_word... " >&6; }
13296if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
95a05732 13298else
13299 if test -n "$WINDRES_FOR_TARGET"; then
13300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13301else
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
cd9a469c 13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 13309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13311 break 2
13312 fi
13313done
cd9a469c 13314 done
13315IFS=$as_save_IFS
95a05732 13316
13317fi
13318fi
13319WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13320if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13322$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 13323else
cd9a469c 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325$as_echo "no" >&6; }
95a05732 13326fi
13327
cd9a469c 13328
95a05732 13329 done
13330fi
13331
13332if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13333 for ncn_progname in windres; do
cd9a469c 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13335$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13336 if test -x $with_build_time_tools/${ncn_progname}; then
13337 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339$as_echo "yes" >&6; }
c47832b1 13340 break
13341 else
cd9a469c 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
c47832b1 13344 fi
13345 done
13346fi
13347
13348if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13349 for ncn_progname in windres; do
13350 if test -n "$ncn_target_tool_prefix"; then
13351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 13352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354$as_echo_n "checking for $ac_word... " >&6; }
13355if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
bb612911 13357else
ef8184c7 13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 13360else
b30fcfae 13361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362for as_dir in $PATH
13363do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
cd9a469c 13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13368 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13370 break 2
13371 fi
13372done
cd9a469c 13373 done
13374IFS=$as_save_IFS
b30fcfae 13375
bb612911 13376fi
13377fi
b30fcfae 13378WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 13379if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13381$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 13382else
cd9a469c 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384$as_echo "no" >&6; }
bb612911 13385fi
13386
cd9a469c 13387
c47832b1 13388 fi
13389 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 13391set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393$as_echo_n "checking for $ac_word... " >&6; }
13394if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
bb612911 13396else
768691b5 13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 13399else
b30fcfae 13400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
cd9a469c 13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13407 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13409 break 2
13410 fi
13411done
cd9a469c 13412 done
13413IFS=$as_save_IFS
b30fcfae 13414
bb612911 13415fi
13416fi
b30fcfae 13417WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 13418if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13420$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 13421else
cd9a469c 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
bb612911 13424fi
b30fcfae 13425
cd9a469c 13426
c47832b1 13427 fi
13428 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13429 done
13430fi
b30fcfae 13431
768691b5 13432if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13433 set dummy windres
13434 if test $build = $target ; then
13435 WINDRES_FOR_TARGET="$2"
bb612911 13436 else
768691b5 13437 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13438 fi
b7ef8464 13439else
13440 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 13441fi
13442
ab0da556 13443else
13444 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13445fi
13446
805e22b2 13447
75d6a0a9 13448
13449
13450if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13451 if test -n "$with_build_time_tools"; then
cd9a469c 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13453$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 13454 if test -x $with_build_time_tools/windmc; then
13455 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13456 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13458$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13459 else
cd9a469c 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461$as_echo "no" >&6; }
75d6a0a9 13462 fi
13463 elif test $build != $host && test $have_gcc_for_target = yes; then
13464 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 13465 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13466 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 13467 fi
13468fi
13469if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13470 # Extract the first word of "windmc", so it can be a program name with args.
13471set dummy windmc; ac_word=$2
cd9a469c 13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473$as_echo_n "checking for $ac_word... " >&6; }
13474if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
75d6a0a9 13476else
13477 case $WINDMC_FOR_TARGET in
13478 [\\/]* | ?:[\\/]*)
13479 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13480 ;;
13481 *)
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $gcc_cv_tool_dirs
13484do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
cd9a469c 13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13489 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13491 break 2
13492 fi
13493done
cd9a469c 13494 done
13495IFS=$as_save_IFS
75d6a0a9 13496
13497 ;;
13498esac
13499fi
13500WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 13501if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13503$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13504else
cd9a469c 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506$as_echo "no" >&6; }
75d6a0a9 13507fi
13508
cd9a469c 13509
75d6a0a9 13510fi
13511if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13512
13513
13514if test -n "$WINDMC_FOR_TARGET"; then
13515 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13516elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13517 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13518fi
13519
13520if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13521 for ncn_progname in windmc; do
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525$as_echo_n "checking for $ac_word... " >&6; }
13526if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
75d6a0a9 13528else
13529 if test -n "$WINDMC_FOR_TARGET"; then
13530 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13531else
13532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533for as_dir in $PATH
13534do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
cd9a469c 13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13539 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13541 break 2
13542 fi
13543done
cd9a469c 13544 done
13545IFS=$as_save_IFS
75d6a0a9 13546
13547fi
13548fi
13549WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13550if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13552$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13553else
cd9a469c 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555$as_echo "no" >&6; }
75d6a0a9 13556fi
13557
cd9a469c 13558
75d6a0a9 13559 done
13560fi
13561
13562if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13563 for ncn_progname in windmc; do
cd9a469c 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13565$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 13566 if test -x $with_build_time_tools/${ncn_progname}; then
13567 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569$as_echo "yes" >&6; }
75d6a0a9 13570 break
13571 else
cd9a469c 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573$as_echo "no" >&6; }
75d6a0a9 13574 fi
13575 done
13576fi
13577
13578if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13579 for ncn_progname in windmc; do
13580 if test -n "$ncn_target_tool_prefix"; then
13581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13582set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584$as_echo_n "checking for $ac_word... " >&6; }
13585if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
75d6a0a9 13587else
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
cd9a469c 13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13598 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13600 break 2
13601 fi
13602done
cd9a469c 13603 done
13604IFS=$as_save_IFS
75d6a0a9 13605
13606fi
13607fi
13608WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13609if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13611$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13612else
cd9a469c 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
75d6a0a9 13615fi
13616
cd9a469c 13617
75d6a0a9 13618 fi
13619 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13621set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623$as_echo_n "checking for $ac_word... " >&6; }
13624if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
75d6a0a9 13626else
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13629else
13630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631for as_dir in $PATH
13632do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
cd9a469c 13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13637 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13639 break 2
13640 fi
13641done
cd9a469c 13642 done
13643IFS=$as_save_IFS
75d6a0a9 13644
13645fi
13646fi
13647WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13648if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13650$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13651else
cd9a469c 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653$as_echo "no" >&6; }
75d6a0a9 13654fi
13655
cd9a469c 13656
75d6a0a9 13657 fi
13658 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13659 done
13660fi
13661
13662if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13663 set dummy windmc
13664 if test $build = $target ; then
13665 WINDMC_FOR_TARGET="$2"
13666 else
13667 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13668 fi
b7ef8464 13669else
13670 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 13671fi
13672
13673else
13674 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13675fi
13676
13677
f5aebe3e 13678RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13679
cd9a469c 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13681$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 13682if test "x${build}" != "x${host}" ; then
c47832b1 13683 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13684 # We already found the complete path
a6c599b5 13685 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13687$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13688 else
13689 # Canadian cross, just use what we found
cd9a469c 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13691$as_echo "pre-installed" >&6; }
c47832b1 13692 fi
f5aebe3e 13693else
13694 ok=yes
13695 case " ${configdirs} " in
13696 *" binutils "*) ;;
13697 *) ok=no ;;
13698 esac
b30fcfae 13699
f5aebe3e 13700 if test $ok = yes; then
13701 # An in-tree tool is available and we can use it
13702 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13704$as_echo "just compiled" >&6; }
c47832b1 13705 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
a6c599b5 13707 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13710 elif test "x$target" = "x$host"; then
13711 # We can use an host tool
13712 AR_FOR_TARGET='$(AR)'
cd9a469c 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13714$as_echo "host tool" >&6; }
f5aebe3e 13715 else
13716 # We need a cross tool
cd9a469c 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718$as_echo "pre-installed" >&6; }
f5aebe3e 13719 fi
13720fi
a83ffacf 13721
cd9a469c 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13723$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 13724if test "x${build}" != "x${host}" ; then
c47832b1 13725 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
a6c599b5 13727 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13730 else
13731 # Canadian cross, just use what we found
cd9a469c 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13733$as_echo "pre-installed" >&6; }
c47832b1 13734 fi
f5aebe3e 13735else
13736 ok=yes
13737 case " ${configdirs} " in
13738 *" gas "*) ;;
13739 *) ok=no ;;
13740 esac
b30fcfae 13741
f5aebe3e 13742 if test $ok = yes; then
13743 # An in-tree tool is available and we can use it
13744 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13746$as_echo "just compiled" >&6; }
c47832b1 13747 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
a6c599b5 13749 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13752 elif test "x$target" = "x$host"; then
13753 # We can use an host tool
13754 AS_FOR_TARGET='$(AS)'
cd9a469c 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13756$as_echo "host tool" >&6; }
f5aebe3e 13757 else
13758 # We need a cross tool
cd9a469c 13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760$as_echo "pre-installed" >&6; }
f5aebe3e 13761 fi
13762fi
a83ffacf 13763
cd9a469c 13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13765$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 13766if test "x${build}" != "x${host}" ; then
c47832b1 13767 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
a6c599b5 13769 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13772 else
13773 # Canadian cross, just use what we found
cd9a469c 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775$as_echo "pre-installed" >&6; }
c47832b1 13776 fi
f5aebe3e 13777else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" gcc "*) ;;
13781 *) ok=no ;;
13782 esac
b30fcfae 13783
f5aebe3e 13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788$as_echo "just compiled" >&6; }
c47832b1 13789 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
a6c599b5 13791 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 CC_FOR_TARGET='$(CC)'
cd9a469c 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798$as_echo "host tool" >&6; }
f5aebe3e 13799 else
13800 # We need a cross tool
cd9a469c 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
f5aebe3e 13803 fi
13804fi
a83ffacf 13805
cd9a469c 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13807$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 13808if test "x${build}" != "x${host}" ; then
c47832b1 13809 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
a6c599b5 13811 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13814 else
13815 # Canadian cross, just use what we found
cd9a469c 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
c47832b1 13818 fi
f5aebe3e 13819else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" gcc "*) ;;
13823 *) ok=no ;;
13824 esac
13825 case ,${enable_languages}, in
13826 *,c++,*) ;;
13827 *) ok=no ;;
13828 esac
13829 if test $ok = yes; then
13830 # An in-tree tool is available and we can use it
b710ec85 13831 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 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13833$as_echo "just compiled" >&6; }
c47832b1 13834 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13835 # We already found the complete path
a6c599b5 13836 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13838$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13839 elif test "x$target" = "x$host"; then
13840 # We can use an host tool
13841 CXX_FOR_TARGET='$(CXX)'
cd9a469c 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13843$as_echo "host tool" >&6; }
f5aebe3e 13844 else
13845 # We need a cross tool
cd9a469c 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847$as_echo "pre-installed" >&6; }
f5aebe3e 13848 fi
13849fi
a83ffacf 13850
cd9a469c 13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13852$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 13853if test "x${build}" != "x${host}" ; then
c47832b1 13854 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
a6c599b5 13856 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13859 else
13860 # Canadian cross, just use what we found
cd9a469c 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13862$as_echo "pre-installed" >&6; }
c47832b1 13863 fi
f5aebe3e 13864else
13865 ok=yes
13866 case " ${configdirs} " in
13867 *" gcc "*) ;;
13868 *) ok=no ;;
13869 esac
13870 case ,${enable_languages}, in
13871 *,c++,*) ;;
13872 *) ok=no ;;
13873 esac
13874 if test $ok = yes; then
13875 # An in-tree tool is available and we can use it
b710ec85 13876 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 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13878$as_echo "just compiled" >&6; }
c47832b1 13879 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13880 # We already found the complete path
a6c599b5 13881 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13883$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13884 elif test "x$target" = "x$host"; then
13885 # We can use an host tool
13886 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13888$as_echo "host tool" >&6; }
f5aebe3e 13889 else
13890 # We need a cross tool
cd9a469c 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892$as_echo "pre-installed" >&6; }
f5aebe3e 13893 fi
13894fi
a83ffacf 13895
cd9a469c 13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13897$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 13898if test "x${build}" != "x${host}" ; then
c47832b1 13899 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
a6c599b5 13901 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13904 else
13905 # Canadian cross, just use what we found
cd9a469c 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13907$as_echo "pre-installed" >&6; }
c47832b1 13908 fi
f5aebe3e 13909else
13910 ok=yes
13911 case " ${configdirs} " in
13912 *" binutils "*) ;;
13913 *) ok=no ;;
13914 esac
b30fcfae 13915
f5aebe3e 13916 if test $ok = yes; then
13917 # An in-tree tool is available and we can use it
13918 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13920$as_echo "just compiled" >&6; }
c47832b1 13921 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
a6c599b5 13923 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13926 elif test "x$target" = "x$host"; then
13927 # We can use an host tool
13928 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13930$as_echo "host tool" >&6; }
f5aebe3e 13931 else
13932 # We need a cross tool
cd9a469c 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934$as_echo "pre-installed" >&6; }
f5aebe3e 13935 fi
13936fi
a83ffacf 13937
cd9a469c 13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13939$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 13940if test "x${build}" != "x${host}" ; then
c47832b1 13941 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
a6c599b5 13943 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13946 else
13947 # Canadian cross, just use what we found
cd9a469c 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949$as_echo "pre-installed" >&6; }
c47832b1 13950 fi
f5aebe3e 13951else
13952 ok=yes
13953 case " ${configdirs} " in
13954 *" gcc "*) ;;
13955 *) ok=no ;;
13956 esac
b30fcfae 13957
f5aebe3e 13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962$as_echo "just compiled" >&6; }
c47832b1 13963 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
a6c599b5 13965 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GCC_FOR_TARGET='$()'
cd9a469c 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972$as_echo "host tool" >&6; }
f5aebe3e 13973 else
13974 # We need a cross tool
cd9a469c 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
f5aebe3e 13977 fi
13978fi
a83ffacf 13979
cd9a469c 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13981$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 13982if test "x${build}" != "x${host}" ; then
c47832b1 13983 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
a6c599b5 13985 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13988 else
13989 # Canadian cross, just use what we found
cd9a469c 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
c47832b1 13992 fi
f5aebe3e 13993else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,fortran,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007$as_echo "just compiled" >&6; }
c47832b1 14008 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
a6c599b5 14010 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017$as_echo "host tool" >&6; }
f5aebe3e 14018 else
14019 # We need a cross tool
cd9a469c 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
f5aebe3e 14022 fi
14023fi
a83ffacf 14024
5ff5b630 14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14026$as_echo_n "checking where to find the target gccgo... " >&6; }
14027if test "x${build}" != "x${host}" ; then
14028 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $GOC_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032$as_echo "pre-installed in $ac_dir" >&6; }
14033 else
14034 # Canadian cross, just use what we found
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
14037 fi
14038else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" gcc "*) ;;
14042 *) ok=no ;;
14043 esac
14044 case ,${enable_languages}, in
14045 *,go,*) ;;
14046 *) ok=no ;;
14047 esac
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052$as_echo "just compiled" >&6; }
14053 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $GOC_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057$as_echo "pre-installed in $ac_dir" >&6; }
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 GOC_FOR_TARGET='$(GOC)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062$as_echo "host tool" >&6; }
14063 else
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066$as_echo "pre-installed" >&6; }
14067 fi
14068fi
14069
cd9a469c 14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14071$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 14072if test "x${build}" != "x${host}" ; then
c47832b1 14073 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
a6c599b5 14075 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14078 else
14079 # Canadian cross, just use what we found
cd9a469c 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081$as_echo "pre-installed" >&6; }
c47832b1 14082 fi
f5aebe3e 14083else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" ld "*) ;;
14087 *) ok=no ;;
14088 esac
b30fcfae 14089
f5aebe3e 14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094$as_echo "just compiled" >&6; }
c47832b1 14095 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
a6c599b5 14097 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 LD_FOR_TARGET='$(LD)'
cd9a469c 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104$as_echo "host tool" >&6; }
f5aebe3e 14105 else
14106 # We need a cross tool
cd9a469c 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108$as_echo "pre-installed" >&6; }
f5aebe3e 14109 fi
14110fi
a83ffacf 14111
cd9a469c 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14113$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 14114if test "x${build}" != "x${host}" ; then
c47832b1 14115 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
a6c599b5 14117 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14120 else
14121 # Canadian cross, just use what we found
cd9a469c 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123$as_echo "pre-installed" >&6; }
c47832b1 14124 fi
f5aebe3e 14125else
c47832b1 14126 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14127 # We already found the complete path
a6c599b5 14128 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14130$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14131 elif test "x$target" = "x$host"; then
f5aebe3e 14132 # We can use an host tool
14133 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14135$as_echo "host tool" >&6; }
f5aebe3e 14136 else
14137 # We need a cross tool
cd9a469c 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139$as_echo "pre-installed" >&6; }
f5aebe3e 14140 fi
14141fi
a83ffacf 14142
cd9a469c 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14144$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 14145if test "x${build}" != "x${host}" ; then
c47832b1 14146 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
a6c599b5 14148 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14151 else
14152 # Canadian cross, just use what we found
cd9a469c 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154$as_echo "pre-installed" >&6; }
c47832b1 14155 fi
f5aebe3e 14156else
14157 ok=yes
14158 case " ${configdirs} " in
14159 *" binutils "*) ;;
14160 *) ok=no ;;
14161 esac
b30fcfae 14162
f5aebe3e 14163 if test $ok = yes; then
14164 # An in-tree tool is available and we can use it
14165 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14167$as_echo "just compiled" >&6; }
c47832b1 14168 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
a6c599b5 14170 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14173 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 NM_FOR_TARGET='$(NM)'
cd9a469c 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177$as_echo "host tool" >&6; }
f5aebe3e 14178 else
14179 # We need a cross tool
cd9a469c 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181$as_echo "pre-installed" >&6; }
f5aebe3e 14182 fi
14183fi
a83ffacf 14184
fc740d70 14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14186$as_echo_n "checking where to find the target objcopy... " >&6; }
14187if test "x${build}" != "x${host}" ; then
14188 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192$as_echo "pre-installed in $ac_dir" >&6; }
14193 else
14194 # Canadian cross, just use what we found
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196$as_echo "pre-installed" >&6; }
14197 fi
14198else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" binutils "*) ;;
14202 *) ok=no ;;
14203 esac
14204
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209$as_echo "just compiled" >&6; }
14210 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214$as_echo "pre-installed in $ac_dir" >&6; }
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
9b31ae9c 14217 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
fc740d70 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219$as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223$as_echo "pre-installed" >&6; }
14224 fi
14225fi
14226
cd9a469c 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14228$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 14229if test "x${build}" != "x${host}" ; then
c47832b1 14230 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
a6c599b5 14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14235 else
14236 # Canadian cross, just use what we found
cd9a469c 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238$as_echo "pre-installed" >&6; }
c47832b1 14239 fi
f5aebe3e 14240else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
b30fcfae 14246
f5aebe3e 14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251$as_echo "just compiled" >&6; }
c47832b1 14252 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
a6c599b5 14254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261$as_echo "host tool" >&6; }
f5aebe3e 14262 else
14263 # We need a cross tool
cd9a469c 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265$as_echo "pre-installed" >&6; }
f5aebe3e 14266 fi
14267fi
a83ffacf 14268
cd9a469c 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14270$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 14271if test "x${build}" != "x${host}" ; then
c47832b1 14272 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
a6c599b5 14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14277 else
14278 # Canadian cross, just use what we found
cd9a469c 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280$as_echo "pre-installed" >&6; }
c47832b1 14281 fi
f5aebe3e 14282else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
b30fcfae 14288
f5aebe3e 14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293$as_echo "just compiled" >&6; }
c47832b1 14294 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
a6c599b5 14296 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303$as_echo "host tool" >&6; }
f5aebe3e 14304 else
14305 # We need a cross tool
cd9a469c 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307$as_echo "pre-installed" >&6; }
f5aebe3e 14308 fi
14309fi
a83ffacf 14310
3f71364d 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14312$as_echo_n "checking where to find the target readelf... " >&6; }
14313if test "x${build}" != "x${host}" ; then
14314 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318$as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322$as_echo "pre-installed" >&6; }
14323 fi
14324else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
14330
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335$as_echo "just compiled" >&6; }
14336 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $READELF_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340$as_echo "pre-installed in $ac_dir" >&6; }
14341 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 READELF_FOR_TARGET='$(READELF)'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345$as_echo "host tool" >&6; }
14346 else
14347 # We need a cross tool
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349$as_echo "pre-installed" >&6; }
14350 fi
14351fi
14352
cd9a469c 14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14354$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 14355if test "x${build}" != "x${host}" ; then
c47832b1 14356 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
a6c599b5 14358 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14361 else
14362 # Canadian cross, just use what we found
cd9a469c 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
c47832b1 14365 fi
f5aebe3e 14366else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
b30fcfae 14372
f5aebe3e 14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
2b7a4d59 14375 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377$as_echo "just compiled" >&6; }
c47832b1 14378 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
a6c599b5 14380 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14383 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387$as_echo "host tool" >&6; }
f5aebe3e 14388 else
14389 # We need a cross tool
cd9a469c 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391$as_echo "pre-installed" >&6; }
f5aebe3e 14392 fi
14393fi
a83ffacf 14394
cd9a469c 14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14396$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 14397if test "x${build}" != "x${host}" ; then
c47832b1 14398 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
a6c599b5 14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14403 else
14404 # Canadian cross, just use what we found
cd9a469c 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
c47832b1 14407 fi
f5aebe3e 14408else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
b30fcfae 14414
f5aebe3e 14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419$as_echo "just compiled" >&6; }
c47832b1 14420 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
a6c599b5 14422 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429$as_echo "host tool" >&6; }
f5aebe3e 14430 else
14431 # We need a cross tool
cd9a469c 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
f5aebe3e 14434 fi
71ab34df 14435fi
49aae208 14436
cd9a469c 14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14438$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 14439if test "x${build}" != "x${host}" ; then
14440 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 14445 else
14446 # Canadian cross, just use what we found
cd9a469c 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448$as_echo "pre-installed" >&6; }
75d6a0a9 14449 fi
14450else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
14456
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461$as_echo "just compiled" >&6; }
75d6a0a9 14462 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471$as_echo "host tool" >&6; }
75d6a0a9 14472 else
14473 # We need a cross tool
cd9a469c 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
75d6a0a9 14476 fi
14477fi
14478
49aae208 14479
14480
f5aebe3e 14481
a83ffacf 14482
71ab34df 14483# Certain tools may need extra flags.
14484AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14485RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14486NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14487
f5aebe3e 14488# When building target libraries, except in a Canadian cross, we use
14489# the same toolchain as the compiler we just built.
14490COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14491COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14492COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14493if test $host = $build; then
14494 case " $configdirs " in
14495 *" gcc "*)
14496 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14497 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14498 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14499 ;;
14500 esac
14501fi
14502
14503
14504
14505
14506
cd9a469c 14507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14508$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14509# Check whether --enable-maintainer-mode was given.
14510if test "${enable_maintainer_mode+set}" = set; then :
14511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 14512else
14513 USE_MAINTAINER_MODE=no
cd9a469c 14514fi
14515
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14517$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 14518
14519
14520if test "$USE_MAINTAINER_MODE" = yes; then
14521 MAINTAINER_MODE_TRUE=
14522 MAINTAINER_MODE_FALSE='#'
14523else
14524 MAINTAINER_MODE_TRUE='#'
14525 MAINTAINER_MODE_FALSE=
b30fcfae 14526fi
3290c0cf 14527MAINT=$MAINTAINER_MODE_TRUE
14528
2d64c2fd 14529# ---------------------
14530# GCC bootstrap support
14531# ---------------------
14532
14533# Stage specific cflags for build.
14534stage1_cflags="-g"
14535case $build in
14536 vax-*-*)
14537 case ${GCC} in
14538 yes) stage1_cflags="-g -Wa,-J" ;;
14539 *) stage1_cflags="-g -J" ;;
14540 esac ;;
2d64c2fd 14541esac
14542
f508ba97 14543
2d64c2fd 14544
39f34cfc 14545# Enable --enable-checking in stage1 of the compiler.
cd9a469c 14546# Check whether --enable-stage1-checking was given.
14547if test "${enable_stage1_checking+set}" = set; then :
14548 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 14549else
f6be6a96 14550 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
868af6b6 14551 # For --disable-checking or implicit --enable-checking=release, avoid
14552 # setting --enable-checking=gc in the default stage1 checking for LTO
14553 # bootstraps. See PR62077.
868af6b6 14554 case $BUILD_CONFIG in
14555 *lto*)
c05979a1 14556 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14557 *)
14558 stage1_checking=--enable-checking=yes,types;;
868af6b6 14559 esac
c05979a1 14560 if test "x$enable_checking" = x && \
14561 test -d ${srcdir}/gcc && \
14562 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
bee4f5e5 14563 stage1_checking=--enable-checking=yes,types,extra
c05979a1 14564 fi
39f34cfc 14565else
f6be6a96 14566 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 14567fi
cd9a469c 14568fi
39f34cfc 14569
14570
5084f823 14571
cd9a469c 14572# Enable -Werror in bootstrap stage2 and later.
14573# Check whether --enable-werror was given.
14574if test "${enable_werror+set}" = set; then :
14575 enableval=$enable_werror;
2d64c2fd 14576else
dd979235 14577 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 14578 enable_werror=yes
dc914c6d 14579else
14580 enable_werror=no
14581fi
cd9a469c 14582fi
14583
c0c5068d 14584case ${enable_werror} in
14585 yes) stage2_werror_flag="--enable-werror-always" ;;
14586 *) stage2_werror_flag="" ;;
2d64c2fd 14587esac
14588
14589
2bd17377 14590# Enable --enable-host-shared.
14591# Check whether --enable-host-shared was given.
14592if test "${enable_host_shared+set}" = set; then :
14593 enableval=$enable_host_shared; host_shared=$enableval
14594else
14595 host_shared=no
14596fi
14597
14598
14599
5c524c74 14600# PR jit/64780: Require the user to explicitly specify
14601# --enable-host-shared if the jit is enabled, hinting
14602# that they might want to do a separate configure/build of
14603# the jit, to avoid users from slowing down the rest of the
14604# compiler by enabling the jit.
14605if test ${host_shared} = "no" ; then
14606 case "${enable_languages}" in
14607 *jit*)
14608 as_fn_error "
14609Enabling language \"jit\" requires --enable-host-shared.
14610
14611--enable-host-shared typically slows the rest of the compiler down by
14612a few %, so you must explicitly enable it.
14613
14614If you want to build both the jit and the regular compiler, it is often
14615best to do this via two separate configure/builds, in separate
14616directories, to avoid imposing the performance cost of
14617--enable-host-shared on the regular compiler." "$LINENO" 5
14618 ;;
14619 *)
14620 ;;
14621 esac
14622fi
14623
6fe86052 14624# Specify what files to not compare during bootstrap.
14625
14626compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14627case "$target" in
14628 hppa*64*-*-hpux*) ;;
14629 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
62f0972f 14630 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
6fe86052 14631esac
14632
14633
cd9a469c 14634ac_config_files="$ac_config_files Makefile"
14635
b30fcfae 14636cat >confcache <<\_ACEOF
71ab34df 14637# This file is a shell script that caches the results of configure
14638# tests run on this system so they can be shared between configure
b30fcfae 14639# scripts and configure runs, see configure's option --config-cache.
14640# It is not useful on other systems. If it contains results you don't
14641# want to keep, you may remove or edit it.
71ab34df 14642#
b30fcfae 14643# config.status only pays attention to the cache file if you give it
14644# the --recheck option to rerun configure.
71ab34df 14645#
b30fcfae 14646# `ac_cv_env_foo' variables (set or unset) will be overridden when
14647# loading this file, other *unset* `ac_cv_foo' will be assigned the
14648# following values.
14649
14650_ACEOF
14651
71ab34df 14652# The following way of writing the cache mishandles newlines in values,
14653# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 14654# So, we kill variables containing newlines.
71ab34df 14655# Ultrix sh set writes to stderr and can't be redirected directly,
14656# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 14657(
14658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14659 eval ac_val=\$$ac_var
14660 case $ac_val in #(
14661 *${as_nl}*)
14662 case $ac_var in #(
14663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14665 esac
14666 case $ac_var in #(
14667 _ | IFS | as_nl) ;; #(
14668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14669 *) { eval $ac_var=; unset $ac_var;} ;;
14670 esac ;;
14671 esac
14672 done
14673
b30fcfae 14674 (set) 2>&1 |
cd9a469c 14675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14676 *${as_nl}ac_space=\ *)
14677 # `set' does not quote correctly, so add quotes: double-quote
14678 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 14679 sed -n \
14680 "s/'/'\\\\''/g;
14681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 14682 ;; #(
b30fcfae 14683 *)
14684 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 14685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 14686 ;;
cd9a469c 14687 esac |
14688 sort
14689) |
b30fcfae 14690 sed '
cd9a469c 14691 /^ac_cv_env_/b end
b30fcfae 14692 t clear
cd9a469c 14693 :clear
b30fcfae 14694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14695 t end
cd9a469c 14696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14697 :end' >>confcache
14698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14699 if test -w "$cache_file"; then
14700 test "x$cache_file" != "x/dev/null" &&
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14702$as_echo "$as_me: updating cache $cache_file" >&6;}
b30fcfae 14703 cat confcache >$cache_file
71ab34df 14704 else
cd9a469c 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14706$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 14707 fi
805e22b2 14708fi
71ab34df 14709rm -f confcache
a8298541 14710
71ab34df 14711test "x$prefix" = xNONE && prefix=$ac_default_prefix
14712# Let make expand exec_prefix.
14713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 14714
71ab34df 14715# Transform confdefs.h into DEFS.
14716# Protect against shell expansion while executing Makefile rules.
14717# Protect against Makefile macro expansion.
b30fcfae 14718#
14719# If the first sed substitution is executed (which looks for macros that
cd9a469c 14720# take arguments), then branch to the quote section. Otherwise,
b30fcfae 14721# look for a macro that doesn't take arguments.
cd9a469c 14722ac_script='
14723:mline
14724/\\$/{
14725 N
14726 s,\\\n,,
14727 b mline
14728}
b30fcfae 14729t clear
cd9a469c 14730:clear
14731s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 14732t quote
cd9a469c 14733s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 14734t quote
cd9a469c 14735b any
14736:quote
14737s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14738s/\[/\\&/g
14739s/\]/\\&/g
14740s/\$/$$/g
14741H
14742:any
14743${
14744 g
14745 s/^\n//
14746 s/\n/ /g
14747 p
14748}
14749'
14750DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 14751
14752
14753ac_libobjs=
14754ac_ltlibobjs=
14755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14756 # 1. Remove the extension, and $U if already installed.
cd9a469c 14757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14760 # will be set to the directory where LIBOBJS objects are built.
14761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 14763done
14764LIBOBJS=$ac_libobjs
a4af6a58 14765
b30fcfae 14766LTLIBOBJS=$ac_ltlibobjs
a83ffacf 14767
ae48753c 14768
b30fcfae 14769
14770: ${CONFIG_STATUS=./config.status}
cd9a469c 14771ac_write_fail=0
b30fcfae 14772ac_clean_files_save=$ac_clean_files
14773ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 14774{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14775$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14776as_write_fail=0
14777cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 14778#! $SHELL
14779# Generated by $as_me.
71ab34df 14780# Run this file to recreate the current configuration.
71ab34df 14781# Compiler output produced by configure, useful for debugging
b30fcfae 14782# configure, is in config.log if it exists.
a83ffacf 14783
b30fcfae 14784debug=false
14785ac_cs_recheck=false
14786ac_cs_silent=false
b30fcfae 14787
cd9a469c 14788SHELL=\${CONFIG_SHELL-$SHELL}
14789export SHELL
14790_ASEOF
14791cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14792## -------------------- ##
14793## M4sh Initialization. ##
14794## -------------------- ##
14795
14796# Be more Bourne compatible
14797DUALCASE=1; export DUALCASE # for MKS sh
14798if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 14799 emulate sh
14800 NULLCMD=:
cd9a469c 14801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 14802 # is contrary to our usage. Disable this feature.
14803 alias -g '${1+"$@"}'='"$@"'
cd9a469c 14804 setopt NO_GLOB_SUBST
14805else
14806 case `(set -o) 2>/dev/null` in #(
14807 *posix*) :
14808 set -o posix ;; #(
14809 *) :
14810 ;;
14811esac
b30fcfae 14812fi
b30fcfae 14813
cd9a469c 14814
14815as_nl='
14816'
14817export as_nl
14818# Printing a long string crashes Solaris 7 /usr/bin/printf.
14819as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14820as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14821as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14822# Prefer a ksh shell builtin over an external printf program on Solaris,
14823# but without wasting forks for bash or zsh.
14824if test -z "$BASH_VERSION$ZSH_VERSION" \
14825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14826 as_echo='print -r --'
14827 as_echo_n='print -rn --'
14828elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14829 as_echo='printf %s\n'
14830 as_echo_n='printf %s'
14831else
14832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14834 as_echo_n='/usr/ucb/echo -n'
14835 else
14836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14837 as_echo_n_body='eval
14838 arg=$1;
14839 case $arg in #(
14840 *"$as_nl"*)
14841 expr "X$arg" : "X\\(.*\\)$as_nl";
14842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14843 esac;
14844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14845 '
14846 export as_echo_n_body
14847 as_echo_n='sh -c $as_echo_n_body as_echo'
14848 fi
14849 export as_echo_body
14850 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 14851fi
14852
cd9a469c 14853# The user is always right.
14854if test "${PATH_SEPARATOR+set}" != set; then
14855 PATH_SEPARATOR=:
14856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14858 PATH_SEPARATOR=';'
14859 }
14860fi
14861
14862
14863# IFS
14864# We need space, tab and new line, in precisely that order. Quoting is
14865# there to prevent editors from complaining about space-tab.
14866# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14867# splitting by setting IFS to empty value.)
14868IFS=" "" $as_nl"
14869
14870# Find who we are. Look in the path if we contain no directory separator.
14871case $0 in #((
14872 *[\\/]* ) as_myself=$0 ;;
14873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874for as_dir in $PATH
14875do
14876 IFS=$as_save_IFS
14877 test -z "$as_dir" && as_dir=.
14878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14879 done
14880IFS=$as_save_IFS
14881
14882 ;;
14883esac
14884# We did not find ourselves, most probably we were run as `sh COMMAND'
14885# in which case we are not to be found in the path.
14886if test "x$as_myself" = x; then
14887 as_myself=$0
14888fi
14889if test ! -f "$as_myself"; then
14890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14891 exit 1
14892fi
b30fcfae 14893
cd9a469c 14894# Unset variables that we do not need and which cause bugs (e.g. in
14895# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14896# suppresses any "Segmentation fault" message there. '((' could
14897# trigger a bug in pdksh 5.2.14.
14898for as_var in BASH_ENV ENV MAIL MAILPATH
14899do eval test x\${$as_var+set} = xset \
14900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14901done
b30fcfae 14902PS1='$ '
14903PS2='> '
14904PS4='+ '
14905
14906# NLS nuisances.
cd9a469c 14907LC_ALL=C
14908export LC_ALL
14909LANGUAGE=C
14910export LANGUAGE
14911
14912# CDPATH.
14913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14914
14915
14916# as_fn_error ERROR [LINENO LOG_FD]
14917# ---------------------------------
14918# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14919# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14920# script with status $?, using 1 if that was 0.
14921as_fn_error ()
14922{
14923 as_status=$?; test $as_status -eq 0 && as_status=1
14924 if test "$3"; then
14925 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b30fcfae 14927 fi
cd9a469c 14928 $as_echo "$as_me: error: $1" >&2
14929 as_fn_exit $as_status
14930} # as_fn_error
14931
14932
14933# as_fn_set_status STATUS
14934# -----------------------
14935# Set $? to STATUS, without forking.
14936as_fn_set_status ()
14937{
14938 return $1
14939} # as_fn_set_status
14940
14941# as_fn_exit STATUS
14942# -----------------
14943# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14944as_fn_exit ()
14945{
14946 set +e
14947 as_fn_set_status $1
14948 exit $1
14949} # as_fn_exit
14950
14951# as_fn_unset VAR
14952# ---------------
14953# Portably unset VAR.
14954as_fn_unset ()
14955{
14956 { eval $1=; unset $1;}
14957}
14958as_unset=as_fn_unset
14959# as_fn_append VAR VALUE
14960# ----------------------
14961# Append the text in VALUE to the end of the definition contained in VAR. Take
14962# advantage of any shell optimizations that allow amortized linear growth over
14963# repeated appends, instead of the typical quadratic growth present in naive
14964# implementations.
14965if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14966 eval 'as_fn_append ()
14967 {
14968 eval $1+=\$2
14969 }'
14970else
14971 as_fn_append ()
14972 {
14973 eval $1=\$$1\$2
14974 }
14975fi # as_fn_append
14976
14977# as_fn_arith ARG...
14978# ------------------
14979# Perform arithmetic evaluation on the ARGs, and store the result in the
14980# global $as_val. Take advantage of shells that can avoid forks. The arguments
14981# must be portable across $(()) and expr.
14982if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14983 eval 'as_fn_arith ()
14984 {
14985 as_val=$(( $* ))
14986 }'
14987else
14988 as_fn_arith ()
14989 {
14990 as_val=`expr "$@" || test $? -eq 1`
14991 }
14992fi # as_fn_arith
14993
b30fcfae 14994
cd9a469c 14995if expr a : '\(a\)' >/dev/null 2>&1 &&
14996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 14997 as_expr=expr
14998else
14999 as_expr=false
15000fi
15001
cd9a469c 15002if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 15003 as_basename=basename
15004else
15005 as_basename=false
15006fi
15007
cd9a469c 15008if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15009 as_dirname=dirname
15010else
15011 as_dirname=false
15012fi
b30fcfae 15013
cd9a469c 15014as_me=`$as_basename -- "$0" ||
b30fcfae 15015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15016 X"$0" : 'X\(//\)$' \| \
cd9a469c 15017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15018$as_echo X/"$0" |
15019 sed '/^.*\/\([^/][^/]*\)\/*$/{
15020 s//\1/
15021 q
15022 }
15023 /^X\/\(\/\/\)$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\/\(\/\).*/{
15028 s//\1/
15029 q
15030 }
15031 s/.*/./; q'`
5084f823 15032
5084f823 15033# Avoid depending upon Character Ranges.
15034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15037as_cr_digits='0123456789'
15038as_cr_alnum=$as_cr_Letters$as_cr_digits
15039
cd9a469c 15040ECHO_C= ECHO_N= ECHO_T=
15041case `echo -n x` in #(((((
15042-n*)
15043 case `echo 'xy\c'` in
15044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15045 xy) ECHO_C='\c';;
15046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15047 ECHO_T=' ';;
15048 esac;;
15049*)
15050 ECHO_N='-n';;
b30fcfae 15051esac
15052
cd9a469c 15053rm -f conf$$ conf$$.exe conf$$.file
15054if test -d conf$$.dir; then
15055 rm -f conf$$.dir/conf$$.file
b30fcfae 15056else
cd9a469c 15057 rm -f conf$$.dir
15058 mkdir conf$$.dir 2>/dev/null
b30fcfae 15059fi
cd9a469c 15060if (echo >conf$$.file) 2>/dev/null; then
15061 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 15062 as_ln_s='ln -s'
cd9a469c 15063 # ... but there are two gotchas:
15064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15066 # In both cases, we have to default to `cp -p'.
15067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15068 as_ln_s='cp -p'
15069 elif ln conf$$.file conf$$ 2>/dev/null; then
15070 as_ln_s=ln
15071 else
15072 as_ln_s='cp -p'
5084f823 15073 fi
b30fcfae 15074else
15075 as_ln_s='cp -p'
15076fi
cd9a469c 15077rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15078rmdir conf$$.dir 2>/dev/null
15079
15080
15081# as_fn_mkdir_p
15082# -------------
15083# Create "$as_dir" as a directory, including parents if necessary.
15084as_fn_mkdir_p ()
15085{
15086
15087 case $as_dir in #(
15088 -*) as_dir=./$as_dir;;
15089 esac
15090 test -d "$as_dir" || eval $as_mkdir_p || {
15091 as_dirs=
15092 while :; do
15093 case $as_dir in #(
15094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15095 *) as_qdir=$as_dir;;
15096 esac
15097 as_dirs="'$as_qdir' $as_dirs"
15098 as_dir=`$as_dirname -- "$as_dir" ||
15099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15100 X"$as_dir" : 'X\(//\)[^/]' \| \
15101 X"$as_dir" : 'X\(//\)$' \| \
15102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15103$as_echo X"$as_dir" |
15104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15105 s//\1/
15106 q
15107 }
15108 /^X\(\/\/\)[^/].*/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\/\)$/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\).*/{
15117 s//\1/
15118 q
15119 }
15120 s/.*/./; q'`
15121 test -d "$as_dir" && break
15122 done
15123 test -z "$as_dirs" || eval "mkdir $as_dirs"
15124 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15125
b30fcfae 15126
cd9a469c 15127} # as_fn_mkdir_p
b30fcfae 15128if mkdir -p . 2>/dev/null; then
cd9a469c 15129 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 15130else
15131 test -d ./-p && rmdir ./-p
15132 as_mkdir_p=false
15133fi
15134
cd9a469c 15135if test -x / >/dev/null 2>&1; then
15136 as_test_x='test -x'
15137else
15138 if ls -dL / >/dev/null 2>&1; then
15139 as_ls_L_option=L
15140 else
15141 as_ls_L_option=
15142 fi
15143 as_test_x='
15144 eval sh -c '\''
15145 if test -d "$1"; then
15146 test -d "$1/.";
15147 else
15148 case $1 in #(
15149 -*)set "./$1";;
15150 esac;
15151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15152 ???[sx]*):;;*)false;;esac;fi
15153 '\'' sh
15154 '
15155fi
15156as_executable_p=$as_test_x
b30fcfae 15157
15158# Sed expression to map a string onto a valid CPP name.
15159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15160
15161# Sed expression to map a string onto a valid variable name.
15162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15163
15164
b30fcfae 15165exec 6>&1
cd9a469c 15166## ----------------------------------- ##
15167## Main body of $CONFIG_STATUS script. ##
15168## ----------------------------------- ##
15169_ASEOF
15170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15171
15172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 15174# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 15175# values after options handling.
15176ac_log="
b30fcfae 15177This file was extended by $as_me, which was
cd9a469c 15178generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 15179
15180 CONFIG_FILES = $CONFIG_FILES
15181 CONFIG_HEADERS = $CONFIG_HEADERS
15182 CONFIG_LINKS = $CONFIG_LINKS
15183 CONFIG_COMMANDS = $CONFIG_COMMANDS
15184 $ $0 $@
15185
cd9a469c 15186on `(hostname || uname -n) 2>/dev/null | sed 1q`
15187"
15188
b30fcfae 15189_ACEOF
15190
cd9a469c 15191case $ac_config_files in *"
15192"*) set x $ac_config_files; shift; ac_config_files=$*;;
15193esac
b30fcfae 15194
5084f823 15195
5084f823 15196
cd9a469c 15197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198# Files that config.status was made for.
15199config_files="$ac_config_files"
b30fcfae 15200
cd9a469c 15201_ACEOF
5084f823 15202
cd9a469c 15203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15204ac_cs_usage="\
cd9a469c 15205\`$as_me' instantiates files and other configuration actions
15206from templates according to the current configuration. Unless the files
15207and actions are specified as TAGs, all are instantiated by default.
b30fcfae 15208
cd9a469c 15209Usage: $0 [OPTION]... [TAG]...
b30fcfae 15210
15211 -h, --help print this help, then exit
cd9a469c 15212 -V, --version print version number and configuration settings, then exit
15213 -q, --quiet, --silent
15214 do not print progress messages
b30fcfae 15215 -d, --debug don't remove temporary files
15216 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 15217 --file=FILE[:TEMPLATE]
15218 instantiate the configuration file FILE
b30fcfae 15219
15220Configuration files:
15221$config_files
15222
cd9a469c 15223Report bugs to the package provider."
5084f823 15224
cd9a469c 15225_ACEOF
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 15227ac_cs_version="\\
15228config.status
cd9a469c 15229configured by $0, generated by GNU Autoconf 2.64,
15230 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 15231
cd9a469c 15232Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 15233This config.status script is free software; the Free Software Foundation
15234gives unlimited permission to copy, distribute and modify it."
cd9a469c 15235
15236ac_pwd='$ac_pwd'
15237srcdir='$srcdir'
15238INSTALL='$INSTALL'
b181f265 15239AWK='$AWK'
cd9a469c 15240test -n "\$AWK" || AWK=awk
b30fcfae 15241_ACEOF
15242
cd9a469c 15243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244# The default lists apply if the user does not specify any file.
b30fcfae 15245ac_need_defaults=:
15246while test $# != 0
b1660f25 15247do
b30fcfae 15248 case $1 in
15249 --*=*)
cd9a469c 15250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 15252 ac_shift=:
15253 ;;
cd9a469c 15254 *)
b30fcfae 15255 ac_option=$1
15256 ac_optarg=$2
15257 ac_shift=shift
15258 ;;
b30fcfae 15259 esac
15260
15261 case $ac_option in
15262 # Handling of the options.
71ab34df 15263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 15264 ac_cs_recheck=: ;;
cd9a469c 15265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15266 $as_echo "$ac_cs_version"; exit ;;
15267 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 15268 debug=: ;;
15269 --file | --fil | --fi | --f )
15270 $ac_shift
cd9a469c 15271 case $ac_optarg in
15272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15273 esac
15274 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 15275 ac_need_defaults=false;;
cd9a469c 15276 --he | --h | --help | --hel | -h )
15277 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 15278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15280 ac_cs_silent=: ;;
15281
15282 # This is an error.
cd9a469c 15283 -*) as_fn_error "unrecognized option: \`$1'
15284Try \`$0 --help' for more information." ;;
b30fcfae 15285
cd9a469c 15286 *) as_fn_append ac_config_targets " $1"
15287 ac_need_defaults=false ;;
b30fcfae 15288
a83ffacf 15289 esac
b30fcfae 15290 shift
a83ffacf 15291done
15292
b30fcfae 15293ac_configure_extra_args=
a83ffacf 15294
b30fcfae 15295if $ac_cs_silent; then
15296 exec 6>/dev/null
15297 ac_configure_extra_args="$ac_configure_extra_args --silent"
15298fi
a83ffacf 15299
b30fcfae 15300_ACEOF
cd9a469c 15301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 15302if \$ac_cs_recheck; then
cd9a469c 15303 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15304 shift
15305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15306 CONFIG_SHELL='$SHELL'
15307 export CONFIG_SHELL
15308 exec "\$@"
b30fcfae 15309fi
15310
15311_ACEOF
cd9a469c 15312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313exec 5>>config.log
15314{
15315 echo
15316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15317## Running $as_me. ##
15318_ASBOX
15319 $as_echo "$ac_log"
15320} >&5
b30fcfae 15321
cd9a469c 15322_ACEOF
15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 15324#
15325# INIT-COMMANDS
15326#
15327extrasub_build="$extrasub_build"
15328 extrasub_host="$extrasub_host"
15329 extrasub_target="$extrasub_target"
15330
cd9a469c 15331_ACEOF
b30fcfae 15332
cd9a469c 15333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 15334
cd9a469c 15335# Handling of arguments.
b30fcfae 15336for ac_config_target in $ac_config_targets
15337do
cd9a469c 15338 case $ac_config_target in
15339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15340
15341 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 15342 esac
15343done
15344
cd9a469c 15345
b30fcfae 15346# If the user did not use the arguments to specify the items to instantiate,
15347# then the envvar interface is used. Set only those that are not.
15348# We use the long form for the default assignment because of an extremely
15349# bizarre bug on SunOS 4.1.3.
15350if $ac_need_defaults; then
15351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15352fi
15353
15354# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 15355# simply because there is no reason against having it here, and in addition,
b30fcfae 15356# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 15357# Hook for its removal unless debugging.
15358# Note that there is a small window in which the directory will not be cleaned:
15359# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 15360$debug ||
15361{
cd9a469c 15362 tmp=
15363 trap 'exit_status=$?
15364 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15365' 0
15366 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 15367}
b30fcfae 15368# Create a (secure) tmp directory for tmp files.
15369
15370{
cd9a469c 15371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b30fcfae 15372 test -n "$tmp" && test -d "$tmp"
15373} ||
15374{
cd9a469c 15375 tmp=./conf$$-$RANDOM
15376 (umask 077 && mkdir "$tmp")
15377} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15378
15379# Set up the scripts for CONFIG_FILES section.
15380# No need to generate them if there are no CONFIG_FILES.
15381# This happens for instance with `./config.status config.h'.
15382if test -n "$CONFIG_FILES"; then
15383
15384if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15385 ac_cs_awk_getline=:
15386 ac_cs_awk_pipe_init=
15387 ac_cs_awk_read_file='
15388 while ((getline aline < (F[key])) > 0)
15389 print(aline)
15390 close(F[key])'
15391 ac_cs_awk_pipe_fini=
15392else
15393 ac_cs_awk_getline=false
15394 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15395 ac_cs_awk_read_file='
15396 print "|#_!!_#|"
15397 print "cat " F[key] " &&"
15398 '$ac_cs_awk_pipe_init
15399 # The final `:' finishes the AND list.
15400 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15401fi
15402ac_cr=`echo X | tr X '\015'`
15403# On cygwin, bash can eat \r inside `` if the user requested igncr.
15404# But we know of no other shell where ac_cr would be empty at this
15405# point, so we can use a bashism as a fallback.
15406if test "x$ac_cr" = x; then
15407 eval ac_cr=\$\'\\r\'
15408fi
15409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15411 ac_cs_awk_cr='\r'
15412else
15413 ac_cs_awk_cr=$ac_cr
15414fi
15415
15416echo 'BEGIN {' >"$tmp/subs1.awk" &&
15417_ACEOF
15418
15419# Create commands to substitute file output variables.
b30fcfae 15420{
cd9a469c 15421 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15422 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15423 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15424 echo "_ACAWK" &&
15425 echo "_ACEOF"
15426} >conf$$files.sh &&
15427. ./conf$$files.sh ||
15428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15429rm -f conf$$files.sh
b30fcfae 15430
cd9a469c 15431{
15432 echo "cat >conf$$subs.awk <<_ACEOF" &&
15433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15434 echo "_ACEOF"
15435} >conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15437ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15438ac_delim='%!_!# '
15439for ac_last_try in false false false false false :; do
15440 . ./conf$$subs.sh ||
15441 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15442
15443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15444 if test $ac_delim_n = $ac_delim_num; then
15445 break
15446 elif $ac_last_try; then
15447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15448 else
15449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15450 fi
15451done
15452rm -f conf$$subs.sh
15453
15454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5084f823 15456_ACEOF
cd9a469c 15457sed -n '
15458h
15459s/^/S["/; s/!.*/"]=/
15460p
15461g
15462s/^[^!]*!//
15463:repl
15464t repl
15465s/'"$ac_delim"'$//
15466t delim
15467:nl
15468h
15469s/\(.\{148\}\).*/\1/
15470t more1
15471s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15472p
15473n
15474b repl
15475:more1
15476s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15477p
15478g
15479s/.\{148\}//
15480t nl
15481:delim
15482h
15483s/\(.\{148\}\).*/\1/
15484t more2
15485s/["\\]/\\&/g; s/^/"/; s/$/"/
15486p
15487b
15488:more2
15489s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15490p
15491g
15492s/.\{148\}//
15493t delim
15494' <conf$$subs.awk | sed '
15495/^[^""]/{
15496 N
15497 s/\n//
15498}
15499' >>$CONFIG_STATUS || ac_write_fail=1
15500rm -f conf$$subs.awk
15501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502_ACAWK
15503cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15504 for (key in S) S_is_set[key] = 1
15505 FS = "\a"
15506 \$ac_cs_awk_pipe_init
15507}
15508{
15509 line = $ 0
15510 nfields = split(line, field, "@")
15511 substed = 0
15512 len = length(field[1])
15513 for (i = 2; i < nfields; i++) {
15514 key = field[i]
15515 keylen = length(key)
15516 if (S_is_set[key]) {
15517 value = S[key]
15518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15519 len += length(value) + length(field[++i])
15520 substed = 1
15521 } else
15522 len += 1 + keylen
15523 }
15524 if (nfields == 3 && !substed) {
15525 key = field[2]
15526 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15527 \$ac_cs_awk_read_file
15528 next
15529 }
15530 }
15531 print line
15532}
15533\$ac_cs_awk_pipe_fini
15534_ACAWK
15535_ACEOF
15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15537if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15539else
15540 cat
15541fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15542 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15543_ACEOF
15544
15545# VPATH may cause trouble with some makes, so we remove $(srcdir),
15546# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15547# trailing colons and then remove the whole line if VPATH becomes empty
15548# (actually we leave an empty line to preserve line numbers).
15549if test "x$srcdir" = x.; then
15550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15551s/:*\$(srcdir):*/:/
15552s/:*\${srcdir}:*/:/
15553s/:*@srcdir@:*/:/
15554s/^\([^=]*=[ ]*\):*/\1/
15555s/:*$//
15556s/^[^=]*=[ ]*$//
15557}'
15558fi
5084f823 15559
cd9a469c 15560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561fi # test -n "$CONFIG_FILES"
5084f823 15562
b30fcfae 15563
cd9a469c 15564eval set X " :F $CONFIG_FILES "
15565shift
15566for ac_tag
15567do
15568 case $ac_tag in
15569 :[FHLC]) ac_mode=$ac_tag; continue;;
15570 esac
15571 case $ac_mode$ac_tag in
15572 :[FHL]*:*);;
15573 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15574 :[FH]-) ac_tag=-:-;;
15575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15576 esac
15577 ac_save_IFS=$IFS
15578 IFS=:
15579 set x $ac_tag
15580 IFS=$ac_save_IFS
15581 shift
15582 ac_file=$1
15583 shift
a8298541 15584
cd9a469c 15585 case $ac_mode in
15586 :L) ac_source=$1;;
15587 :[FH])
15588 ac_file_inputs=
15589 for ac_f
15590 do
15591 case $ac_f in
15592 -) ac_f="$tmp/stdin";;
15593 *) # Look for the file first in the build tree, then in the source tree
15594 # (if the path is not absolute). The absolute path cannot be DOS-style,
15595 # because $ac_f cannot contain `:'.
15596 test -f "$ac_f" ||
15597 case $ac_f in
15598 [\\/$]*) false;;
15599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15600 esac ||
15601 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15602 esac
15603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15604 as_fn_append ac_file_inputs " '$ac_f'"
15605 done
b30fcfae 15606
cd9a469c 15607 # Let's still pretend it is `configure' which instantiates (i.e., don't
15608 # use $as_me), people would be surprised to read:
15609 # /* config.h. Generated by config.status. */
15610 configure_input='Generated from '`
15611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15612 `' by configure.'
15613 if test x"$ac_file" != x-; then
15614 configure_input="$ac_file. $configure_input"
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15616$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 15617 fi
cd9a469c 15618 # Neutralize special characters interpreted by sed in replacement strings.
15619 case $configure_input in #(
15620 *\&* | *\|* | *\\* )
15621 ac_sed_conf_input=`$as_echo "$configure_input" |
15622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15623 *) ac_sed_conf_input=$configure_input;;
15624 esac
570af75a 15625
cd9a469c 15626 case $ac_tag in
15627 *:-:* | *:-) cat >"$tmp/stdin" \
15628 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15629 esac
15630 ;;
570af75a 15631 esac
15632
cd9a469c 15633 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 15634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15635 X"$ac_file" : 'X\(//\)[^/]' \| \
15636 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 15637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15638$as_echo X"$ac_file" |
15639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\(\/\/\)[^/].*/{
15644 s//\1/
15645 q
15646 }
15647 /^X\(\/\/\)$/{
15648 s//\1/
15649 q
15650 }
15651 /^X\(\/\).*/{
15652 s//\1/
15653 q
15654 }
15655 s/.*/./; q'`
15656 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 15657 ac_builddir=.
a83ffacf 15658
cd9a469c 15659case "$ac_dir" in
15660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15661*)
15662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15663 # A ".." for each directory in $ac_dir_suffix.
15664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15665 case $ac_top_builddir_sub in
15666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15668 esac ;;
15669esac
15670ac_abs_top_builddir=$ac_pwd
15671ac_abs_builddir=$ac_pwd$ac_dir_suffix
15672# for backward compatibility:
15673ac_top_builddir=$ac_top_build_prefix
b30fcfae 15674
15675case $srcdir in
cd9a469c 15676 .) # We are building in place.
b30fcfae 15677 ac_srcdir=.
cd9a469c 15678 ac_top_srcdir=$ac_top_builddir_sub
15679 ac_abs_top_srcdir=$ac_pwd ;;
15680 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 15681 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 15682 ac_top_srcdir=$srcdir
15683 ac_abs_top_srcdir=$srcdir ;;
15684 *) # Relative name.
15685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15686 ac_top_srcdir=$ac_top_build_prefix$srcdir
15687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 15688esac
cd9a469c 15689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 15690
a83ffacf 15691
cd9a469c 15692 case $ac_mode in
15693 :F)
15694 #
15695 # CONFIG_FILE
15696 #
b30fcfae 15697
15698 case $INSTALL in
15699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 15700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 15701 esac
cd9a469c 15702_ACEOF
570af75a 15703
cd9a469c 15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705# If the template does not know about datarootdir, expand it.
15706# FIXME: This hack should be removed a few years after 2.60.
15707ac_datarootdir_hack=; ac_datarootdir_seen=
15708ac_sed_dataroot='
15709/datarootdir/ {
15710 p
15711 q
15712}
15713/@datadir@/p
15714/@docdir@/p
15715/@infodir@/p
15716/@localedir@/p
15717/@mandir@/p'
15718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719*datarootdir*) ac_datarootdir_seen=yes;;
15720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 15723_ACEOF
cd9a469c 15724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_datarootdir_hack='
15726 s&@datadir@&$datadir&g
15727 s&@docdir@&$docdir&g
15728 s&@infodir@&$infodir&g
15729 s&@localedir@&$localedir&g
15730 s&@mandir@&$mandir&g
15731 s&\\\${datarootdir}&$datarootdir&g' ;;
15732esac
15733_ACEOF
15734
15735# Neutralize VPATH when `$srcdir' = `.'.
15736# Shell code in configure.ac might set extrasub.
15737# FIXME: do we really want to maintain this feature?
15738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739ac_sed_extra="$ac_vpsub
b30fcfae 15740$extrasub
15741_ACEOF
cd9a469c 15742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15743:t
15744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 15745s|@configure_input@|$ac_sed_conf_input|;t t
15746s&@top_builddir@&$ac_top_builddir_sub&;t t
15747s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748s&@srcdir@&$ac_srcdir&;t t
15749s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750s&@top_srcdir@&$ac_top_srcdir&;t t
15751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752s&@builddir@&$ac_builddir&;t t
15753s&@abs_builddir@&$ac_abs_builddir&;t t
15754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755s&@INSTALL@&$ac_INSTALL&;t t
15756$ac_datarootdir_hack
15757"
15758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15759if $ac_cs_awk_getline; then
15760 $AWK -f "$tmp/subs.awk"
15761else
15762 $AWK -f "$tmp/subs.awk" | $SHELL
15763fi >$tmp/out \
15764 || as_fn_error "could not create $ac_file" "$LINENO" 5
15765
15766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15770which seems to be undefined. Please make sure it is defined." >&5
15771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15772which seems to be undefined. Please make sure it is defined." >&2;}
15773
15774 rm -f "$tmp/stdin"
15775 case $ac_file in
15776 -) cat "$tmp/out" && rm -f "$tmp/out";;
15777 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15778 esac \
15779 || as_fn_error "could not create $ac_file" "$LINENO" 5
15780 ;;
570af75a 15781
570af75a 15782
a8298541 15783
cd9a469c 15784 esac
15785
8bb79148 15786
15787 case $ac_file$ac_mode in
15788 "Makefile":F) sed "$extrasub_build" Makefile |
15789 sed "$extrasub_host" |
15790 sed "$extrasub_target" > mf$$
15791 mv -f mf$$ Makefile ;;
15792
15793 esac
cd9a469c 15794done # for ac_tag
15795
15796
15797as_fn_exit 0
b30fcfae 15798_ACEOF
b30fcfae 15799ac_clean_files=$ac_clean_files_save
15800
cd9a469c 15801test $ac_write_fail = 0 ||
15802 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15803
b30fcfae 15804
15805# configure is writing to config.log, and then calls config.status.
15806# config.status does its own redirection, appending to config.log.
15807# Unfortunately, on DOS this fails, as config.log is still kept open
15808# by configure, so config.status won't be able to write to it; its
15809# output is simply discarded. So we exec the FD to /dev/null,
15810# effectively closing config.log, so it can be properly (re)opened and
15811# appended to by config.status. When coming back to configure, we
15812# need to make the FD available again.
15813if test "$no_create" != yes; then
15814 ac_cs_success=:
15815 ac_config_status_args=
15816 test "$silent" = yes &&
15817 ac_config_status_args="$ac_config_status_args --quiet"
15818 exec 5>/dev/null
15819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15820 exec 5>>config.log
15821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15822 # would make configure fail if this is the last instruction.
cd9a469c 15823 $ac_cs_success || as_fn_exit $?
15824fi
15825if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15827$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 15828fi
a8298541 15829