Add missing parameter to 'amd64_create_target_description' (and unbreak build)
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
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 }
79fi
80
81
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.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="move-if-change"
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
604READELF_FOR_TARGET
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
607OBJCOPY_FOR_TARGET
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
614GOC_FOR_TARGET
615GFORTRAN_FOR_TARGET
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
619READELF
620OBJDUMP
621OBJCOPY
622WINDMC
623WINDRES
624STRIP
625RANLIB
626NM
627LIPO
628LD
629DLLTOOL
630AS
631AR
632RUNTEST
633EXPECT
634MAKEINFO
635FLEX
636LEX
637M4
638BISON
639YACC
640WINDRES_FOR_BUILD
641WINDMC_FOR_BUILD
642RANLIB_FOR_BUILD
643NM_FOR_BUILD
644LD_FOR_BUILD
645LDFLAGS_FOR_BUILD
646GOC_FOR_BUILD
647GFORTRAN_FOR_BUILD
648DLLTOOL_FOR_BUILD
649CXX_FOR_BUILD
650CXXFLAGS_FOR_BUILD
651CFLAGS_FOR_BUILD
652CC_FOR_BUILD
653AS_FOR_BUILD
654AR_FOR_BUILD
655target_configdirs
656configdirs
657build_configdirs
658INSTALL_GDB_TK
659GDB_TK
660CONFIGURE_GDB_TK
661build_tooldir
662tooldir
663GCC_SHLIB_SUBDIR
664RPATH_ENVVAR
665target_configargs
666host_configargs
667build_configargs
668BUILD_CONFIG
669LDFLAGS_FOR_TARGET
670CXXFLAGS_FOR_TARGET
671CFLAGS_FOR_TARGET
672DEBUG_PREFIX_CFLAGS_FOR_TARGET
673SYSROOT_CFLAGS_FOR_TARGET
674get_gcc_base_ver
675extra_host_zlib_configure_flags
676extra_host_libiberty_configure_flags
677stage1_languages
678host_shared
679extra_linker_plugin_flags
680extra_linker_plugin_configure_flags
681islinc
682isllibs
683poststage1_ldflags
684poststage1_libs
685stage1_ldflags
686stage1_libs
687extra_isl_gmp_configure_flags
688extra_mpc_mpfr_configure_flags
689extra_mpc_gmp_configure_flags
690extra_mpfr_configure_flags
691gmpinc
692gmplibs
693do_compare
694GNATMAKE
695GNATBIND
696ac_ct_CXX
697CXXFLAGS
698CXX
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706extra_liboffloadmic_configure_flags
707target_subdir
708host_subdir
709build_subdir
710build_libsubdir
711AWK
712SED
713LN_S
714LN
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726target_noncanonical
727host_noncanonical
728build_noncanonical
729build_os
730build_vendor
731build_cpu
732build
733TOPLEVEL_CONFIGURE_ARGUMENTS
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files='serialization_dependencies
773host_makefile_frag
774target_makefile_frag
775alphaieee_frag
776ospace_frag'
777ac_user_opts='
778enable_option_checking
779with_build_libsubdir
780with_system_zlib
781enable_as_accelerator_for
782enable_offload_targets
783enable_gold
784enable_ld
785enable_compressed_debug_sections
786enable_libquadmath
787enable_libquadmath_support
788enable_libada
789enable_libssp
790enable_libstdcxx
791enable_liboffloadmic
792enable_bootstrap
793with_mpc
794with_mpc_include
795with_mpc_lib
796with_mpfr_dir
797with_mpfr
798with_mpfr_include
799with_mpfr_lib
800with_gmp_dir
801with_gmp
802with_gmp_include
803with_gmp_lib
804with_stage1_libs
805with_stage1_ldflags
806with_boot_libs
807with_boot_ldflags
808with_isl
809with_isl_include
810with_isl_lib
811enable_isl_version_check
812enable_lto
813enable_linker_plugin_configure_flags
814enable_linker_plugin_flags
815enable_host_shared
816enable_stage1_languages
817enable_objc_gc
818with_target_bdw_gc
819with_target_bdw_gc_include
820with_target_bdw_gc_lib
821with_gcc_major_version_only
822with_build_sysroot
823with_debug_prefix_map
824with_build_config
825enable_vtable_verify
826enable_serial_configure
827with_build_time_tools
828enable_maintainer_mode
829enable_stage1_checking
830enable_werror
831'
832 ac_precious_vars='build_alias
833host_alias
834target_alias
835CC
836CFLAGS
837LDFLAGS
838LIBS
839CPPFLAGS
840CXX
841CXXFLAGS
842CCC
843build_configargs
844host_configargs
845target_configargs
846AR
847AS
848DLLTOOL
849LD
850LIPO
851NM
852RANLIB
853STRIP
854WINDRES
855WINDMC
856OBJCOPY
857OBJDUMP
858READELF
859CC_FOR_TARGET
860CXX_FOR_TARGET
861GCC_FOR_TARGET
862GFORTRAN_FOR_TARGET
863GOC_FOR_TARGET
864AR_FOR_TARGET
865AS_FOR_TARGET
866DLLTOOL_FOR_TARGET
867LD_FOR_TARGET
868LIPO_FOR_TARGET
869NM_FOR_TARGET
870OBJCOPY_FOR_TARGET
871OBJDUMP_FOR_TARGET
872RANLIB_FOR_TARGET
873READELF_FOR_TARGET
874STRIP_FOR_TARGET
875WINDRES_FOR_TARGET
876WINDMC_FOR_TARGET'
877
878
879# Initialize some variables set by options.
880ac_init_help=
881ac_init_version=false
882ac_unrecognized_opts=
883ac_unrecognized_sep=
884# The variables have the same names as the options, with
885# dashes changed to underlines.
886cache_file=/dev/null
887exec_prefix=NONE
888no_create=
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
897verbose=
898x_includes=NONE
899x_libraries=NONE
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
906# (The list follows the same order as the GNU Coding Standards.)
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
917docdir='${datarootdir}/doc/${PACKAGE}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
926
927ac_prev=
928ac_dashdash=
929for ac_option
930do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991"enable_$ac_useropt"
992"*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221"with_$ac_useropt"
1222"*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237"with_$ac_useropt"
1238"*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 ;;
1283
1284 esac
1285done
1286
1287if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1290fi
1291
1292if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298fi
1299
1300# Check all directory arguments for consistency.
1301for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319done
1320
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
1341
1342
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382else
1383 ac_srcdir_defaulted=no
1384fi
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403case $srcdir in
1404 *" "*)
1405 as_fn_error $? "path to source, $srcdir, contains spaces"
1406 ;;
1407esac
1408ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1409
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures this package to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1490_ACEOF
1491fi
1492
1493if test -n "$ac_init_help"; then
1494
1495 cat <<\_ACEOF
1496
1497Optional Features:
1498 --disable-option-checking ignore unrecognized --enable/--with options
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-as-accelerator-for=ARG
1502 build as offload target compiler. Specify offload
1503 host triple by ARG
1504 --enable-offload-targets=LIST
1505 enable offloading to devices from comma-separated
1506 LIST of TARGET[=DIR]. Use optional path to find
1507 offload target compiler during the build
1508 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1509 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1510 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1511 Enable compressed debug sections for gas, gold or ld
1512 by default
1513 --disable-libquadmath do not build libquadmath directory
1514 --disable-libquadmath-support
1515 disable libquadmath support for Fortran
1516 --enable-libada build libada directory
1517 --enable-libssp build libssp directory
1518 --disable-libstdcxx do not build libstdc++-v3 directory
1519 --enable-liboffloadmic=ARG
1520 build liboffloadmic [ARG={no,host,target}]
1521 --enable-bootstrap enable bootstrapping [yes if native build]
1522 --disable-isl-version-check
1523 disable check for isl version
1524 --enable-lto enable link time optimization support
1525 --enable-linker-plugin-configure-flags=FLAGS
1526 additional flags for configuring linker plugins
1527 [none]
1528 --enable-linker-plugin-flags=FLAGS
1529 additional flags for configuring and building linker
1530 plugins [none]
1531 --enable-host-shared build host code as shared libraries
1532 --enable-stage1-languages[=all]
1533 choose additional languages to build during stage1.
1534 Mostly useful for compiler development
1535 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1536 Objective-C runtime
1537 --enable-vtable-verify Enable vtable verification feature
1538 --enable-serial-[{host,target,build}-]configure
1539 force sequential configuration of sub-packages for
1540 the host, target or build machine, or all
1541 sub-packages
1542 --enable-maintainer-mode
1543 enable make rules and dependencies not useful (and
1544 sometimes confusing) to the casual installer
1545 --enable-stage1-checking[=all]
1546 choose additional checking for stage1 of the
1547 compiler
1548 --enable-werror enable -Werror in bootstrap stage2 and later
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-build-libsubdir=DIR Directory where to find libraries for build system
1554 --with-system-zlib use installed libz
1555 --with-mpc=PATH specify prefix directory for installed MPC package.
1556 Equivalent to --with-mpc-include=PATH/include plus
1557 --with-mpc-lib=PATH/lib
1558 --with-mpc-include=PATH specify directory for installed MPC include files
1559 --with-mpc-lib=PATH specify directory for the installed MPC library
1560 --with-mpfr-dir=PATH this option has been REMOVED
1561 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1562 Equivalent to --with-mpfr-include=PATH/include plus
1563 --with-mpfr-lib=PATH/lib
1564 --with-mpfr-include=PATH
1565 specify directory for installed MPFR include files
1566 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1567 --with-gmp-dir=PATH this option has been REMOVED
1568 --with-gmp=PATH specify prefix directory for the installed GMP
1569 package. Equivalent to
1570 --with-gmp-include=PATH/include plus
1571 --with-gmp-lib=PATH/lib
1572 --with-gmp-include=PATH specify directory for installed GMP include files
1573 --with-gmp-lib=PATH specify directory for the installed GMP library
1574 --with-stage1-libs=LIBS libraries for stage1
1575 --with-stage1-ldflags=FLAGS
1576 linker flags for stage1
1577 --with-boot-libs=LIBS libraries for stage2 and later
1578 --with-boot-ldflags=FLAGS
1579 linker flags for stage2 and later
1580 --with-isl=PATH Specify prefix directory for the installed isl
1581 package. Equivalent to
1582 --with-isl-include=PATH/include plus
1583 --with-isl-lib=PATH/lib
1584 --with-isl-include=PATH Specify directory for installed isl include files
1585 --with-isl-lib=PATH Specify the directory for the installed isl library
1586 --with-target-bdw-gc=PATHLIST
1587 specify prefix directory for installed bdw-gc
1588 package. Equivalent to
1589 --with-target-bdw-gc-include=PATH/include plus
1590 --with-target-bdw-gc-lib=PATH/lib
1591 --with-target-bdw-gc-include=PATHLIST
1592 specify directories for installed bdw-gc include
1593 files
1594 --with-target-bdw-gc-lib=PATHLIST
1595 specify directories for installed bdw-gc library
1596 --with-gcc-major-version-only
1597 use only GCC major number in filesystem paths
1598 --with-build-sysroot=SYSROOT
1599 use sysroot as the system root during the build
1600 --with-debug-prefix-map='A=B C=D ...'
1601 map A to B, C to D ... in debug information
1602 --with-build-config='NAME NAME2...'
1603 use config/NAME.mk build configuration
1604 --with-build-time-tools=PATH
1605 use given path to find target tools during the build
1606
1607Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
1617 build_configargs
1618 additional configure arguments for build directories
1619 host_configargs
1620 additional configure arguments for host directories
1621 target_configargs
1622 additional configure arguments for target directories
1623 AR AR for the host
1624 AS AS for the host
1625 DLLTOOL DLLTOOL for the host
1626 LD LD for the host
1627 LIPO LIPO for the host
1628 NM NM for the host
1629 RANLIB RANLIB for the host
1630 STRIP STRIP for the host
1631 WINDRES WINDRES for the host
1632 WINDMC WINDMC for the host
1633 OBJCOPY OBJCOPY for the host
1634 OBJDUMP OBJDUMP for the host
1635 READELF READELF for the host
1636 CC_FOR_TARGET
1637 CC for the target
1638 CXX_FOR_TARGET
1639 CXX for the target
1640 GCC_FOR_TARGET
1641 GCC for the target
1642 GFORTRAN_FOR_TARGET
1643 GFORTRAN for the target
1644 GOC_FOR_TARGET
1645 GOC for the target
1646 AR_FOR_TARGET
1647 AR for the target
1648 AS_FOR_TARGET
1649 AS for the target
1650 DLLTOOL_FOR_TARGET
1651 DLLTOOL for the target
1652 LD_FOR_TARGET
1653 LD for the target
1654 LIPO_FOR_TARGET
1655 LIPO for the target
1656 NM_FOR_TARGET
1657 NM for the target
1658 OBJCOPY_FOR_TARGET
1659 OBJCOPY for the target
1660 OBJDUMP_FOR_TARGET
1661 OBJDUMP for the target
1662 RANLIB_FOR_TARGET
1663 RANLIB for the target
1664 READELF_FOR_TARGET
1665 READELF for the target
1666 STRIP_FOR_TARGET
1667 STRIP for the target
1668 WINDRES_FOR_TARGET
1669 WINDRES for the target
1670 WINDMC_FOR_TARGET
1671 WINDMC for the target
1672
1673Use these variables to override the choices made by `configure' or to help
1674it to find libraries and programs with nonstandard names/locations.
1675
1676Report bugs to the package provider.
1677_ACEOF
1678ac_status=$?
1679fi
1680
1681if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 continue
1687 ac_builddir=.
1688
1689case "$ac_dir" in
1690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691*)
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 esac ;;
1699esac
1700ac_abs_top_builddir=$ac_pwd
1701ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702# for backward compatibility:
1703ac_top_builddir=$ac_top_build_prefix
1704
1705case $srcdir in
1706 .) # We are building in place.
1707 ac_srcdir=.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1714 *) # Relative name.
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718esac
1719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1729 else
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 fi || ac_status=$?
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1733 done
1734fi
1735
1736test -n "$ac_init_help" && exit $ac_status
1737if $ac_init_version; then
1738 cat <<\_ACEOF
1739configure
1740generated by GNU Autoconf 2.69
1741
1742Copyright (C) 2012 Free Software Foundation, Inc.
1743This configure script is free software; the Free Software Foundation
1744gives unlimited permission to copy, distribute and modify it.
1745_ACEOF
1746 exit
1747fi
1748
1749## ------------------------ ##
1750## Autoconf initialization. ##
1751## ------------------------ ##
1752
1753# ac_fn_c_try_compile LINENO
1754# --------------------------
1755# Try to compile conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_compile ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_compile
1790
1791# ac_fn_cxx_try_compile LINENO
1792# ----------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_cxx_try_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827} # ac_fn_cxx_try_compile
1828
1829# ac_fn_cxx_try_link LINENO
1830# -------------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_link ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873} # ac_fn_cxx_try_link
1874
1875# ac_fn_c_try_link LINENO
1876# -----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_c_try_link ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_link
1920cat >config.log <<_ACEOF
1921This file contains any messages produced by compilers while
1922running configure, to aid debugging if configure makes a mistake.
1923
1924It was created by $as_me, which was
1925generated by GNU Autoconf 2.69. Invocation command line was
1926
1927 $ $0 $@
1928
1929_ACEOF
1930exec 5>>config.log
1931{
1932cat <<_ASUNAME
1933## --------- ##
1934## Platform. ##
1935## --------- ##
1936
1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954_ASUNAME
1955
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 $as_echo "PATH: $as_dir"
1962 done
1963IFS=$as_save_IFS
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 esac
1998 case $ac_pass in
1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 2)
2001 as_fn_append ac_configure_args1 " '$ac_arg'"
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
2017 as_fn_append ac_configure_args " '$ac_arg'"
2018 ;;
2019 esac
2020 done
2021done
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log. We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
2035 $as_echo "## ---------------- ##
2036## Cache variables. ##
2037## ---------------- ##"
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068)
2069 echo
2070
2071 $as_echo "## ----------------- ##
2072## Output variables. ##
2073## ----------------- ##"
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
2086 $as_echo "## ------------------- ##
2087## File substitutions. ##
2088## ------------------- ##"
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
2102 $as_echo "## ----------- ##
2103## confdefs.h. ##
2104## ----------- ##"
2105 echo
2106 cat confdefs.h
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2112 } >&5
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 exit $exit_status
2116' 0
2117for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
2153
2154# Let the site file select an alternate cache file if it wants to.
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
2165elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171fi
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174 test "x$ac_site_file" = xNONE && continue
2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182as_fn_error $? "failed to load site script $ac_site_file
2183See \`config.log' for more details" "$LINENO" 5; }
2184 fi
2185done
2186
2187if test -r "$cache_file"; then
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192$as_echo "$as_me: loading cache $cache_file" >&6;}
2193 case $cache_file in
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
2196 esac
2197 fi
2198else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200$as_echo "$as_me: creating cache $cache_file" >&6;}
2201 >$cache_file
2202fi
2203
2204# Check that the precious variables saved in the cache have kept the same
2205# value.
2206ac_cache_corrupted=false
2207for ac_var in $ac_precious_vars; do
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2213 set,)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,set)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2251 esac
2252 fi
2253done
2254if $ac_cache_corrupted; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2260fi
2261## -------------------- ##
2262## Main body of script. ##
2263## -------------------- ##
2264
2265ac_ext=c
2266ac_cpp='$CPP $CPPFLAGS'
2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
2274
2275
2276
2277
2278progname=$0
2279# if PWD already has a value, it is probably wrong.
2280if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2281
2282# Export original configure arguments for use by sub-configures.
2283# Quote arguments with shell meta charatcers.
2284TOPLEVEL_CONFIGURE_ARGUMENTS=
2285set -- "$progname" "$@"
2286for ac_arg
2287do
2288 case "$ac_arg" in
2289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2290 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2291 # if the argument is of the form -foo=baz, quote the baz part only
2292 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2293 *) ;;
2294 esac
2295 # Add the quoted argument to the list.
2296 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2297done
2298if test "$silent" = yes; then
2299 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2300fi
2301# Remove the initial space we just introduced and, as these will be
2302# expanded by make, quote '$'.
2303TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2304
2305
2306# Find the build, host, and target systems.
2307ac_aux_dir=
2308for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2309 if test -f "$ac_dir/install-sh"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/install-sh -c"
2312 break
2313 elif test -f "$ac_dir/install.sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install.sh -c"
2316 break
2317 elif test -f "$ac_dir/shtool"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/shtool install -c"
2320 break
2321 fi
2322done
2323if test -z "$ac_aux_dir"; then
2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2325fi
2326
2327# These three variables are undocumented and unsupported,
2328# and are intended to be withdrawn in a future Autoconf release.
2329# They can cause serious problems if a builder's source tree is in a directory
2330# whose full name contains unusual characters.
2331ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334
2335
2336# Make sure we can run config.sub.
2337$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2338 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2339
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2341$as_echo_n "checking build system type... " >&6; }
2342if ${ac_cv_build+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344else
2345 ac_build_alias=$build_alias
2346test "x$ac_build_alias" = x &&
2347 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2348test "x$ac_build_alias" = x &&
2349 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2350ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2352
2353fi
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2355$as_echo "$ac_cv_build" >&6; }
2356case $ac_cv_build in
2357*-*-*) ;;
2358*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2359esac
2360build=$ac_cv_build
2361ac_save_IFS=$IFS; IFS='-'
2362set x $ac_cv_build
2363shift
2364build_cpu=$1
2365build_vendor=$2
2366shift; shift
2367# Remember, the first character of IFS is used to create $*,
2368# except with old shells:
2369build_os=$*
2370IFS=$ac_save_IFS
2371case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2372
2373
2374 case ${build_alias} in
2375 "") build_noncanonical=${build} ;;
2376 *) build_noncanonical=${build_alias} ;;
2377esac
2378
2379
2380
2381 case ${host_alias} in
2382 "") host_noncanonical=${build_noncanonical} ;;
2383 *) host_noncanonical=${host_alias} ;;
2384esac
2385
2386
2387
2388 case ${target_alias} in
2389 "") target_noncanonical=${host_noncanonical} ;;
2390 *) target_noncanonical=${target_alias} ;;
2391esac
2392
2393
2394
2395
2396test "$host_noncanonical" = "$target_noncanonical" &&
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2398 NONENONEs,x,x, &&
2399 program_transform_name=s,y,y,
2400
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2402$as_echo_n "checking host system type... " >&6; }
2403if ${ac_cv_host+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405else
2406 if test "x$host_alias" = x; then
2407 ac_cv_host=$ac_cv_build
2408else
2409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2411fi
2412
2413fi
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2415$as_echo "$ac_cv_host" >&6; }
2416case $ac_cv_host in
2417*-*-*) ;;
2418*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2419esac
2420host=$ac_cv_host
2421ac_save_IFS=$IFS; IFS='-'
2422set x $ac_cv_host
2423shift
2424host_cpu=$1
2425host_vendor=$2
2426shift; shift
2427# Remember, the first character of IFS is used to create $*,
2428# except with old shells:
2429host_os=$*
2430IFS=$ac_save_IFS
2431case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2432
2433
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2435$as_echo_n "checking target system type... " >&6; }
2436if ${ac_cv_target+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438else
2439 if test "x$target_alias" = x; then
2440 ac_cv_target=$ac_cv_host
2441else
2442 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2444fi
2445
2446fi
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2448$as_echo "$ac_cv_target" >&6; }
2449case $ac_cv_target in
2450*-*-*) ;;
2451*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2452esac
2453target=$ac_cv_target
2454ac_save_IFS=$IFS; IFS='-'
2455set x $ac_cv_target
2456shift
2457target_cpu=$1
2458target_vendor=$2
2459shift; shift
2460# Remember, the first character of IFS is used to create $*,
2461# except with old shells:
2462target_os=$*
2463IFS=$ac_save_IFS
2464case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2465
2466
2467# The aliases save the names the user supplied, while $host etc.
2468# will get canonicalized.
2469test -n "$target_alias" &&
2470 test "$program_prefix$program_suffix$program_transform_name" = \
2471 NONENONEs,x,x, &&
2472 program_prefix=${target_alias}-
2473
2474test "$program_prefix" != NONE &&
2475 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2476# Use a double $ so make ignores it.
2477test "$program_suffix" != NONE &&
2478 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2479# Double any \ or $.
2480# By default was `s,x,x', remove it if useless.
2481ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2482program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2483
2484
2485
2486# Get 'install' or 'install-sh' and its variants.
2487# Find a good install program. We prefer a C program (faster),
2488# so one script is as good as another. But avoid the broken or
2489# incompatible versions:
2490# SysV /etc/install, /usr/sbin/install
2491# SunOS /usr/etc/install
2492# IRIX /sbin/install
2493# AIX /bin/install
2494# AmigaOS /C/install, which installs bootblocks on floppy discs
2495# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498# OS/2's system install, which has a completely different semantic
2499# ./install, which can be erroneously created by make from ./install.sh.
2500# Reject install programs that cannot install multiple files.
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502$as_echo_n "checking for a BSD-compatible install... " >&6; }
2503if test -z "$INSTALL"; then
2504if ${ac_cv_path_install+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2537 mkdir conftest.dir
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2542 then
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 break 3
2545 fi
2546 fi
2547 fi
2548 done
2549 done
2550 ;;
2551esac
2552
2553 done
2554IFS=$as_save_IFS
2555
2556rm -rf conftest.one conftest.two conftest.dir
2557
2558fi
2559 if test "${ac_cv_path_install+set}" = set; then
2560 INSTALL=$ac_cv_path_install
2561 else
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 INSTALL=$ac_install_sh
2567 fi
2568fi
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570$as_echo "$INSTALL" >&6; }
2571
2572# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573# It thinks the first close brace ends the variable substitution.
2574test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
2576test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577
2578test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2581$as_echo_n "checking whether ln works... " >&6; }
2582if ${acx_cv_prog_LN+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 rm -f conftestdata_t
2586echo >conftestdata_f
2587if ln conftestdata_f conftestdata_t 2>/dev/null
2588then
2589 acx_cv_prog_LN=ln
2590else
2591 acx_cv_prog_LN=no
2592fi
2593rm -f conftestdata_f conftestdata_t
2594
2595fi
2596if test $acx_cv_prog_LN = no; then
2597 LN="cp"
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2599$as_echo "no, using $LN" >&6; }
2600else
2601 LN="$acx_cv_prog_LN"
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603$as_echo "yes" >&6; }
2604fi
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2607$as_echo_n "checking whether ln -s works... " >&6; }
2608LN_S=$as_ln_s
2609if test "$LN_S" = "ln -s"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611$as_echo "yes" >&6; }
2612else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2614$as_echo "no, using $LN_S" >&6; }
2615fi
2616
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2618$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2619if ${ac_cv_path_SED+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621else
2622 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2623 for ac_i in 1 2 3 4 5 6 7; do
2624 ac_script="$ac_script$as_nl$ac_script"
2625 done
2626 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2627 { ac_script=; unset ac_script;}
2628 if test -z "$SED"; then
2629 ac_path_SED_found=false
2630 # Loop through the user's path and test for each of PROGNAME-LIST
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_prog in sed gsed; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2639 as_fn_executable_p "$ac_path_SED" || continue
2640# Check for GNU ac_path_SED and select it if it is found.
2641 # Check for GNU $ac_path_SED
2642case `"$ac_path_SED" --version 2>&1` in
2643*GNU*)
2644 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2645*)
2646 ac_count=0
2647 $as_echo_n 0123456789 >"conftest.in"
2648 while :
2649 do
2650 cat "conftest.in" "conftest.in" >"conftest.tmp"
2651 mv "conftest.tmp" "conftest.in"
2652 cp "conftest.in" "conftest.nl"
2653 $as_echo '' >> "conftest.nl"
2654 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2656 as_fn_arith $ac_count + 1 && ac_count=$as_val
2657 if test $ac_count -gt ${ac_path_SED_max-0}; then
2658 # Best one so far, save it but keep looking for a better one
2659 ac_cv_path_SED="$ac_path_SED"
2660 ac_path_SED_max=$ac_count
2661 fi
2662 # 10*(2^10) chars as input seems more than enough
2663 test $ac_count -gt 10 && break
2664 done
2665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2666esac
2667
2668 $ac_path_SED_found && break 3
2669 done
2670 done
2671 done
2672IFS=$as_save_IFS
2673 if test -z "$ac_cv_path_SED"; then
2674 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2675 fi
2676else
2677 ac_cv_path_SED=$SED
2678fi
2679
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2682$as_echo "$ac_cv_path_SED" >&6; }
2683 SED="$ac_cv_path_SED"
2684 rm -f conftest.sed
2685
2686for ac_prog in gawk mawk nawk awk
2687do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689set dummy $ac_prog; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if ${ac_cv_prog_AWK+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 if test -n "$AWK"; then
2696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_AWK="$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709done
2710 done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715AWK=$ac_cv_prog_AWK
2716if test -n "$AWK"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2718$as_echo "$AWK" >&6; }
2719else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725 test -n "$AWK" && break
2726done
2727
2728
2729srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2730
2731# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2732# a relative path.
2733if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2734 INSTALL="${srcpwd}/install-sh -c"
2735fi
2736
2737# Set srcdir to "." if that's what it is.
2738# This is important for multilib support.
2739pwd=`${PWDCMD-pwd}`
2740if test "${pwd}" = "${srcpwd}" ; then
2741 srcdir=.
2742fi
2743
2744topsrcdir=$srcpwd
2745
2746extra_host_args=
2747
2748### To add a new directory to the tree, first choose whether it is a target
2749### or a host dependent tool. Then put it into the appropriate list
2750### (library or tools, host or target), doing a dependency sort.
2751
2752# Subdirs will be configured in the order listed in build_configdirs,
2753# configdirs, or target_configdirs; see the serialization section below.
2754
2755# Dependency sorting is only needed when *configuration* must be done in
2756# a particular order. In all cases a dependency should be specified in
2757# the Makefile, whether or not it's implicitly specified here.
2758
2759# Double entries in build_configdirs, configdirs, or target_configdirs may
2760# cause circular dependencies and break everything horribly.
2761
2762# these library is used by various programs built for the build
2763# environment
2764#
2765build_libs="build-libiberty build-libcpp"
2766
2767# these tools are built for the build environment
2768build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2769
2770# these libraries are used by various programs built for the host environment
2771#f
2772host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2773
2774# these tools are built for the host environment
2775# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2776# know that we are building the simulator.
2777# binutils, gas and ld appear in that order because it makes sense to run
2778# "make check" in that particular order.
2779# If --enable-gold is used, "gold" may replace "ld".
2780host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2781
2782# these libraries are built for the target environment, and are built after
2783# the host libraries and the host tools (which may be a cross compiler)
2784# Note that libiberty is not a target library.
2785target_libraries="target-libgcc \
2786 target-libbacktrace \
2787 target-libgloss \
2788 target-newlib \
2789 target-libgomp \
2790 target-liboffloadmic \
2791 target-libhsail-rt \
2792 target-libatomic \
2793 target-libitm \
2794 target-libstdc++-v3 \
2795 target-libsanitizer \
2796 target-libvtv \
2797 target-libssp \
2798 target-libquadmath \
2799 target-libgfortran \
2800 target-libffi \
2801 target-libobjc \
2802 target-libada \
2803 target-libgo"
2804
2805# these tools are built using the target libraries, and are intended to
2806# run only in the target environment
2807#
2808# note: any program that *uses* libraries that are in the "target_libraries"
2809# list belongs in this list.
2810#
2811target_tools="target-rda"
2812
2813################################################################################
2814
2815## All tools belong in one of the four categories, and are assigned above
2816## We assign ${configdirs} this way to remove all embedded newlines. This
2817## is important because configure will choke if they ever get through.
2818## ${configdirs} is directories we build using the host tools.
2819## ${target_configdirs} is directories we build using the target tools.
2820configdirs=`echo ${host_libs} ${host_tools}`
2821target_configdirs=`echo ${target_libraries} ${target_tools}`
2822build_configdirs=`echo ${build_libs} ${build_tools}`
2823
2824
2825
2826################################################################################
2827
2828srcname="gnu development package"
2829
2830# This gets set non-empty for some net releases of packages.
2831appdirs=""
2832
2833# Define is_cross_compiler to save on calls to 'test'.
2834is_cross_compiler=
2835if test x"${host}" = x"${target}" ; then
2836 is_cross_compiler=no
2837else
2838 is_cross_compiler=yes
2839fi
2840
2841# Find the build and target subdir names.
2842
2843# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2844# have matching libraries, they should use host libraries: Makefile.tpl
2845# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2846# However, they still use the build modules, because the corresponding
2847# host modules (e.g. bison) are only built for the host when bootstrap
2848# finishes. So:
2849# - build_subdir is where we find build modules, and never changes.
2850# - build_libsubdir is where we find build libraries, and can be overridden.
2851
2852# Prefix 'build-' so this never conflicts with target_subdir.
2853build_subdir="build-${build_noncanonical}"
2854
2855# Check whether --with-build-libsubdir was given.
2856if test "${with_build_libsubdir+set}" = set; then :
2857 withval=$with_build_libsubdir; build_libsubdir="$withval"
2858else
2859 build_libsubdir="$build_subdir"
2860fi
2861
2862# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2863if ( test $srcdir = . && test -d gcc ) \
2864 || test -d $srcdir/../host-${host_noncanonical}; then
2865 host_subdir="host-${host_noncanonical}"
2866else
2867 host_subdir=.
2868fi
2869# No prefix.
2870target_subdir=${target_noncanonical}
2871
2872# Be sure to cover against remnants of an in-tree build.
2873if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2874 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2875Use a pristine source tree when building in a separate tree" "$LINENO" 5
2876fi
2877
2878# Skipdirs are removed silently.
2879skipdirs=
2880# Noconfigdirs are removed loudly.
2881noconfigdirs=""
2882
2883use_gnu_ld=
2884# Make sure we don't let GNU ld be added if we didn't want it.
2885if test x$with_gnu_ld = xno ; then
2886 use_gnu_ld=no
2887 noconfigdirs="$noconfigdirs ld gold"
2888fi
2889
2890use_gnu_as=
2891# Make sure we don't let GNU as be added if we didn't want it.
2892if test x$with_gnu_as = xno ; then
2893 use_gnu_as=no
2894 noconfigdirs="$noconfigdirs gas"
2895fi
2896
2897use_included_zlib=
2898
2899# Check whether --with-system-zlib was given.
2900if test "${with_system_zlib+set}" = set; then :
2901 withval=$with_system_zlib;
2902fi
2903
2904# Make sure we don't let ZLIB be added if we didn't want it.
2905if test x$with_system_zlib = xyes ; then
2906 use_included_zlib=no
2907 noconfigdirs="$noconfigdirs zlib"
2908fi
2909
2910# some tools are so dependent upon X11 that if we're not building with X,
2911# it's not even worth trying to configure, much less build, that tool.
2912
2913case ${with_x} in
2914 yes | "") ;; # the default value for this tree is that X11 is available
2915 no)
2916 skipdirs="${skipdirs} tk itcl libgui"
2917 # We won't be able to build gdbtk without X.
2918 enable_gdbtk=no
2919 ;;
2920 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2921esac
2922
2923# Some are only suitable for cross toolchains.
2924# Remove these if host=target.
2925cross_only="target-libgloss target-newlib target-opcodes"
2926
2927case $is_cross_compiler in
2928 no) skipdirs="${skipdirs} ${cross_only}" ;;
2929esac
2930
2931# If both --with-headers and --with-libs are specified, default to
2932# --without-newlib.
2933if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2934 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2935 if test x"${with_newlib}" = x ; then
2936 with_newlib=no
2937 fi
2938fi
2939
2940# Recognize --with-newlib/--without-newlib.
2941case ${with_newlib} in
2942 no) skipdirs="${skipdirs} target-newlib" ;;
2943 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2944esac
2945
2946# Check whether --enable-as-accelerator-for was given.
2947if test "${enable_as_accelerator_for+set}" = set; then :
2948 enableval=$enable_as_accelerator_for;
2949fi
2950
2951
2952# Check whether --enable-offload-targets was given.
2953if test "${enable_offload_targets+set}" = set; then :
2954 enableval=$enable_offload_targets;
2955 if test x"$enable_offload_targets" = x; then
2956 as_fn_error $? "no offload targets specified" "$LINENO" 5
2957 fi
2958
2959else
2960 enable_offload_targets=
2961fi
2962
2963
2964# Handle --enable-gold, --enable-ld.
2965# --disable-gold [--enable-ld]
2966# Build only ld. Default option.
2967# --enable-gold [--enable-ld]
2968# Build both gold and ld. Install gold as "ld.gold", install ld
2969# as "ld.bfd" and "ld".
2970# --enable-gold=default [--enable-ld]
2971# Build both gold and ld. Install gold as "ld.gold" and "ld",
2972# install ld as "ld.bfd".
2973# --enable-gold[=default] --disable-ld
2974# Build only gold, which is then installed as both "ld.gold" and "ld".
2975# --enable-gold --enable-ld=default
2976# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2977# and ld.bfd).
2978# In other words, ld is default
2979# --enable-gold=default --enable-ld=default
2980# Error.
2981
2982default_ld=
2983# Check whether --enable-gold was given.
2984if test "${enable_gold+set}" = set; then :
2985 enableval=$enable_gold; ENABLE_GOLD=$enableval
2986else
2987 ENABLE_GOLD=no
2988fi
2989
2990case "${ENABLE_GOLD}" in
2991 yes|default)
2992 # Check for ELF target.
2993 is_elf=no
2994 case "${target}" in
2995 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2996 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2997 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2998 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2999 case "${target}" in
3000 *-*-linux*aout* | *-*-linux*oldld*)
3001 ;;
3002 *)
3003 is_elf=yes
3004 ;;
3005 esac
3006 esac
3007
3008 if test "$is_elf" = "yes"; then
3009 # Check for target supported by gold.
3010 case "${target}" in
3011 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3012 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3013 configdirs="$configdirs gold"
3014 if test x${ENABLE_GOLD} = xdefault; then
3015 default_ld=gold
3016 fi
3017 ENABLE_GOLD=yes
3018 ;;
3019 esac
3020 fi
3021 ;;
3022 no)
3023 ;;
3024 *)
3025 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3026 ;;
3027esac
3028
3029# Check whether --enable-ld was given.
3030if test "${enable_ld+set}" = set; then :
3031 enableval=$enable_ld; ENABLE_LD=$enableval
3032else
3033 ENABLE_LD=yes
3034fi
3035
3036
3037case "${ENABLE_LD}" in
3038 default)
3039 if test x${default_ld} != x; then
3040 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3041 fi
3042 ;;
3043 yes)
3044 ;;
3045 no)
3046 if test x${ENABLE_GOLD} != xyes; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3048$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3049 fi
3050 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3051 ;;
3052 *)
3053 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3054 ;;
3055esac
3056
3057# PR gas/19109
3058# Decide the default method for compressing debug sections.
3059# Provide a configure time option to override our default.
3060# Check whether --enable-compressed_debug_sections was given.
3061if test "${enable_compressed_debug_sections+set}" = set; then :
3062 enableval=$enable_compressed_debug_sections;
3063 if test x"$enable_compressed_debug_sections" = xyes; then
3064 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3065 fi
3066
3067else
3068 enable_compressed_debug_sections=
3069fi
3070
3071
3072# Configure extra directories which are host specific
3073
3074case "${host}" in
3075 *-cygwin*)
3076 configdirs="$configdirs libtermcap" ;;
3077esac
3078
3079# A target can indicate whether a language isn't supported for some reason.
3080# Only spaces may be used in this macro; not newlines or tabs.
3081unsupported_languages=
3082
3083# Remove more programs from consideration, based on the host or
3084# target this usually means that a port of the program doesn't
3085# exist yet.
3086
3087case "${host}" in
3088 i[3456789]86-*-msdosdjgpp*)
3089 noconfigdirs="$noconfigdirs tcl tk itcl"
3090 ;;
3091esac
3092
3093
3094# Check whether --enable-libquadmath was given.
3095if test "${enable_libquadmath+set}" = set; then :
3096 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3097else
3098 ENABLE_LIBQUADMATH=yes
3099fi
3100
3101if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3102 noconfigdirs="$noconfigdirs target-libquadmath"
3103fi
3104
3105
3106# Check whether --enable-libquadmath-support was given.
3107if test "${enable_libquadmath_support+set}" = set; then :
3108 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3109else
3110 ENABLE_LIBQUADMATH_SUPPORT=yes
3111fi
3112
3113enable_libquadmath_support=
3114if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3115 enable_libquadmath_support=no
3116fi
3117
3118
3119# Check whether --enable-libada was given.
3120if test "${enable_libada+set}" = set; then :
3121 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3122else
3123 ENABLE_LIBADA=yes
3124fi
3125
3126if test "${ENABLE_LIBADA}" != "yes" ; then
3127 noconfigdirs="$noconfigdirs gnattools"
3128fi
3129
3130# Check whether --enable-libssp was given.
3131if test "${enable_libssp+set}" = set; then :
3132 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3133else
3134 ENABLE_LIBSSP=yes
3135fi
3136
3137
3138# Check whether --enable-libstdcxx was given.
3139if test "${enable_libstdcxx+set}" = set; then :
3140 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3141else
3142 ENABLE_LIBSTDCXX=default
3143fi
3144
3145if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3146 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3147fi
3148
3149# If this is accelerator compiler and its target is intelmic we enable
3150# target liboffloadmic by default. If this is compiler with offloading
3151# for intelmic we enable host liboffloadmic by default. Otherwise
3152# liboffloadmic is disabled by default.
3153# Check whether --enable-liboffloadmic was given.
3154if test "${enable_liboffloadmic+set}" = set; then :
3155 enableval=$enable_liboffloadmic; case "$enableval" in
3156 no | host | target)
3157 enable_liboffloadmic=$enableval ;;
3158 *)
3159 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3160esac
3161else
3162 if test x"$enable_as_accelerator_for" != x; then
3163 case "${target}" in
3164 *-intelmic-* | *-intelmicemul-*)
3165 enable_liboffloadmic=target
3166 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3167 ;;
3168 *)
3169 enable_liboffloadmic=no
3170 ;;
3171 esac
3172else
3173 case "${enable_offload_targets}" in
3174 *-intelmic-* | *-intelmicemul-*)
3175 enable_liboffloadmic=host
3176 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3177 ;;
3178 *)
3179 enable_liboffloadmic=no
3180 ;;
3181 esac
3182fi
3183fi
3184
3185
3186
3187# Enable libgomp by default on hosted POSIX systems, and a few others.
3188if test x$enable_libgomp = x ; then
3189 case "${target}" in
3190 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3191 ;;
3192 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3193 ;;
3194 *-*-solaris2* | *-*-hpux11*)
3195 ;;
3196 *-*-darwin* | *-*-aix*)
3197 ;;
3198 nvptx*-*-*)
3199 ;;
3200 *)
3201 noconfigdirs="$noconfigdirs target-libgomp"
3202 ;;
3203 esac
3204fi
3205
3206# Disable libatomic on unsupported systems.
3207if test -d ${srcdir}/libatomic; then
3208 if test x$enable_libatomic = x; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3210$as_echo_n "checking for libatomic support... " >&6; }
3211 if (srcdir=${srcdir}/libatomic; \
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-libatomic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
3225# Disable liboffloadmic on unsupported systems.
3226if test -d ${srcdir}/liboffloadmic; then
3227 if test x$enable_liboffloadmic != xno; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3229$as_echo_n "checking for liboffloadmic support... " >&6; }
3230 if (srcdir=${srcdir}/liboffloadmic; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-liboffloadmic"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239$as_echo "yes" >&6; }
3240 fi
3241 fi
3242fi
3243
3244# Disable libitm on unsupported systems.
3245if test -d ${srcdir}/libitm; then
3246 if test x$enable_libitm = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3248$as_echo_n "checking for libitm support... " >&6; }
3249 if (srcdir=${srcdir}/libitm; \
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-libitm"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259 fi
3260 fi
3261fi
3262
3263# Disable libsanitizer on unsupported systems.
3264if test -d ${srcdir}/libsanitizer; then
3265 if test x$enable_libsanitizer = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3267$as_echo_n "checking for libsanitizer support... " >&6; }
3268 if (srcdir=${srcdir}/libsanitizer; \
3269 . ${srcdir}/configure.tgt; \
3270 test -n "$UNSUPPORTED")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libsanitizer"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 fi
3279 fi
3280fi
3281
3282# Disable libvtv on unsupported systems.
3283if test -d ${srcdir}/libvtv; then
3284 if test x$enable_libvtv = x; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3286$as_echo_n "checking for libvtv support... " >&6; }
3287 if (srcdir=${srcdir}/libvtv; \
3288 . ${srcdir}/configure.tgt; \
3289 test "$VTV_SUPPORTED" != "yes")
3290 then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293 noconfigdirs="$noconfigdirs target-libvtv"
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296$as_echo "yes" >&6; }
3297 fi
3298 fi
3299fi
3300
3301
3302# Disable libhsail-rt on unsupported systems.
3303if test -d ${srcdir}/libhsail-rt; then
3304 if test x$enable_libhsail_rt = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3306$as_echo_n "checking for libhsail-rt support... " >&6; }
3307 if (srcdir=${srcdir}/libhsail-rt; \
3308 . ${srcdir}/configure.tgt; \
3309 test -n "$UNSUPPORTED")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313 unsupported_languages="$unsupported_languages brig"
3314 # This implicitly disables also target-libhsail-rt as it won't
3315 # get added to the build without BRIG FE.
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 fi
3320 fi
3321fi
3322
3323
3324# Disable libquadmath for some systems.
3325case "${target}" in
3326 avr-*-*)
3327 noconfigdirs="$noconfigdirs target-libquadmath"
3328 ;;
3329 # libquadmath is unused on AIX and libquadmath build process use of
3330 # LD_LIBRARY_PATH can break AIX bootstrap.
3331 powerpc-*-aix* | rs6000-*-aix*)
3332 noconfigdirs="$noconfigdirs target-libquadmath"
3333 ;;
3334esac
3335
3336# Disable libssp for some systems.
3337case "${target}" in
3338 avr-*-*)
3339 # No hosted I/O support.
3340 noconfigdirs="$noconfigdirs target-libssp"
3341 ;;
3342 powerpc-*-aix* | rs6000-*-aix*)
3343 noconfigdirs="$noconfigdirs target-libssp"
3344 ;;
3345 rl78-*-*)
3346 # libssp uses a misaligned load to trigger a fault, but the RL78
3347 # doesn't fault for those - instead, it gives a build-time error
3348 # for explicit misaligned loads.
3349 noconfigdirs="$noconfigdirs target-libssp"
3350 ;;
3351 visium-*-*)
3352 # No hosted I/O support.
3353 noconfigdirs="$noconfigdirs target-libssp"
3354 ;;
3355esac
3356
3357# Disable libstdc++-v3 for some systems.
3358# Allow user to override this if they pass --enable-libstdc++-v3
3359if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3360 case "${target}" in
3361 *-*-vxworks*)
3362 # VxWorks uses the Dinkumware C++ library.
3363 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3364 ;;
3365 arm*-wince-pe*)
3366 # the C++ libraries don't build on top of CE's C libraries
3367 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3368 ;;
3369 avr-*-*)
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 ;;
3372 ft32-*-*)
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 esac
3376fi
3377
3378# Disable Fortran for some systems.
3379case "${target}" in
3380 mmix-*-*)
3381 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382 unsupported_languages="$unsupported_languages fortran"
3383 ;;
3384esac
3385
3386# Disable libffi for some systems.
3387case "${target}" in
3388 powerpc-*-darwin*)
3389 ;;
3390 i[3456789]86-*-darwin*)
3391 ;;
3392 x86_64-*-darwin[912]*)
3393 ;;
3394 *-*-darwin*)
3395 noconfigdirs="$noconfigdirs target-libffi"
3396 ;;
3397 *-*-netware*)
3398 noconfigdirs="$noconfigdirs target-libffi"
3399 ;;
3400 *-*-phoenix*)
3401 noconfigdirs="$noconfigdirs target-libffi"
3402 ;;
3403 *-*-rtems*)
3404 noconfigdirs="$noconfigdirs target-libffi"
3405 ;;
3406 *-*-tpf*)
3407 noconfigdirs="$noconfigdirs target-libffi"
3408 ;;
3409 *-*-uclinux*)
3410 noconfigdirs="$noconfigdirs target-libffi"
3411 ;;
3412 *-*-vxworks*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 aarch64*-*-freebsd*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 alpha*-*-*vms*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 arm*-*-freebsd*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 arm-wince-pe)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 arm*-*-symbianelf*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 cris-*-* | crisv32-*-*)
3431 case "${target}" in
3432 *-*-linux*)
3433 ;;
3434 *) # See PR46792 regarding target-libffi.
3435 noconfigdirs="$noconfigdirs target-libffi";;
3436 esac
3437 ;;
3438 hppa*64*-*-hpux*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 hppa*-hp-hpux11*)
3442 ;;
3443 hppa*-*-hpux*)
3444 noconfigdirs="$noconfigdirs target-libffi"
3445 ;;
3446 ia64*-*-*vms*)
3447 noconfigdirs="$noconfigdirs target-libffi"
3448 ;;
3449 i[3456789]86-w64-mingw*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3451 ;;
3452 i[3456789]86-*-mingw*)
3453 noconfigdirs="$noconfigdirs target-libffi"
3454 ;;
3455 x86_64-*-mingw*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3457 ;;
3458 mmix-*-*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 powerpc-*-aix*)
3462 ;;
3463 rs6000-*-aix*)
3464 ;;
3465 ft32-*-*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 *-*-lynxos*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3470 ;;
3471esac
3472
3473# Disable the go frontend on systems where it is known to not work. Please keep
3474# this in sync with contrib/config-list.mk.
3475case "${target}" in
3476*-*-darwin* | *-*-cygwin* | *-*-mingw*)
3477 unsupported_languages="$unsupported_languages go"
3478 ;;
3479esac
3480
3481# Disable libgo for some systems where it is known to not work.
3482# For testing, you can easily override this with --enable-libgo.
3483if test x$enable_libgo = x; then
3484 case "${target}" in
3485 *-*-darwin*)
3486 # PR 46986
3487 noconfigdirs="$noconfigdirs target-libgo"
3488 ;;
3489 *-*-cygwin* | *-*-mingw*)
3490 noconfigdirs="$noconfigdirs target-libgo"
3491 ;;
3492 esac
3493fi
3494
3495# Default libgloss CPU subdirectory.
3496libgloss_dir="$target_cpu"
3497
3498case "${target}" in
3499 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3500 libgloss_dir=wince
3501 ;;
3502 aarch64*-*-* )
3503 libgloss_dir=aarch64
3504 ;;
3505 arm*-*-*)
3506 libgloss_dir=arm
3507 ;;
3508 cris-*-* | crisv32-*-*)
3509 libgloss_dir=cris
3510 ;;
3511 hppa*-*-*)
3512 libgloss_dir=pa
3513 ;;
3514 i[3456789]86-*-*)
3515 libgloss_dir=i386
3516 ;;
3517 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3518 libgloss_dir=m68hc11
3519 ;;
3520 m68*-*-* | fido-*-*)
3521 libgloss_dir=m68k
3522 ;;
3523 mips*-*-*)
3524 libgloss_dir=mips
3525 ;;
3526 powerpc*-*-*)
3527 libgloss_dir=rs6000
3528 ;;
3529 sparc*-*-*)
3530 libgloss_dir=sparc
3531 ;;
3532esac
3533
3534# Disable newlib and libgloss for various target OSes.
3535case "${target}" in
3536 alpha*-dec-osf*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 i[3456789]86-*-linux*)
3540 # This section makes it possible to build newlib natively on linux.
3541 # If we are using a cross compiler then don't configure newlib.
3542 if test x${is_cross_compiler} != xno ; then
3543 noconfigdirs="$noconfigdirs target-newlib"
3544 fi
3545 noconfigdirs="$noconfigdirs target-libgloss"
3546 # If we are not using a cross compiler, do configure newlib.
3547 # Note however, that newlib will only be configured in this situation
3548 # if the --with-newlib option has been given, because otherwise
3549 # 'target-newlib' will appear in skipdirs.
3550 ;;
3551 i[3456789]86-*-rdos*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 ;;
3554 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 ;;
3557 sparc-*-sunos4*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 *-*-aix*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 *-*-beos*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-chorusos)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-dragonfly*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
3572 *-*-freebsd*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 ;;
3578 *-*-lynxos*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 *-*-mingw*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 *-*-netbsd*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-netware*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-tpf*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-uclinux*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-vxworks*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599esac
3600
3601case "${target}" in
3602 *-*-chorusos)
3603 ;;
3604 aarch64-*-darwin*)
3605 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3606 noconfigdirs="$noconfigdirs sim target-rda"
3607 ;;
3608 arm-*-darwin*)
3609 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3610 noconfigdirs="$noconfigdirs sim target-rda"
3611 ;;
3612 powerpc-*-darwin*)
3613 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3614 noconfigdirs="$noconfigdirs sim target-rda"
3615 ;;
3616 i[3456789]86-*-darwin*)
3617 noconfigdirs="$noconfigdirs ld gprof"
3618 noconfigdirs="$noconfigdirs sim target-rda"
3619 ;;
3620 x86_64-*-darwin[912]*)
3621 noconfigdirs="$noconfigdirs ld gas gprof"
3622 noconfigdirs="$noconfigdirs sim target-rda"
3623 ;;
3624 *-*-darwin*)
3625 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3626 noconfigdirs="$noconfigdirs sim target-rda"
3627 ;;
3628 *-*-dragonfly*)
3629 ;;
3630 *-*-freebsd*)
3631 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3632 && test -f /usr/local/include/gmp.h; then
3633 with_gmp=/usr/local
3634 fi
3635 ;;
3636 *-*-kaos*)
3637 # Remove unsupported stuff on all kaOS configurations.
3638 noconfigdirs="$noconfigdirs target-libgloss"
3639 ;;
3640 *-*-netbsd*)
3641 ;;
3642 *-*-netware*)
3643 ;;
3644 *-*-phoenix*)
3645 noconfigdirs="$noconfigdirs target-libgloss"
3646 ;;
3647 *-*-rtems*)
3648 noconfigdirs="$noconfigdirs target-libgloss"
3649 ;;
3650 # The tpf target doesn't support gdb yet.
3651 *-*-tpf*)
3652 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3653 ;;
3654 *-*-uclinux*)
3655 noconfigdirs="$noconfigdirs target-rda"
3656 ;;
3657 *-*-vxworks*)
3658 ;;
3659 alpha*-dec-osf*)
3660 # ld works, but does not support shared libraries.
3661 # gas doesn't generate exception information.
3662 noconfigdirs="$noconfigdirs gas ld"
3663 ;;
3664 alpha*-*-*vms*)
3665 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3666 ;;
3667 alpha*-*-*)
3668 # newlib is not 64 bit ready
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3672 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3673 ;;
3674 arc*-*-*)
3675 noconfigdirs="$noconfigdirs sim"
3676 ;;
3677 arm-*-pe*)
3678 noconfigdirs="$noconfigdirs target-libgloss"
3679 ;;
3680 arm-*-riscix*)
3681 noconfigdirs="$noconfigdirs ld target-libgloss"
3682 ;;
3683 avr-*-*)
3684 if test x${with_avrlibc} != xno; then
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 fi
3687 ;;
3688 c4x-*-* | tic4x-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3690 ;;
3691 tic54x-*-*)
3692 noconfigdirs="$noconfigdirs target-libgloss gdb"
3693 ;;
3694 d10v-*-*)
3695 noconfigdirs="$noconfigdirs target-libgloss"
3696 ;;
3697 d30v-*-*)
3698 noconfigdirs="$noconfigdirs gdb"
3699 ;;
3700 fr30-*-elf*)
3701 noconfigdirs="$noconfigdirs gdb"
3702 ;;
3703 ft32-*-*)
3704 noconfigdirs="$noconfigdirs target-rda gprof"
3705 ;;
3706 moxie-*-*)
3707 noconfigdirs="$noconfigdirs"
3708 ;;
3709 h8300*-*-*)
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 ;;
3712 h8500-*-*)
3713 noconfigdirs="$noconfigdirs target-libgloss"
3714 ;;
3715 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3716 ;;
3717 hppa*64*-*-hpux*)
3718 noconfigdirs="$noconfigdirs gdb"
3719 ;;
3720 hppa*-*-hpux11*)
3721 noconfigdirs="$noconfigdirs gdb ld"
3722 ;;
3723 hppa*64*-*-linux*)
3724 ;;
3725 hppa*-*-linux*)
3726 ;;
3727 hppa*-*-*elf* | \
3728 hppa*-*-lites* | \
3729 hppa*-*-openbsd* | \
3730 hppa*64*-*-*)
3731 ;;
3732 hppa*-*-pro*)
3733 ;;
3734 hppa*-*-*)
3735 noconfigdirs="$noconfigdirs ld"
3736 ;;
3737 i960-*-*)
3738 noconfigdirs="$noconfigdirs gdb"
3739 ;;
3740 ia64*-*-elf*)
3741 # No gdb support yet.
3742 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3743 ;;
3744 ia64*-**-hpux*)
3745 # No ld support yet.
3746 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3747 ;;
3748 ia64*-*-*vms*)
3749 # No ld support yet.
3750 noconfigdirs="$noconfigdirs libgui itcl ld"
3751 ;;
3752 i[3456789]86-w64-mingw*)
3753 ;;
3754 i[3456789]86-*-mingw*)
3755 target_configdirs="$target_configdirs target-winsup"
3756 ;;
3757 *-*-cygwin*)
3758 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3759 noconfigdirs="$noconfigdirs target-libgloss"
3760 # always build newlib if winsup directory is present.
3761 if test -d "$srcdir/winsup/cygwin"; then
3762 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3763 elif test -d "$srcdir/newlib"; then
3764 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3765 fi
3766 ;;
3767 i[3456789]86-*-pe)
3768 noconfigdirs="$noconfigdirs target-libgloss"
3769 ;;
3770 i[3456789]86-*-sco3.2v5*)
3771 # The linker does not yet know about weak symbols in COFF,
3772 # and is not configured to handle mixed ELF and COFF.
3773 noconfigdirs="$noconfigdirs ld target-libgloss"
3774 ;;
3775 i[3456789]86-*-sco*)
3776 noconfigdirs="$noconfigdirs gprof target-libgloss"
3777 ;;
3778 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3779 noconfigdirs="$noconfigdirs target-libgloss"
3780 ;;
3781 i[3456789]86-*-sysv4*)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3783 ;;
3784 i[3456789]86-*-beos*)
3785 noconfigdirs="$noconfigdirs gdb"
3786 ;;
3787 i[3456789]86-*-rdos*)
3788 noconfigdirs="$noconfigdirs gdb"
3789 ;;
3790 mmix-*-*)
3791 noconfigdirs="$noconfigdirs gdb"
3792 ;;
3793 mt-*-*)
3794 noconfigdirs="$noconfigdirs sim"
3795 ;;
3796 nfp-*-*)
3797 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3798 noconfigdirs="$noconfigdirs $target_libraries"
3799 ;;
3800 powerpc-*-aix*)
3801 # copied from rs6000-*-* entry
3802 noconfigdirs="$noconfigdirs gprof"
3803 ;;
3804 powerpc*-*-winnt* | powerpc*-*-pe*)
3805 target_configdirs="$target_configdirs target-winsup"
3806 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3807 # always build newlib.
3808 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3809 ;;
3810 # This is temporary until we can link against shared libraries
3811 powerpcle-*-solaris*)
3812 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3813 ;;
3814 powerpc-*-beos*)
3815 noconfigdirs="$noconfigdirs gdb"
3816 ;;
3817 rs6000-*-lynxos*)
3818 noconfigdirs="$noconfigdirs gprof"
3819 ;;
3820 rs6000-*-aix*)
3821 noconfigdirs="$noconfigdirs gprof"
3822 ;;
3823 rs6000-*-*)
3824 noconfigdirs="$noconfigdirs gprof"
3825 ;;
3826 m68k-apollo-*)
3827 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3828 ;;
3829 microblaze*)
3830 noconfigdirs="$noconfigdirs gprof"
3831 ;;
3832 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3833 if test x$with_newlib = xyes; then
3834 noconfigdirs="$noconfigdirs gprof"
3835 fi
3836 ;;
3837 mips*-*-irix5*)
3838 noconfigdirs="$noconfigdirs gprof target-libgloss"
3839 ;;
3840 mips*-*-irix6*)
3841 noconfigdirs="$noconfigdirs gprof target-libgloss"
3842 ;;
3843 mips*-*-bsd*)
3844 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3845 ;;
3846 mips*-*-linux*)
3847 ;;
3848 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3849 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3850 noconfigdirs="$noconfigdirs ld gas gprof"
3851 ;;
3852 mips*-*-*)
3853 noconfigdirs="$noconfigdirs gprof"
3854 ;;
3855 nvptx*-*-*)
3856 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3857 ;;
3858 sh-*-*)
3859 case "${target}" in
3860 sh*-*-elf)
3861 ;;
3862 *)
3863 noconfigdirs="$noconfigdirs target-libgloss" ;;
3864 esac
3865 ;;
3866 sparc-*-sunos4*)
3867 if test x${is_cross_compiler} = xno ; then
3868 use_gnu_ld=no
3869 fi
3870 ;;
3871 tic6x-*-*)
3872 noconfigdirs="$noconfigdirs sim"
3873 ;;
3874 tilepro*-*-* | tilegx*-*-*)
3875 noconfigdirs="$noconfigdirs sim"
3876 ;;
3877 v810-*-*)
3878 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3879 ;;
3880 vax-*-*)
3881 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3882 ;;
3883 wasm32-*-*)
3884 noconfigdirs="$noconfigdirs ld"
3885 ;;
3886esac
3887
3888# If we aren't building newlib, then don't build libgloss, since libgloss
3889# depends upon some newlib header files.
3890case "${noconfigdirs}" in
3891 *target-libgloss*) ;;
3892 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3893esac
3894
3895# Work in distributions that contain no compiler tools, like Autoconf.
3896host_makefile_frag=/dev/null
3897if test -d ${srcdir}/config ; then
3898case "${host}" in
3899 i[3456789]86-*-msdosdjgpp*)
3900 host_makefile_frag="config/mh-djgpp"
3901 ;;
3902 *-cygwin*)
3903
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3905$as_echo_n "checking to see if cat works as expected... " >&6; }
3906echo a >cygwin-cat-check
3907if test `cat cygwin-cat-check` = a ; then
3908 rm cygwin-cat-check
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910$as_echo "yes" >&6; }
3911else
3912 rm cygwin-cat-check
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915 as_fn_error $? "The cat command does not ignore carriage return characters.
3916 Please either mount the build directory in binary mode or run the following
3917 commands before running any configure script:
3918set -o igncr
3919export SHELLOPTS
3920 " "$LINENO" 5
3921fi
3922
3923 host_makefile_frag="config/mh-cygwin"
3924 ;;
3925 *-mingw*)
3926 host_makefile_frag="config/mh-mingw"
3927 ;;
3928 alpha*-linux*)
3929 host_makefile_frag="config/mh-alpha-linux"
3930 ;;
3931 hppa*-hp-hpux10*)
3932 host_makefile_frag="config/mh-pa-hpux10"
3933 ;;
3934 hppa*-hp-hpux*)
3935 host_makefile_frag="config/mh-pa"
3936 ;;
3937 hppa*-*)
3938 host_makefile_frag="config/mh-pa"
3939 ;;
3940 *-*-darwin*)
3941 host_makefile_frag="config/mh-darwin"
3942 ;;
3943 powerpc-*-aix*)
3944 host_makefile_frag="config/mh-ppc-aix"
3945 ;;
3946 rs6000-*-aix*)
3947 host_makefile_frag="config/mh-ppc-aix"
3948 ;;
3949esac
3950fi
3951
3952if test "${build}" != "${host}" ; then
3953 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3954 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3955 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3956 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3957 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3958 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3959 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3960 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3961 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3962 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3963 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3964 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3965else
3966 AR_FOR_BUILD="\$(AR)"
3967 AS_FOR_BUILD="\$(AS)"
3968 CC_FOR_BUILD="\$(CC)"
3969 CXX_FOR_BUILD="\$(CXX)"
3970 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3971 GOC_FOR_BUILD="\$(GOC)"
3972 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3973 LD_FOR_BUILD="\$(LD)"
3974 NM_FOR_BUILD="\$(NM)"
3975 RANLIB_FOR_BUILD="\$(RANLIB)"
3976 WINDRES_FOR_BUILD="\$(WINDRES)"
3977 WINDMC_FOR_BUILD="\$(WINDMC)"
3978fi
3979
3980ac_ext=c
3981ac_cpp='$CPP $CPPFLAGS'
3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3987set dummy ${ac_tool_prefix}gcc; ac_word=$2
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
3990if ${ac_cv_prog_CC+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992else
3993 if test -n "$CC"; then
3994 ac_cv_prog_CC="$CC" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007done
4008 done
4009IFS=$as_save_IFS
4010
4011fi
4012fi
4013CC=$ac_cv_prog_CC
4014if test -n "$CC"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4016$as_echo "$CC" >&6; }
4017else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020fi
4021
4022
4023fi
4024if test -z "$ac_cv_prog_CC"; then
4025 ac_ct_CC=$CC
4026 # Extract the first word of "gcc", so it can be a program name with args.
4027set dummy gcc; ac_word=$2
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if ${ac_cv_prog_ac_ct_CC+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032else
4033 if test -n "$ac_ct_CC"; then
4034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_prog_ac_ct_CC="gcc"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047done
4048 done
4049IFS=$as_save_IFS
4050
4051fi
4052fi
4053ac_ct_CC=$ac_cv_prog_ac_ct_CC
4054if test -n "$ac_ct_CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4056$as_echo "$ac_ct_CC" >&6; }
4057else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060fi
4061
4062 if test "x$ac_ct_CC" = x; then
4063 CC=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066yes:)
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069ac_tool_warned=yes ;;
4070esac
4071 CC=$ac_ct_CC
4072 fi
4073else
4074 CC="$ac_cv_prog_CC"
4075fi
4076
4077if test -z "$CC"; then
4078 if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4080set dummy ${ac_tool_prefix}cc; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_CC+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085else
4086 if test -n "$CC"; then
4087 ac_cv_prog_CC="$CC" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_CC="${ac_tool_prefix}cc"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100done
4101 done
4102IFS=$as_save_IFS
4103
4104fi
4105fi
4106CC=$ac_cv_prog_CC
4107if test -n "$CC"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109$as_echo "$CC" >&6; }
4110else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
4113fi
4114
4115
4116 fi
4117fi
4118if test -z "$CC"; then
4119 # Extract the first word of "cc", so it can be a program name with args.
4120set dummy cc; ac_word=$2
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122$as_echo_n "checking for $ac_word... " >&6; }
4123if ${ac_cv_prog_CC+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128else
4129 ac_prog_rejected=no
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4138 ac_prog_rejected=yes
4139 continue
4140 fi
4141 ac_cv_prog_CC="cc"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146 done
4147IFS=$as_save_IFS
4148
4149if test $ac_prog_rejected = yes; then
4150 # We found a bogon in the path, so make sure we never use it.
4151 set dummy $ac_cv_prog_CC
4152 shift
4153 if test $# != 0; then
4154 # We chose a different compiler from the bogus one.
4155 # However, it has the same basename, so the bogon will be chosen
4156 # first if we set CC to just the basename; use the full file name.
4157 shift
4158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4159 fi
4160fi
4161fi
4162fi
4163CC=$ac_cv_prog_CC
4164if test -n "$CC"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4166$as_echo "$CC" >&6; }
4167else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169$as_echo "no" >&6; }
4170fi
4171
4172
4173fi
4174if test -z "$CC"; then
4175 if test -n "$ac_tool_prefix"; then
4176 for ac_prog in cl.exe
4177 do
4178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
4182if ${ac_cv_prog_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184else
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4198 fi
4199done
4200 done
4201IFS=$as_save_IFS
4202
4203fi
4204fi
4205CC=$ac_cv_prog_CC
4206if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208$as_echo "$CC" >&6; }
4209else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
4212fi
4213
4214
4215 test -n "$CC" && break
4216 done
4217fi
4218if test -z "$CC"; then
4219 ac_ct_CC=$CC
4220 for ac_prog in cl.exe
4221do
4222 # Extract the first word of "$ac_prog", so it can be a program name with args.
4223set dummy $ac_prog; ac_word=$2
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225$as_echo_n "checking for $ac_word... " >&6; }
4226if ${ac_cv_prog_ac_ct_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 if test -n "$ac_ct_CC"; then
4230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_ac_ct_CC="$ac_prog"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243done
4244 done
4245IFS=$as_save_IFS
4246
4247fi
4248fi
4249ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250if test -n "$ac_ct_CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4252$as_echo "$ac_ct_CC" >&6; }
4253else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256fi
4257
4258
4259 test -n "$ac_ct_CC" && break
4260done
4261
4262 if test "x$ac_ct_CC" = x; then
4263 CC=""
4264 else
4265 case $cross_compiling:$ac_tool_warned in
4266yes:)
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269ac_tool_warned=yes ;;
4270esac
4271 CC=$ac_ct_CC
4272 fi
4273fi
4274
4275fi
4276
4277
4278test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280as_fn_error $? "no acceptable C compiler found in \$PATH
4281See \`config.log' for more details" "$LINENO" 5; }
4282
4283# Provide some information about the compiler.
4284$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4285set X $ac_compile
4286ac_compiler=$2
4287for ac_option in --version -v -V -qversion; do
4288 { { ac_try="$ac_compiler $ac_option >&5"
4289case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292esac
4293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294$as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4296 ac_status=$?
4297 if test -s conftest.err; then
4298 sed '10a\
4299... rest of stderr output deleted ...
4300 10q' conftest.err >conftest.er1
4301 cat conftest.er1 >&5
4302 fi
4303 rm -f conftest.er1 conftest.err
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }
4306done
4307
4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h. */
4310
4311int
4312main ()
4313{
4314
4315 ;
4316 return 0;
4317}
4318_ACEOF
4319ac_clean_files_save=$ac_clean_files
4320ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321# Try to create an executable without -o first, disregard a.out.
4322# It will help us diagnose broken compilers, and finding out an intuition
4323# of exeext.
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325$as_echo_n "checking whether the C compiler works... " >&6; }
4326ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4327
4328# The possible output files:
4329ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4330
4331ac_rmfiles=
4332for ac_file in $ac_files
4333do
4334 case $ac_file in
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4337 esac
4338done
4339rm -f $ac_rmfiles
4340
4341if { { ac_try="$ac_link_default"
4342case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347$as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_link_default") 2>&5
4349 ac_status=$?
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }; then :
4352 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4353# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4354# in a Makefile. We should not override ac_cv_exeext if it was cached,
4355# so that the user can short-circuit this test for compilers unknown to
4356# Autoconf.
4357for ac_file in $ac_files ''
4358do
4359 test -f "$ac_file" || continue
4360 case $ac_file in
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4362 ;;
4363 [ab].out )
4364 # We found the default executable, but exeext='' is most
4365 # certainly right.
4366 break;;
4367 *.* )
4368 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4369 then :; else
4370 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4371 fi
4372 # We set ac_cv_exeext here because the later test for it is not
4373 # safe: cross compilers may not add the suffix if given an `-o'
4374 # argument, so we may need to know it at that point already.
4375 # Even if this section looks crufty: it has the advantage of
4376 # actually working.
4377 break;;
4378 * )
4379 break;;
4380 esac
4381done
4382test "$ac_cv_exeext" = no && ac_cv_exeext=
4383
4384else
4385 ac_file=''
4386fi
4387if test -z "$ac_file"; then :
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
4390$as_echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395as_fn_error 77 "C compiler cannot create executables
4396See \`config.log' for more details" "$LINENO" 5; }
4397else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399$as_echo "yes" >&6; }
4400fi
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4402$as_echo_n "checking for C compiler default output file name... " >&6; }
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4404$as_echo "$ac_file" >&6; }
4405ac_exeext=$ac_cv_exeext
4406
4407rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4408ac_clean_files=$ac_clean_files_save
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4410$as_echo_n "checking for suffix of executables... " >&6; }
4411if { { ac_try="$ac_link"
4412case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
4416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417$as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_link") 2>&5
4419 ac_status=$?
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; then :
4422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4423# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4424# work properly (i.e., refer to `conftest.exe'), while it won't with
4425# `rm'.
4426for ac_file in conftest.exe conftest conftest.*; do
4427 test -f "$ac_file" || continue
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431 break;;
4432 * ) break;;
4433 esac
4434done
4435else
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4439See \`config.log' for more details" "$LINENO" 5; }
4440fi
4441rm -f conftest conftest$ac_cv_exeext
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4443$as_echo "$ac_cv_exeext" >&6; }
4444
4445rm -f conftest.$ac_ext
4446EXEEXT=$ac_cv_exeext
4447ac_exeext=$EXEEXT
4448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h. */
4450#include <stdio.h>
4451int
4452main ()
4453{
4454FILE *f = fopen ("conftest.out", "w");
4455 return ferror (f) || fclose (f) != 0;
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461ac_clean_files="$ac_clean_files conftest.out"
4462# Check that the compiler produces executables we can run. If not, either
4463# the compiler is broken, or we cross compile.
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4465$as_echo_n "checking whether we are cross compiling... " >&6; }
4466if test "$cross_compiling" != yes; then
4467 { { ac_try="$ac_link"
4468case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471esac
4472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473$as_echo "$ac_try_echo"; } >&5
4474 (eval "$ac_link") 2>&5
4475 ac_status=$?
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4478 if { ac_try='./conftest$ac_cv_exeext'
4479 { { case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484$as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; }; then
4489 cross_compiling=no
4490 else
4491 if test "$cross_compiling" = maybe; then
4492 cross_compiling=yes
4493 else
4494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496as_fn_error $? "cannot run C compiled programs.
4497If you meant to cross compile, use \`--host'.
4498See \`config.log' for more details" "$LINENO" 5; }
4499 fi
4500 fi
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4503$as_echo "$cross_compiling" >&6; }
4504
4505rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4506ac_clean_files=$ac_clean_files_save
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4508$as_echo_n "checking for suffix of object files... " >&6; }
4509if ${ac_cv_objext+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511else
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513/* end confdefs.h. */
4514
4515int
4516main ()
4517{
4518
4519 ;
4520 return 0;
4521}
4522_ACEOF
4523rm -f conftest.o conftest.obj
4524if { { ac_try="$ac_compile"
4525case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
4529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530$as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compile") 2>&5
4532 ac_status=$?
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 for ac_file in conftest.o conftest.obj conftest.*; do
4536 test -f "$ac_file" || continue;
4537 case $ac_file in
4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4540 break;;
4541 esac
4542done
4543else
4544 $as_echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549as_fn_error $? "cannot compute suffix of object files: cannot compile
4550See \`config.log' for more details" "$LINENO" 5; }
4551fi
4552rm -f conftest.$ac_cv_objext conftest.$ac_ext
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4555$as_echo "$ac_cv_objext" >&6; }
4556OBJEXT=$ac_cv_objext
4557ac_objext=$OBJEXT
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4559$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4560if ${ac_cv_c_compiler_gnu+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562else
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h. */
4565
4566int
4567main ()
4568{
4569#ifndef __GNUC__
4570 choke me
4571#endif
4572
4573 ;
4574 return 0;
4575}
4576_ACEOF
4577if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_compiler_gnu=yes
4579else
4580 ac_compiler_gnu=no
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583ac_cv_c_compiler_gnu=$ac_compiler_gnu
4584
4585fi
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4587$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4588if test $ac_compiler_gnu = yes; then
4589 GCC=yes
4590else
4591 GCC=
4592fi
4593ac_test_CFLAGS=${CFLAGS+set}
4594ac_save_CFLAGS=$CFLAGS
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4596$as_echo_n "checking whether $CC accepts -g... " >&6; }
4597if ${ac_cv_prog_cc_g+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 ac_save_c_werror_flag=$ac_c_werror_flag
4601 ac_c_werror_flag=yes
4602 ac_cv_prog_cc_g=no
4603 CFLAGS="-g"
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h. */
4606
4607int
4608main ()
4609{
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_prog_cc_g=yes
4617else
4618 CFLAGS=""
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
4621
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631
4632else
4633 ac_c_werror_flag=$ac_save_c_werror_flag
4634 CFLAGS="-g"
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h. */
4637
4638int
4639main ()
4640{
4641
4642 ;
4643 return 0;
4644}
4645_ACEOF
4646if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_prog_cc_g=yes
4648fi
4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650fi
4651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652fi
4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4655fi
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4657$as_echo "$ac_cv_prog_cc_g" >&6; }
4658if test "$ac_test_CFLAGS" = set; then
4659 CFLAGS=$ac_save_CFLAGS
4660elif test $ac_cv_prog_cc_g = yes; then
4661 if test "$GCC" = yes; then
4662 CFLAGS="-g -O2"
4663 else
4664 CFLAGS="-g"
4665 fi
4666else
4667 if test "$GCC" = yes; then
4668 CFLAGS="-O2"
4669 else
4670 CFLAGS=
4671 fi
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4674$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4675if ${ac_cv_prog_cc_c89+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677else
4678 ac_cv_prog_cc_c89=no
4679ac_save_CC=$CC
4680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682#include <stdarg.h>
4683#include <stdio.h>
4684struct stat;
4685/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4686struct buf { int x; };
4687FILE * (*rcsopen) (struct buf *, struct stat *, int);
4688static char *e (p, i)
4689 char **p;
4690 int i;
4691{
4692 return p[i];
4693}
4694static char *f (char * (*g) (char **, int), char **p, ...)
4695{
4696 char *s;
4697 va_list v;
4698 va_start (v,p);
4699 s = g (p, va_arg (v,int));
4700 va_end (v);
4701 return s;
4702}
4703
4704/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4705 function prototypes and stuff, but not '\xHH' hex character constants.
4706 These don't provoke an error unfortunately, instead are silently treated
4707 as 'x'. The following induces an error, until -std is added to get
4708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4709 array size at least. It's necessary to write '\x00'==0 to get something
4710 that's true only with -std. */
4711int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4712
4713/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4714 inside strings and character constants. */
4715#define FOO(x) 'x'
4716int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4717
4718int test (int i, double x);
4719struct s1 {int (*f) (int a);};
4720struct s2 {int (*f) (double a);};
4721int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4722int argc;
4723char **argv;
4724int
4725main ()
4726{
4727return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4728 ;
4729 return 0;
4730}
4731_ACEOF
4732for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4734do
4735 CC="$ac_save_CC $ac_arg"
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_prog_cc_c89=$ac_arg
4738fi
4739rm -f core conftest.err conftest.$ac_objext
4740 test "x$ac_cv_prog_cc_c89" != "xno" && break
4741done
4742rm -f conftest.$ac_ext
4743CC=$ac_save_CC
4744
4745fi
4746# AC_CACHE_VAL
4747case "x$ac_cv_prog_cc_c89" in
4748 x)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4750$as_echo "none needed" >&6; } ;;
4751 xno)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4753$as_echo "unsupported" >&6; } ;;
4754 *)
4755 CC="$CC $ac_cv_prog_cc_c89"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4757$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4758esac
4759if test "x$ac_cv_prog_cc_c89" != xno; then :
4760
4761fi
4762
4763ac_ext=c
4764ac_cpp='$CPP $CPPFLAGS'
4765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768
4769ac_ext=cpp
4770ac_cpp='$CXXCPP $CPPFLAGS'
4771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4774if test -z "$CXX"; then
4775 if test -n "$CCC"; then
4776 CXX=$CCC
4777 else
4778 if test -n "$ac_tool_prefix"; then
4779 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4780 do
4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784$as_echo_n "checking for $ac_word... " >&6; }
4785if ${ac_cv_prog_CXX+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787else
4788 if test -n "$CXX"; then
4789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802done
4803 done
4804IFS=$as_save_IFS
4805
4806fi
4807fi
4808CXX=$ac_cv_prog_CXX
4809if test -n "$CXX"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4811$as_echo "$CXX" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818 test -n "$CXX" && break
4819 done
4820fi
4821if test -z "$CXX"; then
4822 ac_ct_CXX=$CXX
4823 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4824do
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826set dummy $ac_prog; ac_word=$2
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828$as_echo_n "checking for $ac_word... " >&6; }
4829if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831else
4832 if test -n "$ac_ct_CXX"; then
4833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_ac_ct_CXX="$ac_prog"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846done
4847 done
4848IFS=$as_save_IFS
4849
4850fi
4851fi
4852ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4853if test -n "$ac_ct_CXX"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4855$as_echo "$ac_ct_CXX" >&6; }
4856else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858$as_echo "no" >&6; }
4859fi
4860
4861
4862 test -n "$ac_ct_CXX" && break
4863done
4864
4865 if test "x$ac_ct_CXX" = x; then
4866 CXX="g++"
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869yes:)
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872ac_tool_warned=yes ;;
4873esac
4874 CXX=$ac_ct_CXX
4875 fi
4876fi
4877
4878 fi
4879fi
4880# Provide some information about the compiler.
4881$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4882set X $ac_compile
4883ac_compiler=$2
4884for ac_option in --version -v -V -qversion; do
4885 { { ac_try="$ac_compiler $ac_option >&5"
4886case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889esac
4890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4891$as_echo "$ac_try_echo"; } >&5
4892 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4893 ac_status=$?
4894 if test -s conftest.err; then
4895 sed '10a\
4896... rest of stderr output deleted ...
4897 10q' conftest.err >conftest.er1
4898 cat conftest.er1 >&5
4899 fi
4900 rm -f conftest.er1 conftest.err
4901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }
4903done
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4906$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4907if ${ac_cv_cxx_compiler_gnu+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912
4913int
4914main ()
4915{
4916#ifndef __GNUC__
4917 choke me
4918#endif
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924if ac_fn_cxx_try_compile "$LINENO"; then :
4925 ac_compiler_gnu=yes
4926else
4927 ac_compiler_gnu=no
4928fi
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4931
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4934$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4935if test $ac_compiler_gnu = yes; then
4936 GXX=yes
4937else
4938 GXX=
4939fi
4940ac_test_CXXFLAGS=${CXXFLAGS+set}
4941ac_save_CXXFLAGS=$CXXFLAGS
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4943$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4944if ${ac_cv_prog_cxx_g+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4948 ac_cxx_werror_flag=yes
4949 ac_cv_prog_cxx_g=no
4950 CXXFLAGS="-g"
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952/* end confdefs.h. */
4953
4954int
4955main ()
4956{
4957
4958 ;
4959 return 0;
4960}
4961_ACEOF
4962if ac_fn_cxx_try_compile "$LINENO"; then :
4963 ac_cv_prog_cxx_g=yes
4964else
4965 CXXFLAGS=""
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h. */
4968
4969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977if ac_fn_cxx_try_compile "$LINENO"; then :
4978
4979else
4980 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4981 CXXFLAGS="-g"
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993if ac_fn_cxx_try_compile "$LINENO"; then :
4994 ac_cv_prog_cxx_g=yes
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5004$as_echo "$ac_cv_prog_cxx_g" >&6; }
5005if test "$ac_test_CXXFLAGS" = set; then
5006 CXXFLAGS=$ac_save_CXXFLAGS
5007elif test $ac_cv_prog_cxx_g = yes; then
5008 if test "$GXX" = yes; then
5009 CXXFLAGS="-g -O2"
5010 else
5011 CXXFLAGS="-g"
5012 fi
5013else
5014 if test "$GXX" = yes; then
5015 CXXFLAGS="-O2"
5016 else
5017 CXXFLAGS=
5018 fi
5019fi
5020ac_ext=c
5021ac_cpp='$CPP $CPPFLAGS'
5022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025
5026
5027# We must set the default linker to the linker used by gcc for the correct
5028# operation of libtool. If LD is not defined and we are using gcc, try to
5029# set the LD default to the ld used by gcc.
5030if test -z "$LD"; then
5031 if test "$GCC" = yes; then
5032 case $build in
5033 *-*-mingw*)
5034 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5035 *)
5036 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5037 esac
5038 case $gcc_prog_ld in
5039 # Accept absolute paths.
5040 [\\/]* | [A-Za-z]:[\\/]*)
5041 LD="$gcc_prog_ld" ;;
5042 esac
5043 fi
5044fi
5045
5046# Check whether -static-libstdc++ -static-libgcc is supported.
5047have_static_libs=no
5048if test "$GCC" = yes; then
5049 saved_LDFLAGS="$LDFLAGS"
5050
5051 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5053$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5054 ac_ext=cpp
5055ac_cpp='$CXXCPP $CPPFLAGS'
5056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5059
5060
5061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h. */
5063
5064#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5065#error -static-libstdc++ not implemented
5066#endif
5067int main() {}
5068_ACEOF
5069if ac_fn_cxx_try_link "$LINENO"; then :
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071$as_echo "yes" >&6; }; have_static_libs=yes
5072else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076rm -f core conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext conftest.$ac_ext
5078 ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084
5085 LDFLAGS="$saved_LDFLAGS"
5086fi
5087
5088
5089
5090
5091if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5093set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095$as_echo_n "checking for $ac_word... " >&6; }
5096if ${ac_cv_prog_GNATBIND+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098else
5099 if test -n "$GNATBIND"; then
5100 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5112 fi
5113done
5114 done
5115IFS=$as_save_IFS
5116
5117fi
5118fi
5119GNATBIND=$ac_cv_prog_GNATBIND
5120if test -n "$GNATBIND"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5122$as_echo "$GNATBIND" >&6; }
5123else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125$as_echo "no" >&6; }
5126fi
5127
5128
5129fi
5130if test -z "$ac_cv_prog_GNATBIND"; then
5131 ac_ct_GNATBIND=$GNATBIND
5132 # Extract the first word of "gnatbind", so it can be a program name with args.
5133set dummy gnatbind; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138else
5139 if test -n "$ac_ct_GNATBIND"; then
5140 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153done
5154 done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5160if test -n "$ac_ct_GNATBIND"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5162$as_echo "$ac_ct_GNATBIND" >&6; }
5163else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168 if test "x$ac_ct_GNATBIND" = x; then
5169 GNATBIND="no"
5170 else
5171 case $cross_compiling:$ac_tool_warned in
5172yes:)
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5175ac_tool_warned=yes ;;
5176esac
5177 GNATBIND=$ac_ct_GNATBIND
5178 fi
5179else
5180 GNATBIND="$ac_cv_prog_GNATBIND"
5181fi
5182
5183if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5185set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
5188if ${ac_cv_prog_GNATMAKE+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190else
5191 if test -n "$GNATMAKE"; then
5192 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206 done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211GNATMAKE=$ac_cv_prog_GNATMAKE
5212if test -n "$GNATMAKE"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5214$as_echo "$GNATMAKE" >&6; }
5215else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220
5221fi
5222if test -z "$ac_cv_prog_GNATMAKE"; then
5223 ac_ct_GNATMAKE=$GNATMAKE
5224 # Extract the first word of "gnatmake", so it can be a program name with args.
5225set dummy gnatmake; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
5228if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230else
5231 if test -n "$ac_ct_GNATMAKE"; then
5232 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245done
5246 done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5252if test -n "$ac_ct_GNATMAKE"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5254$as_echo "$ac_ct_GNATMAKE" >&6; }
5255else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260 if test "x$ac_ct_GNATMAKE" = x; then
5261 GNATMAKE="no"
5262 else
5263 case $cross_compiling:$ac_tool_warned in
5264yes:)
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5267ac_tool_warned=yes ;;
5268esac
5269 GNATMAKE=$ac_ct_GNATMAKE
5270 fi
5271else
5272 GNATMAKE="$ac_cv_prog_GNATMAKE"
5273fi
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5276$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5277if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279else
5280 cat >conftest.adb <<EOF
5281procedure conftest is begin null; end conftest;
5282EOF
5283acx_cv_cc_gcc_supports_ada=no
5284# There is a bug in old released versions of GCC which causes the
5285# driver to exit successfully when the appropriate language module
5286# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5287# Therefore we must check for the error message as well as an
5288# unsuccessful exit.
5289# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5290# given a .adb file, but produce no object file. So we must check
5291# if an object file was really produced to guard against this.
5292errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5293if test x"$errors" = x && test -f conftest.$ac_objext; then
5294 acx_cv_cc_gcc_supports_ada=yes
5295fi
5296rm -f conftest.*
5297fi
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5299$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5300
5301if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5302 have_gnat=yes
5303else
5304 have_gnat=no
5305fi
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5308$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5309if ${gcc_cv_prog_cmp_skip+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311else
5312 echo abfoo >t1
5313 echo cdfoo >t2
5314 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5315 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5316 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5317 :
5318 else
5319 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5320 fi
5321 fi
5322 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5323 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5324 :
5325 else
5326 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5327 fi
5328 fi
5329 rm t1 t2
5330
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5333$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5334do_compare="$gcc_cv_prog_cmp_skip"
5335
5336
5337
5338# Check whether --enable-bootstrap was given.
5339if test "${enable_bootstrap+set}" = set; then :
5340 enableval=$enable_bootstrap;
5341else
5342 enable_bootstrap=default
5343fi
5344
5345
5346# Issue errors and warnings for invalid/strange bootstrap combinations.
5347if test -r $srcdir/gcc/configure; then
5348 have_compiler=yes
5349else
5350 have_compiler=no
5351fi
5352
5353case "$have_compiler:$host:$target:$enable_bootstrap" in
5354 *:*:*:no) ;;
5355
5356 # Default behavior. Enable bootstrap if we have a compiler
5357 # and we are in a native configuration.
5358 yes:$build:$build:default)
5359 enable_bootstrap=yes ;;
5360
5361 *:*:*:default)
5362 enable_bootstrap=no ;;
5363
5364 # We have a compiler and we are in a native configuration, bootstrap is ok
5365 yes:$build:$build:yes)
5366 ;;
5367
5368 # Other configurations, but we have a compiler. Assume the user knows
5369 # what he's doing.
5370 yes:*:*:yes)
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5372$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5373 ;;
5374
5375 # No compiler: if they passed --enable-bootstrap explicitly, fail
5376 no:*:*:yes)
5377 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5378
5379 # Fail if wrong command line
5380 *)
5381 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5382 ;;
5383esac
5384
5385# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5386# C++98 compiler can still start the bootstrap.
5387if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5388 CXX="$CXX -std=gnu++98"
5389fi
5390
5391# Used for setting $lt_cv_objdir
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5393$as_echo_n "checking for objdir... " >&6; }
5394if ${lt_cv_objdir+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396else
5397 rm -f .libs 2>/dev/null
5398mkdir .libs 2>/dev/null
5399if test -d .libs; then
5400 lt_cv_objdir=.libs
5401else
5402 # MS-DOS does not allow filenames that begin with a dot.
5403 lt_cv_objdir=_libs
5404fi
5405rmdir .libs 2>/dev/null
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5408$as_echo "$lt_cv_objdir" >&6; }
5409objdir=$lt_cv_objdir
5410
5411
5412
5413
5414
5415cat >>confdefs.h <<_ACEOF
5416#define LT_OBJDIR "$lt_cv_objdir/"
5417_ACEOF
5418
5419
5420
5421# Check for GMP, MPFR and MPC
5422gmplibs="-lmpc -lmpfr -lgmp"
5423gmpinc=
5424have_gmp=no
5425
5426# Specify a location for mpc
5427# check for this first so it ends up on the link line before mpfr.
5428
5429# Check whether --with-mpc was given.
5430if test "${with_mpc+set}" = set; then :
5431 withval=$with_mpc;
5432fi
5433
5434
5435# Check whether --with-mpc-include was given.
5436if test "${with_mpc_include+set}" = set; then :
5437 withval=$with_mpc_include;
5438fi
5439
5440
5441# Check whether --with-mpc-lib was given.
5442if test "${with_mpc_lib+set}" = set; then :
5443 withval=$with_mpc_lib;
5444fi
5445
5446
5447if test "x$with_mpc" != x; then
5448 gmplibs="-L$with_mpc/lib $gmplibs"
5449 gmpinc="-I$with_mpc/include $gmpinc"
5450fi
5451if test "x$with_mpc_include" != x; then
5452 gmpinc="-I$with_mpc_include $gmpinc"
5453fi
5454if test "x$with_mpc_lib" != x; then
5455 gmplibs="-L$with_mpc_lib $gmplibs"
5456fi
5457if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5458 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5459 gmpinc='-I$$s/mpc/src '"$gmpinc"
5460 # Do not test the mpc version. Assume that it is sufficient, since
5461 # it is in the source tree, and the library has not been built yet
5462 # but it would be included on the link line in the version check below
5463 # hence making the test fail.
5464 have_gmp=yes
5465fi
5466
5467# Specify a location for mpfr
5468# check for this first so it ends up on the link line before gmp.
5469
5470# Check whether --with-mpfr-dir was given.
5471if test "${with_mpfr_dir+set}" = set; then :
5472 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5473Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5474fi
5475
5476
5477
5478# Check whether --with-mpfr was given.
5479if test "${with_mpfr+set}" = set; then :
5480 withval=$with_mpfr;
5481fi
5482
5483
5484# Check whether --with-mpfr-include was given.
5485if test "${with_mpfr_include+set}" = set; then :
5486 withval=$with_mpfr_include;
5487fi
5488
5489
5490# Check whether --with-mpfr-lib was given.
5491if test "${with_mpfr_lib+set}" = set; then :
5492 withval=$with_mpfr_lib;
5493fi
5494
5495
5496if test "x$with_mpfr" != x; then
5497 gmplibs="-L$with_mpfr/lib $gmplibs"
5498 gmpinc="-I$with_mpfr/include $gmpinc"
5499fi
5500if test "x$with_mpfr_include" != x; then
5501 gmpinc="-I$with_mpfr_include $gmpinc"
5502fi
5503if test "x$with_mpfr_lib" != x; then
5504 gmplibs="-L$with_mpfr_lib $gmplibs"
5505fi
5506if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5507 # MPFR v3.1.0 moved the sources into a src sub-directory.
5508 if ! test -d ${srcdir}/mpfr/src; then
5509 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5510 fi
5511 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5512 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5513 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5514 # Do not test the mpfr version. Assume that it is sufficient, since
5515 # it is in the source tree, and the library has not been built yet
5516 # but it would be included on the link line in the version check below
5517 # hence making the test fail.
5518 have_gmp=yes
5519fi
5520
5521# Specify a location for gmp
5522
5523# Check whether --with-gmp-dir was given.
5524if test "${with_gmp_dir+set}" = set; then :
5525 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5526Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5527fi
5528
5529
5530
5531# Check whether --with-gmp was given.
5532if test "${with_gmp+set}" = set; then :
5533 withval=$with_gmp;
5534fi
5535
5536
5537# Check whether --with-gmp-include was given.
5538if test "${with_gmp_include+set}" = set; then :
5539 withval=$with_gmp_include;
5540fi
5541
5542
5543# Check whether --with-gmp-lib was given.
5544if test "${with_gmp_lib+set}" = set; then :
5545 withval=$with_gmp_lib;
5546fi
5547
5548
5549
5550if test "x$with_gmp" != x; then
5551 gmplibs="-L$with_gmp/lib $gmplibs"
5552 gmpinc="-I$with_gmp/include $gmpinc"
5553fi
5554if test "x$with_gmp_include" != x; then
5555 gmpinc="-I$with_gmp_include $gmpinc"
5556fi
5557if test "x$with_gmp_lib" != x; then
5558 gmplibs="-L$with_gmp_lib $gmplibs"
5559fi
5560if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5561 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5562 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5563 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5564 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5565 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5566 # Do not test the gmp version. Assume that it is sufficient, since
5567 # it is in the source tree, and the library has not been built yet
5568 # but it would be included on the link line in the version check below
5569 # hence making the test fail.
5570 have_gmp=yes
5571fi
5572
5573if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5574 have_gmp=yes
5575 saved_CFLAGS="$CFLAGS"
5576 CFLAGS="$CFLAGS $gmpinc"
5577 # Check for the recommended and required versions of GMP.
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5579$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5580
5581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h. */
5583#include "gmp.h"
5584int
5585main ()
5586{
5587
5588 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5589 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5590 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5591 choke me
5592 #endif
5593
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_compile "$LINENO"; then :
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h. */
5601#include <gmp.h>
5602int
5603main ()
5604{
5605
5606 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5607 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5608 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5609 choke me
5610 #endif
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"; then :
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618$as_echo "yes" >&6; }
5619else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5621$as_echo "buggy but acceptable" >&6; }
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626$as_echo "no" >&6; }; have_gmp=no
5627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629
5630 # If we have GMP, check the MPFR version.
5631 if test x"$have_gmp" = xyes; then
5632 # Check for the recommended and required versions of MPFR.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5634$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637#include <gmp.h>
5638 #include <mpfr.h>
5639int
5640main ()
5641{
5642
5643 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5644 choke me
5645 #endif
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654#include <gmp.h>
5655 #include <mpfr.h>
5656int
5657main ()
5658{
5659
5660 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5661 choke me
5662 #endif
5663
5664 ;
5665 return 0;
5666}
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670$as_echo "yes" >&6; }
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5673$as_echo "buggy but acceptable" >&6; }
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }; have_gmp=no
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682
5683 # Check for the MPC header version.
5684 if test x"$have_gmp" = xyes ; then
5685 # Check for the recommended and required versions of MPC.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5687$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690#include <mpc.h>
5691int
5692main ()
5693{
5694
5695 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5696 choke me
5697 #endif
5698
5699 ;
5700 return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_compile "$LINENO"; then :
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706#include <mpc.h>
5707int
5708main ()
5709{
5710
5711 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5712 choke me
5713 #endif
5714
5715 ;
5716 return 0;
5717}
5718_ACEOF
5719if ac_fn_c_try_compile "$LINENO"; then :
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721$as_echo "yes" >&6; }
5722else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5724$as_echo "buggy but acceptable" >&6; }
5725fi
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }; have_gmp=no
5730fi
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 fi
5733
5734 # Now check the MPFR library.
5735 if test x"$have_gmp" = xyes; then
5736 saved_LIBS="$LIBS"
5737 LIBS="$LIBS $gmplibs"
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5739$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742#include <mpc.h>
5743int
5744main ()
5745{
5746
5747 mpfr_t n;
5748 mpfr_t x;
5749 mpc_t c;
5750 int t;
5751 mpfr_init (n);
5752 mpfr_init (x);
5753 mpfr_atan2 (n, n, x, GMP_RNDN);
5754 mpfr_erfc (n, x, GMP_RNDN);
5755 mpfr_subnormalize (x, t, GMP_RNDN);
5756 mpfr_clear(n);
5757 mpfr_clear(x);
5758 mpc_init2 (c, 53);
5759 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5760 mpc_cosh (c, c, MPC_RNDNN);
5761 mpc_pow (c, c, c, MPC_RNDNN);
5762 mpc_acosh (c, c, MPC_RNDNN);
5763 mpc_clear (c);
5764
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_link "$LINENO"; then :
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5771$as_echo "yes" >&6; }
5772else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }; have_gmp=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 LIBS="$saved_LIBS"
5779 fi
5780
5781 CFLAGS="$saved_CFLAGS"
5782
5783# The library versions listed in the error message below should match
5784# the HARD-minimums enforced above.
5785 if test x$have_gmp != xyes; then
5786 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5787Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5788their locations. Source code for these libraries can be found at
5789their respective hosting sites as well as at
5790ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5791http://gcc.gnu.org/install/prerequisites.html for additional info. If
5792you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5793make sure that you have installed both the libraries and the header
5794files. They may be located in separate packages." "$LINENO" 5
5795 fi
5796fi
5797
5798# Flags needed for both GMP, MPFR and/or MPC.
5799
5800
5801
5802
5803
5804
5805
5806# Libraries to use for stage1 or when not bootstrapping.
5807
5808# Check whether --with-stage1-libs was given.
5809if test "${with_stage1_libs+set}" = set; then :
5810 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5811 stage1_libs=
5812 else
5813 stage1_libs=$withval
5814 fi
5815else
5816 stage1_libs=
5817fi
5818
5819
5820
5821# Linker flags to use for stage1 or when not bootstrapping.
5822
5823# Check whether --with-stage1-ldflags was given.
5824if test "${with_stage1_ldflags+set}" = set; then :
5825 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5826 stage1_ldflags=
5827 else
5828 stage1_ldflags=$withval
5829 fi
5830else
5831 stage1_ldflags=
5832 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5833 # if supported. But if the user explicitly specified the libraries to use,
5834 # trust that they are doing what they want.
5835 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5836 stage1_ldflags="-static-libstdc++ -static-libgcc"
5837 fi
5838fi
5839
5840
5841
5842# Libraries to use for stage2 and later builds.
5843
5844# Check whether --with-boot-libs was given.
5845if test "${with_boot_libs+set}" = set; then :
5846 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5847 poststage1_libs=
5848 else
5849 poststage1_libs=$withval
5850 fi
5851else
5852 poststage1_libs=
5853fi
5854
5855
5856
5857# Linker flags to use for stage2 and later builds.
5858
5859# Check whether --with-boot-ldflags was given.
5860if test "${with_boot_ldflags+set}" = set; then :
5861 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5862 poststage1_ldflags=
5863 else
5864 poststage1_ldflags=$withval
5865 fi
5866else
5867 poststage1_ldflags=
5868 # In stages 2 and 3, default to linking libstdc++ and libgcc
5869 # statically. But if the user explicitly specified the libraries to
5870 # use, trust that they are doing what they want.
5871 if test "$poststage1_libs" = ""; then
5872 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5873 fi
5874fi
5875
5876
5877
5878# GCC GRAPHITE dependency isl.
5879# Basic setup is inlined here, actual checks are in config/isl.m4
5880
5881
5882# Check whether --with-isl was given.
5883if test "${with_isl+set}" = set; then :
5884 withval=$with_isl;
5885fi
5886
5887
5888# Treat --without-isl as a request to disable
5889# GRAPHITE support and skip all following checks.
5890if test "x$with_isl" != "xno"; then
5891 # Check for isl
5892
5893
5894# Check whether --with-isl-include was given.
5895if test "${with_isl_include+set}" = set; then :
5896 withval=$with_isl_include;
5897fi
5898
5899
5900# Check whether --with-isl-lib was given.
5901if test "${with_isl_lib+set}" = set; then :
5902 withval=$with_isl_lib;
5903fi
5904
5905
5906 # Check whether --enable-isl-version-check was given.
5907if test "${enable_isl_version_check+set}" = set; then :
5908 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5909else
5910 ENABLE_ISL_CHECK=yes
5911fi
5912
5913
5914 # Initialize isllibs and islinc.
5915 case $with_isl in
5916 no)
5917 isllibs=
5918 islinc=
5919 ;;
5920 "" | yes)
5921 ;;
5922 *)
5923 isllibs="-L$with_isl/lib"
5924 islinc="-I$with_isl/include"
5925 ;;
5926 esac
5927 if test "x${with_isl_include}" != x ; then
5928 islinc="-I$with_isl_include"
5929 fi
5930 if test "x${with_isl_lib}" != x; then
5931 isllibs="-L$with_isl_lib"
5932 fi
5933 if test "x${islinc}" = x && test "x${isllibs}" = x \
5934 && test -d ${srcdir}/isl; then
5935 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5936 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5937 ENABLE_ISL_CHECK=no
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5939$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5940 fi
5941
5942 isllibs="${isllibs} -lisl"
5943
5944
5945
5946 if test "${ENABLE_ISL_CHECK}" = yes ; then
5947 _isl_saved_CFLAGS=$CFLAGS
5948 _isl_saved_LDFLAGS=$LDFLAGS
5949 _isl_saved_LIBS=$LIBS
5950
5951 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5952 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5953 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5956$as_echo_n "checking for isl 0.15 or later... " >&6; }
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h. */
5959#include <isl/schedule.h>
5960int
5961main ()
5962{
5963isl_options_set_schedule_serialize_sccs (NULL, 0);
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_link "$LINENO"; then :
5969 gcc_cv_isl=yes
5970else
5971 gcc_cv_isl=no
5972fi
5973rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5976$as_echo "$gcc_cv_isl" >&6; }
5977
5978 if test "${gcc_cv_isl}" = no ; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
5980$as_echo "required isl version is 0.15 or later" >&6; }
5981 fi
5982
5983 CFLAGS=$_isl_saved_CFLAGS
5984 LDFLAGS=$_isl_saved_LDFLAGS
5985 LIBS=$_isl_saved_LIBS
5986 fi
5987
5988
5989
5990
5991
5992
5993 if test "x${with_isl}" = xno; then
5994 graphite_requested=no
5995 elif test "x${with_isl}" != x \
5996 || test "x${with_isl_include}" != x \
5997 || test "x${with_isl_lib}" != x ; then
5998 graphite_requested=yes
5999 else
6000 graphite_requested=no
6001 fi
6002
6003
6004
6005 if test "${gcc_cv_isl}" = no ; then
6006 isllibs=
6007 islinc=
6008 fi
6009
6010 if test "${graphite_requested}" = yes \
6011 && test "x${isllibs}" = x \
6012 && test "x${islinc}" = x ; then
6013
6014 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6015 fi
6016
6017
6018fi
6019
6020# If the isl check failed, disable builds of in-tree variant of isl
6021if test "x$with_isl" = xno ||
6022 test "x$gcc_cv_isl" = xno; then
6023 noconfigdirs="$noconfigdirs isl"
6024 islinc=
6025fi
6026
6027
6028
6029
6030# Check for LTO support.
6031# Check whether --enable-lto was given.
6032if test "${enable_lto+set}" = set; then :
6033 enableval=$enable_lto; enable_lto=$enableval
6034else
6035 enable_lto=yes; default_enable_lto=yes
6036fi
6037
6038
6039
6040
6041
6042target_elf=no
6043case $target in
6044 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6045 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6046 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6047 nvptx-*-none)
6048 target_elf=no
6049 ;;
6050 *)
6051 target_elf=yes
6052 ;;
6053esac
6054
6055if test $target_elf = yes; then :
6056 # ELF platforms build the lto-plugin always.
6057 build_lto_plugin=yes
6058
6059else
6060 if test x"$default_enable_lto" = x"yes" ; then
6061 case $target in
6062 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6063 # On other non-ELF platforms, LTO has yet to be validated.
6064 *) enable_lto=no ;;
6065 esac
6066 else
6067 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6068 # It would also be nice to check the binutils support, but we don't
6069 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6070 # warn during gcc/ subconfigure; unless you're bootstrapping with
6071 # -flto it won't be needed until after installation anyway.
6072 case $target in
6073 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6074 *) if test x"$enable_lto" = x"yes"; then
6075 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6076 fi
6077 ;;
6078 esac
6079 fi
6080 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6081 # Build it unless LTO was explicitly disabled.
6082 case $target in
6083 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6084 *) ;;
6085 esac
6086
6087fi
6088
6089
6090# Check whether --enable-linker-plugin-configure-flags was given.
6091if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6092 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6093else
6094 extra_linker_plugin_configure_flags=
6095fi
6096
6097
6098# Check whether --enable-linker-plugin-flags was given.
6099if test "${enable_linker_plugin_flags+set}" = set; then :
6100 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6101else
6102 extra_linker_plugin_flags=
6103fi
6104
6105
6106
6107# Enable --enable-host-shared.
6108# Checked early to determine whether jit is an 'all' language
6109# Check whether --enable-host-shared was given.
6110if test "${enable_host_shared+set}" = set; then :
6111 enableval=$enable_host_shared; host_shared=$enableval
6112else
6113 host_shared=no
6114fi
6115
6116
6117
6118# By default, C and C++ are the only stage 1 languages.
6119stage1_languages=,c,
6120
6121# Target libraries that we bootstrap.
6122bootstrap_target_libs=,target-libgcc,
6123
6124# Figure out what language subdirectories are present.
6125# Look if the user specified --enable-languages="..."; if not, use
6126# the environment variable $LANGUAGES if defined. $LANGUAGES might
6127# go away some day.
6128# NB: embedded tabs in this IF block -- do not untabify
6129if test -d ${srcdir}/gcc; then
6130 if test x"${enable_languages+set}" != xset; then
6131 if test x"${LANGUAGES+set}" = xset; then
6132 enable_languages="${LANGUAGES}"
6133 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6134 else
6135 enable_languages=default
6136 fi
6137 else
6138 if test x"${enable_languages}" = x ||
6139 test x"${enable_languages}" = xyes;
6140 then
6141 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6142 exit 1
6143 fi
6144 fi
6145 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6146
6147 # 'f95' is the old name for the 'fortran' language. We issue a warning
6148 # and make the substitution.
6149 case ,${enable_languages}, in
6150 *,f95,*)
6151 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6152 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6153 ;;
6154 esac
6155
6156 # If bootstrapping, C++ must be enabled.
6157 case ",$enable_languages,:$enable_bootstrap" in
6158 *,c++,*:*) ;;
6159 *:yes)
6160 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6161 enable_languages="${enable_languages},c++"
6162 else
6163 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6164 fi
6165 ;;
6166 esac
6167
6168 # First scan to see if an enabled language requires some other language.
6169 # We assume that a given config-lang.in will list all the language
6170 # front ends it requires, even if some are required indirectly.
6171 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6172 case ${lang_frag} in
6173 ..) ;;
6174 # The odd quoting in the next line works around
6175 # an apparent bug in bash 1.12 on linux.
6176 ${srcdir}/gcc/[*]/config-lang.in) ;;
6177 *)
6178 # From the config-lang.in, get $language, $lang_requires, and
6179 # $lang_requires_boot_languages.
6180 language=
6181 lang_requires=
6182 lang_requires_boot_languages=
6183 # set srcdir during sourcing lang_frag to the gcc dir.
6184 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6185 # polutes this shell
6186 saved_srcdir=${srcdir}
6187 srcdir=${srcdir}/gcc . ${lang_frag}
6188 srcdir=${saved_srcdir}
6189 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6190 case ,${enable_languages}, in
6191 *,$other,*) ;;
6192 *,default,*) ;;
6193 *,all,*) ;;
6194 *,$language,*)
6195 echo " \`$other' language required by \`$language'; enabling" 1>&2
6196 enable_languages="${enable_languages},${other}"
6197 ;;
6198 esac
6199 done
6200 for other in ${lang_requires_boot_languages} ; do
6201 if test "$other" != "c"; then
6202 case ,${enable_stage1_languages}, in
6203 *,$other,*) ;;
6204 *,default,*) ;;
6205 *,all,*) ;;
6206 *)
6207 case ,${enable_languages}, in
6208 *,$language,*)
6209 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6210 enable_stage1_languages="$enable_stage1_languages,${other}"
6211 ;;
6212 esac
6213 ;;
6214 esac
6215 fi
6216 done
6217 ;;
6218 esac
6219 done
6220
6221 new_enable_languages=,c,
6222
6223 # If LTO is enabled, add the LTO front end.
6224 if test "$enable_lto" = "yes" ; then
6225 case ,${enable_languages}, in
6226 *,lto,*) ;;
6227 *) enable_languages="${enable_languages},lto" ;;
6228 esac
6229 if test "${build_lto_plugin}" = "yes" ; then
6230 configdirs="$configdirs lto-plugin"
6231 fi
6232 fi
6233
6234 # If we're building an offloading compiler, add the LTO front end.
6235 if test x"$enable_as_accelerator_for" != x ; then
6236 case ,${enable_languages}, in
6237 *,lto,*) ;;
6238 *) enable_languages="${enable_languages},lto" ;;
6239 esac
6240 fi
6241
6242 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6243 potential_languages=,c,
6244
6245 enabled_target_libs=
6246 disabled_target_libs=
6247
6248 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6249 case ${lang_frag} in
6250 ..) ;;
6251 # The odd quoting in the next line works around
6252 # an apparent bug in bash 1.12 on linux.
6253 ${srcdir}/gcc/[*]/config-lang.in) ;;
6254 *)
6255 # From the config-lang.in, get $language, $target_libs,
6256 # $lang_dirs, $boot_language, and $build_by_default
6257 language=
6258 target_libs=
6259 lang_dirs=
6260 subdir_requires=
6261 boot_language=no
6262 build_by_default=yes
6263 # set srcdir during sourcing. See above about save & restore
6264 saved_srcdir=${srcdir}
6265 srcdir=${srcdir}/gcc . ${lang_frag}
6266 srcdir=${saved_srcdir}
6267 if test x${language} = x; then
6268 echo "${lang_frag} doesn't set \$language." 1>&2
6269 exit 1
6270 fi
6271
6272 if test "$language" = "c++"; then
6273 boot_language=yes
6274 fi
6275
6276 add_this_lang=no
6277 # C is always enabled, so no need to add it again
6278 if test "$language" != "c"; then
6279 case ,${enable_languages}, in
6280 *,${language},*)
6281 # Language was explicitly selected; include it
6282 add_this_lang=yes
6283 ;;
6284 *,all,*)
6285 # All languages are enabled
6286 add_this_lang=all
6287 ;;
6288 *,default,*)
6289 # 'default' was selected, select it if it is a default language
6290 add_this_lang=${build_by_default}
6291 ;;
6292 esac
6293 fi
6294
6295 # Disable languages that need other directories if these aren't available.
6296 for i in $subdir_requires; do
6297 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6298 case ${add_this_lang} in
6299 yes)
6300 # Specifically requested language; tell them.
6301 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6302 ;;
6303 all)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6305$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6306 add_this_lang=unsupported
6307 ;;
6308 *)
6309 # Silently disable.
6310 add_this_lang=unsupported
6311 ;;
6312 esac
6313 done
6314
6315 # Disable Ada if no preexisting GNAT is available.
6316 case ${add_this_lang}:${language}:${have_gnat} in
6317 yes:ada:no)
6318 # Specifically requested language; tell them.
6319 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6320 ;;
6321 all:ada:no)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6323$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6324 add_this_lang=unsupported
6325 ;;
6326 *:ada:no)
6327 # Silently disable.
6328 add_this_lang=unsupported
6329 ;;
6330 esac
6331
6332 # Disable jit if -enable-host-shared not specified
6333 case ${add_this_lang}:${language}:${host_shared} in
6334 yes:jit:no)
6335 # PR jit/64780: explicitly specify --enable-host-shared
6336 as_fn_error $? "
6337Enabling language \"jit\" requires --enable-host-shared.
6338
6339--enable-host-shared typically slows the rest of the compiler down by
6340a few %, so you must explicitly enable it.
6341
6342If you want to build both the jit and the regular compiler, it is often
6343best to do this via two separate configure/builds, in separate
6344directories, to avoid imposing the performance cost of
6345--enable-host-shared on the regular compiler." "$LINENO" 5
6346 ;;
6347 all:jit:no)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6349$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6350 add_this_lang=unsupported
6351 ;;
6352 *:jit:no)
6353 # Silently disable.
6354 add_this_lang=unsupported
6355 ;;
6356 esac
6357
6358 # Disable a language that is unsupported by the target.
6359 case "${add_this_lang}: $unsupported_languages " in
6360 no:*) ;;
6361 unsupported:*) ;;
6362 *:*" $language "*)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6364$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6365 add_this_lang=unsupported
6366 ;;
6367 esac
6368
6369 case $add_this_lang in
6370 unsupported)
6371 # Remove language-dependent dirs.
6372 disabled_target_libs="$disabled_target_libs $target_libs"
6373 noconfigdirs="$noconfigdirs $lang_dirs"
6374 ;;
6375 no)
6376 # Remove language-dependent dirs; still show language as supported.
6377 disabled_target_libs="$disabled_target_libs $target_libs"
6378 noconfigdirs="$noconfigdirs $lang_dirs"
6379 potential_languages="${potential_languages}${language},"
6380 ;;
6381 all|yes)
6382 new_enable_languages="${new_enable_languages}${language},"
6383 potential_languages="${potential_languages}${language},"
6384 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6385 enabled_target_libs="$enabled_target_libs $target_libs"
6386 case "${boot_language}:,$enable_stage1_languages," in
6387 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6388 # Add to (comma-separated) list of stage 1 languages.
6389 case ",$stage1_languages," in
6390 *,$language,* | ,yes, | ,all,) ;;
6391 *) stage1_languages="${stage1_languages}${language}," ;;
6392 esac
6393 # We need to bootstrap any supporting libraries.
6394 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6395 ;;
6396 esac
6397 ;;
6398 esac
6399 ;;
6400 esac
6401 done
6402
6403 # Add target libraries which are only needed for disabled languages
6404 # to noconfigdirs.
6405 if test -n "$disabled_target_libs"; then
6406 for dir in $disabled_target_libs; do
6407 case " $enabled_target_libs " in
6408 *" ${dir} "*) ;;
6409 *) noconfigdirs="$noconfigdirs $dir" ;;
6410 esac
6411 done
6412 fi
6413
6414 # Check whether --enable-stage1-languages was given.
6415if test "${enable_stage1_languages+set}" = set; then :
6416 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6417 ,no,|,,)
6418 # Set it to something that will have no effect in the loop below
6419 enable_stage1_languages=c ;;
6420 ,yes,)
6421 enable_stage1_languages=`echo $new_enable_languages | \
6422 sed -e "s/^,//" -e "s/,$//" ` ;;
6423 *,all,*)
6424 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6425 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6426 esac
6427
6428 # Add "good" languages from enable_stage1_languages to stage1_languages,
6429 # while "bad" languages go in missing_languages. Leave no duplicates.
6430 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6431 case $potential_languages in
6432 *,$i,*)
6433 case $stage1_languages in
6434 *,$i,*) ;;
6435 *) stage1_languages="$stage1_languages$i," ;;
6436 esac ;;
6437 *)
6438 case $missing_languages in
6439 *,$i,*) ;;
6440 *) missing_languages="$missing_languages$i," ;;
6441 esac ;;
6442 esac
6443 done
6444fi
6445
6446
6447 # Remove leading/trailing commas that were added for simplicity
6448 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6449 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6450 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6451 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6452
6453 if test "x$missing_languages" != x; then
6454 as_fn_error $? "
6455The following requested languages could not be built: ${missing_languages}
6456Supported languages are: ${potential_languages}" "$LINENO" 5
6457 fi
6458 if test "x$new_enable_languages" != "x$enable_languages"; then
6459 echo The following languages will be built: ${new_enable_languages}
6460 enable_languages="$new_enable_languages"
6461 fi
6462
6463
6464 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6465fi
6466
6467# Handle --disable-<component> generically.
6468for dir in $configdirs $build_configdirs $target_configdirs ; do
6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6470 varname=`echo $dirname | sed -e s/+/_/g`
6471 if eval test x\${enable_${varname}} "=" xno ; then
6472 noconfigdirs="$noconfigdirs $dir"
6473 fi
6474done
6475
6476# Check for Boehm's garbage collector
6477# Check whether --enable-objc-gc was given.
6478if test "${enable_objc_gc+set}" = set; then :
6479 enableval=$enable_objc_gc;
6480fi
6481
6482
6483# Check whether --with-target-bdw-gc was given.
6484if test "${with_target_bdw_gc+set}" = set; then :
6485 withval=$with_target_bdw_gc;
6486fi
6487
6488
6489# Check whether --with-target-bdw-gc-include was given.
6490if test "${with_target_bdw_gc_include+set}" = set; then :
6491 withval=$with_target_bdw_gc_include;
6492fi
6493
6494
6495# Check whether --with-target-bdw-gc-lib was given.
6496if test "${with_target_bdw_gc_lib+set}" = set; then :
6497 withval=$with_target_bdw_gc_lib;
6498fi
6499
6500
6501case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6503$as_echo_n "checking for bdw garbage collector... " >&6; }
6504 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6506$as_echo "using bdw-gc in default locations" >&6; }
6507 else
6508 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6509 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6510 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6511 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6514$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6515 fi
6516 fi
6517esac
6518
6519# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6520case ,${enable_languages}, in
6521 *,c++,*)
6522 # Disable libitm, libsanitizer if we're not building libstdc++
6523 case "${noconfigdirs}" in
6524 *target-libstdc++-v3*)
6525 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6526 ;;
6527 *) ;;
6528 esac
6529 ;;
6530 *)
6531 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6532 ;;
6533esac
6534
6535# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6536# $build_configdirs and $target_configdirs.
6537# If we have the source for $noconfigdirs entries, add them to $notsupp.
6538
6539notsupp=""
6540for dir in . $skipdirs $noconfigdirs ; do
6541 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6542 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6543 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6544 if test -r $srcdir/$dirname/configure ; then
6545 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6546 true
6547 else
6548 notsupp="$notsupp $dir"
6549 fi
6550 fi
6551 fi
6552 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6553 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6554 if test -r $srcdir/$dirname/configure ; then
6555 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6556 true
6557 else
6558 notsupp="$notsupp $dir"
6559 fi
6560 fi
6561 fi
6562 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6563 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6564 if test -r $srcdir/$dirname/configure ; then
6565 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6566 true
6567 else
6568 notsupp="$notsupp $dir"
6569 fi
6570 fi
6571 fi
6572done
6573
6574# Quietly strip out all directories which aren't configurable in this tree.
6575# This relies on all configurable subdirectories being autoconfiscated, which
6576# is now the case.
6577build_configdirs_all="$build_configdirs"
6578build_configdirs=
6579for i in ${build_configdirs_all} ; do
6580 j=`echo $i | sed -e s/build-//g`
6581 if test -f ${srcdir}/$j/configure ; then
6582 build_configdirs="${build_configdirs} $i"
6583 fi
6584done
6585
6586configdirs_all="$configdirs"
6587configdirs=
6588for i in ${configdirs_all} ; do
6589 if test -f ${srcdir}/$i/configure ; then
6590 configdirs="${configdirs} $i"
6591 fi
6592done
6593
6594target_configdirs_all="$target_configdirs"
6595target_configdirs=
6596for i in ${target_configdirs_all} ; do
6597 j=`echo $i | sed -e s/target-//g`
6598 if test -f ${srcdir}/$j/configure ; then
6599 target_configdirs="${target_configdirs} $i"
6600 fi
6601done
6602
6603# libiberty-linker-plugin is special: it doesn't have its own source directory,
6604# so we have to add it after the preceding checks.
6605if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6606then
6607 case " $configdirs " in
6608 *" libiberty "*)
6609 # If we can build libiberty, we can also build libiberty-linker-plugin.
6610 configdirs="$configdirs libiberty-linker-plugin"
6611 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6612 --with-libiberty=../libiberty-linker-plugin";;
6613 *)
6614 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6615 esac
6616fi
6617
6618# Sometimes we have special requirements for the host libiberty.
6619extra_host_libiberty_configure_flags=
6620extra_host_zlib_configure_flags=
6621case " $configdirs " in
6622 *" lto-plugin "* | *" libcc1 "*)
6623 # When these are to be built as shared libraries, the same applies to
6624 # libiberty.
6625 extra_host_libiberty_configure_flags=--enable-shared
6626 ;;
6627 *" bfd "*)
6628 # When bfd is to be built as a shared library, the same applies to
6629 # zlib.
6630 if test "$enable_shared" = "yes"; then
6631 extra_host_zlib_configure_flags=--enable-host-shared
6632 fi
6633 ;;
6634esac
6635
6636
6637
6638# Produce a warning message for the subdirs we can't configure.
6639# This isn't especially interesting in the Cygnus tree, but in the individual
6640# FSF releases, it's important to let people know when their machine isn't
6641# supported by the one or two programs in a package.
6642
6643if test -n "${notsupp}" && test -z "${norecursion}" ; then
6644 # If $appdirs is non-empty, at least one of those directories must still
6645 # be configured, or we error out. (E.g., if the gas release supports a
6646 # specified target in some subdirs but not the gas subdir, we shouldn't
6647 # pretend that all is well.)
6648 if test -n "$appdirs" ; then
6649 for dir in $appdirs ; do
6650 if test -r $dir/Makefile.in ; then
6651 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6652 appdirs=""
6653 break
6654 fi
6655 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6656 appdirs=""
6657 break
6658 fi
6659 fi
6660 done
6661 if test -n "$appdirs" ; then
6662 echo "*** This configuration is not supported by this package." 1>&2
6663 exit 1
6664 fi
6665 fi
6666 # Okay, some application will build, or we don't care to check. Still
6667 # notify of subdirs not getting built.
6668 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6669 echo " ${notsupp}" 1>&2
6670 echo " (Any other directories should still work fine.)" 1>&2
6671fi
6672
6673case "$host" in
6674 *msdosdjgpp*)
6675 enable_gdbtk=no ;;
6676esac
6677
6678# To find our prefix, in gcc_cv_tool_prefix.
6679
6680# The user is always right.
6681if test "${PATH_SEPARATOR+set}" != set; then
6682 echo "#! /bin/sh" >conf$$.sh
6683 echo "exit 0" >>conf$$.sh
6684 chmod +x conf$$.sh
6685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6686 PATH_SEPARATOR=';'
6687 else
6688 PATH_SEPARATOR=:
6689 fi
6690 rm -f conf$$.sh
6691fi
6692
6693
6694 get_gcc_base_ver="cat"
6695
6696# Check whether --with-gcc-major-version-only was given.
6697if test "${with_gcc_major_version_only+set}" = set; then :
6698 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6699 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6700 fi
6701
6702fi
6703
6704
6705
6706
6707
6708
6709if test "x$exec_prefix" = xNONE; then
6710 if test "x$prefix" = xNONE; then
6711 gcc_cv_tool_prefix=$ac_default_prefix
6712 else
6713 gcc_cv_tool_prefix=$prefix
6714 fi
6715else
6716 gcc_cv_tool_prefix=$exec_prefix
6717fi
6718
6719# If there is no compiler in the tree, use the PATH only. In any
6720# case, if there is no compiler in the tree nobody should use
6721# AS_FOR_TARGET and LD_FOR_TARGET.
6722if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6723 if test x$with_gcc_major_version_only = xyes ; then
6724 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6725 else
6726 gcc_version=`cat $srcdir/gcc/BASE-VER`
6727 fi
6728 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6729 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6730 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6731 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6733 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6734else
6735 gcc_cv_tool_dirs=
6736fi
6737
6738if test x$build = x$target && test -n "$md_exec_prefix"; then
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6740fi
6741
6742
6743
6744copy_dirs=
6745
6746
6747# Check whether --with-build-sysroot was given.
6748if test "${with_build_sysroot+set}" = set; then :
6749 withval=$with_build_sysroot; if test x"$withval" != x ; then
6750 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6751 fi
6752else
6753 SYSROOT_CFLAGS_FOR_TARGET=
6754fi
6755
6756
6757
6758
6759# Check whether --with-debug-prefix-map was given.
6760if test "${with_debug_prefix_map+set}" = set; then :
6761 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6762 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6763 for debug_map in $withval; do
6764 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6765 done
6766 fi
6767else
6768 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6769fi
6770
6771
6772
6773# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6774# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6775# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6776# We want to ensure that TARGET libraries (which we know are built with
6777# gcc) are built with "-O2 -g", so include those options when setting
6778# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6779if test "x$CFLAGS_FOR_TARGET" = x; then
6780 if test "x${is_cross_compiler}" = xyes; then
6781 CFLAGS_FOR_TARGET="-g -O2"
6782 else
6783 CFLAGS_FOR_TARGET=$CFLAGS
6784 case " $CFLAGS " in
6785 *" -O2 "*) ;;
6786 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6787 esac
6788 case " $CFLAGS " in
6789 *" -g "* | *" -g3 "*) ;;
6790 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6791 esac
6792 fi
6793fi
6794
6795
6796if test "x$CXXFLAGS_FOR_TARGET" = x; then
6797 if test "x${is_cross_compiler}" = xyes; then
6798 CXXFLAGS_FOR_TARGET="-g -O2"
6799 else
6800 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6801 case " $CXXFLAGS " in
6802 *" -O2 "*) ;;
6803 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6804 esac
6805 case " $CXXFLAGS " in
6806 *" -g "* | *" -g3 "*) ;;
6807 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6808 esac
6809 fi
6810fi
6811
6812
6813
6814
6815# Handle --with-headers=XXX. If the value is not "yes", the contents of
6816# the named directory are copied to $(tooldir)/sys-include.
6817if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6818 if test x${is_cross_compiler} = xno ; then
6819 echo 1>&2 '***' --with-headers is only supported when cross compiling
6820 exit 1
6821 fi
6822 if test x"${with_headers}" != xyes ; then
6823 x=${gcc_cv_tool_prefix}
6824 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6825 fi
6826fi
6827
6828# Handle --with-libs=XXX. If the value is not "yes", the contents of
6829# the name directories are copied to $(tooldir)/lib. Multiple directories
6830# are permitted.
6831if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6832 if test x${is_cross_compiler} = xno ; then
6833 echo 1>&2 '***' --with-libs is only supported when cross compiling
6834 exit 1
6835 fi
6836 if test x"${with_libs}" != xyes ; then
6837 # Copy the libraries in reverse order, so that files in the first named
6838 # library override files in subsequent libraries.
6839 x=${gcc_cv_tool_prefix}
6840 for l in ${with_libs}; do
6841 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6842 done
6843 fi
6844fi
6845
6846# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6847#
6848# This is done by determining whether or not the appropriate directory
6849# is available, and by checking whether or not specific configurations
6850# have requested that this magic not happen.
6851#
6852# The command line options always override the explicit settings in
6853# configure.ac, and the settings in configure.ac override this magic.
6854#
6855# If the default for a toolchain is to use GNU as and ld, and you don't
6856# want to do that, then you should use the --without-gnu-as and
6857# --without-gnu-ld options for the configure script. Similarly, if
6858# the default is to use the included zlib and you don't want to do that,
6859# you should use the --with-system-zlib option for the configure script.
6860
6861if test x${use_gnu_as} = x &&
6862 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6863 with_gnu_as=yes
6864 extra_host_args="$extra_host_args --with-gnu-as"
6865fi
6866
6867if test x${use_gnu_ld} = x &&
6868 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6869 with_gnu_ld=yes
6870 extra_host_args="$extra_host_args --with-gnu-ld"
6871fi
6872
6873if test x${use_included_zlib} = x &&
6874 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6875 :
6876else
6877 with_system_zlib=yes
6878 extra_host_args="$extra_host_args --with-system-zlib"
6879fi
6880
6881# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6882# can detect this case.
6883
6884if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6885 with_newlib=yes
6886 extra_host_args="$extra_host_args --with-newlib"
6887fi
6888
6889# Handle ${copy_dirs}
6890set fnord ${copy_dirs}
6891shift
6892while test $# != 0 ; do
6893 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6894 :
6895 else
6896 echo Copying $1 to $2
6897
6898 # Use the install script to create the directory and all required
6899 # parent directories.
6900 if test -d $2 ; then
6901 :
6902 else
6903 echo >config.temp
6904 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6905 fi
6906
6907 # Copy the directory, assuming we have tar.
6908 # FIXME: Should we use B in the second tar? Not all systems support it.
6909 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6910
6911 # It is the responsibility of the user to correctly adjust all
6912 # symlinks. If somebody can figure out how to handle them correctly
6913 # here, feel free to add the code.
6914
6915 echo $1 > $2/COPIED
6916 fi
6917 shift; shift
6918done
6919
6920# Determine a target-dependent exec_prefix that the installed
6921# gcc will search in. Keep this list sorted by triplet, with
6922# the *-*-osname triplets last.
6923md_exec_prefix=
6924case "${target}" in
6925 i[34567]86-pc-msdosdjgpp*)
6926 md_exec_prefix=/dev/env/DJDIR/bin
6927 ;;
6928 *-*-hpux* | \
6929 *-*-nto-qnx* | \
6930 *-*-solaris2*)
6931 md_exec_prefix=/usr/ccs/bin
6932 ;;
6933esac
6934
6935extra_arflags_for_target=
6936extra_nmflags_for_target=
6937extra_ranlibflags_for_target=
6938target_makefile_frag=/dev/null
6939case "${target}" in
6940 spu-*-*)
6941 target_makefile_frag="config/mt-spu"
6942 ;;
6943 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6944 target_makefile_frag="config/mt-sde"
6945 ;;
6946 mipsisa*-*-elfoabi*)
6947 target_makefile_frag="config/mt-mips-elfoabi"
6948 ;;
6949 mips*-*-*linux* | mips*-*-gnu*)
6950 target_makefile_frag="config/mt-mips-gnu"
6951 ;;
6952 nios2-*-elf*)
6953 target_makefile_frag="config/mt-nios2-elf"
6954 ;;
6955 *-*-linux-android*)
6956 target_makefile_frag="config/mt-android"
6957 ;;
6958 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6959 target_makefile_frag="config/mt-gnu"
6960 ;;
6961 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6962 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6963 # commands to handle both 32-bit and 64-bit objects. These flags are
6964 # harmless if we're using GNU nm or ar.
6965 extra_arflags_for_target=" -X32_64"
6966 extra_nmflags_for_target=" -B -X32_64"
6967 ;;
6968esac
6969
6970alphaieee_frag=/dev/null
6971case $target in
6972 alpha*-*-*)
6973 # This just makes sure to use the -mieee option to build target libs.
6974 # This should probably be set individually by each library.
6975 alphaieee_frag="config/mt-alphaieee"
6976 ;;
6977esac
6978
6979# If --enable-target-optspace always use -Os instead of -O2 to build
6980# the target libraries, similarly if it is not specified, use -Os
6981# on selected platforms.
6982ospace_frag=/dev/null
6983case "${enable_target_optspace}:${target}" in
6984 yes:*)
6985 ospace_frag="config/mt-ospace"
6986 ;;
6987 :d30v-*)
6988 ospace_frag="config/mt-d30v"
6989 ;;
6990 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6991 ospace_frag="config/mt-ospace"
6992 ;;
6993 no:* | :*)
6994 ;;
6995 *)
6996 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6997 ;;
6998esac
6999
7000# Some systems (e.g., one of the i386-aix systems the gas testers are
7001# using) don't handle "\$" correctly, so don't use it here.
7002tooldir='${exec_prefix}'/${target_noncanonical}
7003build_tooldir=${tooldir}
7004
7005# Create a .gdbinit file which runs the one in srcdir
7006# and tells GDB to look there for source files.
7007
7008if test -r ${srcdir}/.gdbinit ; then
7009 case ${srcdir} in
7010 .) ;;
7011 *) cat > ./.gdbinit <<EOF
7012# ${NO_EDIT}
7013dir ${srcdir}
7014dir .
7015source ${srcdir}/.gdbinit
7016EOF
7017 ;;
7018 esac
7019fi
7020
7021# Make sure that the compiler is able to generate an executable. If it
7022# can't, we are probably in trouble. We don't care whether we can run the
7023# executable--we might be using a cross compiler--we only care whether it
7024# can be created. At this point the main configure script has set CC.
7025we_are_ok=no
7026echo "int main () { return 0; }" > conftest.c
7027${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7028if test $? = 0 ; then
7029 if test -s conftest || test -s conftest.exe ; then
7030 we_are_ok=yes
7031 fi
7032fi
7033case $we_are_ok in
7034 no)
7035 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7036 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7037 rm -f conftest*
7038 exit 1
7039 ;;
7040esac
7041rm -f conftest*
7042
7043# Decide which environment variable is used to find dynamic libraries.
7044case "${host}" in
7045 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7046 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7047 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7048 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7049esac
7050
7051# On systems where the dynamic library environment variable is PATH,
7052# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7053# built executables to PATH.
7054if test "$RPATH_ENVVAR" = PATH; then
7055 GCC_SHLIB_SUBDIR=/shlib
7056else
7057 GCC_SHLIB_SUBDIR=
7058fi
7059
7060# Adjust the toplevel makefile according to whether bootstrap was selected.
7061case $enable_bootstrap in
7062 yes)
7063 bootstrap_suffix=bootstrap
7064 BUILD_CONFIG=bootstrap-debug
7065 ;;
7066 no)
7067 bootstrap_suffix=no-bootstrap
7068 BUILD_CONFIG=
7069 ;;
7070esac
7071
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7073$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7074
7075
7076# Check whether --with-build-config was given.
7077if test "${with_build_config+set}" = set; then :
7078 withval=$with_build_config; case $with_build_config in
7079 yes) with_build_config= ;;
7080 no) with_build_config= BUILD_CONFIG= ;;
7081 esac
7082fi
7083
7084
7085if test "x${with_build_config}" != x; then
7086 BUILD_CONFIG=$with_build_config
7087else
7088 case $BUILD_CONFIG in
7089 bootstrap-debug)
7090 if echo "int f (void) { return 0; }" > conftest.c &&
7091 ${CC} -c conftest.c &&
7092 mv conftest.o conftest.o.g0 &&
7093 ${CC} -c -g conftest.c &&
7094 mv conftest.o conftest.o.g &&
7095 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7096 :
7097 else
7098 BUILD_CONFIG=
7099 fi
7100 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7101 ;;
7102 esac
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7105$as_echo "$BUILD_CONFIG" >&6; }
7106
7107
7108# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7110$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7111# Check whether --enable-vtable-verify was given.
7112if test "${enable_vtable_verify+set}" = set; then :
7113 enableval=$enable_vtable_verify; case "$enableval" in
7114 yes) enable_vtable_verify=yes ;;
7115 no) enable_vtable_verify=no ;;
7116 *) enable_vtable_verify=no;;
7117 esac
7118else
7119 enable_vtable_verify=no
7120fi
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7123$as_echo "$enable_vtable_verify" >&6; }
7124
7125# Record target_configdirs and the configure arguments for target and
7126# build configuration in Makefile.
7127target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7128build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7129bootstrap_fixincludes=no
7130
7131# If we are building libgomp, bootstrap it.
7132if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7133 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7134fi
7135
7136# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7137# or bootstrap-ubsan, bootstrap it.
7138if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7139 case "$BUILD_CONFIG" in
7140 *bootstrap-asan* | *bootstrap-ubsan* )
7141 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7142 bootstrap_fixincludes=yes
7143 ;;
7144 esac
7145fi
7146
7147# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7148if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7149 test "$enable_vtable_verify" != no; then
7150 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7151fi
7152
7153# Determine whether gdb needs tk/tcl or not.
7154# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7155# and in that case we want gdb to be built without tk. Ugh!
7156# In fact I believe gdb is the *only* package directly dependent on tk,
7157# so we should be able to put the 'maybe's in unconditionally and
7158# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7159# 100% sure that that's safe though.
7160
7161gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7162case "$enable_gdbtk" in
7163 no)
7164 GDB_TK="" ;;
7165 yes)
7166 GDB_TK="${gdb_tk}" ;;
7167 *)
7168 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7169 # distro. Eventually someone will fix this and move Insight, nee
7170 # gdbtk to a separate directory.
7171 if test -d ${srcdir}/gdb/gdbtk ; then
7172 GDB_TK="${gdb_tk}"
7173 else
7174 GDB_TK=""
7175 fi
7176 ;;
7177esac
7178CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7179INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7180
7181# Strip out unwanted targets.
7182
7183# While at that, we remove Makefiles if we were started for recursive
7184# configuration, so that the top-level Makefile reconfigures them,
7185# like we used to do when configure itself was recursive.
7186
7187# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7188# but now we're fixing up the Makefile ourselves with the additional
7189# commands passed to AC_CONFIG_FILES. Use separate variables
7190# extrasub-{build,host,target} not because there is any reason to split
7191# the substitutions up that way, but only to remain below the limit of
7192# 99 commands in a script, for HP-UX sed.
7193# Do not nest @if/@endif pairs, because configure will not warn you at all.
7194
7195case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7196 yes:yes:*\ gold\ *:*,c++,*) ;;
7197 yes:yes:*\ gold\ *:*)
7198 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7199 ;;
7200esac
7201
7202extrasub_build=
7203for module in ${build_configdirs} ; do
7204 if test -z "${no_recursion}" \
7205 && test -f ${build_subdir}/${module}/Makefile; then
7206 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7207 rm -f ${build_subdir}/${module}/Makefile
7208 fi
7209 extrasub_build="$extrasub_build
7210/^@if build-$module\$/d
7211/^@endif build-$module\$/d
7212/^@if build-$module-$bootstrap_suffix\$/d
7213/^@endif build-$module-$bootstrap_suffix\$/d"
7214done
7215extrasub_host=
7216for module in ${configdirs} ; do
7217 if test -z "${no_recursion}"; then
7218 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7219 if test -f ${file}; then
7220 echo 1>&2 "*** removing ${file} to force reconfigure"
7221 rm -f ${file}
7222 fi
7223 done
7224 fi
7225 case ${module},${bootstrap_fixincludes} in
7226 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7227 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7228 esac
7229 extrasub_host="$extrasub_host
7230/^@if $module\$/d
7231/^@endif $module\$/d
7232/^@if $module-$host_bootstrap_suffix\$/d
7233/^@endif $module-$host_bootstrap_suffix\$/d"
7234done
7235extrasub_target=
7236for module in ${target_configdirs} ; do
7237 if test -z "${no_recursion}" \
7238 && test -f ${target_subdir}/${module}/Makefile; then
7239 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7240 rm -f ${target_subdir}/${module}/Makefile
7241 fi
7242
7243 # We only bootstrap target libraries listed in bootstrap_target_libs.
7244 case $bootstrap_target_libs in
7245 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7246 *) target_bootstrap_suffix=no-bootstrap ;;
7247 esac
7248
7249 extrasub_target="$extrasub_target
7250/^@if target-$module\$/d
7251/^@endif target-$module\$/d
7252/^@if target-$module-$target_bootstrap_suffix\$/d
7253/^@endif target-$module-$target_bootstrap_suffix\$/d"
7254done
7255
7256# Do the final fixup along with target modules.
7257extrasub_target="$extrasub_target
7258/^@if /,/^@endif /d"
7259
7260# Create the serialization dependencies. This uses a temporary file.
7261
7262# Check whether --enable-serial-configure was given.
7263if test "${enable_serial_configure+set}" = set; then :
7264 enableval=$enable_serial_configure;
7265fi
7266
7267
7268case ${enable_serial_configure} in
7269 yes)
7270 enable_serial_build_configure=yes
7271 enable_serial_host_configure=yes
7272 enable_serial_target_configure=yes
7273 ;;
7274esac
7275
7276# These force 'configure's to be done one at a time, to avoid problems
7277# with contention over a shared config.cache.
7278rm -f serdep.tmp
7279echo '# serdep.tmp' > serdep.tmp
7280olditem=
7281test "x${enable_serial_build_configure}" = xyes &&
7282for item in ${build_configdirs} ; do
7283 case ${olditem} in
7284 "") ;;
7285 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7286 esac
7287 olditem=${item}
7288done
7289olditem=
7290test "x${enable_serial_host_configure}" = xyes &&
7291for item in ${configdirs} ; do
7292 case ${olditem} in
7293 "") ;;
7294 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7295 esac
7296 olditem=${item}
7297done
7298olditem=
7299test "x${enable_serial_target_configure}" = xyes &&
7300for item in ${target_configdirs} ; do
7301 case ${olditem} in
7302 "") ;;
7303 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7304 esac
7305 olditem=${item}
7306done
7307serialization_dependencies=serdep.tmp
7308
7309
7310# Base args. Strip norecursion, cache-file, srcdir, host, build,
7311# target, nonopt, and variable assignments. These are the ones we
7312# might not want to pass down to subconfigures. The exception being
7313# --cache-file=/dev/null, which is used to turn off the use of cache
7314# files altogether, and which should be passed on to subconfigures.
7315# Also strip program-prefix, program-suffix, and program-transform-name,
7316# so that we can pass down a consistent program-transform-name.
7317baseargs=
7318tbaseargs=
7319keep_next=no
7320skip_next=no
7321eval "set -- $ac_configure_args"
7322for ac_arg
7323do
7324 if test X"$skip_next" = X"yes"; then
7325 skip_next=no
7326 continue
7327 fi
7328 if test X"$keep_next" = X"yes"; then
7329 case $ac_arg in
7330 *\'*)
7331 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7332 esac
7333 baseargs="$baseargs '$ac_arg'"
7334 tbaseargs="$tbaseargs '$ac_arg'"
7335 keep_next=no
7336 continue
7337 fi
7338
7339 # Handle separated arguments. Based on the logic generated by
7340 # autoconf 2.59.
7341 case $ac_arg in
7342 *=* | --config-cache | -C | -disable-* | --disable-* \
7343 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7344 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7345 | -with-* | --with-* | -without-* | --without-* | --x)
7346 separate_arg=no
7347 ;;
7348 -*)
7349 separate_arg=yes
7350 ;;
7351 *)
7352 separate_arg=no
7353 ;;
7354 esac
7355
7356 skip_targ=no
7357 case $ac_arg in
7358
7359 --with-* | --without-*)
7360 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7361
7362 case $libopt in
7363 *[-_]include)
7364 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7365 ;;
7366 *[-_]lib)
7367 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7368 ;;
7369 *)
7370 lib=$libopt
7371 ;;
7372 esac
7373
7374
7375 case $lib in
7376 mpc | mpfr | gmp | isl)
7377 # If we're processing --with-$lib, --with-$lib-include or
7378 # --with-$lib-lib, for one of the libs above, and target is
7379 # different from host, don't pass the current argument to any
7380 # target library's configure.
7381 if test x$is_cross_compiler = xyes; then
7382 skip_targ=yes
7383 fi
7384 ;;
7385 esac
7386 ;;
7387 esac
7388
7389 case "$ac_arg" in
7390 --cache-file=/dev/null | \
7391 -cache-file=/dev/null )
7392 # Handled here to avoid the test to skip args below.
7393 baseargs="$baseargs '$ac_arg'"
7394 tbaseargs="$tbaseargs '$ac_arg'"
7395 # Assert: $separate_arg should always be no.
7396 keep_next=$separate_arg
7397 ;;
7398 --no*)
7399 continue
7400 ;;
7401 --c* | \
7402 --sr* | \
7403 --ho* | \
7404 --bu* | \
7405 --t* | \
7406 --program-* | \
7407 -cache_file* | \
7408 -srcdir* | \
7409 -host* | \
7410 -build* | \
7411 -target* | \
7412 -program-prefix* | \
7413 -program-suffix* | \
7414 -program-transform-name* )
7415 skip_next=$separate_arg
7416 continue
7417 ;;
7418 -*)
7419 # An option. Add it.
7420 case $ac_arg in
7421 *\'*)
7422 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7423 esac
7424 baseargs="$baseargs '$ac_arg'"
7425 if test X"$skip_targ" = Xno; then
7426 tbaseargs="$tbaseargs '$ac_arg'"
7427 fi
7428 keep_next=$separate_arg
7429 ;;
7430 *)
7431 # Either a variable assignment, or a nonopt (triplet). Don't
7432 # pass it down; let the Makefile handle this.
7433 continue
7434 ;;
7435 esac
7436done
7437# Remove the initial space we just introduced and, as these will be
7438# expanded by make, quote '$'.
7439baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7440
7441# Add in --program-transform-name, after --program-prefix and
7442# --program-suffix have been applied to it. Autoconf has already
7443# doubled dollar signs and backslashes in program_transform_name; we want
7444# the backslashes un-doubled, and then the entire thing wrapped in single
7445# quotes, because this will be expanded first by make and then by the shell.
7446# Also, because we want to override the logic in subdir configure scripts to
7447# choose program_transform_name, replace any s,x,x, with s,y,y,.
7448sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7449${program_transform_name}
7450EOF_SED
7451gcc_transform_name=`cat conftestsed.out`
7452rm -f conftestsed.out
7453baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7454tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7455if test "$silent" = yes; then
7456 baseargs="$baseargs --silent"
7457 tbaseargs="$tbaseargs --silent"
7458fi
7459baseargs="$baseargs --disable-option-checking"
7460tbaseargs="$tbaseargs --disable-option-checking"
7461
7462# Record and document user additions to sub configure arguments.
7463
7464
7465
7466
7467# For the build-side libraries, we just need to pretend we're native,
7468# and not use the same cache file. Multilibs are neither needed nor
7469# desired. We can't even use the same cache file for all build-side
7470# libraries, as they're compiled differently; some with C, some with
7471# C++ or with different feature-enabling options.
7472build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7473
7474# For host modules, accept cache file option, or specification as blank.
7475case "${cache_file}" in
7476"") # empty
7477 cache_file_option="" ;;
7478/* | [A-Za-z]:[\\/]* ) # absolute path
7479 cache_file_option="--cache-file=${cache_file}" ;;
7480*) # relative path
7481 cache_file_option="--cache-file=../${cache_file}" ;;
7482esac
7483
7484# Host dirs don't like to share a cache file either, horribly enough.
7485# This seems to be due to autoconf 2.5x stupidity.
7486host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7487
7488target_configargs="$target_configargs ${tbaseargs}"
7489
7490# Passing a --with-cross-host argument lets the target libraries know
7491# whether they are being built with a cross-compiler or being built
7492# native. However, it would be better to use other mechanisms to make the
7493# sorts of decisions they want to make on this basis. Please consider
7494# this option to be deprecated. FIXME.
7495if test x${is_cross_compiler} = xyes ; then
7496 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7497fi
7498
7499# Special user-friendly check for native x86_64-linux build, if
7500# multilib is not explicitly enabled.
7501case "$target:$have_compiler:$host:$target:$enable_multilib" in
7502 x86_64-*linux*:yes:$build:$build:)
7503 # Make sure we have a development environment that handles 32-bit
7504 dev64=no
7505 echo "int main () { return 0; }" > conftest.c
7506 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7507 if test $? = 0 ; then
7508 if test -s conftest || test -s conftest.exe ; then
7509 dev64=yes
7510 fi
7511 fi
7512 rm -f conftest*
7513 if test x${dev64} != xyes ; then
7514 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
7515 fi
7516 ;;
7517esac
7518
7519# Default to --enable-multilib.
7520if test x${enable_multilib} = x ; then
7521 target_configargs="--enable-multilib ${target_configargs}"
7522fi
7523
7524# Pass --with-newlib if appropriate. Note that target_configdirs has
7525# changed from the earlier setting of with_newlib.
7526if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7527 target_configargs="--with-newlib ${target_configargs}"
7528fi
7529
7530# Different target subdirs use different values of certain variables
7531# (notably CXX). Worse, multilibs use *lots* of different values.
7532# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7533# it doesn't automatically accept command-line overrides of them.
7534# This means it's not safe for target subdirs to share a cache file,
7535# which is disgusting, but there you have it. Hopefully this can be
7536# fixed in future. It's still worthwhile to use a cache file for each
7537# directory. I think.
7538
7539# Pass the appropriate --build, --host, --target and --cache-file arguments.
7540# We need to pass --target, as newer autoconf's requires consistency
7541# for target_alias and gcc doesn't manage it consistently.
7542target_configargs="--cache-file=./config.cache ${target_configargs}"
7543
7544FLAGS_FOR_TARGET=
7545case " $target_configdirs " in
7546 *" newlib "*)
7547 case " $target_configargs " in
7548 *" --with-newlib "*)
7549 case "$target" in
7550 *-cygwin*)
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7552 ;;
7553 esac
7554
7555 # If we're not building GCC, don't discard standard headers.
7556 if test -d ${srcdir}/gcc; then
7557 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7558
7559 if test "${build}" != "${host}"; then
7560 # On Canadian crosses, CC_FOR_TARGET will have already been set
7561 # by `configure', so we won't have an opportunity to add -Bgcc/
7562 # to it. This is right: we don't want to search that directory
7563 # for binaries, but we want the header files in there, so add
7564 # them explicitly.
7565 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7566
7567 # Someone might think of using the pre-installed headers on
7568 # Canadian crosses, in case the installed compiler is not fully
7569 # compatible with the compiler being built. In this case, it
7570 # would be better to flag an error than risking having
7571 # incompatible object files being constructed. We can't
7572 # guarantee that an error will be flagged, but let's hope the
7573 # compiler will do it, when presented with incompatible header
7574 # files.
7575 fi
7576 fi
7577
7578 case "${target}-${is_cross_compiler}" in
7579 i[3456789]86-*-linux*-no)
7580 # Here host == target, so we don't need to build gcc,
7581 # so we don't want to discard standard headers.
7582 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7583 ;;
7584 *)
7585 # If we're building newlib, use its generic headers last, but search
7586 # for any libc-related directories first (so make it the last -B
7587 # switch).
7588 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7589
7590 # If we're building libgloss, find the startup file, simulator library
7591 # and linker script.
7592 case " $target_configdirs " in
7593 *" libgloss "*)
7594 # Look for startup file, simulator library and maybe linker script.
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7596 # Look for libnosys.a in case the target needs it.
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7598 # Most targets have the linker script in the source directory.
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7600 ;;
7601 esac
7602 ;;
7603 esac
7604 ;;
7605 esac
7606 ;;
7607esac
7608
7609case "$target" in
7610 x86_64-*mingw* | *-w64-mingw*)
7611 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7612 # however, use a symlink named 'mingw' in ${prefix} .
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7614 ;;
7615 *-mingw*)
7616 # MinGW can't be handled as Cygwin above since it does not use newlib.
7617 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'
7618 ;;
7619esac
7620
7621# Allow the user to override the flags for
7622# our build compiler if desired.
7623if test x"${build}" = x"${host}" ; then
7624 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7625 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7626 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7627fi
7628
7629# On Canadian crosses, we'll be searching the right directories for
7630# the previously-installed cross compiler, so don't bother to add
7631# flags for directories within the install tree of the compiler
7632# being built; programs in there won't even run.
7633if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7634 # Search for pre-installed headers if nothing else fits.
7635 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7636fi
7637
7638if test "x${use_gnu_ld}" = x &&
7639 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7640 # Arrange for us to find uninstalled linker scripts.
7641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7642fi
7643
7644# Search for other target-specific linker scripts and such.
7645case "${target}" in
7646 mep*)
7647 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7648 ;;
7649esac
7650
7651# Makefile fragments.
7652for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7653do
7654 eval fragval=\$$frag
7655 if test $fragval != /dev/null; then
7656 eval $frag=${srcdir}/$fragval
7657 fi
7658done
7659
7660
7661
7662
7663
7664# Miscellanea: directories, flags, etc.
7665
7666
7667
7668
7669
7670
7671
7672
7673# Build module lists & subconfigure args.
7674
7675
7676
7677# Host module lists & subconfigure args.
7678
7679
7680
7681
7682# Target module lists & subconfigure args.
7683
7684
7685
7686# Build tools.
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703# Generate default definitions for YACC, M4, LEX and other programs that run
7704# on the build machine. These are used if the Makefile can't locate these
7705# programs in objdir.
7706MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7707
7708for ac_prog in 'bison -y' byacc yacc
7709do
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711set dummy $ac_prog; ac_word=$2
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if ${ac_cv_prog_YACC+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716else
7717 if test -n "$YACC"; then
7718 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_YACC="$ac_prog"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731done
7732 done
7733IFS=$as_save_IFS
7734
7735fi
7736fi
7737YACC=$ac_cv_prog_YACC
7738if test -n "$YACC"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7740$as_echo "$YACC" >&6; }
7741else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746
7747 test -n "$YACC" && break
7748done
7749test -n "$YACC" || YACC="$MISSING bison -y"
7750
7751case " $build_configdirs " in
7752 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7753esac
7754
7755for ac_prog in bison
7756do
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758set dummy $ac_prog; ac_word=$2
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if ${ac_cv_prog_BISON+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763else
7764 if test -n "$BISON"; then
7765 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_BISON="$ac_prog"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
7779 done
7780IFS=$as_save_IFS
7781
7782fi
7783fi
7784BISON=$ac_cv_prog_BISON
7785if test -n "$BISON"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7787$as_echo "$BISON" >&6; }
7788else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793
7794 test -n "$BISON" && break
7795done
7796test -n "$BISON" || BISON="$MISSING bison"
7797
7798case " $build_configdirs " in
7799 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7800esac
7801
7802for ac_prog in gm4 gnum4 m4
7803do
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805set dummy $ac_prog; ac_word=$2
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if ${ac_cv_prog_M4+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 if test -n "$M4"; then
7812 ac_cv_prog_M4="$M4" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_M4="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826 done
7827IFS=$as_save_IFS
7828
7829fi
7830fi
7831M4=$ac_cv_prog_M4
7832if test -n "$M4"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7834$as_echo "$M4" >&6; }
7835else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838fi
7839
7840
7841 test -n "$M4" && break
7842done
7843test -n "$M4" || M4="$MISSING m4"
7844
7845case " $build_configdirs " in
7846 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7847esac
7848
7849for ac_prog in flex lex
7850do
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852set dummy $ac_prog; ac_word=$2
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
7855if ${ac_cv_prog_LEX+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857else
7858 if test -n "$LEX"; then
7859 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_LEX="$ac_prog"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872done
7873 done
7874IFS=$as_save_IFS
7875
7876fi
7877fi
7878LEX=$ac_cv_prog_LEX
7879if test -n "$LEX"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7881$as_echo "$LEX" >&6; }
7882else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885fi
7886
7887
7888 test -n "$LEX" && break
7889done
7890test -n "$LEX" || LEX="$MISSING flex"
7891
7892case " $build_configdirs " in
7893 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7894 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7895esac
7896
7897for ac_prog in flex
7898do
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900set dummy $ac_prog; ac_word=$2
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if ${ac_cv_prog_FLEX+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 if test -n "$FLEX"; then
7907 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_FLEX="$ac_prog"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921 done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926FLEX=$ac_cv_prog_FLEX
7927if test -n "$FLEX"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7929$as_echo "$FLEX" >&6; }
7930else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933fi
7934
7935
7936 test -n "$FLEX" && break
7937done
7938test -n "$FLEX" || FLEX="$MISSING flex"
7939
7940case " $build_configdirs " in
7941 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7942esac
7943
7944for ac_prog in makeinfo
7945do
7946 # Extract the first word of "$ac_prog", so it can be a program name with args.
7947set dummy $ac_prog; ac_word=$2
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if ${ac_cv_prog_MAKEINFO+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952else
7953 if test -n "$MAKEINFO"; then
7954 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_MAKEINFO="$ac_prog"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968 done
7969IFS=$as_save_IFS
7970
7971fi
7972fi
7973MAKEINFO=$ac_cv_prog_MAKEINFO
7974if test -n "$MAKEINFO"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7976$as_echo "$MAKEINFO" >&6; }
7977else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982
7983 test -n "$MAKEINFO" && break
7984done
7985test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7986
7987case " $build_configdirs " in
7988 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7989 *)
7990
7991 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7992 # higher, else we use the "missing" dummy.
7993 if ${MAKEINFO} --version \
7994 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7995 :
7996 else
7997 MAKEINFO="$MISSING makeinfo"
7998 fi
7999 ;;
8000
8001esac
8002
8003# FIXME: expect and dejagnu may become build tools?
8004
8005for ac_prog in expect
8006do
8007 # Extract the first word of "$ac_prog", so it can be a program name with args.
8008set dummy $ac_prog; ac_word=$2
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010$as_echo_n "checking for $ac_word... " >&6; }
8011if ${ac_cv_prog_EXPECT+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013else
8014 if test -n "$EXPECT"; then
8015 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8016else
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_EXPECT="$ac_prog"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029 done
8030IFS=$as_save_IFS
8031
8032fi
8033fi
8034EXPECT=$ac_cv_prog_EXPECT
8035if test -n "$EXPECT"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8037$as_echo "$EXPECT" >&6; }
8038else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041fi
8042
8043
8044 test -n "$EXPECT" && break
8045done
8046test -n "$EXPECT" || EXPECT="expect"
8047
8048case " $configdirs " in
8049 *" expect "*)
8050 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8051 ;;
8052esac
8053
8054for ac_prog in runtest
8055do
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057set dummy $ac_prog; ac_word=$2
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if ${ac_cv_prog_RUNTEST+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062else
8063 if test -n "$RUNTEST"; then
8064 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_RUNTEST="$ac_prog"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077done
8078 done
8079IFS=$as_save_IFS
8080
8081fi
8082fi
8083RUNTEST=$ac_cv_prog_RUNTEST
8084if test -n "$RUNTEST"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8086$as_echo "$RUNTEST" >&6; }
8087else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092
8093 test -n "$RUNTEST" && break
8094done
8095test -n "$RUNTEST" || RUNTEST="runtest"
8096
8097case " $configdirs " in
8098 *" dejagnu "*)
8099 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8100 ;;
8101esac
8102
8103
8104# Host tools.
8105ncn_tool_prefix=
8106test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8107ncn_target_tool_prefix=
8108test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8109
8110
8111
8112if test -n "$AR"; then
8113 ac_cv_prog_AR=$AR
8114elif test -n "$ac_cv_prog_AR"; then
8115 AR=$ac_cv_prog_AR
8116fi
8117
8118if test -n "$ac_cv_prog_AR"; then
8119 for ncn_progname in ar; do
8120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8121set dummy ${ncn_progname}; ac_word=$2
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if ${ac_cv_prog_AR+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126else
8127 if test -n "$AR"; then
8128 ac_cv_prog_AR="$AR" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_prog_AR="${ncn_progname}"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8140 fi
8141done
8142 done
8143IFS=$as_save_IFS
8144
8145fi
8146fi
8147AR=$ac_cv_prog_AR
8148if test -n "$AR"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8150$as_echo "$AR" >&6; }
8151else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
8154fi
8155
8156
8157 done
8158fi
8159
8160for ncn_progname in ar; do
8161 if test -n "$ncn_tool_prefix"; then
8162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8163set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if ${ac_cv_prog_AR+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168else
8169 if test -n "$AR"; then
8170 ac_cv_prog_AR="$AR" # Let the user override the test.
8171else
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184 done
8185IFS=$as_save_IFS
8186
8187fi
8188fi
8189AR=$ac_cv_prog_AR
8190if test -n "$AR"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8192$as_echo "$AR" >&6; }
8193else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
8196fi
8197
8198
8199 fi
8200 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8202set dummy ${ncn_progname}; ac_word=$2
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
8205if ${ac_cv_prog_AR+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207else
8208 if test -n "$AR"; then
8209 ac_cv_prog_AR="$AR" # Let the user override the test.
8210else
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218 ac_cv_prog_AR="${ncn_progname}"
8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 break 2
8221 fi
8222done
8223 done
8224IFS=$as_save_IFS
8225
8226fi
8227fi
8228AR=$ac_cv_prog_AR
8229if test -n "$AR"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8231$as_echo "$AR" >&6; }
8232else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
8235fi
8236
8237
8238 fi
8239 test -n "$ac_cv_prog_AR" && break
8240done
8241
8242if test -z "$ac_cv_prog_AR" ; then
8243 set dummy ar
8244 if test $build = $host ; then
8245 AR="$2"
8246 else
8247 AR="${ncn_tool_prefix}$2"
8248 fi
8249fi
8250
8251
8252
8253if test -n "$AS"; then
8254 ac_cv_prog_AS=$AS
8255elif test -n "$ac_cv_prog_AS"; then
8256 AS=$ac_cv_prog_AS
8257fi
8258
8259if test -n "$ac_cv_prog_AS"; then
8260 for ncn_progname in as; do
8261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8262set dummy ${ncn_progname}; ac_word=$2
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if ${ac_cv_prog_AS+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267else
8268 if test -n "$AS"; then
8269 ac_cv_prog_AS="$AS" # Let the user override the test.
8270else
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_AS="${ncn_progname}"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282done
8283 done
8284IFS=$as_save_IFS
8285
8286fi
8287fi
8288AS=$ac_cv_prog_AS
8289if test -n "$AS"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8291$as_echo "$AS" >&6; }
8292else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298 done
8299fi
8300
8301for ncn_progname in as; do
8302 if test -n "$ncn_tool_prefix"; then
8303 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8304set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if ${ac_cv_prog_AS+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309else
8310 if test -n "$AS"; then
8311 ac_cv_prog_AS="$AS" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324done
8325 done
8326IFS=$as_save_IFS
8327
8328fi
8329fi
8330AS=$ac_cv_prog_AS
8331if test -n "$AS"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8333$as_echo "$AS" >&6; }
8334else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
8337fi
8338
8339
8340 fi
8341 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8343set dummy ${ncn_progname}; ac_word=$2
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
8346if ${ac_cv_prog_AS+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348else
8349 if test -n "$AS"; then
8350 ac_cv_prog_AS="$AS" # Let the user override the test.
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359 ac_cv_prog_AS="${ncn_progname}"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363done
8364 done
8365IFS=$as_save_IFS
8366
8367fi
8368fi
8369AS=$ac_cv_prog_AS
8370if test -n "$AS"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8372$as_echo "$AS" >&6; }
8373else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
8378
8379 fi
8380 test -n "$ac_cv_prog_AS" && break
8381done
8382
8383if test -z "$ac_cv_prog_AS" ; then
8384 set dummy as
8385 if test $build = $host ; then
8386 AS="$2"
8387 else
8388 AS="${ncn_tool_prefix}$2"
8389 fi
8390fi
8391
8392
8393
8394if test -n "$DLLTOOL"; then
8395 ac_cv_prog_DLLTOOL=$DLLTOOL
8396elif test -n "$ac_cv_prog_DLLTOOL"; then
8397 DLLTOOL=$ac_cv_prog_DLLTOOL
8398fi
8399
8400if test -n "$ac_cv_prog_DLLTOOL"; then
8401 for ncn_progname in dlltool; do
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if ${ac_cv_prog_DLLTOOL+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408else
8409 if test -n "$DLLTOOL"; then
8410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_DLLTOOL="${ncn_progname}"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424 done
8425IFS=$as_save_IFS
8426
8427fi
8428fi
8429DLLTOOL=$ac_cv_prog_DLLTOOL
8430if test -n "$DLLTOOL"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8432$as_echo "$DLLTOOL" >&6; }
8433else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
8436fi
8437
8438
8439 done
8440fi
8441
8442for ncn_progname in dlltool; do
8443 if test -n "$ncn_tool_prefix"; then
8444 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8445set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447$as_echo_n "checking for $ac_word... " >&6; }
8448if ${ac_cv_prog_DLLTOOL+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450else
8451 if test -n "$DLLTOOL"; then
8452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8453else
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465done
8466 done
8467IFS=$as_save_IFS
8468
8469fi
8470fi
8471DLLTOOL=$ac_cv_prog_DLLTOOL
8472if test -n "$DLLTOOL"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8474$as_echo "$DLLTOOL" >&6; }
8475else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
8478fi
8479
8480
8481 fi
8482 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8484set dummy ${ncn_progname}; ac_word=$2
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486$as_echo_n "checking for $ac_word... " >&6; }
8487if ${ac_cv_prog_DLLTOOL+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489else
8490 if test -n "$DLLTOOL"; then
8491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8492else
8493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_DLLTOOL="${ncn_progname}"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504done
8505 done
8506IFS=$as_save_IFS
8507
8508fi
8509fi
8510DLLTOOL=$ac_cv_prog_DLLTOOL
8511if test -n "$DLLTOOL"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8513$as_echo "$DLLTOOL" >&6; }
8514else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519
8520 fi
8521 test -n "$ac_cv_prog_DLLTOOL" && break
8522done
8523
8524if test -z "$ac_cv_prog_DLLTOOL" ; then
8525 set dummy dlltool
8526 if test $build = $host ; then
8527 DLLTOOL="$2"
8528 else
8529 DLLTOOL="${ncn_tool_prefix}$2"
8530 fi
8531fi
8532
8533
8534
8535if test -n "$LD"; then
8536 ac_cv_prog_LD=$LD
8537elif test -n "$ac_cv_prog_LD"; then
8538 LD=$ac_cv_prog_LD
8539fi
8540
8541if test -n "$ac_cv_prog_LD"; then
8542 for ncn_progname in ld; do
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8544set dummy ${ncn_progname}; ac_word=$2
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if ${ac_cv_prog_LD+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549else
8550 if test -n "$LD"; then
8551 ac_cv_prog_LD="$LD" # Let the user override the test.
8552else
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8560 ac_cv_prog_LD="${ncn_progname}"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2
8563 fi
8564done
8565 done
8566IFS=$as_save_IFS
8567
8568fi
8569fi
8570LD=$ac_cv_prog_LD
8571if test -n "$LD"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8573$as_echo "$LD" >&6; }
8574else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
8577fi
8578
8579
8580 done
8581fi
8582
8583for ncn_progname in ld; do
8584 if test -n "$ncn_tool_prefix"; then
8585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8586set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if ${ac_cv_prog_LD+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592 if test -n "$LD"; then
8593 ac_cv_prog_LD="$LD" # Let the user override the test.
8594else
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606done
8607 done
8608IFS=$as_save_IFS
8609
8610fi
8611fi
8612LD=$ac_cv_prog_LD
8613if test -n "$LD"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8615$as_echo "$LD" >&6; }
8616else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622 fi
8623 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8625set dummy ${ncn_progname}; ac_word=$2
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627$as_echo_n "checking for $ac_word... " >&6; }
8628if ${ac_cv_prog_LD+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630else
8631 if test -n "$LD"; then
8632 ac_cv_prog_LD="$LD" # Let the user override the test.
8633else
8634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635for as_dir in $PATH
8636do
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8641 ac_cv_prog_LD="${ncn_progname}"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8644 fi
8645done
8646 done
8647IFS=$as_save_IFS
8648
8649fi
8650fi
8651LD=$ac_cv_prog_LD
8652if test -n "$LD"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8654$as_echo "$LD" >&6; }
8655else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
8658fi
8659
8660
8661 fi
8662 test -n "$ac_cv_prog_LD" && break
8663done
8664
8665if test -z "$ac_cv_prog_LD" ; then
8666 set dummy ld
8667 if test $build = $host ; then
8668 LD="$2"
8669 else
8670 LD="${ncn_tool_prefix}$2"
8671 fi
8672fi
8673
8674
8675
8676if test -n "$LIPO"; then
8677 ac_cv_prog_LIPO=$LIPO
8678elif test -n "$ac_cv_prog_LIPO"; then
8679 LIPO=$ac_cv_prog_LIPO
8680fi
8681
8682if test -n "$ac_cv_prog_LIPO"; then
8683 for ncn_progname in lipo; do
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8685set dummy ${ncn_progname}; ac_word=$2
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
8688if ${ac_cv_prog_LIPO+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690else
8691 if test -n "$LIPO"; then
8692 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8693else
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_LIPO="${ncn_progname}"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705done
8706 done
8707IFS=$as_save_IFS
8708
8709fi
8710fi
8711LIPO=$ac_cv_prog_LIPO
8712if test -n "$LIPO"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8714$as_echo "$LIPO" >&6; }
8715else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
8718fi
8719
8720
8721 done
8722fi
8723
8724for ncn_progname in lipo; do
8725 if test -n "$ncn_tool_prefix"; then
8726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729$as_echo_n "checking for $ac_word... " >&6; }
8730if ${ac_cv_prog_LIPO+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732else
8733 if test -n "$LIPO"; then
8734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8735else
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8746 fi
8747done
8748 done
8749IFS=$as_save_IFS
8750
8751fi
8752fi
8753LIPO=$ac_cv_prog_LIPO
8754if test -n "$LIPO"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8756$as_echo "$LIPO" >&6; }
8757else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
8760fi
8761
8762
8763 fi
8764 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8766set dummy ${ncn_progname}; ac_word=$2
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768$as_echo_n "checking for $ac_word... " >&6; }
8769if ${ac_cv_prog_LIPO+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771else
8772 if test -n "$LIPO"; then
8773 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8774else
8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_LIPO="${ncn_progname}"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786done
8787 done
8788IFS=$as_save_IFS
8789
8790fi
8791fi
8792LIPO=$ac_cv_prog_LIPO
8793if test -n "$LIPO"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8795$as_echo "$LIPO" >&6; }
8796else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798$as_echo "no" >&6; }
8799fi
8800
8801
8802 fi
8803 test -n "$ac_cv_prog_LIPO" && break
8804done
8805
8806if test -z "$ac_cv_prog_LIPO" ; then
8807 set dummy lipo
8808 if test $build = $host ; then
8809 LIPO="$2"
8810 else
8811 LIPO="${ncn_tool_prefix}$2"
8812 fi
8813fi
8814
8815
8816
8817if test -n "$NM"; then
8818 ac_cv_prog_NM=$NM
8819elif test -n "$ac_cv_prog_NM"; then
8820 NM=$ac_cv_prog_NM
8821fi
8822
8823if test -n "$ac_cv_prog_NM"; then
8824 for ncn_progname in nm; do
8825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8826set dummy ${ncn_progname}; ac_word=$2
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if ${ac_cv_prog_NM+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831else
8832 if test -n "$NM"; then
8833 ac_cv_prog_NM="$NM" # Let the user override the test.
8834else
8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842 ac_cv_prog_NM="${ncn_progname}"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846done
8847 done
8848IFS=$as_save_IFS
8849
8850fi
8851fi
8852NM=$ac_cv_prog_NM
8853if test -n "$NM"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8855$as_echo "$NM" >&6; }
8856else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
8859fi
8860
8861
8862 done
8863fi
8864
8865for ncn_progname in nm; do
8866 if test -n "$ncn_tool_prefix"; then
8867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8868set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
8871if ${ac_cv_prog_NM+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873else
8874 if test -n "$NM"; then
8875 ac_cv_prog_NM="$NM" # Let the user override the test.
8876else
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8887 fi
8888done
8889 done
8890IFS=$as_save_IFS
8891
8892fi
8893fi
8894NM=$ac_cv_prog_NM
8895if test -n "$NM"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8897$as_echo "$NM" >&6; }
8898else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
8901fi
8902
8903
8904 fi
8905 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8907set dummy ${ncn_progname}; ac_word=$2
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if ${ac_cv_prog_NM+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912else
8913 if test -n "$NM"; then
8914 ac_cv_prog_NM="$NM" # Let the user override the test.
8915else
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_NM="${ncn_progname}"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8926 fi
8927done
8928 done
8929IFS=$as_save_IFS
8930
8931fi
8932fi
8933NM=$ac_cv_prog_NM
8934if test -n "$NM"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8936$as_echo "$NM" >&6; }
8937else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939$as_echo "no" >&6; }
8940fi
8941
8942
8943 fi
8944 test -n "$ac_cv_prog_NM" && break
8945done
8946
8947if test -z "$ac_cv_prog_NM" ; then
8948 set dummy nm
8949 if test $build = $host ; then
8950 NM="$2"
8951 else
8952 NM="${ncn_tool_prefix}$2"
8953 fi
8954fi
8955
8956
8957
8958if test -n "$RANLIB"; then
8959 ac_cv_prog_RANLIB=$RANLIB
8960elif test -n "$ac_cv_prog_RANLIB"; then
8961 RANLIB=$ac_cv_prog_RANLIB
8962fi
8963
8964if test -n "$ac_cv_prog_RANLIB"; then
8965 for ncn_progname in ranlib; do
8966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8967set dummy ${ncn_progname}; ac_word=$2
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969$as_echo_n "checking for $ac_word... " >&6; }
8970if ${ac_cv_prog_RANLIB+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972else
8973 if test -n "$RANLIB"; then
8974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8975else
8976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $PATH
8978do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8983 ac_cv_prog_RANLIB="${ncn_progname}"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987done
8988 done
8989IFS=$as_save_IFS
8990
8991fi
8992fi
8993RANLIB=$ac_cv_prog_RANLIB
8994if test -n "$RANLIB"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8996$as_echo "$RANLIB" >&6; }
8997else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
9000fi
9001
9002
9003 done
9004fi
9005
9006for ncn_progname in ranlib; do
9007 if test -n "$ncn_tool_prefix"; then
9008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9009set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011$as_echo_n "checking for $ac_word... " >&6; }
9012if ${ac_cv_prog_RANLIB+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014else
9015 if test -n "$RANLIB"; then
9016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9017else
9018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019for as_dir in $PATH
9020do
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9025 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9028 fi
9029done
9030 done
9031IFS=$as_save_IFS
9032
9033fi
9034fi
9035RANLIB=$ac_cv_prog_RANLIB
9036if test -n "$RANLIB"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9038$as_echo "$RANLIB" >&6; }
9039else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }
9042fi
9043
9044
9045 fi
9046 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9048set dummy ${ncn_progname}; ac_word=$2
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050$as_echo_n "checking for $ac_word... " >&6; }
9051if ${ac_cv_prog_RANLIB+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053else
9054 if test -n "$RANLIB"; then
9055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9056else
9057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058for as_dir in $PATH
9059do
9060 IFS=$as_save_IFS
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064 ac_cv_prog_RANLIB="${ncn_progname}"
9065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 break 2
9067 fi
9068done
9069 done
9070IFS=$as_save_IFS
9071
9072fi
9073fi
9074RANLIB=$ac_cv_prog_RANLIB
9075if test -n "$RANLIB"; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9077$as_echo "$RANLIB" >&6; }
9078else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080$as_echo "no" >&6; }
9081fi
9082
9083
9084 fi
9085 test -n "$ac_cv_prog_RANLIB" && break
9086done
9087
9088if test -z "$ac_cv_prog_RANLIB" ; then
9089 RANLIB="true"
9090fi
9091
9092
9093
9094if test -n "$STRIP"; then
9095 ac_cv_prog_STRIP=$STRIP
9096elif test -n "$ac_cv_prog_STRIP"; then
9097 STRIP=$ac_cv_prog_STRIP
9098fi
9099
9100if test -n "$ac_cv_prog_STRIP"; then
9101 for ncn_progname in strip; do
9102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9103set dummy ${ncn_progname}; ac_word=$2
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105$as_echo_n "checking for $ac_word... " >&6; }
9106if ${ac_cv_prog_STRIP+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108else
9109 if test -n "$STRIP"; then
9110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9111else
9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_STRIP="${ncn_progname}"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123done
9124 done
9125IFS=$as_save_IFS
9126
9127fi
9128fi
9129STRIP=$ac_cv_prog_STRIP
9130if test -n "$STRIP"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9132$as_echo "$STRIP" >&6; }
9133else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135$as_echo "no" >&6; }
9136fi
9137
9138
9139 done
9140fi
9141
9142for ncn_progname in strip; do
9143 if test -n "$ncn_tool_prefix"; then
9144 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9145set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147$as_echo_n "checking for $ac_word... " >&6; }
9148if ${ac_cv_prog_STRIP+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150else
9151 if test -n "$STRIP"; then
9152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9153else
9154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9161 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 break 2
9164 fi
9165done
9166 done
9167IFS=$as_save_IFS
9168
9169fi
9170fi
9171STRIP=$ac_cv_prog_STRIP
9172if test -n "$STRIP"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9174$as_echo "$STRIP" >&6; }
9175else
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177$as_echo "no" >&6; }
9178fi
9179
9180
9181 fi
9182 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9184set dummy ${ncn_progname}; ac_word=$2
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186$as_echo_n "checking for $ac_word... " >&6; }
9187if ${ac_cv_prog_STRIP+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189else
9190 if test -n "$STRIP"; then
9191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9192else
9193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194for as_dir in $PATH
9195do
9196 IFS=$as_save_IFS
9197 test -z "$as_dir" && as_dir=.
9198 for ac_exec_ext in '' $ac_executable_extensions; do
9199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9200 ac_cv_prog_STRIP="${ncn_progname}"
9201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 break 2
9203 fi
9204done
9205 done
9206IFS=$as_save_IFS
9207
9208fi
9209fi
9210STRIP=$ac_cv_prog_STRIP
9211if test -n "$STRIP"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9213$as_echo "$STRIP" >&6; }
9214else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216$as_echo "no" >&6; }
9217fi
9218
9219
9220 fi
9221 test -n "$ac_cv_prog_STRIP" && break
9222done
9223
9224if test -z "$ac_cv_prog_STRIP" ; then
9225 STRIP="true"
9226fi
9227
9228
9229
9230if test -n "$WINDRES"; then
9231 ac_cv_prog_WINDRES=$WINDRES
9232elif test -n "$ac_cv_prog_WINDRES"; then
9233 WINDRES=$ac_cv_prog_WINDRES
9234fi
9235
9236if test -n "$ac_cv_prog_WINDRES"; then
9237 for ncn_progname in windres; do
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_progname}; ac_word=$2
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
9242if ${ac_cv_prog_WINDRES+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244else
9245 if test -n "$WINDRES"; then
9246 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_WINDRES="${ncn_progname}"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260 done
9261IFS=$as_save_IFS
9262
9263fi
9264fi
9265WINDRES=$ac_cv_prog_WINDRES
9266if test -n "$WINDRES"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9268$as_echo "$WINDRES" >&6; }
9269else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
9272fi
9273
9274
9275 done
9276fi
9277
9278for ncn_progname in windres; do
9279 if test -n "$ncn_tool_prefix"; then
9280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9281set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283$as_echo_n "checking for $ac_word... " >&6; }
9284if ${ac_cv_prog_WINDRES+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286else
9287 if test -n "$WINDRES"; then
9288 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9289else
9290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291for as_dir in $PATH
9292do
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 break 2
9300 fi
9301done
9302 done
9303IFS=$as_save_IFS
9304
9305fi
9306fi
9307WINDRES=$ac_cv_prog_WINDRES
9308if test -n "$WINDRES"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9310$as_echo "$WINDRES" >&6; }
9311else
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313$as_echo "no" >&6; }
9314fi
9315
9316
9317 fi
9318 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9320set dummy ${ncn_progname}; ac_word=$2
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
9323if ${ac_cv_prog_WINDRES+:} false; then :
9324 $as_echo_n "(cached) " >&6
9325else
9326 if test -n "$WINDRES"; then
9327 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9336 ac_cv_prog_WINDRES="${ncn_progname}"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9339 fi
9340done
9341 done
9342IFS=$as_save_IFS
9343
9344fi
9345fi
9346WINDRES=$ac_cv_prog_WINDRES
9347if test -n "$WINDRES"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9349$as_echo "$WINDRES" >&6; }
9350else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352$as_echo "no" >&6; }
9353fi
9354
9355
9356 fi
9357 test -n "$ac_cv_prog_WINDRES" && break
9358done
9359
9360if test -z "$ac_cv_prog_WINDRES" ; then
9361 set dummy windres
9362 if test $build = $host ; then
9363 WINDRES="$2"
9364 else
9365 WINDRES="${ncn_tool_prefix}$2"
9366 fi
9367fi
9368
9369
9370
9371if test -n "$WINDMC"; then
9372 ac_cv_prog_WINDMC=$WINDMC
9373elif test -n "$ac_cv_prog_WINDMC"; then
9374 WINDMC=$ac_cv_prog_WINDMC
9375fi
9376
9377if test -n "$ac_cv_prog_WINDMC"; then
9378 for ncn_progname in windmc; do
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
9383if ${ac_cv_prog_WINDMC+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385else
9386 if test -n "$WINDMC"; then
9387 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9388else
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396 ac_cv_prog_WINDMC="${ncn_progname}"
9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400done
9401 done
9402IFS=$as_save_IFS
9403
9404fi
9405fi
9406WINDMC=$ac_cv_prog_WINDMC
9407if test -n "$WINDMC"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9409$as_echo "$WINDMC" >&6; }
9410else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
9413fi
9414
9415
9416 done
9417fi
9418
9419for ncn_progname in windmc; do
9420 if test -n "$ncn_tool_prefix"; then
9421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9422set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424$as_echo_n "checking for $ac_word... " >&6; }
9425if ${ac_cv_prog_WINDMC+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427else
9428 if test -n "$WINDMC"; then
9429 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9430else
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9438 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9441 fi
9442done
9443 done
9444IFS=$as_save_IFS
9445
9446fi
9447fi
9448WINDMC=$ac_cv_prog_WINDMC
9449if test -n "$WINDMC"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9451$as_echo "$WINDMC" >&6; }
9452else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
9455fi
9456
9457
9458 fi
9459 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461set dummy ${ncn_progname}; ac_word=$2
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463$as_echo_n "checking for $ac_word... " >&6; }
9464if ${ac_cv_prog_WINDMC+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466else
9467 if test -n "$WINDMC"; then
9468 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477 ac_cv_prog_WINDMC="${ncn_progname}"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481done
9482 done
9483IFS=$as_save_IFS
9484
9485fi
9486fi
9487WINDMC=$ac_cv_prog_WINDMC
9488if test -n "$WINDMC"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9490$as_echo "$WINDMC" >&6; }
9491else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493$as_echo "no" >&6; }
9494fi
9495
9496
9497 fi
9498 test -n "$ac_cv_prog_WINDMC" && break
9499done
9500
9501if test -z "$ac_cv_prog_WINDMC" ; then
9502 set dummy windmc
9503 if test $build = $host ; then
9504 WINDMC="$2"
9505 else
9506 WINDMC="${ncn_tool_prefix}$2"
9507 fi
9508fi
9509
9510
9511
9512if test -n "$OBJCOPY"; then
9513 ac_cv_prog_OBJCOPY=$OBJCOPY
9514elif test -n "$ac_cv_prog_OBJCOPY"; then
9515 OBJCOPY=$ac_cv_prog_OBJCOPY
9516fi
9517
9518if test -n "$ac_cv_prog_OBJCOPY"; then
9519 for ncn_progname in objcopy; do
9520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_progname}; ac_word=$2
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
9524if ${ac_cv_prog_OBJCOPY+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526else
9527 if test -n "$OBJCOPY"; then
9528 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9529else
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_OBJCOPY="${ncn_progname}"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9540 fi
9541done
9542 done
9543IFS=$as_save_IFS
9544
9545fi
9546fi
9547OBJCOPY=$ac_cv_prog_OBJCOPY
9548if test -n "$OBJCOPY"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9550$as_echo "$OBJCOPY" >&6; }
9551else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
9554fi
9555
9556
9557 done
9558fi
9559
9560for ncn_progname in objcopy; do
9561 if test -n "$ncn_tool_prefix"; then
9562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565$as_echo_n "checking for $ac_word... " >&6; }
9566if ${ac_cv_prog_OBJCOPY+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568else
9569 if test -n "$OBJCOPY"; then
9570 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9571else
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583done
9584 done
9585IFS=$as_save_IFS
9586
9587fi
9588fi
9589OBJCOPY=$ac_cv_prog_OBJCOPY
9590if test -n "$OBJCOPY"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9592$as_echo "$OBJCOPY" >&6; }
9593else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
9596fi
9597
9598
9599 fi
9600 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9602set dummy ${ncn_progname}; ac_word=$2
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604$as_echo_n "checking for $ac_word... " >&6; }
9605if ${ac_cv_prog_OBJCOPY+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607else
9608 if test -n "$OBJCOPY"; then
9609 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9610else
9611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612for as_dir in $PATH
9613do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9618 ac_cv_prog_OBJCOPY="${ncn_progname}"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9621 fi
9622done
9623 done
9624IFS=$as_save_IFS
9625
9626fi
9627fi
9628OBJCOPY=$ac_cv_prog_OBJCOPY
9629if test -n "$OBJCOPY"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9631$as_echo "$OBJCOPY" >&6; }
9632else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634$as_echo "no" >&6; }
9635fi
9636
9637
9638 fi
9639 test -n "$ac_cv_prog_OBJCOPY" && break
9640done
9641
9642if test -z "$ac_cv_prog_OBJCOPY" ; then
9643 set dummy objcopy
9644 if test $build = $host ; then
9645 OBJCOPY="$2"
9646 else
9647 OBJCOPY="${ncn_tool_prefix}$2"
9648 fi
9649fi
9650
9651
9652
9653if test -n "$OBJDUMP"; then
9654 ac_cv_prog_OBJDUMP=$OBJDUMP
9655elif test -n "$ac_cv_prog_OBJDUMP"; then
9656 OBJDUMP=$ac_cv_prog_OBJDUMP
9657fi
9658
9659if test -n "$ac_cv_prog_OBJDUMP"; then
9660 for ncn_progname in objdump; do
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662set dummy ${ncn_progname}; ac_word=$2
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
9665if ${ac_cv_prog_OBJDUMP+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667else
9668 if test -n "$OBJDUMP"; then
9669 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_prog_OBJDUMP="${ncn_progname}"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682done
9683 done
9684IFS=$as_save_IFS
9685
9686fi
9687fi
9688OBJDUMP=$ac_cv_prog_OBJDUMP
9689if test -n "$OBJDUMP"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9691$as_echo "$OBJDUMP" >&6; }
9692else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695fi
9696
9697
9698 done
9699fi
9700
9701for ncn_progname in objdump; do
9702 if test -n "$ncn_tool_prefix"; then
9703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706$as_echo_n "checking for $ac_word... " >&6; }
9707if ${ac_cv_prog_OBJDUMP+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709else
9710 if test -n "$OBJDUMP"; then
9711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9712else
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724done
9725 done
9726IFS=$as_save_IFS
9727
9728fi
9729fi
9730OBJDUMP=$ac_cv_prog_OBJDUMP
9731if test -n "$OBJDUMP"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9733$as_echo "$OBJDUMP" >&6; }
9734else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
9737fi
9738
9739
9740 fi
9741 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9743set dummy ${ncn_progname}; ac_word=$2
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745$as_echo_n "checking for $ac_word... " >&6; }
9746if ${ac_cv_prog_OBJDUMP+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 if test -n "$OBJDUMP"; then
9750 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9751else
9752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753for as_dir in $PATH
9754do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9759 ac_cv_prog_OBJDUMP="${ncn_progname}"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763done
9764 done
9765IFS=$as_save_IFS
9766
9767fi
9768fi
9769OBJDUMP=$ac_cv_prog_OBJDUMP
9770if test -n "$OBJDUMP"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9772$as_echo "$OBJDUMP" >&6; }
9773else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775$as_echo "no" >&6; }
9776fi
9777
9778
9779 fi
9780 test -n "$ac_cv_prog_OBJDUMP" && break
9781done
9782
9783if test -z "$ac_cv_prog_OBJDUMP" ; then
9784 set dummy objdump
9785 if test $build = $host ; then
9786 OBJDUMP="$2"
9787 else
9788 OBJDUMP="${ncn_tool_prefix}$2"
9789 fi
9790fi
9791
9792
9793
9794if test -n "$READELF"; then
9795 ac_cv_prog_READELF=$READELF
9796elif test -n "$ac_cv_prog_READELF"; then
9797 READELF=$ac_cv_prog_READELF
9798fi
9799
9800if test -n "$ac_cv_prog_READELF"; then
9801 for ncn_progname in readelf; do
9802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9803set dummy ${ncn_progname}; ac_word=$2
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805$as_echo_n "checking for $ac_word... " >&6; }
9806if ${ac_cv_prog_READELF+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808else
9809 if test -n "$READELF"; then
9810 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9811else
9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9819 ac_cv_prog_READELF="${ncn_progname}"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 break 2
9822 fi
9823done
9824 done
9825IFS=$as_save_IFS
9826
9827fi
9828fi
9829READELF=$ac_cv_prog_READELF
9830if test -n "$READELF"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9832$as_echo "$READELF" >&6; }
9833else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835$as_echo "no" >&6; }
9836fi
9837
9838
9839 done
9840fi
9841
9842for ncn_progname in readelf; do
9843 if test -n "$ncn_tool_prefix"; then
9844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9845set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
9848if ${ac_cv_prog_READELF+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851 if test -n "$READELF"; then
9852 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9853else
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9864 fi
9865done
9866 done
9867IFS=$as_save_IFS
9868
9869fi
9870fi
9871READELF=$ac_cv_prog_READELF
9872if test -n "$READELF"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9874$as_echo "$READELF" >&6; }
9875else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
9878fi
9879
9880
9881 fi
9882 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9884set dummy ${ncn_progname}; ac_word=$2
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886$as_echo_n "checking for $ac_word... " >&6; }
9887if ${ac_cv_prog_READELF+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889else
9890 if test -n "$READELF"; then
9891 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9892else
9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900 ac_cv_prog_READELF="${ncn_progname}"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9903 fi
9904done
9905 done
9906IFS=$as_save_IFS
9907
9908fi
9909fi
9910READELF=$ac_cv_prog_READELF
9911if test -n "$READELF"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9913$as_echo "$READELF" >&6; }
9914else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
9917fi
9918
9919
9920 fi
9921 test -n "$ac_cv_prog_READELF" && break
9922done
9923
9924if test -z "$ac_cv_prog_READELF" ; then
9925 set dummy readelf
9926 if test $build = $host ; then
9927 READELF="$2"
9928 else
9929 READELF="${ncn_tool_prefix}$2"
9930 fi
9931fi
9932
9933
9934
9935
9936
9937
9938# Target tools.
9939
9940# Check whether --with-build-time-tools was given.
9941if test "${with_build_time_tools+set}" = set; then :
9942 withval=$with_build_time_tools; case x"$withval" in
9943 x/*) ;;
9944 *)
9945 with_build_time_tools=
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9947$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9948 ;;
9949 esac
9950else
9951 with_build_time_tools=
9952fi
9953
9954
9955
9956
9957if test -n "$CC_FOR_TARGET"; then
9958 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9959elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9960 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9961fi
9962
9963if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9964 for ncn_progname in cc gcc; do
9965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9966set dummy ${ncn_progname}; ac_word=$2
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968$as_echo_n "checking for $ac_word... " >&6; }
9969if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971else
9972 if test -n "$CC_FOR_TARGET"; then
9973 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9974else
9975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 break 2
9985 fi
9986done
9987 done
9988IFS=$as_save_IFS
9989
9990fi
9991fi
9992CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9993if test -n "$CC_FOR_TARGET"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9995$as_echo "$CC_FOR_TARGET" >&6; }
9996else
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
9999fi
10000
10001
10002 done
10003fi
10004
10005if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10006 for ncn_progname in cc gcc; do
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10008$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10009 if test -x $with_build_time_tools/${ncn_progname}; then
10010 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10012$as_echo "yes" >&6; }
10013 break
10014 else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016$as_echo "no" >&6; }
10017 fi
10018 done
10019fi
10020
10021if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10022 for ncn_progname in cc gcc; do
10023 if test -n "$ncn_target_tool_prefix"; then
10024 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10025set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027$as_echo_n "checking for $ac_word... " >&6; }
10028if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030else
10031 if test -n "$CC_FOR_TARGET"; then
10032 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10033else
10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045done
10046 done
10047IFS=$as_save_IFS
10048
10049fi
10050fi
10051CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10052if test -n "$CC_FOR_TARGET"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10054$as_echo "$CC_FOR_TARGET" >&6; }
10055else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
10058fi
10059
10060
10061 fi
10062 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10064set dummy ${ncn_progname}; ac_word=$2
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066$as_echo_n "checking for $ac_word... " >&6; }
10067if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069else
10070 if test -n "$CC_FOR_TARGET"; then
10071 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10072else
10073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074for as_dir in $PATH
10075do
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10083 fi
10084done
10085 done
10086IFS=$as_save_IFS
10087
10088fi
10089fi
10090CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10091if test -n "$CC_FOR_TARGET"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10093$as_echo "$CC_FOR_TARGET" >&6; }
10094else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096$as_echo "no" >&6; }
10097fi
10098
10099
10100 fi
10101 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10102 done
10103fi
10104
10105if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10106 set dummy cc gcc
10107 if test $build = $target ; then
10108 CC_FOR_TARGET="$2"
10109 else
10110 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10111 fi
10112else
10113 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10114fi
10115
10116
10117
10118if test -n "$CXX_FOR_TARGET"; then
10119 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10120elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10121 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10122fi
10123
10124if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10125 for ncn_progname in c++ g++ cxx gxx; do
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10127set dummy ${ncn_progname}; ac_word=$2
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129$as_echo_n "checking for $ac_word... " >&6; }
10130if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132else
10133 if test -n "$CXX_FOR_TARGET"; then
10134 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10146 fi
10147done
10148 done
10149IFS=$as_save_IFS
10150
10151fi
10152fi
10153CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10154if test -n "$CXX_FOR_TARGET"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10156$as_echo "$CXX_FOR_TARGET" >&6; }
10157else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
10160fi
10161
10162
10163 done
10164fi
10165
10166if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10167 for ncn_progname in c++ g++ cxx gxx; do
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10169$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10170 if test -x $with_build_time_tools/${ncn_progname}; then
10171 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10173$as_echo "yes" >&6; }
10174 break
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
10178 fi
10179 done
10180fi
10181
10182if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10183 for ncn_progname in c++ g++ cxx gxx; do
10184 if test -n "$ncn_target_tool_prefix"; then
10185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10186set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188$as_echo_n "checking for $ac_word... " >&6; }
10189if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191else
10192 if test -n "$CXX_FOR_TARGET"; then
10193 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10194else
10195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196for as_dir in $PATH
10197do
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10202 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10205 fi
10206done
10207 done
10208IFS=$as_save_IFS
10209
10210fi
10211fi
10212CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10213if test -n "$CXX_FOR_TARGET"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10215$as_echo "$CXX_FOR_TARGET" >&6; }
10216else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218$as_echo "no" >&6; }
10219fi
10220
10221
10222 fi
10223 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10225set dummy ${ncn_progname}; ac_word=$2
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227$as_echo_n "checking for $ac_word... " >&6; }
10228if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230else
10231 if test -n "$CXX_FOR_TARGET"; then
10232 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237 IFS=$as_save_IFS
10238 test -z "$as_dir" && as_dir=.
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10241 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10243 break 2
10244 fi
10245done
10246 done
10247IFS=$as_save_IFS
10248
10249fi
10250fi
10251CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10252if test -n "$CXX_FOR_TARGET"; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10254$as_echo "$CXX_FOR_TARGET" >&6; }
10255else
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
10258fi
10259
10260
10261 fi
10262 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10263 done
10264fi
10265
10266if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10267 set dummy c++ g++ cxx gxx
10268 if test $build = $target ; then
10269 CXX_FOR_TARGET="$2"
10270 else
10271 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10272 fi
10273else
10274 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10275fi
10276
10277
10278
10279if test -n "$GCC_FOR_TARGET"; then
10280 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10281elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10282 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10283fi
10284
10285if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10286 for ncn_progname in gcc; do
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10288set dummy ${ncn_progname}; ac_word=$2
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293else
10294 if test -n "$GCC_FOR_TARGET"; then
10295 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309 done
10310IFS=$as_save_IFS
10311
10312fi
10313fi
10314GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10315if test -n "$GCC_FOR_TARGET"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10317$as_echo "$GCC_FOR_TARGET" >&6; }
10318else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
10321fi
10322
10323
10324 done
10325fi
10326
10327if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10328 for ncn_progname in gcc; do
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10330$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10331 if test -x $with_build_time_tools/${ncn_progname}; then
10332 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10334$as_echo "yes" >&6; }
10335 break
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338$as_echo "no" >&6; }
10339 fi
10340 done
10341fi
10342
10343if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10344 for ncn_progname in gcc; do
10345 if test -n "$ncn_target_tool_prefix"; then
10346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10347set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349$as_echo_n "checking for $ac_word... " >&6; }
10350if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352else
10353 if test -n "$GCC_FOR_TARGET"; then
10354 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10355else
10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10366 fi
10367done
10368 done
10369IFS=$as_save_IFS
10370
10371fi
10372fi
10373GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10374if test -n "$GCC_FOR_TARGET"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10376$as_echo "$GCC_FOR_TARGET" >&6; }
10377else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379$as_echo "no" >&6; }
10380fi
10381
10382
10383 fi
10384 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10386set dummy ${ncn_progname}; ac_word=$2
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388$as_echo_n "checking for $ac_word... " >&6; }
10389if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391else
10392 if test -n "$GCC_FOR_TARGET"; then
10393 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407 done
10408IFS=$as_save_IFS
10409
10410fi
10411fi
10412GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10413if test -n "$GCC_FOR_TARGET"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10415$as_echo "$GCC_FOR_TARGET" >&6; }
10416else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418$as_echo "no" >&6; }
10419fi
10420
10421
10422 fi
10423 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10424 done
10425fi
10426
10427if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10428 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10429else
10430 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10431fi
10432
10433
10434
10435if test -n "$GFORTRAN_FOR_TARGET"; then
10436 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10437elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10438 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10439fi
10440
10441if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10442 for ncn_progname in gfortran; do
10443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10444set dummy ${ncn_progname}; ac_word=$2
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446$as_echo_n "checking for $ac_word... " >&6; }
10447if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449else
10450 if test -n "$GFORTRAN_FOR_TARGET"; then
10451 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465 done
10466IFS=$as_save_IFS
10467
10468fi
10469fi
10470GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10471if test -n "$GFORTRAN_FOR_TARGET"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10473$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10474else
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476$as_echo "no" >&6; }
10477fi
10478
10479
10480 done
10481fi
10482
10483if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10484 for ncn_progname in gfortran; do
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10486$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10487 if test -x $with_build_time_tools/${ncn_progname}; then
10488 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490$as_echo "yes" >&6; }
10491 break
10492 else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494$as_echo "no" >&6; }
10495 fi
10496 done
10497fi
10498
10499if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10500 for ncn_progname in gfortran; do
10501 if test -n "$ncn_target_tool_prefix"; then
10502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10503set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505$as_echo_n "checking for $ac_word... " >&6; }
10506if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508else
10509 if test -n "$GFORTRAN_FOR_TARGET"; then
10510 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10511else
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10522 fi
10523done
10524 done
10525IFS=$as_save_IFS
10526
10527fi
10528fi
10529GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10530if test -n "$GFORTRAN_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10532$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10533else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
10536fi
10537
10538
10539 fi
10540 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10542set dummy ${ncn_progname}; ac_word=$2
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544$as_echo_n "checking for $ac_word... " >&6; }
10545if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547else
10548 if test -n "$GFORTRAN_FOR_TARGET"; then
10549 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10550else
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562done
10563 done
10564IFS=$as_save_IFS
10565
10566fi
10567fi
10568GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10569if test -n "$GFORTRAN_FOR_TARGET"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10571$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10572else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574$as_echo "no" >&6; }
10575fi
10576
10577
10578 fi
10579 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10580 done
10581fi
10582
10583if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10584 set dummy gfortran
10585 if test $build = $target ; then
10586 GFORTRAN_FOR_TARGET="$2"
10587 else
10588 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10589 fi
10590else
10591 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10592fi
10593
10594
10595
10596if test -n "$GOC_FOR_TARGET"; then
10597 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10598elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10599 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10600fi
10601
10602if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10603 for ncn_progname in gccgo; do
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605set dummy ${ncn_progname}; ac_word=$2
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
10608if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610else
10611 if test -n "$GOC_FOR_TARGET"; then
10612 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10613else
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10624 fi
10625done
10626 done
10627IFS=$as_save_IFS
10628
10629fi
10630fi
10631GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10632if test -n "$GOC_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10634$as_echo "$GOC_FOR_TARGET" >&6; }
10635else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637$as_echo "no" >&6; }
10638fi
10639
10640
10641 done
10642fi
10643
10644if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10645 for ncn_progname in gccgo; do
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10647$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10648 if test -x $with_build_time_tools/${ncn_progname}; then
10649 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651$as_echo "yes" >&6; }
10652 break
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655$as_echo "no" >&6; }
10656 fi
10657 done
10658fi
10659
10660if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10661 for ncn_progname in gccgo; do
10662 if test -n "$ncn_target_tool_prefix"; then
10663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10664set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666$as_echo_n "checking for $ac_word... " >&6; }
10667if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669else
10670 if test -n "$GOC_FOR_TARGET"; then
10671 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10672else
10673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674for as_dir in $PATH
10675do
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10683 fi
10684done
10685 done
10686IFS=$as_save_IFS
10687
10688fi
10689fi
10690GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10691if test -n "$GOC_FOR_TARGET"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10693$as_echo "$GOC_FOR_TARGET" >&6; }
10694else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
10697fi
10698
10699
10700 fi
10701 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10703set dummy ${ncn_progname}; ac_word=$2
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705$as_echo_n "checking for $ac_word... " >&6; }
10706if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708else
10709 if test -n "$GOC_FOR_TARGET"; then
10710 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724 done
10725IFS=$as_save_IFS
10726
10727fi
10728fi
10729GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10730if test -n "$GOC_FOR_TARGET"; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10732$as_echo "$GOC_FOR_TARGET" >&6; }
10733else
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735$as_echo "no" >&6; }
10736fi
10737
10738
10739 fi
10740 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10741 done
10742fi
10743
10744if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10745 set dummy gccgo
10746 if test $build = $target ; then
10747 GOC_FOR_TARGET="$2"
10748 else
10749 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10750 fi
10751else
10752 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10753fi
10754
10755
10756
10757cat > conftest.c << \EOF
10758#ifdef __GNUC__
10759 gcc_yay;
10760#endif
10761EOF
10762if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10763 have_gcc_for_target=yes
10764else
10765 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10766 have_gcc_for_target=no
10767fi
10768rm conftest.c
10769
10770
10771
10772
10773if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10774 if test -n "$with_build_time_tools"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10776$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10777 if test -x $with_build_time_tools/ar; then
10778 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10779 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10781$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784$as_echo "no" >&6; }
10785 fi
10786 elif test $build != $host && test $have_gcc_for_target = yes; then
10787 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10788 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10789 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10790 fi
10791fi
10792if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10793 # Extract the first word of "ar", so it can be a program name with args.
10794set dummy ar; ac_word=$2
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796$as_echo_n "checking for $ac_word... " >&6; }
10797if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799else
10800 case $AR_FOR_TARGET in
10801 [\\/]* | ?:[\\/]*)
10802 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10803 ;;
10804 *)
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806for as_dir in $gcc_cv_tool_dirs
10807do
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10812 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10815 fi
10816done
10817 done
10818IFS=$as_save_IFS
10819
10820 ;;
10821esac
10822fi
10823AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10824if test -n "$AR_FOR_TARGET"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10826$as_echo "$AR_FOR_TARGET" >&6; }
10827else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830fi
10831
10832
10833fi
10834if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10835
10836
10837if test -n "$AR_FOR_TARGET"; then
10838 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10839elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10840 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10841fi
10842
10843if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10844 for ncn_progname in ar; do
10845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10846set dummy ${ncn_progname}; ac_word=$2
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848$as_echo_n "checking for $ac_word... " >&6; }
10849if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851else
10852 if test -n "$AR_FOR_TARGET"; then
10853 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10854else
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10862 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 break 2
10865 fi
10866done
10867 done
10868IFS=$as_save_IFS
10869
10870fi
10871fi
10872AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10873if test -n "$AR_FOR_TARGET"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10875$as_echo "$AR_FOR_TARGET" >&6; }
10876else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878$as_echo "no" >&6; }
10879fi
10880
10881
10882 done
10883fi
10884
10885if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10886 for ncn_progname in ar; do
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10888$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10889 if test -x $with_build_time_tools/${ncn_progname}; then
10890 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10892$as_echo "yes" >&6; }
10893 break
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
10897 fi
10898 done
10899fi
10900
10901if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10902 for ncn_progname in ar; do
10903 if test -n "$ncn_target_tool_prefix"; then
10904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10905set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10907$as_echo_n "checking for $ac_word... " >&6; }
10908if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910else
10911 if test -n "$AR_FOR_TARGET"; then
10912 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10913else
10914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915for as_dir in $PATH
10916do
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10924 fi
10925done
10926 done
10927IFS=$as_save_IFS
10928
10929fi
10930fi
10931AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10932if test -n "$AR_FOR_TARGET"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10934$as_echo "$AR_FOR_TARGET" >&6; }
10935else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937$as_echo "no" >&6; }
10938fi
10939
10940
10941 fi
10942 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10944set dummy ${ncn_progname}; ac_word=$2
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946$as_echo_n "checking for $ac_word... " >&6; }
10947if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949else
10950 if test -n "$AR_FOR_TARGET"; then
10951 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10952else
10953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954for as_dir in $PATH
10955do
10956 IFS=$as_save_IFS
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10960 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964done
10965 done
10966IFS=$as_save_IFS
10967
10968fi
10969fi
10970AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10971if test -n "$AR_FOR_TARGET"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10973$as_echo "$AR_FOR_TARGET" >&6; }
10974else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
10977fi
10978
10979
10980 fi
10981 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10982 done
10983fi
10984
10985if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10986 set dummy ar
10987 if test $build = $target ; then
10988 AR_FOR_TARGET="$2"
10989 else
10990 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10991 fi
10992else
10993 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10994fi
10995
10996else
10997 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10998fi
10999
11000
11001
11002
11003if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11004 if test -n "$with_build_time_tools"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11006$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11007 if test -x $with_build_time_tools/as; then
11008 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11009 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11011$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11012 else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014$as_echo "no" >&6; }
11015 fi
11016 elif test $build != $host && test $have_gcc_for_target = yes; then
11017 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11018 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11019 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11020 fi
11021fi
11022if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11023 # Extract the first word of "as", so it can be a program name with args.
11024set dummy as; ac_word=$2
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
11027if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029else
11030 case $AS_FOR_TARGET in
11031 [\\/]* | ?:[\\/]*)
11032 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11033 ;;
11034 *)
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $gcc_cv_tool_dirs
11037do
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11042 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11045 fi
11046done
11047 done
11048IFS=$as_save_IFS
11049
11050 ;;
11051esac
11052fi
11053AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11054if test -n "$AS_FOR_TARGET"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11056$as_echo "$AS_FOR_TARGET" >&6; }
11057else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059$as_echo "no" >&6; }
11060fi
11061
11062
11063fi
11064if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11065
11066
11067if test -n "$AS_FOR_TARGET"; then
11068 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11069elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11070 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11071fi
11072
11073if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11074 for ncn_progname in as; do
11075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11076set dummy ${ncn_progname}; ac_word=$2
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
11079if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081else
11082 if test -n "$AS_FOR_TARGET"; then
11083 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11084else
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 break 2
11095 fi
11096done
11097 done
11098IFS=$as_save_IFS
11099
11100fi
11101fi
11102AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11103if test -n "$AS_FOR_TARGET"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11105$as_echo "$AS_FOR_TARGET" >&6; }
11106else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
11109fi
11110
11111
11112 done
11113fi
11114
11115if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11116 for ncn_progname in as; do
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11118$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11119 if test -x $with_build_time_tools/${ncn_progname}; then
11120 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122$as_echo "yes" >&6; }
11123 break
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126$as_echo "no" >&6; }
11127 fi
11128 done
11129fi
11130
11131if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11132 for ncn_progname in as; do
11133 if test -n "$ncn_target_tool_prefix"; then
11134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11135set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137$as_echo_n "checking for $ac_word... " >&6; }
11138if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140else
11141 if test -n "$AS_FOR_TARGET"; then
11142 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11143else
11144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $PATH
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155done
11156 done
11157IFS=$as_save_IFS
11158
11159fi
11160fi
11161AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11162if test -n "$AS_FOR_TARGET"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11164$as_echo "$AS_FOR_TARGET" >&6; }
11165else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167$as_echo "no" >&6; }
11168fi
11169
11170
11171 fi
11172 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11174set dummy ${ncn_progname}; ac_word=$2
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176$as_echo_n "checking for $ac_word... " >&6; }
11177if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179else
11180 if test -n "$AS_FOR_TARGET"; then
11181 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11182else
11183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184for as_dir in $PATH
11185do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195 done
11196IFS=$as_save_IFS
11197
11198fi
11199fi
11200AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11201if test -n "$AS_FOR_TARGET"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11203$as_echo "$AS_FOR_TARGET" >&6; }
11204else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
11207fi
11208
11209
11210 fi
11211 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11212 done
11213fi
11214
11215if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11216 set dummy as
11217 if test $build = $target ; then
11218 AS_FOR_TARGET="$2"
11219 else
11220 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11221 fi
11222else
11223 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11224fi
11225
11226else
11227 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11228fi
11229
11230
11231
11232
11233if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11234 if test -n "$with_build_time_tools"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11236$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11237 if test -x $with_build_time_tools/dlltool; then
11238 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11239 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11241$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
11245 fi
11246 elif test $build != $host && test $have_gcc_for_target = yes; then
11247 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11248 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11249 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11250 fi
11251fi
11252if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11253 # Extract the first word of "dlltool", so it can be a program name with args.
11254set dummy dlltool; ac_word=$2
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256$as_echo_n "checking for $ac_word... " >&6; }
11257if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259else
11260 case $DLLTOOL_FOR_TARGET in
11261 [\\/]* | ?:[\\/]*)
11262 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11263 ;;
11264 *)
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266for as_dir in $gcc_cv_tool_dirs
11267do
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 break 2
11275 fi
11276done
11277 done
11278IFS=$as_save_IFS
11279
11280 ;;
11281esac
11282fi
11283DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11284if test -n "$DLLTOOL_FOR_TARGET"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11286$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11287else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
11290fi
11291
11292
11293fi
11294if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11295
11296
11297if test -n "$DLLTOOL_FOR_TARGET"; then
11298 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11299elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11300 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11301fi
11302
11303if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11304 for ncn_progname in dlltool; do
11305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11306set dummy ${ncn_progname}; ac_word=$2
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
11309if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311else
11312 if test -n "$DLLTOOL_FOR_TARGET"; then
11313 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11314else
11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 break 2
11325 fi
11326done
11327 done
11328IFS=$as_save_IFS
11329
11330fi
11331fi
11332DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11333if test -n "$DLLTOOL_FOR_TARGET"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11335$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11336else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
11339fi
11340
11341
11342 done
11343fi
11344
11345if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11346 for ncn_progname in dlltool; do
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11348$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11349 if test -x $with_build_time_tools/${ncn_progname}; then
11350 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11352$as_echo "yes" >&6; }
11353 break
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
11357 fi
11358 done
11359fi
11360
11361if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11362 for ncn_progname in dlltool; do
11363 if test -n "$ncn_target_tool_prefix"; then
11364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11365set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367$as_echo_n "checking for $ac_word... " >&6; }
11368if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370else
11371 if test -n "$DLLTOOL_FOR_TARGET"; then
11372 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11373else
11374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375for as_dir in $PATH
11376do
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11383 break 2
11384 fi
11385done
11386 done
11387IFS=$as_save_IFS
11388
11389fi
11390fi
11391DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11392if test -n "$DLLTOOL_FOR_TARGET"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11394$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11395else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397$as_echo "no" >&6; }
11398fi
11399
11400
11401 fi
11402 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11404set dummy ${ncn_progname}; ac_word=$2
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406$as_echo_n "checking for $ac_word... " >&6; }
11407if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409else
11410 if test -n "$DLLTOOL_FOR_TARGET"; then
11411 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11412else
11413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414for as_dir in $PATH
11415do
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
11418 for ac_exec_ext in '' $ac_executable_extensions; do
11419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11420 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 break 2
11423 fi
11424done
11425 done
11426IFS=$as_save_IFS
11427
11428fi
11429fi
11430DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11431if test -n "$DLLTOOL_FOR_TARGET"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11433$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11434else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
11437fi
11438
11439
11440 fi
11441 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11442 done
11443fi
11444
11445if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11446 set dummy dlltool
11447 if test $build = $target ; then
11448 DLLTOOL_FOR_TARGET="$2"
11449 else
11450 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11451 fi
11452else
11453 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11454fi
11455
11456else
11457 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11458fi
11459
11460
11461
11462
11463if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11464 if test -n "$with_build_time_tools"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11466$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11467 if test -x $with_build_time_tools/ld; then
11468 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11469 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11471$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
11475 fi
11476 elif test $build != $host && test $have_gcc_for_target = yes; then
11477 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11478 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11479 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11480 fi
11481fi
11482if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11483 # Extract the first word of "ld", so it can be a program name with args.
11484set dummy ld; ac_word=$2
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486$as_echo_n "checking for $ac_word... " >&6; }
11487if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489else
11490 case $LD_FOR_TARGET in
11491 [\\/]* | ?:[\\/]*)
11492 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11493 ;;
11494 *)
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496for as_dir in $gcc_cv_tool_dirs
11497do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11505 fi
11506done
11507 done
11508IFS=$as_save_IFS
11509
11510 ;;
11511esac
11512fi
11513LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11514if test -n "$LD_FOR_TARGET"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11516$as_echo "$LD_FOR_TARGET" >&6; }
11517else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520fi
11521
11522
11523fi
11524if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11525
11526
11527if test -n "$LD_FOR_TARGET"; then
11528 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11529elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11530 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11531fi
11532
11533if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11534 for ncn_progname in ld; do
11535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11536set dummy ${ncn_progname}; ac_word=$2
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538$as_echo_n "checking for $ac_word... " >&6; }
11539if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541else
11542 if test -n "$LD_FOR_TARGET"; then
11543 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11544else
11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11555 fi
11556done
11557 done
11558IFS=$as_save_IFS
11559
11560fi
11561fi
11562LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11563if test -n "$LD_FOR_TARGET"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11565$as_echo "$LD_FOR_TARGET" >&6; }
11566else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
11569fi
11570
11571
11572 done
11573fi
11574
11575if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11576 for ncn_progname in ld; do
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11578$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11579 if test -x $with_build_time_tools/${ncn_progname}; then
11580 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11582$as_echo "yes" >&6; }
11583 break
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587 fi
11588 done
11589fi
11590
11591if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11592 for ncn_progname in ld; do
11593 if test -n "$ncn_target_tool_prefix"; then
11594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11595set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597$as_echo_n "checking for $ac_word... " >&6; }
11598if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600else
11601 if test -n "$LD_FOR_TARGET"; then
11602 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11603else
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616 done
11617IFS=$as_save_IFS
11618
11619fi
11620fi
11621LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11622if test -n "$LD_FOR_TARGET"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11624$as_echo "$LD_FOR_TARGET" >&6; }
11625else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627$as_echo "no" >&6; }
11628fi
11629
11630
11631 fi
11632 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11634set dummy ${ncn_progname}; ac_word=$2
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636$as_echo_n "checking for $ac_word... " >&6; }
11637if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639else
11640 if test -n "$LD_FOR_TARGET"; then
11641 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11642else
11643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644for as_dir in $PATH
11645do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11653 fi
11654done
11655 done
11656IFS=$as_save_IFS
11657
11658fi
11659fi
11660LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11661if test -n "$LD_FOR_TARGET"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11663$as_echo "$LD_FOR_TARGET" >&6; }
11664else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
11667fi
11668
11669
11670 fi
11671 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11672 done
11673fi
11674
11675if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11676 set dummy ld
11677 if test $build = $target ; then
11678 LD_FOR_TARGET="$2"
11679 else
11680 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11681 fi
11682else
11683 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11684fi
11685
11686else
11687 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11688fi
11689
11690
11691
11692
11693if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11694 if test -n "$with_build_time_tools"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11696$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11697 if test -x $with_build_time_tools/lipo; then
11698 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11699 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11701$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
11705 fi
11706 elif test $build != $host && test $have_gcc_for_target = yes; then
11707 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11708 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11709 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11710 fi
11711fi
11712if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11713 # Extract the first word of "lipo", so it can be a program name with args.
11714set dummy lipo; ac_word=$2
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 case $LIPO_FOR_TARGET in
11721 [\\/]* | ?:[\\/]*)
11722 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11723 ;;
11724 *)
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726for as_dir in $gcc_cv_tool_dirs
11727do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11732 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11735 fi
11736done
11737 done
11738IFS=$as_save_IFS
11739
11740 ;;
11741esac
11742fi
11743LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11744if test -n "$LIPO_FOR_TARGET"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11746$as_echo "$LIPO_FOR_TARGET" >&6; }
11747else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750fi
11751
11752
11753fi
11754if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11755
11756
11757if test -n "$LIPO_FOR_TARGET"; then
11758 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11759elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11760 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11761fi
11762
11763if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11764 for ncn_progname in lipo; do
11765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11766set dummy ${ncn_progname}; ac_word=$2
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
11769if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771else
11772 if test -n "$LIPO_FOR_TARGET"; then
11773 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11774else
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11785 fi
11786done
11787 done
11788IFS=$as_save_IFS
11789
11790fi
11791fi
11792LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11793if test -n "$LIPO_FOR_TARGET"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11795$as_echo "$LIPO_FOR_TARGET" >&6; }
11796else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
11799fi
11800
11801
11802 done
11803fi
11804
11805if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11806 for ncn_progname in lipo; do
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11808$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11809 if test -x $with_build_time_tools/${ncn_progname}; then
11810 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11812$as_echo "yes" >&6; }
11813 break
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817 fi
11818 done
11819fi
11820
11821if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11822 for ncn_progname in lipo; do
11823 if test -n "$ncn_target_tool_prefix"; then
11824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11825set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827$as_echo_n "checking for $ac_word... " >&6; }
11828if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830else
11831 if test -n "$LIPO_FOR_TARGET"; then
11832 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11833else
11834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835for as_dir in $PATH
11836do
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11844 fi
11845done
11846 done
11847IFS=$as_save_IFS
11848
11849fi
11850fi
11851LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11852if test -n "$LIPO_FOR_TARGET"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11854$as_echo "$LIPO_FOR_TARGET" >&6; }
11855else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
11858fi
11859
11860
11861 fi
11862 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11864set dummy ${ncn_progname}; ac_word=$2
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866$as_echo_n "checking for $ac_word... " >&6; }
11867if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869else
11870 if test -n "$LIPO_FOR_TARGET"; then
11871 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11872else
11873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874for as_dir in $PATH
11875do
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11883 fi
11884done
11885 done
11886IFS=$as_save_IFS
11887
11888fi
11889fi
11890LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11891if test -n "$LIPO_FOR_TARGET"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11893$as_echo "$LIPO_FOR_TARGET" >&6; }
11894else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
11897fi
11898
11899
11900 fi
11901 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11902 done
11903fi
11904
11905if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11906 set dummy lipo
11907 if test $build = $target ; then
11908 LIPO_FOR_TARGET="$2"
11909 else
11910 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11911 fi
11912else
11913 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11914fi
11915
11916else
11917 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11918fi
11919
11920
11921
11922
11923if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11924 if test -n "$with_build_time_tools"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11926$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11927 if test -x $with_build_time_tools/nm; then
11928 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11929 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11931$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935 fi
11936 elif test $build != $host && test $have_gcc_for_target = yes; then
11937 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11938 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11939 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11940 fi
11941fi
11942if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11943 # Extract the first word of "nm", so it can be a program name with args.
11944set dummy nm; ac_word=$2
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946$as_echo_n "checking for $ac_word... " >&6; }
11947if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949else
11950 case $NM_FOR_TARGET in
11951 [\\/]* | ?:[\\/]*)
11952 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11953 ;;
11954 *)
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $gcc_cv_tool_dirs
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11962 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11965 fi
11966done
11967 done
11968IFS=$as_save_IFS
11969
11970 ;;
11971esac
11972fi
11973NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11974if test -n "$NM_FOR_TARGET"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11976$as_echo "$NM_FOR_TARGET" >&6; }
11977else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980fi
11981
11982
11983fi
11984if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11985
11986
11987if test -n "$NM_FOR_TARGET"; then
11988 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11989elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11990 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11991fi
11992
11993if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11994 for ncn_progname in nm; do
11995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11996set dummy ${ncn_progname}; ac_word=$2
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
11999if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001else
12002 if test -n "$NM_FOR_TARGET"; then
12003 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12004else
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12012 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 break 2
12015 fi
12016done
12017 done
12018IFS=$as_save_IFS
12019
12020fi
12021fi
12022NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12023if test -n "$NM_FOR_TARGET"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12025$as_echo "$NM_FOR_TARGET" >&6; }
12026else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
12029fi
12030
12031
12032 done
12033fi
12034
12035if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12036 for ncn_progname in nm; do
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12038$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12039 if test -x $with_build_time_tools/${ncn_progname}; then
12040 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042$as_echo "yes" >&6; }
12043 break
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047 fi
12048 done
12049fi
12050
12051if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12052 for ncn_progname in nm; do
12053 if test -n "$ncn_target_tool_prefix"; then
12054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12055set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057$as_echo_n "checking for $ac_word... " >&6; }
12058if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060else
12061 if test -n "$NM_FOR_TARGET"; then
12062 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12063else
12064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065for as_dir in $PATH
12066do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12074 fi
12075done
12076 done
12077IFS=$as_save_IFS
12078
12079fi
12080fi
12081NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12082if test -n "$NM_FOR_TARGET"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12084$as_echo "$NM_FOR_TARGET" >&6; }
12085else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087$as_echo "no" >&6; }
12088fi
12089
12090
12091 fi
12092 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12094set dummy ${ncn_progname}; ac_word=$2
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096$as_echo_n "checking for $ac_word... " >&6; }
12097if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099else
12100 if test -n "$NM_FOR_TARGET"; then
12101 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12102else
12103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12113 fi
12114done
12115 done
12116IFS=$as_save_IFS
12117
12118fi
12119fi
12120NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12121if test -n "$NM_FOR_TARGET"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12123$as_echo "$NM_FOR_TARGET" >&6; }
12124else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
12127fi
12128
12129
12130 fi
12131 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12132 done
12133fi
12134
12135if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12136 set dummy nm
12137 if test $build = $target ; then
12138 NM_FOR_TARGET="$2"
12139 else
12140 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12141 fi
12142else
12143 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12144fi
12145
12146else
12147 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12148fi
12149
12150
12151
12152
12153if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12154 if test -n "$with_build_time_tools"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12156$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12157 if test -x $with_build_time_tools/objcopy; then
12158 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12159 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12161$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165 fi
12166 elif test $build != $host && test $have_gcc_for_target = yes; then
12167 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12168 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12169 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12170 fi
12171fi
12172if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12173 # Extract the first word of "objcopy", so it can be a program name with args.
12174set dummy objcopy; ac_word=$2
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176$as_echo_n "checking for $ac_word... " >&6; }
12177if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179else
12180 case $OBJCOPY_FOR_TARGET in
12181 [\\/]* | ?:[\\/]*)
12182 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12183 ;;
12184 *)
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186for as_dir in $gcc_cv_tool_dirs
12187do
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12192 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12195 fi
12196done
12197 done
12198IFS=$as_save_IFS
12199
12200 ;;
12201esac
12202fi
12203OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12204if test -n "$OBJCOPY_FOR_TARGET"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12206$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12207else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
12210fi
12211
12212
12213fi
12214if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12215
12216
12217if test -n "$OBJCOPY_FOR_TARGET"; then
12218 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12219elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12220 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12221fi
12222
12223if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12224 for ncn_progname in objcopy; do
12225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12226set dummy ${ncn_progname}; ac_word=$2
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
12229if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231else
12232 if test -n "$OBJCOPY_FOR_TARGET"; then
12233 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12245 fi
12246done
12247 done
12248IFS=$as_save_IFS
12249
12250fi
12251fi
12252OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12253if test -n "$OBJCOPY_FOR_TARGET"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12255$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12256else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
12259fi
12260
12261
12262 done
12263fi
12264
12265if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12266 for ncn_progname in objcopy; do
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12268$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12269 if test -x $with_build_time_tools/${ncn_progname}; then
12270 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272$as_echo "yes" >&6; }
12273 break
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277 fi
12278 done
12279fi
12280
12281if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12282 for ncn_progname in objcopy; do
12283 if test -n "$ncn_target_tool_prefix"; then
12284 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12285set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287$as_echo_n "checking for $ac_word... " >&6; }
12288if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290else
12291 if test -n "$OBJCOPY_FOR_TARGET"; then
12292 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12293else
12294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295for as_dir in $PATH
12296do
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12304 fi
12305done
12306 done
12307IFS=$as_save_IFS
12308
12309fi
12310fi
12311OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12312if test -n "$OBJCOPY_FOR_TARGET"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12314$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12315else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317$as_echo "no" >&6; }
12318fi
12319
12320
12321 fi
12322 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12324set dummy ${ncn_progname}; ac_word=$2
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326$as_echo_n "checking for $ac_word... " >&6; }
12327if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12328 $as_echo_n "(cached) " >&6
12329else
12330 if test -n "$OBJCOPY_FOR_TARGET"; then
12331 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12332else
12333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334for as_dir in $PATH
12335do
12336 IFS=$as_save_IFS
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 break 2
12343 fi
12344done
12345 done
12346IFS=$as_save_IFS
12347
12348fi
12349fi
12350OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12351if test -n "$OBJCOPY_FOR_TARGET"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12353$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12354else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
12357fi
12358
12359
12360 fi
12361 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12362 done
12363fi
12364
12365if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12366 set dummy objcopy
12367 if test $build = $target ; then
12368 OBJCOPY_FOR_TARGET="$2"
12369 else
12370 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12371 fi
12372else
12373 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12374fi
12375
12376else
12377 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12378fi
12379
12380
12381
12382
12383if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12384 if test -n "$with_build_time_tools"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12386$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12387 if test -x $with_build_time_tools/objdump; then
12388 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12389 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12391$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395 fi
12396 elif test $build != $host && test $have_gcc_for_target = yes; then
12397 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12398 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12399 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12400 fi
12401fi
12402if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12403 # Extract the first word of "objdump", so it can be a program name with args.
12404set dummy objdump; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409else
12410 case $OBJDUMP_FOR_TARGET in
12411 [\\/]* | ?:[\\/]*)
12412 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12413 ;;
12414 *)
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416for as_dir in $gcc_cv_tool_dirs
12417do
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12425 fi
12426done
12427 done
12428IFS=$as_save_IFS
12429
12430 ;;
12431esac
12432fi
12433OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12434if test -n "$OBJDUMP_FOR_TARGET"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12436$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12437else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
12440fi
12441
12442
12443fi
12444if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12445
12446
12447if test -n "$OBJDUMP_FOR_TARGET"; then
12448 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12449elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12450 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12451fi
12452
12453if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12454 for ncn_progname in objdump; do
12455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12456set dummy ${ncn_progname}; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
12459if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$OBJDUMP_FOR_TARGET"; then
12463 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12472 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12483if test -n "$OBJDUMP_FOR_TARGET"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12485$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491
12492 done
12493fi
12494
12495if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12496 for ncn_progname in objdump; do
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12498$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12499 if test -x $with_build_time_tools/${ncn_progname}; then
12500 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12502$as_echo "yes" >&6; }
12503 break
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506$as_echo "no" >&6; }
12507 fi
12508 done
12509fi
12510
12511if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12512 for ncn_progname in objdump; do
12513 if test -n "$ncn_target_tool_prefix"; then
12514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12515set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517$as_echo_n "checking for $ac_word... " >&6; }
12518if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520else
12521 if test -n "$OBJDUMP_FOR_TARGET"; then
12522 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12523else
12524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525for as_dir in $PATH
12526do
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12534 fi
12535done
12536 done
12537IFS=$as_save_IFS
12538
12539fi
12540fi
12541OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12542if test -n "$OBJDUMP_FOR_TARGET"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12544$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12545else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547$as_echo "no" >&6; }
12548fi
12549
12550
12551 fi
12552 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12554set dummy ${ncn_progname}; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
12557if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12558 $as_echo_n "(cached) " >&6
12559else
12560 if test -n "$OBJDUMP_FOR_TARGET"; then
12561 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12573 fi
12574done
12575 done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12581if test -n "$OBJDUMP_FOR_TARGET"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12583$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12584else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589
12590 fi
12591 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12592 done
12593fi
12594
12595if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12596 set dummy objdump
12597 if test $build = $target ; then
12598 OBJDUMP_FOR_TARGET="$2"
12599 else
12600 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12601 fi
12602else
12603 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12604fi
12605
12606else
12607 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12608fi
12609
12610
12611
12612
12613if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12614 if test -n "$with_build_time_tools"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12616$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12617 if test -x $with_build_time_tools/ranlib; then
12618 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12619 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12621$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
12625 fi
12626 elif test $build != $host && test $have_gcc_for_target = yes; then
12627 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12628 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12629 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12630 fi
12631fi
12632if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12633 # Extract the first word of "ranlib", so it can be a program name with args.
12634set dummy ranlib; ac_word=$2
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; }
12637if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639else
12640 case $RANLIB_FOR_TARGET in
12641 [\\/]* | ?:[\\/]*)
12642 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12643 ;;
12644 *)
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $gcc_cv_tool_dirs
12647do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12655 fi
12656done
12657 done
12658IFS=$as_save_IFS
12659
12660 ;;
12661esac
12662fi
12663RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12664if test -n "$RANLIB_FOR_TARGET"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12666$as_echo "$RANLIB_FOR_TARGET" >&6; }
12667else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
12670fi
12671
12672
12673fi
12674if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12675
12676
12677if test -n "$RANLIB_FOR_TARGET"; then
12678 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12679elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12680 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12681fi
12682
12683if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12684 for ncn_progname in ranlib; do
12685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12686set dummy ${ncn_progname}; ac_word=$2
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
12689if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691else
12692 if test -n "$RANLIB_FOR_TARGET"; then
12693 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12694else
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12705 fi
12706done
12707 done
12708IFS=$as_save_IFS
12709
12710fi
12711fi
12712RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12713if test -n "$RANLIB_FOR_TARGET"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12715$as_echo "$RANLIB_FOR_TARGET" >&6; }
12716else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721
12722 done
12723fi
12724
12725if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12726 for ncn_progname in ranlib; do
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12728$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12729 if test -x $with_build_time_tools/${ncn_progname}; then
12730 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12732$as_echo "yes" >&6; }
12733 break
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
12737 fi
12738 done
12739fi
12740
12741if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12742 for ncn_progname in ranlib; do
12743 if test -n "$ncn_target_tool_prefix"; then
12744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12745set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747$as_echo_n "checking for $ac_word... " >&6; }
12748if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750else
12751 if test -n "$RANLIB_FOR_TARGET"; then
12752 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12753else
12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755for as_dir in $PATH
12756do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765done
12766 done
12767IFS=$as_save_IFS
12768
12769fi
12770fi
12771RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12772if test -n "$RANLIB_FOR_TARGET"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12774$as_echo "$RANLIB_FOR_TARGET" >&6; }
12775else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
12778fi
12779
12780
12781 fi
12782 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12784set dummy ${ncn_progname}; ac_word=$2
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786$as_echo_n "checking for $ac_word... " >&6; }
12787if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789else
12790 if test -n "$RANLIB_FOR_TARGET"; then
12791 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12792else
12793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794for as_dir in $PATH
12795do
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12803 fi
12804done
12805 done
12806IFS=$as_save_IFS
12807
12808fi
12809fi
12810RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12811if test -n "$RANLIB_FOR_TARGET"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12813$as_echo "$RANLIB_FOR_TARGET" >&6; }
12814else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819
12820 fi
12821 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12822 done
12823fi
12824
12825if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12826 set dummy ranlib
12827 if test $build = $target ; then
12828 RANLIB_FOR_TARGET="$2"
12829 else
12830 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12831 fi
12832else
12833 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12834fi
12835
12836else
12837 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12838fi
12839
12840
12841
12842
12843if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12844 if test -n "$with_build_time_tools"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12846$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12847 if test -x $with_build_time_tools/readelf; then
12848 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12849 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12851$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12852 else
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854$as_echo "no" >&6; }
12855 fi
12856 elif test $build != $host && test $have_gcc_for_target = yes; then
12857 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12858 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12859 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12860 fi
12861fi
12862if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12863 # Extract the first word of "readelf", so it can be a program name with args.
12864set dummy readelf; ac_word=$2
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
12867if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869else
12870 case $READELF_FOR_TARGET in
12871 [\\/]* | ?:[\\/]*)
12872 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12873 ;;
12874 *)
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $gcc_cv_tool_dirs
12877do
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12882 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12885 fi
12886done
12887 done
12888IFS=$as_save_IFS
12889
12890 ;;
12891esac
12892fi
12893READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12894if test -n "$READELF_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12896$as_echo "$READELF_FOR_TARGET" >&6; }
12897else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900fi
12901
12902
12903fi
12904if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12905
12906
12907if test -n "$READELF_FOR_TARGET"; then
12908 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12909elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12910 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12911fi
12912
12913if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12914 for ncn_progname in readelf; do
12915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12916set dummy ${ncn_progname}; ac_word=$2
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918$as_echo_n "checking for $ac_word... " >&6; }
12919if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921else
12922 if test -n "$READELF_FOR_TARGET"; then
12923 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12924else
12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926for as_dir in $PATH
12927do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12935 fi
12936done
12937 done
12938IFS=$as_save_IFS
12939
12940fi
12941fi
12942READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12943if test -n "$READELF_FOR_TARGET"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12945$as_echo "$READELF_FOR_TARGET" >&6; }
12946else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948$as_echo "no" >&6; }
12949fi
12950
12951
12952 done
12953fi
12954
12955if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12956 for ncn_progname in readelf; do
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12958$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12959 if test -x $with_build_time_tools/${ncn_progname}; then
12960 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12962$as_echo "yes" >&6; }
12963 break
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966$as_echo "no" >&6; }
12967 fi
12968 done
12969fi
12970
12971if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12972 for ncn_progname in readelf; do
12973 if test -n "$ncn_target_tool_prefix"; then
12974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12975set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977$as_echo_n "checking for $ac_word... " >&6; }
12978if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980else
12981 if test -n "$READELF_FOR_TARGET"; then
12982 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12983else
12984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $PATH
12986do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995done
12996 done
12997IFS=$as_save_IFS
12998
12999fi
13000fi
13001READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13002if test -n "$READELF_FOR_TARGET"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13004$as_echo "$READELF_FOR_TARGET" >&6; }
13005else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007$as_echo "no" >&6; }
13008fi
13009
13010
13011 fi
13012 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13014set dummy ${ncn_progname}; ac_word=$2
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016$as_echo_n "checking for $ac_word... " >&6; }
13017if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019else
13020 if test -n "$READELF_FOR_TARGET"; then
13021 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13022else
13023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024for as_dir in $PATH
13025do
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 break 2
13033 fi
13034done
13035 done
13036IFS=$as_save_IFS
13037
13038fi
13039fi
13040READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13041if test -n "$READELF_FOR_TARGET"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13043$as_echo "$READELF_FOR_TARGET" >&6; }
13044else
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
13047fi
13048
13049
13050 fi
13051 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13052 done
13053fi
13054
13055if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13056 set dummy readelf
13057 if test $build = $target ; then
13058 READELF_FOR_TARGET="$2"
13059 else
13060 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13061 fi
13062else
13063 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13064fi
13065
13066else
13067 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13068fi
13069
13070
13071
13072
13073if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13074 if test -n "$with_build_time_tools"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13076$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13077 if test -x $with_build_time_tools/strip; then
13078 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13079 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13081$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
13085 fi
13086 elif test $build != $host && test $have_gcc_for_target = yes; then
13087 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13088 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13089 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13090 fi
13091fi
13092if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13093 # Extract the first word of "strip", so it can be a program name with args.
13094set dummy strip; ac_word=$2
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096$as_echo_n "checking for $ac_word... " >&6; }
13097if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099else
13100 case $STRIP_FOR_TARGET in
13101 [\\/]* | ?:[\\/]*)
13102 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13103 ;;
13104 *)
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106for as_dir in $gcc_cv_tool_dirs
13107do
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13115 fi
13116done
13117 done
13118IFS=$as_save_IFS
13119
13120 ;;
13121esac
13122fi
13123STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13124if test -n "$STRIP_FOR_TARGET"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13126$as_echo "$STRIP_FOR_TARGET" >&6; }
13127else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129$as_echo "no" >&6; }
13130fi
13131
13132
13133fi
13134if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13135
13136
13137if test -n "$STRIP_FOR_TARGET"; then
13138 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13139elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13140 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13141fi
13142
13143if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13144 for ncn_progname in strip; do
13145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13146set dummy ${ncn_progname}; ac_word=$2
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148$as_echo_n "checking for $ac_word... " >&6; }
13149if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151else
13152 if test -n "$STRIP_FOR_TARGET"; then
13153 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166done
13167 done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13173if test -n "$STRIP_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13175$as_echo "$STRIP_FOR_TARGET" >&6; }
13176else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180
13181
13182 done
13183fi
13184
13185if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13186 for ncn_progname in strip; do
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13188$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13189 if test -x $with_build_time_tools/${ncn_progname}; then
13190 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13192$as_echo "yes" >&6; }
13193 break
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196$as_echo "no" >&6; }
13197 fi
13198 done
13199fi
13200
13201if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13202 for ncn_progname in strip; do
13203 if test -n "$ncn_target_tool_prefix"; then
13204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13205set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207$as_echo_n "checking for $ac_word... " >&6; }
13208if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210else
13211 if test -n "$STRIP_FOR_TARGET"; then
13212 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13213else
13214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215for as_dir in $PATH
13216do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225done
13226 done
13227IFS=$as_save_IFS
13228
13229fi
13230fi
13231STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13232if test -n "$STRIP_FOR_TARGET"; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13234$as_echo "$STRIP_FOR_TARGET" >&6; }
13235else
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237$as_echo "no" >&6; }
13238fi
13239
13240
13241 fi
13242 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13244set dummy ${ncn_progname}; ac_word=$2
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246$as_echo_n "checking for $ac_word... " >&6; }
13247if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249else
13250 if test -n "$STRIP_FOR_TARGET"; then
13251 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13252else
13253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254for as_dir in $PATH
13255do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264done
13265 done
13266IFS=$as_save_IFS
13267
13268fi
13269fi
13270STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13271if test -n "$STRIP_FOR_TARGET"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13273$as_echo "$STRIP_FOR_TARGET" >&6; }
13274else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
13277fi
13278
13279
13280 fi
13281 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13282 done
13283fi
13284
13285if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13286 set dummy strip
13287 if test $build = $target ; then
13288 STRIP_FOR_TARGET="$2"
13289 else
13290 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13291 fi
13292else
13293 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13294fi
13295
13296else
13297 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13298fi
13299
13300
13301
13302
13303if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13304 if test -n "$with_build_time_tools"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13306$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13307 if test -x $with_build_time_tools/windres; then
13308 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13309 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13311$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13312 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315 fi
13316 elif test $build != $host && test $have_gcc_for_target = yes; then
13317 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13318 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13319 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13320 fi
13321fi
13322if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13323 # Extract the first word of "windres", so it can be a program name with args.
13324set dummy windres; ac_word=$2
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326$as_echo_n "checking for $ac_word... " >&6; }
13327if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329else
13330 case $WINDRES_FOR_TARGET in
13331 [\\/]* | ?:[\\/]*)
13332 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13333 ;;
13334 *)
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336for as_dir in $gcc_cv_tool_dirs
13337do
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13342 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13345 fi
13346done
13347 done
13348IFS=$as_save_IFS
13349
13350 ;;
13351esac
13352fi
13353WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13354if test -n "$WINDRES_FOR_TARGET"; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13356$as_echo "$WINDRES_FOR_TARGET" >&6; }
13357else
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359$as_echo "no" >&6; }
13360fi
13361
13362
13363fi
13364if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13365
13366
13367if test -n "$WINDRES_FOR_TARGET"; then
13368 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13369elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13370 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13371fi
13372
13373if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13374 for ncn_progname in windres; do
13375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13376set dummy ${ncn_progname}; ac_word=$2
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
13379if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13380 $as_echo_n "(cached) " >&6
13381else
13382 if test -n "$WINDRES_FOR_TARGET"; then
13383 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13392 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 break 2
13395 fi
13396done
13397 done
13398IFS=$as_save_IFS
13399
13400fi
13401fi
13402WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13403if test -n "$WINDRES_FOR_TARGET"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13405$as_echo "$WINDRES_FOR_TARGET" >&6; }
13406else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
13409fi
13410
13411
13412 done
13413fi
13414
13415if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13416 for ncn_progname in windres; do
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13418$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13419 if test -x $with_build_time_tools/${ncn_progname}; then
13420 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13422$as_echo "yes" >&6; }
13423 break
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426$as_echo "no" >&6; }
13427 fi
13428 done
13429fi
13430
13431if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13432 for ncn_progname in windres; do
13433 if test -n "$ncn_target_tool_prefix"; then
13434 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13435set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
13438if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440else
13441 if test -n "$WINDRES_FOR_TARGET"; then
13442 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455done
13456 done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13462if test -n "$WINDRES_FOR_TARGET"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13464$as_echo "$WINDRES_FOR_TARGET" >&6; }
13465else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470
13471 fi
13472 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13474set dummy ${ncn_progname}; ac_word=$2
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476$as_echo_n "checking for $ac_word... " >&6; }
13477if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479else
13480 if test -n "$WINDRES_FOR_TARGET"; then
13481 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13482else
13483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484for as_dir in $PATH
13485do
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
13489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13490 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13493 fi
13494done
13495 done
13496IFS=$as_save_IFS
13497
13498fi
13499fi
13500WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13501if test -n "$WINDRES_FOR_TARGET"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13503$as_echo "$WINDRES_FOR_TARGET" >&6; }
13504else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506$as_echo "no" >&6; }
13507fi
13508
13509
13510 fi
13511 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13512 done
13513fi
13514
13515if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13516 set dummy windres
13517 if test $build = $target ; then
13518 WINDRES_FOR_TARGET="$2"
13519 else
13520 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13521 fi
13522else
13523 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13524fi
13525
13526else
13527 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13528fi
13529
13530
13531
13532
13533if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13534 if test -n "$with_build_time_tools"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13536$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13537 if test -x $with_build_time_tools/windmc; then
13538 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13539 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13541$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544$as_echo "no" >&6; }
13545 fi
13546 elif test $build != $host && test $have_gcc_for_target = yes; then
13547 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13548 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13549 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13550 fi
13551fi
13552if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13553 # Extract the first word of "windmc", so it can be a program name with args.
13554set dummy windmc; ac_word=$2
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13556$as_echo_n "checking for $ac_word... " >&6; }
13557if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559else
13560 case $WINDMC_FOR_TARGET in
13561 [\\/]* | ?:[\\/]*)
13562 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13563 ;;
13564 *)
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $gcc_cv_tool_dirs
13567do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13575 fi
13576done
13577 done
13578IFS=$as_save_IFS
13579
13580 ;;
13581esac
13582fi
13583WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13584if test -n "$WINDMC_FOR_TARGET"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13586$as_echo "$WINDMC_FOR_TARGET" >&6; }
13587else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
13590fi
13591
13592
13593fi
13594if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13595
13596
13597if test -n "$WINDMC_FOR_TARGET"; then
13598 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13599elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13600 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13601fi
13602
13603if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13604 for ncn_progname in windmc; do
13605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13606set dummy ${ncn_progname}; ac_word=$2
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
13609if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611else
13612 if test -n "$WINDMC_FOR_TARGET"; then
13613 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13622 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626done
13627 done
13628IFS=$as_save_IFS
13629
13630fi
13631fi
13632WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13633if test -n "$WINDMC_FOR_TARGET"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13635$as_echo "$WINDMC_FOR_TARGET" >&6; }
13636else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
13639fi
13640
13641
13642 done
13643fi
13644
13645if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13646 for ncn_progname in windmc; do
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13648$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13649 if test -x $with_build_time_tools/${ncn_progname}; then
13650 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13652$as_echo "yes" >&6; }
13653 break
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656$as_echo "no" >&6; }
13657 fi
13658 done
13659fi
13660
13661if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13662 for ncn_progname in windmc; do
13663 if test -n "$ncn_target_tool_prefix"; then
13664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13665set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667$as_echo_n "checking for $ac_word... " >&6; }
13668if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670else
13671 if test -n "$WINDMC_FOR_TARGET"; then
13672 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13673else
13674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675for as_dir in $PATH
13676do
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13684 fi
13685done
13686 done
13687IFS=$as_save_IFS
13688
13689fi
13690fi
13691WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13692if test -n "$WINDMC_FOR_TARGET"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13694$as_echo "$WINDMC_FOR_TARGET" >&6; }
13695else
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697$as_echo "no" >&6; }
13698fi
13699
13700
13701 fi
13702 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13704set dummy ${ncn_progname}; ac_word=$2
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706$as_echo_n "checking for $ac_word... " >&6; }
13707if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709else
13710 if test -n "$WINDMC_FOR_TARGET"; then
13711 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13712else
13713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714for as_dir in $PATH
13715do
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13720 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
13723 fi
13724done
13725 done
13726IFS=$as_save_IFS
13727
13728fi
13729fi
13730WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13731if test -n "$WINDMC_FOR_TARGET"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13733$as_echo "$WINDMC_FOR_TARGET" >&6; }
13734else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736$as_echo "no" >&6; }
13737fi
13738
13739
13740 fi
13741 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13742 done
13743fi
13744
13745if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13746 set dummy windmc
13747 if test $build = $target ; then
13748 WINDMC_FOR_TARGET="$2"
13749 else
13750 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13751 fi
13752else
13753 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13754fi
13755
13756else
13757 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13758fi
13759
13760
13761RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13762
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13764$as_echo_n "checking where to find the target ar... " >&6; }
13765if test "x${build}" != "x${host}" ; then
13766 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13767 # We already found the complete path
13768 ac_dir=`dirname $AR_FOR_TARGET`
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13770$as_echo "pre-installed in $ac_dir" >&6; }
13771 else
13772 # Canadian cross, just use what we found
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13774$as_echo "pre-installed" >&6; }
13775 fi
13776else
13777 ok=yes
13778 case " ${configdirs} " in
13779 *" binutils "*) ;;
13780 *) ok=no ;;
13781 esac
13782
13783 if test $ok = yes; then
13784 # An in-tree tool is available and we can use it
13785 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13787$as_echo "just compiled" >&6; }
13788 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
13790 ac_dir=`dirname $AR_FOR_TARGET`
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792$as_echo "pre-installed in $ac_dir" >&6; }
13793 elif test "x$target" = "x$host"; then
13794 # We can use an host tool
13795 AR_FOR_TARGET='$(AR)'
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13797$as_echo "host tool" >&6; }
13798 else
13799 # We need a cross tool
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13801$as_echo "pre-installed" >&6; }
13802 fi
13803fi
13804
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13806$as_echo_n "checking where to find the target as... " >&6; }
13807if test "x${build}" != "x${host}" ; then
13808 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13809 # We already found the complete path
13810 ac_dir=`dirname $AS_FOR_TARGET`
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13812$as_echo "pre-installed in $ac_dir" >&6; }
13813 else
13814 # Canadian cross, just use what we found
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13816$as_echo "pre-installed" >&6; }
13817 fi
13818else
13819 ok=yes
13820 case " ${configdirs} " in
13821 *" gas "*) ;;
13822 *) ok=no ;;
13823 esac
13824
13825 if test $ok = yes; then
13826 # An in-tree tool is available and we can use it
13827 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13829$as_echo "just compiled" >&6; }
13830 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13831 # We already found the complete path
13832 ac_dir=`dirname $AS_FOR_TARGET`
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13834$as_echo "pre-installed in $ac_dir" >&6; }
13835 elif test "x$target" = "x$host"; then
13836 # We can use an host tool
13837 AS_FOR_TARGET='$(AS)'
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13839$as_echo "host tool" >&6; }
13840 else
13841 # We need a cross tool
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13843$as_echo "pre-installed" >&6; }
13844 fi
13845fi
13846
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13848$as_echo_n "checking where to find the target cc... " >&6; }
13849if test "x${build}" != "x${host}" ; then
13850 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13851 # We already found the complete path
13852 ac_dir=`dirname $CC_FOR_TARGET`
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13854$as_echo "pre-installed in $ac_dir" >&6; }
13855 else
13856 # Canadian cross, just use what we found
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13858$as_echo "pre-installed" >&6; }
13859 fi
13860else
13861 ok=yes
13862 case " ${configdirs} " in
13863 *" gcc "*) ;;
13864 *) ok=no ;;
13865 esac
13866
13867 if test $ok = yes; then
13868 # An in-tree tool is available and we can use it
13869 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13871$as_echo "just compiled" >&6; }
13872 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $CC_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876$as_echo "pre-installed in $ac_dir" >&6; }
13877 elif test "x$target" = "x$host"; then
13878 # We can use an host tool
13879 CC_FOR_TARGET='$(CC)'
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881$as_echo "host tool" >&6; }
13882 else
13883 # We need a cross tool
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885$as_echo "pre-installed" >&6; }
13886 fi
13887fi
13888
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13890$as_echo_n "checking where to find the target c++... " >&6; }
13891if test "x${build}" != "x${host}" ; then
13892 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $CXX_FOR_TARGET`
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896$as_echo "pre-installed in $ac_dir" >&6; }
13897 else
13898 # Canadian cross, just use what we found
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900$as_echo "pre-installed" >&6; }
13901 fi
13902else
13903 ok=yes
13904 case " ${configdirs} " in
13905 *" gcc "*) ;;
13906 *) ok=no ;;
13907 esac
13908 case ,${enable_languages}, in
13909 *,c++,*) ;;
13910 *) ok=no ;;
13911 esac
13912 if test $ok = yes; then
13913 # An in-tree tool is available and we can use it
13914 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'
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13916$as_echo "just compiled" >&6; }
13917 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
13919 ac_dir=`dirname $CXX_FOR_TARGET`
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921$as_echo "pre-installed in $ac_dir" >&6; }
13922 elif test "x$target" = "x$host"; then
13923 # We can use an host tool
13924 CXX_FOR_TARGET='$(CXX)'
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13926$as_echo "host tool" >&6; }
13927 else
13928 # We need a cross tool
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930$as_echo "pre-installed" >&6; }
13931 fi
13932fi
13933
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13935$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13936if test "x${build}" != "x${host}" ; then
13937 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
13939 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941$as_echo "pre-installed in $ac_dir" >&6; }
13942 else
13943 # Canadian cross, just use what we found
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
13946 fi
13947else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" gcc "*) ;;
13951 *) ok=no ;;
13952 esac
13953 case ,${enable_languages}, in
13954 *,c++,*) ;;
13955 *) ok=no ;;
13956 esac
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
13959 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'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961$as_echo "just compiled" >&6; }
13962 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 RAW_CXX_FOR_TARGET='$(CXX)'
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971$as_echo "host tool" >&6; }
13972 else
13973 # We need a cross tool
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975$as_echo "pre-installed" >&6; }
13976 fi
13977fi
13978
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13980$as_echo_n "checking where to find the target dlltool... " >&6; }
13981if test "x${build}" != "x${host}" ; then
13982 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986$as_echo "pre-installed in $ac_dir" >&6; }
13987 else
13988 # Canadian cross, just use what we found
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990$as_echo "pre-installed" >&6; }
13991 fi
13992else
13993 ok=yes
13994 case " ${configdirs} " in
13995 *" binutils "*) ;;
13996 *) ok=no ;;
13997 esac
13998
13999 if test $ok = yes; then
14000 # An in-tree tool is available and we can use it
14001 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14003$as_echo "just compiled" >&6; }
14004 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14005 # We already found the complete path
14006 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008$as_echo "pre-installed in $ac_dir" >&6; }
14009 elif test "x$target" = "x$host"; then
14010 # We can use an host tool
14011 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14013$as_echo "host tool" >&6; }
14014 else
14015 # We need a cross tool
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017$as_echo "pre-installed" >&6; }
14018 fi
14019fi
14020
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14022$as_echo_n "checking where to find the target gcc... " >&6; }
14023if test "x${build}" != "x${host}" ; then
14024 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14025 # We already found the complete path
14026 ac_dir=`dirname $GCC_FOR_TARGET`
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14028$as_echo "pre-installed in $ac_dir" >&6; }
14029 else
14030 # Canadian cross, just use what we found
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14032$as_echo "pre-installed" >&6; }
14033 fi
14034else
14035 ok=yes
14036 case " ${configdirs} " in
14037 *" gcc "*) ;;
14038 *) ok=no ;;
14039 esac
14040
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045$as_echo "just compiled" >&6; }
14046 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GCC_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050$as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 GCC_FOR_TARGET='$()'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055$as_echo "host tool" >&6; }
14056 else
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059$as_echo "pre-installed" >&6; }
14060 fi
14061fi
14062
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14064$as_echo_n "checking where to find the target gfortran... " >&6; }
14065if test "x${build}" != "x${host}" ; then
14066 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070$as_echo "pre-installed in $ac_dir" >&6; }
14071 else
14072 # Canadian cross, just use what we found
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074$as_echo "pre-installed" >&6; }
14075 fi
14076else
14077 ok=yes
14078 case " ${configdirs} " in
14079 *" gcc "*) ;;
14080 *) ok=no ;;
14081 esac
14082 case ,${enable_languages}, in
14083 *,fortran,*) ;;
14084 *) ok=no ;;
14085 esac
14086 if test $ok = yes; then
14087 # An in-tree tool is available and we can use it
14088 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14090$as_echo "just compiled" >&6; }
14091 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
14093 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095$as_echo "pre-installed in $ac_dir" >&6; }
14096 elif test "x$target" = "x$host"; then
14097 # We can use an host tool
14098 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14100$as_echo "host tool" >&6; }
14101 else
14102 # We need a cross tool
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104$as_echo "pre-installed" >&6; }
14105 fi
14106fi
14107
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14109$as_echo_n "checking where to find the target gccgo... " >&6; }
14110if test "x${build}" != "x${host}" ; then
14111 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14112 # We already found the complete path
14113 ac_dir=`dirname $GOC_FOR_TARGET`
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14115$as_echo "pre-installed in $ac_dir" >&6; }
14116 else
14117 # Canadian cross, just use what we found
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14119$as_echo "pre-installed" >&6; }
14120 fi
14121else
14122 ok=yes
14123 case " ${configdirs} " in
14124 *" gcc "*) ;;
14125 *) ok=no ;;
14126 esac
14127 case ,${enable_languages}, in
14128 *,go,*) ;;
14129 *) ok=no ;;
14130 esac
14131 if test $ok = yes; then
14132 # An in-tree tool is available and we can use it
14133 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14135$as_echo "just compiled" >&6; }
14136 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $GOC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140$as_echo "pre-installed in $ac_dir" >&6; }
14141 elif test "x$target" = "x$host"; then
14142 # We can use an host tool
14143 GOC_FOR_TARGET='$(GOC)'
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14145$as_echo "host tool" >&6; }
14146 else
14147 # We need a cross tool
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149$as_echo "pre-installed" >&6; }
14150 fi
14151fi
14152
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14154$as_echo_n "checking where to find the target ld... " >&6; }
14155if test "x${build}" != "x${host}" ; then
14156 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14157 # We already found the complete path
14158 ac_dir=`dirname $LD_FOR_TARGET`
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160$as_echo "pre-installed in $ac_dir" >&6; }
14161 else
14162 # Canadian cross, just use what we found
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164$as_echo "pre-installed" >&6; }
14165 fi
14166else
14167 ok=yes
14168 case " ${configdirs} " in
14169 *" ld "*) ;;
14170 *) ok=no ;;
14171 esac
14172
14173 if test $ok = yes; then
14174 # An in-tree tool is available and we can use it
14175 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14177$as_echo "just compiled" >&6; }
14178 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14179 # We already found the complete path
14180 ac_dir=`dirname $LD_FOR_TARGET`
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14182$as_echo "pre-installed in $ac_dir" >&6; }
14183 elif test "x$target" = "x$host"; then
14184 # We can use an host tool
14185 LD_FOR_TARGET='$(LD)'
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14187$as_echo "host tool" >&6; }
14188 else
14189 # We need a cross tool
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14191$as_echo "pre-installed" >&6; }
14192 fi
14193fi
14194
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14196$as_echo_n "checking where to find the target lipo... " >&6; }
14197if test "x${build}" != "x${host}" ; then
14198 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14199 # We already found the complete path
14200 ac_dir=`dirname $LIPO_FOR_TARGET`
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14202$as_echo "pre-installed in $ac_dir" >&6; }
14203 else
14204 # Canadian cross, just use what we found
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14206$as_echo "pre-installed" >&6; }
14207 fi
14208else
14209 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14210 # We already found the complete path
14211 ac_dir=`dirname $LIPO_FOR_TARGET`
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14213$as_echo "pre-installed in $ac_dir" >&6; }
14214 elif test "x$target" = "x$host"; then
14215 # We can use an host tool
14216 LIPO_FOR_TARGET='$(LIPO)'
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14218$as_echo "host tool" >&6; }
14219 else
14220 # We need a cross tool
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14222$as_echo "pre-installed" >&6; }
14223 fi
14224fi
14225
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14227$as_echo_n "checking where to find the target nm... " >&6; }
14228if test "x${build}" != "x${host}" ; then
14229 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14230 # We already found the complete path
14231 ac_dir=`dirname $NM_FOR_TARGET`
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233$as_echo "pre-installed in $ac_dir" >&6; }
14234 else
14235 # Canadian cross, just use what we found
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237$as_echo "pre-installed" >&6; }
14238 fi
14239else
14240 ok=yes
14241 case " ${configdirs} " in
14242 *" binutils "*) ;;
14243 *) ok=no ;;
14244 esac
14245
14246 if test $ok = yes; then
14247 # An in-tree tool is available and we can use it
14248 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14250$as_echo "just compiled" >&6; }
14251 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14252 # We already found the complete path
14253 ac_dir=`dirname $NM_FOR_TARGET`
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14255$as_echo "pre-installed in $ac_dir" >&6; }
14256 elif test "x$target" = "x$host"; then
14257 # We can use an host tool
14258 NM_FOR_TARGET='$(NM)'
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14260$as_echo "host tool" >&6; }
14261 else
14262 # We need a cross tool
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14264$as_echo "pre-installed" >&6; }
14265 fi
14266fi
14267
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14269$as_echo_n "checking where to find the target objcopy... " >&6; }
14270if test "x${build}" != "x${host}" ; then
14271 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
14273 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275$as_echo "pre-installed in $ac_dir" >&6; }
14276 else
14277 # Canadian cross, just use what we found
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14279$as_echo "pre-installed" >&6; }
14280 fi
14281else
14282 ok=yes
14283 case " ${configdirs} " in
14284 *" binutils "*) ;;
14285 *) ok=no ;;
14286 esac
14287
14288 if test $ok = yes; then
14289 # An in-tree tool is available and we can use it
14290 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14292$as_echo "just compiled" >&6; }
14293 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14294 # We already found the complete path
14295 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14297$as_echo "pre-installed in $ac_dir" >&6; }
14298 elif test "x$target" = "x$host"; then
14299 # We can use an host tool
14300 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14302$as_echo "host tool" >&6; }
14303 else
14304 # We need a cross tool
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14306$as_echo "pre-installed" >&6; }
14307 fi
14308fi
14309
14310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14311$as_echo_n "checking where to find the target objdump... " >&6; }
14312if test "x${build}" != "x${host}" ; then
14313 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
14315 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317$as_echo "pre-installed in $ac_dir" >&6; }
14318 else
14319 # Canadian cross, just use what we found
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321$as_echo "pre-installed" >&6; }
14322 fi
14323else
14324 ok=yes
14325 case " ${configdirs} " in
14326 *" binutils "*) ;;
14327 *) ok=no ;;
14328 esac
14329
14330 if test $ok = yes; then
14331 # An in-tree tool is available and we can use it
14332 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14334$as_echo "just compiled" >&6; }
14335 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14336 # We already found the complete path
14337 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14339$as_echo "pre-installed in $ac_dir" >&6; }
14340 elif test "x$target" = "x$host"; then
14341 # We can use an host tool
14342 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14344$as_echo "host tool" >&6; }
14345 else
14346 # We need a cross tool
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14348$as_echo "pre-installed" >&6; }
14349 fi
14350fi
14351
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14353$as_echo_n "checking where to find the target ranlib... " >&6; }
14354if test "x${build}" != "x${host}" ; then
14355 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14356 # We already found the complete path
14357 ac_dir=`dirname $RANLIB_FOR_TARGET`
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14359$as_echo "pre-installed in $ac_dir" >&6; }
14360 else
14361 # Canadian cross, just use what we found
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363$as_echo "pre-installed" >&6; }
14364 fi
14365else
14366 ok=yes
14367 case " ${configdirs} " in
14368 *" binutils "*) ;;
14369 *) ok=no ;;
14370 esac
14371
14372 if test $ok = yes; then
14373 # An in-tree tool is available and we can use it
14374 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14376$as_echo "just compiled" >&6; }
14377 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14378 # We already found the complete path
14379 ac_dir=`dirname $RANLIB_FOR_TARGET`
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14381$as_echo "pre-installed in $ac_dir" >&6; }
14382 elif test "x$target" = "x$host"; then
14383 # We can use an host tool
14384 RANLIB_FOR_TARGET='$(RANLIB)'
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14386$as_echo "host tool" >&6; }
14387 else
14388 # We need a cross tool
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14390$as_echo "pre-installed" >&6; }
14391 fi
14392fi
14393
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14395$as_echo_n "checking where to find the target readelf... " >&6; }
14396if test "x${build}" != "x${host}" ; then
14397 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14398 # We already found the complete path
14399 ac_dir=`dirname $READELF_FOR_TARGET`
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14401$as_echo "pre-installed in $ac_dir" >&6; }
14402 else
14403 # Canadian cross, just use what we found
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14405$as_echo "pre-installed" >&6; }
14406 fi
14407else
14408 ok=yes
14409 case " ${configdirs} " in
14410 *" binutils "*) ;;
14411 *) ok=no ;;
14412 esac
14413
14414 if test $ok = yes; then
14415 # An in-tree tool is available and we can use it
14416 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14418$as_echo "just compiled" >&6; }
14419 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14420 # We already found the complete path
14421 ac_dir=`dirname $READELF_FOR_TARGET`
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14423$as_echo "pre-installed in $ac_dir" >&6; }
14424 elif test "x$target" = "x$host"; then
14425 # We can use an host tool
14426 READELF_FOR_TARGET='$(READELF)'
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14428$as_echo "host tool" >&6; }
14429 else
14430 # We need a cross tool
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14432$as_echo "pre-installed" >&6; }
14433 fi
14434fi
14435
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14437$as_echo_n "checking where to find the target strip... " >&6; }
14438if test "x${build}" != "x${host}" ; then
14439 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14440 # We already found the complete path
14441 ac_dir=`dirname $STRIP_FOR_TARGET`
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14443$as_echo "pre-installed in $ac_dir" >&6; }
14444 else
14445 # Canadian cross, just use what we found
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14447$as_echo "pre-installed" >&6; }
14448 fi
14449else
14450 ok=yes
14451 case " ${configdirs} " in
14452 *" binutils "*) ;;
14453 *) ok=no ;;
14454 esac
14455
14456 if test $ok = yes; then
14457 # An in-tree tool is available and we can use it
14458 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14460$as_echo "just compiled" >&6; }
14461 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14462 # We already found the complete path
14463 ac_dir=`dirname $STRIP_FOR_TARGET`
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14465$as_echo "pre-installed in $ac_dir" >&6; }
14466 elif test "x$target" = "x$host"; then
14467 # We can use an host tool
14468 STRIP_FOR_TARGET='$(STRIP)'
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14470$as_echo "host tool" >&6; }
14471 else
14472 # We need a cross tool
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14474$as_echo "pre-installed" >&6; }
14475 fi
14476fi
14477
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14479$as_echo_n "checking where to find the target windres... " >&6; }
14480if test "x${build}" != "x${host}" ; then
14481 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14482 # We already found the complete path
14483 ac_dir=`dirname $WINDRES_FOR_TARGET`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14485$as_echo "pre-installed in $ac_dir" >&6; }
14486 else
14487 # Canadian cross, just use what we found
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14489$as_echo "pre-installed" >&6; }
14490 fi
14491else
14492 ok=yes
14493 case " ${configdirs} " in
14494 *" binutils "*) ;;
14495 *) ok=no ;;
14496 esac
14497
14498 if test $ok = yes; then
14499 # An in-tree tool is available and we can use it
14500 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14502$as_echo "just compiled" >&6; }
14503 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14504 # We already found the complete path
14505 ac_dir=`dirname $WINDRES_FOR_TARGET`
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14507$as_echo "pre-installed in $ac_dir" >&6; }
14508 elif test "x$target" = "x$host"; then
14509 # We can use an host tool
14510 WINDRES_FOR_TARGET='$(WINDRES)'
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14512$as_echo "host tool" >&6; }
14513 else
14514 # We need a cross tool
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14516$as_echo "pre-installed" >&6; }
14517 fi
14518fi
14519
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14521$as_echo_n "checking where to find the target windmc... " >&6; }
14522if test "x${build}" != "x${host}" ; then
14523 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14524 # We already found the complete path
14525 ac_dir=`dirname $WINDMC_FOR_TARGET`
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14527$as_echo "pre-installed in $ac_dir" >&6; }
14528 else
14529 # Canadian cross, just use what we found
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14531$as_echo "pre-installed" >&6; }
14532 fi
14533else
14534 ok=yes
14535 case " ${configdirs} " in
14536 *" binutils "*) ;;
14537 *) ok=no ;;
14538 esac
14539
14540 if test $ok = yes; then
14541 # An in-tree tool is available and we can use it
14542 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14544$as_echo "just compiled" >&6; }
14545 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14546 # We already found the complete path
14547 ac_dir=`dirname $WINDMC_FOR_TARGET`
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14549$as_echo "pre-installed in $ac_dir" >&6; }
14550 elif test "x$target" = "x$host"; then
14551 # We can use an host tool
14552 WINDMC_FOR_TARGET='$(WINDMC)'
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14554$as_echo "host tool" >&6; }
14555 else
14556 # We need a cross tool
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14558$as_echo "pre-installed" >&6; }
14559 fi
14560fi
14561
14562
14563
14564
14565
14566# Certain tools may need extra flags.
14567AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14568RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14569NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14570
14571# When building target libraries, except in a Canadian cross, we use
14572# the same toolchain as the compiler we just built.
14573COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14574COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14575COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14576if test $host = $build; then
14577 case " $configdirs " in
14578 *" gcc "*)
14579 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14580 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14581 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14582 ;;
14583 esac
14584fi
14585
14586
14587
14588
14589
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14591$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14592# Check whether --enable-maintainer-mode was given.
14593if test "${enable_maintainer_mode+set}" = set; then :
14594 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14595else
14596 USE_MAINTAINER_MODE=no
14597fi
14598
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14600$as_echo "$USE_MAINTAINER_MODE" >&6; }
14601
14602
14603if test "$USE_MAINTAINER_MODE" = yes; then
14604 MAINTAINER_MODE_TRUE=
14605 MAINTAINER_MODE_FALSE='#'
14606else
14607 MAINTAINER_MODE_TRUE='#'
14608 MAINTAINER_MODE_FALSE=
14609fi
14610MAINT=$MAINTAINER_MODE_TRUE
14611
14612# ---------------------
14613# GCC bootstrap support
14614# ---------------------
14615
14616# Stage specific cflags for build.
14617stage1_cflags="-g"
14618case $build in
14619 vax-*-*)
14620 case ${GCC} in
14621 yes) stage1_cflags="-g -Wa,-J" ;;
14622 *) stage1_cflags="-g -J" ;;
14623 esac ;;
14624esac
14625
14626
14627
14628# Enable --enable-checking in stage1 of the compiler.
14629# Check whether --enable-stage1-checking was given.
14630if test "${enable_stage1_checking+set}" = set; then :
14631 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14632else
14633 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14634 # For --disable-checking or implicit --enable-checking=release, avoid
14635 # setting --enable-checking=gc in the default stage1 checking for LTO
14636 # bootstraps. See PR62077.
14637 case $BUILD_CONFIG in
14638 *lto*)
14639 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14640 *)
14641 stage1_checking=--enable-checking=yes,types;;
14642 esac
14643 if test "x$enable_checking" = x && \
14644 test -d ${srcdir}/gcc && \
14645 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14646 stage1_checking=--enable-checking=yes,types,extra
14647 fi
14648else
14649 stage1_checking=--enable-checking=$enable_checking,types
14650fi
14651fi
14652
14653
14654
14655# Enable -Werror in bootstrap stage2 and later.
14656# Check whether --enable-werror was given.
14657if test "${enable_werror+set}" = set; then :
14658 enableval=$enable_werror;
14659case ${enable_werror} in
14660 yes) stage2_werror_flag="--enable-werror-always" ;;
14661 *) stage2_werror_flag="" ;;
14662esac
14663
14664else
14665
14666if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14667 case $BUILD_CONFIG in
14668 bootstrap-debug)
14669 stage2_werror_flag="--enable-werror-always" ;;
14670 "")
14671 stage2_werror_flag="--enable-werror-always" ;;
14672 esac
14673fi
14674
14675fi
14676
14677
14678
14679
14680# Specify what files to not compare during bootstrap.
14681
14682compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14683case "$target" in
14684 hppa*64*-*-hpux*) ;;
14685 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14686 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14687esac
14688
14689
14690ac_config_files="$ac_config_files Makefile"
14691
14692cat >confcache <<\_ACEOF
14693# This file is a shell script that caches the results of configure
14694# tests run on this system so they can be shared between configure
14695# scripts and configure runs, see configure's option --config-cache.
14696# It is not useful on other systems. If it contains results you don't
14697# want to keep, you may remove or edit it.
14698#
14699# config.status only pays attention to the cache file if you give it
14700# the --recheck option to rerun configure.
14701#
14702# `ac_cv_env_foo' variables (set or unset) will be overridden when
14703# loading this file, other *unset* `ac_cv_foo' will be assigned the
14704# following values.
14705
14706_ACEOF
14707
14708# The following way of writing the cache mishandles newlines in values,
14709# but we know of no workaround that is simple, portable, and efficient.
14710# So, we kill variables containing newlines.
14711# Ultrix sh set writes to stderr and can't be redirected directly,
14712# and sets the high bit in the cache file unless we assign to the vars.
14713(
14714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14715 eval ac_val=\$$ac_var
14716 case $ac_val in #(
14717 *${as_nl}*)
14718 case $ac_var in #(
14719 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14720$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14721 esac
14722 case $ac_var in #(
14723 _ | IFS | as_nl) ;; #(
14724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14725 *) { eval $ac_var=; unset $ac_var;} ;;
14726 esac ;;
14727 esac
14728 done
14729
14730 (set) 2>&1 |
14731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14732 *${as_nl}ac_space=\ *)
14733 # `set' does not quote correctly, so add quotes: double-quote
14734 # substitution turns \\\\ into \\, and sed turns \\ into \.
14735 sed -n \
14736 "s/'/'\\\\''/g;
14737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14738 ;; #(
14739 *)
14740 # `set' quotes correctly as required by POSIX, so do not add quotes.
14741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14742 ;;
14743 esac |
14744 sort
14745) |
14746 sed '
14747 /^ac_cv_env_/b end
14748 t clear
14749 :clear
14750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14751 t end
14752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14753 :end' >>confcache
14754if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14755 if test -w "$cache_file"; then
14756 if test "x$cache_file" != "x/dev/null"; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14758$as_echo "$as_me: updating cache $cache_file" >&6;}
14759 if test ! -f "$cache_file" || test -h "$cache_file"; then
14760 cat confcache >"$cache_file"
14761 else
14762 case $cache_file in #(
14763 */* | ?:*)
14764 mv -f confcache "$cache_file"$$ &&
14765 mv -f "$cache_file"$$ "$cache_file" ;; #(
14766 *)
14767 mv -f confcache "$cache_file" ;;
14768 esac
14769 fi
14770 fi
14771 else
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14773$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14774 fi
14775fi
14776rm -f confcache
14777
14778test "x$prefix" = xNONE && prefix=$ac_default_prefix
14779# Let make expand exec_prefix.
14780test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14781
14782# Transform confdefs.h into DEFS.
14783# Protect against shell expansion while executing Makefile rules.
14784# Protect against Makefile macro expansion.
14785#
14786# If the first sed substitution is executed (which looks for macros that
14787# take arguments), then branch to the quote section. Otherwise,
14788# look for a macro that doesn't take arguments.
14789ac_script='
14790:mline
14791/\\$/{
14792 N
14793 s,\\\n,,
14794 b mline
14795}
14796t clear
14797:clear
14798s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14799t quote
14800s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14801t quote
14802b any
14803:quote
14804s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14805s/\[/\\&/g
14806s/\]/\\&/g
14807s/\$/$$/g
14808H
14809:any
14810${
14811 g
14812 s/^\n//
14813 s/\n/ /g
14814 p
14815}
14816'
14817DEFS=`sed -n "$ac_script" confdefs.h`
14818
14819
14820ac_libobjs=
14821ac_ltlibobjs=
14822U=
14823for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14824 # 1. Remove the extension, and $U if already installed.
14825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14826 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14828 # will be set to the directory where LIBOBJS objects are built.
14829 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14830 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14831done
14832LIBOBJS=$ac_libobjs
14833
14834LTLIBOBJS=$ac_ltlibobjs
14835
14836
14837
14838: "${CONFIG_STATUS=./config.status}"
14839ac_write_fail=0
14840ac_clean_files_save=$ac_clean_files
14841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14843$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14844as_write_fail=0
14845cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14846#! $SHELL
14847# Generated by $as_me.
14848# Run this file to recreate the current configuration.
14849# Compiler output produced by configure, useful for debugging
14850# configure, is in config.log if it exists.
14851
14852debug=false
14853ac_cs_recheck=false
14854ac_cs_silent=false
14855
14856SHELL=\${CONFIG_SHELL-$SHELL}
14857export SHELL
14858_ASEOF
14859cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14860## -------------------- ##
14861## M4sh Initialization. ##
14862## -------------------- ##
14863
14864# Be more Bourne compatible
14865DUALCASE=1; export DUALCASE # for MKS sh
14866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14867 emulate sh
14868 NULLCMD=:
14869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14870 # is contrary to our usage. Disable this feature.
14871 alias -g '${1+"$@"}'='"$@"'
14872 setopt NO_GLOB_SUBST
14873else
14874 case `(set -o) 2>/dev/null` in #(
14875 *posix*) :
14876 set -o posix ;; #(
14877 *) :
14878 ;;
14879esac
14880fi
14881
14882
14883as_nl='
14884'
14885export as_nl
14886# Printing a long string crashes Solaris 7 /usr/bin/printf.
14887as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14888as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14890# Prefer a ksh shell builtin over an external printf program on Solaris,
14891# but without wasting forks for bash or zsh.
14892if test -z "$BASH_VERSION$ZSH_VERSION" \
14893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14894 as_echo='print -r --'
14895 as_echo_n='print -rn --'
14896elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14897 as_echo='printf %s\n'
14898 as_echo_n='printf %s'
14899else
14900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14902 as_echo_n='/usr/ucb/echo -n'
14903 else
14904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14905 as_echo_n_body='eval
14906 arg=$1;
14907 case $arg in #(
14908 *"$as_nl"*)
14909 expr "X$arg" : "X\\(.*\\)$as_nl";
14910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14911 esac;
14912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14913 '
14914 export as_echo_n_body
14915 as_echo_n='sh -c $as_echo_n_body as_echo'
14916 fi
14917 export as_echo_body
14918 as_echo='sh -c $as_echo_body as_echo'
14919fi
14920
14921# The user is always right.
14922if test "${PATH_SEPARATOR+set}" != set; then
14923 PATH_SEPARATOR=:
14924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14926 PATH_SEPARATOR=';'
14927 }
14928fi
14929
14930
14931# IFS
14932# We need space, tab and new line, in precisely that order. Quoting is
14933# there to prevent editors from complaining about space-tab.
14934# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14935# splitting by setting IFS to empty value.)
14936IFS=" "" $as_nl"
14937
14938# Find who we are. Look in the path if we contain no directory separator.
14939as_myself=
14940case $0 in #((
14941 *[\\/]* ) as_myself=$0 ;;
14942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943for as_dir in $PATH
14944do
14945 IFS=$as_save_IFS
14946 test -z "$as_dir" && as_dir=.
14947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14948 done
14949IFS=$as_save_IFS
14950
14951 ;;
14952esac
14953# We did not find ourselves, most probably we were run as `sh COMMAND'
14954# in which case we are not to be found in the path.
14955if test "x$as_myself" = x; then
14956 as_myself=$0
14957fi
14958if test ! -f "$as_myself"; then
14959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14960 exit 1
14961fi
14962
14963# Unset variables that we do not need and which cause bugs (e.g. in
14964# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14965# suppresses any "Segmentation fault" message there. '((' could
14966# trigger a bug in pdksh 5.2.14.
14967for as_var in BASH_ENV ENV MAIL MAILPATH
14968do eval test x\${$as_var+set} = xset \
14969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14970done
14971PS1='$ '
14972PS2='> '
14973PS4='+ '
14974
14975# NLS nuisances.
14976LC_ALL=C
14977export LC_ALL
14978LANGUAGE=C
14979export LANGUAGE
14980
14981# CDPATH.
14982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14983
14984
14985# as_fn_error STATUS ERROR [LINENO LOG_FD]
14986# ----------------------------------------
14987# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14988# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14989# script with STATUS, using 1 if that was 0.
14990as_fn_error ()
14991{
14992 as_status=$1; test $as_status -eq 0 && as_status=1
14993 if test "$4"; then
14994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14996 fi
14997 $as_echo "$as_me: error: $2" >&2
14998 as_fn_exit $as_status
14999} # as_fn_error
15000
15001
15002# as_fn_set_status STATUS
15003# -----------------------
15004# Set $? to STATUS, without forking.
15005as_fn_set_status ()
15006{
15007 return $1
15008} # as_fn_set_status
15009
15010# as_fn_exit STATUS
15011# -----------------
15012# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15013as_fn_exit ()
15014{
15015 set +e
15016 as_fn_set_status $1
15017 exit $1
15018} # as_fn_exit
15019
15020# as_fn_unset VAR
15021# ---------------
15022# Portably unset VAR.
15023as_fn_unset ()
15024{
15025 { eval $1=; unset $1;}
15026}
15027as_unset=as_fn_unset
15028# as_fn_append VAR VALUE
15029# ----------------------
15030# Append the text in VALUE to the end of the definition contained in VAR. Take
15031# advantage of any shell optimizations that allow amortized linear growth over
15032# repeated appends, instead of the typical quadratic growth present in naive
15033# implementations.
15034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15035 eval 'as_fn_append ()
15036 {
15037 eval $1+=\$2
15038 }'
15039else
15040 as_fn_append ()
15041 {
15042 eval $1=\$$1\$2
15043 }
15044fi # as_fn_append
15045
15046# as_fn_arith ARG...
15047# ------------------
15048# Perform arithmetic evaluation on the ARGs, and store the result in the
15049# global $as_val. Take advantage of shells that can avoid forks. The arguments
15050# must be portable across $(()) and expr.
15051if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15052 eval 'as_fn_arith ()
15053 {
15054 as_val=$(( $* ))
15055 }'
15056else
15057 as_fn_arith ()
15058 {
15059 as_val=`expr "$@" || test $? -eq 1`
15060 }
15061fi # as_fn_arith
15062
15063
15064if expr a : '\(a\)' >/dev/null 2>&1 &&
15065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15066 as_expr=expr
15067else
15068 as_expr=false
15069fi
15070
15071if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15072 as_basename=basename
15073else
15074 as_basename=false
15075fi
15076
15077if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15078 as_dirname=dirname
15079else
15080 as_dirname=false
15081fi
15082
15083as_me=`$as_basename -- "$0" ||
15084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15085 X"$0" : 'X\(//\)$' \| \
15086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15087$as_echo X/"$0" |
15088 sed '/^.*\/\([^/][^/]*\)\/*$/{
15089 s//\1/
15090 q
15091 }
15092 /^X\/\(\/\/\)$/{
15093 s//\1/
15094 q
15095 }
15096 /^X\/\(\/\).*/{
15097 s//\1/
15098 q
15099 }
15100 s/.*/./; q'`
15101
15102# Avoid depending upon Character Ranges.
15103as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15104as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15105as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15106as_cr_digits='0123456789'
15107as_cr_alnum=$as_cr_Letters$as_cr_digits
15108
15109ECHO_C= ECHO_N= ECHO_T=
15110case `echo -n x` in #(((((
15111-n*)
15112 case `echo 'xy\c'` in
15113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15114 xy) ECHO_C='\c';;
15115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15116 ECHO_T=' ';;
15117 esac;;
15118*)
15119 ECHO_N='-n';;
15120esac
15121
15122rm -f conf$$ conf$$.exe conf$$.file
15123if test -d conf$$.dir; then
15124 rm -f conf$$.dir/conf$$.file
15125else
15126 rm -f conf$$.dir
15127 mkdir conf$$.dir 2>/dev/null
15128fi
15129if (echo >conf$$.file) 2>/dev/null; then
15130 if ln -s conf$$.file conf$$ 2>/dev/null; then
15131 as_ln_s='ln -s'
15132 # ... but there are two gotchas:
15133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15135 # In both cases, we have to default to `cp -pR'.
15136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15137 as_ln_s='cp -pR'
15138 elif ln conf$$.file conf$$ 2>/dev/null; then
15139 as_ln_s=ln
15140 else
15141 as_ln_s='cp -pR'
15142 fi
15143else
15144 as_ln_s='cp -pR'
15145fi
15146rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15147rmdir conf$$.dir 2>/dev/null
15148
15149
15150# as_fn_mkdir_p
15151# -------------
15152# Create "$as_dir" as a directory, including parents if necessary.
15153as_fn_mkdir_p ()
15154{
15155
15156 case $as_dir in #(
15157 -*) as_dir=./$as_dir;;
15158 esac
15159 test -d "$as_dir" || eval $as_mkdir_p || {
15160 as_dirs=
15161 while :; do
15162 case $as_dir in #(
15163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15164 *) as_qdir=$as_dir;;
15165 esac
15166 as_dirs="'$as_qdir' $as_dirs"
15167 as_dir=`$as_dirname -- "$as_dir" ||
15168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15169 X"$as_dir" : 'X\(//\)[^/]' \| \
15170 X"$as_dir" : 'X\(//\)$' \| \
15171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15172$as_echo X"$as_dir" |
15173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15174 s//\1/
15175 q
15176 }
15177 /^X\(\/\/\)[^/].*/{
15178 s//\1/
15179 q
15180 }
15181 /^X\(\/\/\)$/{
15182 s//\1/
15183 q
15184 }
15185 /^X\(\/\).*/{
15186 s//\1/
15187 q
15188 }
15189 s/.*/./; q'`
15190 test -d "$as_dir" && break
15191 done
15192 test -z "$as_dirs" || eval "mkdir $as_dirs"
15193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15194
15195
15196} # as_fn_mkdir_p
15197if mkdir -p . 2>/dev/null; then
15198 as_mkdir_p='mkdir -p "$as_dir"'
15199else
15200 test -d ./-p && rmdir ./-p
15201 as_mkdir_p=false
15202fi
15203
15204
15205# as_fn_executable_p FILE
15206# -----------------------
15207# Test if FILE is an executable regular file.
15208as_fn_executable_p ()
15209{
15210 test -f "$1" && test -x "$1"
15211} # as_fn_executable_p
15212as_test_x='test -x'
15213as_executable_p=as_fn_executable_p
15214
15215# Sed expression to map a string onto a valid CPP name.
15216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15217
15218# Sed expression to map a string onto a valid variable name.
15219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15220
15221
15222exec 6>&1
15223## ----------------------------------- ##
15224## Main body of $CONFIG_STATUS script. ##
15225## ----------------------------------- ##
15226_ASEOF
15227test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15228
15229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15230# Save the log message, to keep $0 and so on meaningful, and to
15231# report actual input values of CONFIG_FILES etc. instead of their
15232# values after options handling.
15233ac_log="
15234This file was extended by $as_me, which was
15235generated by GNU Autoconf 2.69. Invocation command line was
15236
15237 CONFIG_FILES = $CONFIG_FILES
15238 CONFIG_HEADERS = $CONFIG_HEADERS
15239 CONFIG_LINKS = $CONFIG_LINKS
15240 CONFIG_COMMANDS = $CONFIG_COMMANDS
15241 $ $0 $@
15242
15243on `(hostname || uname -n) 2>/dev/null | sed 1q`
15244"
15245
15246_ACEOF
15247
15248case $ac_config_files in *"
15249"*) set x $ac_config_files; shift; ac_config_files=$*;;
15250esac
15251
15252
15253
15254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15255# Files that config.status was made for.
15256config_files="$ac_config_files"
15257
15258_ACEOF
15259
15260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15261ac_cs_usage="\
15262\`$as_me' instantiates files and other configuration actions
15263from templates according to the current configuration. Unless the files
15264and actions are specified as TAGs, all are instantiated by default.
15265
15266Usage: $0 [OPTION]... [TAG]...
15267
15268 -h, --help print this help, then exit
15269 -V, --version print version number and configuration settings, then exit
15270 --config print configuration, then exit
15271 -q, --quiet, --silent
15272 do not print progress messages
15273 -d, --debug don't remove temporary files
15274 --recheck update $as_me by reconfiguring in the same conditions
15275 --file=FILE[:TEMPLATE]
15276 instantiate the configuration file FILE
15277
15278Configuration files:
15279$config_files
15280
15281Report bugs to the package provider."
15282
15283_ACEOF
15284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15286ac_cs_version="\\
15287config.status
15288configured by $0, generated by GNU Autoconf 2.69,
15289 with options \\"\$ac_cs_config\\"
15290
15291Copyright (C) 2012 Free Software Foundation, Inc.
15292This config.status script is free software; the Free Software Foundation
15293gives unlimited permission to copy, distribute and modify it."
15294
15295ac_pwd='$ac_pwd'
15296srcdir='$srcdir'
15297INSTALL='$INSTALL'
15298AWK='$AWK'
15299test -n "\$AWK" || AWK=awk
15300_ACEOF
15301
15302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303# The default lists apply if the user does not specify any file.
15304ac_need_defaults=:
15305while test $# != 0
15306do
15307 case $1 in
15308 --*=?*)
15309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15311 ac_shift=:
15312 ;;
15313 --*=)
15314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15315 ac_optarg=
15316 ac_shift=:
15317 ;;
15318 *)
15319 ac_option=$1
15320 ac_optarg=$2
15321 ac_shift=shift
15322 ;;
15323 esac
15324
15325 case $ac_option in
15326 # Handling of the options.
15327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15328 ac_cs_recheck=: ;;
15329 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15330 $as_echo "$ac_cs_version"; exit ;;
15331 --config | --confi | --conf | --con | --co | --c )
15332 $as_echo "$ac_cs_config"; exit ;;
15333 --debug | --debu | --deb | --de | --d | -d )
15334 debug=: ;;
15335 --file | --fil | --fi | --f )
15336 $ac_shift
15337 case $ac_optarg in
15338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15339 '') as_fn_error $? "missing file argument" ;;
15340 esac
15341 as_fn_append CONFIG_FILES " '$ac_optarg'"
15342 ac_need_defaults=false;;
15343 --he | --h | --help | --hel | -h )
15344 $as_echo "$ac_cs_usage"; exit ;;
15345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15347 ac_cs_silent=: ;;
15348
15349 # This is an error.
15350 -*) as_fn_error $? "unrecognized option: \`$1'
15351Try \`$0 --help' for more information." ;;
15352
15353 *) as_fn_append ac_config_targets " $1"
15354 ac_need_defaults=false ;;
15355
15356 esac
15357 shift
15358done
15359
15360ac_configure_extra_args=
15361
15362if $ac_cs_silent; then
15363 exec 6>/dev/null
15364 ac_configure_extra_args="$ac_configure_extra_args --silent"
15365fi
15366
15367_ACEOF
15368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369if \$ac_cs_recheck; then
15370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15371 shift
15372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15373 CONFIG_SHELL='$SHELL'
15374 export CONFIG_SHELL
15375 exec "\$@"
15376fi
15377
15378_ACEOF
15379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15380exec 5>>config.log
15381{
15382 echo
15383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15384## Running $as_me. ##
15385_ASBOX
15386 $as_echo "$ac_log"
15387} >&5
15388
15389_ACEOF
15390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391#
15392# INIT-COMMANDS
15393#
15394extrasub_build="$extrasub_build"
15395 extrasub_host="$extrasub_host"
15396 extrasub_target="$extrasub_target"
15397
15398_ACEOF
15399
15400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401
15402# Handling of arguments.
15403for ac_config_target in $ac_config_targets
15404do
15405 case $ac_config_target in
15406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15407
15408 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15409 esac
15410done
15411
15412
15413# If the user did not use the arguments to specify the items to instantiate,
15414# then the envvar interface is used. Set only those that are not.
15415# We use the long form for the default assignment because of an extremely
15416# bizarre bug on SunOS 4.1.3.
15417if $ac_need_defaults; then
15418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15419fi
15420
15421# Have a temporary directory for convenience. Make it in the build tree
15422# simply because there is no reason against having it here, and in addition,
15423# creating and moving files from /tmp can sometimes cause problems.
15424# Hook for its removal unless debugging.
15425# Note that there is a small window in which the directory will not be cleaned:
15426# after its creation but before its name has been assigned to `$tmp'.
15427$debug ||
15428{
15429 tmp= ac_tmp=
15430 trap 'exit_status=$?
15431 : "${ac_tmp:=$tmp}"
15432 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15433' 0
15434 trap 'as_fn_exit 1' 1 2 13 15
15435}
15436# Create a (secure) tmp directory for tmp files.
15437
15438{
15439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15440 test -d "$tmp"
15441} ||
15442{
15443 tmp=./conf$$-$RANDOM
15444 (umask 077 && mkdir "$tmp")
15445} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15446ac_tmp=$tmp
15447
15448# Set up the scripts for CONFIG_FILES section.
15449# No need to generate them if there are no CONFIG_FILES.
15450# This happens for instance with `./config.status config.h'.
15451if test -n "$CONFIG_FILES"; then
15452
15453if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15454 ac_cs_awk_getline=:
15455 ac_cs_awk_pipe_init=
15456 ac_cs_awk_read_file='
15457 while ((getline aline < (F[key])) > 0)
15458 print(aline)
15459 close(F[key])'
15460 ac_cs_awk_pipe_fini=
15461else
15462 ac_cs_awk_getline=false
15463 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15464 ac_cs_awk_read_file='
15465 print "|#_!!_#|"
15466 print "cat " F[key] " &&"
15467 '$ac_cs_awk_pipe_init
15468 # The final `:' finishes the AND list.
15469 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15470fi
15471ac_cr=`echo X | tr X '\015'`
15472# On cygwin, bash can eat \r inside `` if the user requested igncr.
15473# But we know of no other shell where ac_cr would be empty at this
15474# point, so we can use a bashism as a fallback.
15475if test "x$ac_cr" = x; then
15476 eval ac_cr=\$\'\\r\'
15477fi
15478ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15479if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15480 ac_cs_awk_cr='\\r'
15481else
15482 ac_cs_awk_cr=$ac_cr
15483fi
15484
15485echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15486_ACEOF
15487
15488# Create commands to substitute file output variables.
15489{
15490 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15491 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15492 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15493 echo "_ACAWK" &&
15494 echo "_ACEOF"
15495} >conf$$files.sh &&
15496. ./conf$$files.sh ||
15497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15498rm -f conf$$files.sh
15499
15500{
15501 echo "cat >conf$$subs.awk <<_ACEOF" &&
15502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15503 echo "_ACEOF"
15504} >conf$$subs.sh ||
15505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15506ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15507ac_delim='%!_!# '
15508for ac_last_try in false false false false false :; do
15509 . ./conf$$subs.sh ||
15510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15511
15512 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15513 if test $ac_delim_n = $ac_delim_num; then
15514 break
15515 elif $ac_last_try; then
15516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15517 else
15518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15519 fi
15520done
15521rm -f conf$$subs.sh
15522
15523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15525_ACEOF
15526sed -n '
15527h
15528s/^/S["/; s/!.*/"]=/
15529p
15530g
15531s/^[^!]*!//
15532:repl
15533t repl
15534s/'"$ac_delim"'$//
15535t delim
15536:nl
15537h
15538s/\(.\{148\}\)..*/\1/
15539t more1
15540s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15541p
15542n
15543b repl
15544:more1
15545s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15546p
15547g
15548s/.\{148\}//
15549t nl
15550:delim
15551h
15552s/\(.\{148\}\)..*/\1/
15553t more2
15554s/["\\]/\\&/g; s/^/"/; s/$/"/
15555p
15556b
15557:more2
15558s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15559p
15560g
15561s/.\{148\}//
15562t delim
15563' <conf$$subs.awk | sed '
15564/^[^""]/{
15565 N
15566 s/\n//
15567}
15568' >>$CONFIG_STATUS || ac_write_fail=1
15569rm -f conf$$subs.awk
15570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571_ACAWK
15572cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15573 for (key in S) S_is_set[key] = 1
15574 FS = "\a"
15575 \$ac_cs_awk_pipe_init
15576}
15577{
15578 line = $ 0
15579 nfields = split(line, field, "@")
15580 substed = 0
15581 len = length(field[1])
15582 for (i = 2; i < nfields; i++) {
15583 key = field[i]
15584 keylen = length(key)
15585 if (S_is_set[key]) {
15586 value = S[key]
15587 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15588 len += length(value) + length(field[++i])
15589 substed = 1
15590 } else
15591 len += 1 + keylen
15592 }
15593 if (nfields == 3 && !substed) {
15594 key = field[2]
15595 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15596 \$ac_cs_awk_read_file
15597 next
15598 }
15599 }
15600 print line
15601}
15602\$ac_cs_awk_pipe_fini
15603_ACAWK
15604_ACEOF
15605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15608else
15609 cat
15610fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15611 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15612_ACEOF
15613
15614# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15615# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15616# trailing colons and then remove the whole line if VPATH becomes empty
15617# (actually we leave an empty line to preserve line numbers).
15618if test "x$srcdir" = x.; then
15619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15620h
15621s///
15622s/^/:/
15623s/[ ]*$/:/
15624s/:\$(srcdir):/:/g
15625s/:\${srcdir}:/:/g
15626s/:@srcdir@:/:/g
15627s/^:*//
15628s/:*$//
15629x
15630s/\(=[ ]*\).*/\1/
15631G
15632s/\n//
15633s/^[^=]*=[ ]*$//
15634}'
15635fi
15636
15637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15638fi # test -n "$CONFIG_FILES"
15639
15640
15641eval set X " :F $CONFIG_FILES "
15642shift
15643for ac_tag
15644do
15645 case $ac_tag in
15646 :[FHLC]) ac_mode=$ac_tag; continue;;
15647 esac
15648 case $ac_mode$ac_tag in
15649 :[FHL]*:*);;
15650 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15651 :[FH]-) ac_tag=-:-;;
15652 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15653 esac
15654 ac_save_IFS=$IFS
15655 IFS=:
15656 set x $ac_tag
15657 IFS=$ac_save_IFS
15658 shift
15659 ac_file=$1
15660 shift
15661
15662 case $ac_mode in
15663 :L) ac_source=$1;;
15664 :[FH])
15665 ac_file_inputs=
15666 for ac_f
15667 do
15668 case $ac_f in
15669 -) ac_f="$ac_tmp/stdin";;
15670 *) # Look for the file first in the build tree, then in the source tree
15671 # (if the path is not absolute). The absolute path cannot be DOS-style,
15672 # because $ac_f cannot contain `:'.
15673 test -f "$ac_f" ||
15674 case $ac_f in
15675 [\\/$]*) false;;
15676 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15677 esac ||
15678 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15679 esac
15680 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15681 as_fn_append ac_file_inputs " '$ac_f'"
15682 done
15683
15684 # Let's still pretend it is `configure' which instantiates (i.e., don't
15685 # use $as_me), people would be surprised to read:
15686 # /* config.h. Generated by config.status. */
15687 configure_input='Generated from '`
15688 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15689 `' by configure.'
15690 if test x"$ac_file" != x-; then
15691 configure_input="$ac_file. $configure_input"
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15693$as_echo "$as_me: creating $ac_file" >&6;}
15694 fi
15695 # Neutralize special characters interpreted by sed in replacement strings.
15696 case $configure_input in #(
15697 *\&* | *\|* | *\\* )
15698 ac_sed_conf_input=`$as_echo "$configure_input" |
15699 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15700 *) ac_sed_conf_input=$configure_input;;
15701 esac
15702
15703 case $ac_tag in
15704 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15706 esac
15707 ;;
15708 esac
15709
15710 ac_dir=`$as_dirname -- "$ac_file" ||
15711$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15712 X"$ac_file" : 'X\(//\)[^/]' \| \
15713 X"$ac_file" : 'X\(//\)$' \| \
15714 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15715$as_echo X"$ac_file" |
15716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15717 s//\1/
15718 q
15719 }
15720 /^X\(\/\/\)[^/].*/{
15721 s//\1/
15722 q
15723 }
15724 /^X\(\/\/\)$/{
15725 s//\1/
15726 q
15727 }
15728 /^X\(\/\).*/{
15729 s//\1/
15730 q
15731 }
15732 s/.*/./; q'`
15733 as_dir="$ac_dir"; as_fn_mkdir_p
15734 ac_builddir=.
15735
15736case "$ac_dir" in
15737.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15738*)
15739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15740 # A ".." for each directory in $ac_dir_suffix.
15741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15742 case $ac_top_builddir_sub in
15743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15745 esac ;;
15746esac
15747ac_abs_top_builddir=$ac_pwd
15748ac_abs_builddir=$ac_pwd$ac_dir_suffix
15749# for backward compatibility:
15750ac_top_builddir=$ac_top_build_prefix
15751
15752case $srcdir in
15753 .) # We are building in place.
15754 ac_srcdir=.
15755 ac_top_srcdir=$ac_top_builddir_sub
15756 ac_abs_top_srcdir=$ac_pwd ;;
15757 [\\/]* | ?:[\\/]* ) # Absolute name.
15758 ac_srcdir=$srcdir$ac_dir_suffix;
15759 ac_top_srcdir=$srcdir
15760 ac_abs_top_srcdir=$srcdir ;;
15761 *) # Relative name.
15762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15763 ac_top_srcdir=$ac_top_build_prefix$srcdir
15764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15765esac
15766ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15767
15768
15769 case $ac_mode in
15770 :F)
15771 #
15772 # CONFIG_FILE
15773 #
15774
15775 case $INSTALL in
15776 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15777 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15778 esac
15779_ACEOF
15780
15781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15782# If the template does not know about datarootdir, expand it.
15783# FIXME: This hack should be removed a few years after 2.60.
15784ac_datarootdir_hack=; ac_datarootdir_seen=
15785ac_sed_dataroot='
15786/datarootdir/ {
15787 p
15788 q
15789}
15790/@datadir@/p
15791/@docdir@/p
15792/@infodir@/p
15793/@localedir@/p
15794/@mandir@/p'
15795case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15796*datarootdir*) ac_datarootdir_seen=yes;;
15797*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15799$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15800_ACEOF
15801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15802 ac_datarootdir_hack='
15803 s&@datadir@&$datadir&g
15804 s&@docdir@&$docdir&g
15805 s&@infodir@&$infodir&g
15806 s&@localedir@&$localedir&g
15807 s&@mandir@&$mandir&g
15808 s&\\\${datarootdir}&$datarootdir&g' ;;
15809esac
15810_ACEOF
15811
15812# Neutralize VPATH when `$srcdir' = `.'.
15813# Shell code in configure.ac might set extrasub.
15814# FIXME: do we really want to maintain this feature?
15815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816ac_sed_extra="$ac_vpsub
15817$extrasub
15818_ACEOF
15819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15820:t
15821/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15822s|@configure_input@|$ac_sed_conf_input|;t t
15823s&@top_builddir@&$ac_top_builddir_sub&;t t
15824s&@top_build_prefix@&$ac_top_build_prefix&;t t
15825s&@srcdir@&$ac_srcdir&;t t
15826s&@abs_srcdir@&$ac_abs_srcdir&;t t
15827s&@top_srcdir@&$ac_top_srcdir&;t t
15828s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15829s&@builddir@&$ac_builddir&;t t
15830s&@abs_builddir@&$ac_abs_builddir&;t t
15831s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15832s&@INSTALL@&$ac_INSTALL&;t t
15833$ac_datarootdir_hack
15834"
15835eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15836if $ac_cs_awk_getline; then
15837 $AWK -f "$ac_tmp/subs.awk"
15838else
15839 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15840fi \
15841 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15842
15843test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15844 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15846 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15848which seems to be undefined. Please make sure it is defined" >&5
15849$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15850which seems to be undefined. Please make sure it is defined" >&2;}
15851
15852 rm -f "$ac_tmp/stdin"
15853 case $ac_file in
15854 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15855 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15856 esac \
15857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15858 ;;
15859
15860
15861
15862 esac
15863
15864
15865 case $ac_file$ac_mode in
15866 "Makefile":F) sed "$extrasub_build" Makefile |
15867 sed "$extrasub_host" |
15868 sed "$extrasub_target" > mf$$
15869 mv -f mf$$ Makefile ;;
15870
15871 esac
15872done # for ac_tag
15873
15874
15875as_fn_exit 0
15876_ACEOF
15877ac_clean_files=$ac_clean_files_save
15878
15879test $ac_write_fail = 0 ||
15880 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15881
15882
15883# configure is writing to config.log, and then calls config.status.
15884# config.status does its own redirection, appending to config.log.
15885# Unfortunately, on DOS this fails, as config.log is still kept open
15886# by configure, so config.status won't be able to write to it; its
15887# output is simply discarded. So we exec the FD to /dev/null,
15888# effectively closing config.log, so it can be properly (re)opened and
15889# appended to by config.status. When coming back to configure, we
15890# need to make the FD available again.
15891if test "$no_create" != yes; then
15892 ac_cs_success=:
15893 ac_config_status_args=
15894 test "$silent" = yes &&
15895 ac_config_status_args="$ac_config_status_args --quiet"
15896 exec 5>/dev/null
15897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15898 exec 5>>config.log
15899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15900 # would make configure fail if this is the last instruction.
15901 $ac_cs_success || as_fn_exit 1
15902fi
15903if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15905$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15906fi
15907
This page took 0.075636 seconds and 4 git commands to generate.