]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame_incremental - configure
Bump version to 10.0.90.DATE-git.
[thirdparty/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_static_standard_libraries
806with_stage1_ldflags
807with_boot_libs
808with_boot_ldflags
809with_isl
810with_isl_include
811with_isl_lib
812enable_isl_version_check
813enable_lto
814enable_linker_plugin_configure_flags
815enable_linker_plugin_flags
816enable_host_shared
817enable_stage1_languages
818enable_objc_gc
819with_target_bdw_gc
820with_target_bdw_gc_include
821with_target_bdw_gc_lib
822with_gcc_major_version_only
823with_build_sysroot
824with_debug_prefix_map
825with_build_config
826enable_vtable_verify
827enable_serial_configure
828with_build_time_tools
829enable_maintainer_mode
830enable_stage1_checking
831enable_werror
832'
833 ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841CXX
842CXXFLAGS
843CCC
844build_configargs
845host_configargs
846target_configargs
847AR
848AS
849DLLTOOL
850LD
851LIPO
852NM
853RANLIB
854STRIP
855WINDRES
856WINDMC
857OBJCOPY
858OBJDUMP
859READELF
860CC_FOR_TARGET
861CXX_FOR_TARGET
862GCC_FOR_TARGET
863GFORTRAN_FOR_TARGET
864GOC_FOR_TARGET
865AR_FOR_TARGET
866AS_FOR_TARGET
867DLLTOOL_FOR_TARGET
868LD_FOR_TARGET
869LIPO_FOR_TARGET
870NM_FOR_TARGET
871OBJCOPY_FOR_TARGET
872OBJDUMP_FOR_TARGET
873RANLIB_FOR_TARGET
874READELF_FOR_TARGET
875STRIP_FOR_TARGET
876WINDRES_FOR_TARGET
877WINDMC_FOR_TARGET'
878
879
880# Initialize some variables set by options.
881ac_init_help=
882ac_init_version=false
883ac_unrecognized_opts=
884ac_unrecognized_sep=
885# The variables have the same names as the options, with
886# dashes changed to underlines.
887cache_file=/dev/null
888exec_prefix=NONE
889no_create=
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
898verbose=
899x_includes=NONE
900x_libraries=NONE
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
907# (The list follows the same order as the GNU Coding Standards.)
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
918docdir='${datarootdir}/doc/${PACKAGE}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
927
928ac_prev=
929ac_dashdash=
930for ac_option
931do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1291fi
1292
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299fi
1300
1301# Check all directory arguments for consistency.
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306do
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1382 fi
1383else
1384 ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404case $srcdir in
1405 *" "*)
1406 as_fn_error $? "path to source, $srcdir, contains spaces"
1407 ;;
1408esac
1409ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1410
1411for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425\`configure' configures this package to adapt to many kinds of systems.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491_ACEOF
1492fi
1493
1494if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-as-accelerator-for=ARG
1503 build as offload target compiler. Specify offload
1504 host triple by ARG
1505 --enable-offload-targets=LIST
1506 enable offloading to devices from comma-separated
1507 LIST of TARGET[=DIR]. Use optional path to find
1508 offload target compiler during the build
1509 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1510 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1511 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1512 Enable compressed debug sections for gas, gold or ld
1513 by default
1514 --disable-libquadmath do not build libquadmath directory
1515 --disable-libquadmath-support
1516 disable libquadmath support for Fortran
1517 --enable-libada build libada directory
1518 --enable-libssp build libssp directory
1519 --disable-libstdcxx do not build libstdc++-v3 directory
1520 --enable-liboffloadmic=ARG
1521 build liboffloadmic [ARG={no,host,target}]
1522 --enable-bootstrap enable bootstrapping [yes if native build]
1523 --disable-isl-version-check
1524 disable check for isl version
1525 --enable-lto enable link time optimization support
1526 --enable-linker-plugin-configure-flags=FLAGS
1527 additional flags for configuring linker plugins
1528 [none]
1529 --enable-linker-plugin-flags=FLAGS
1530 additional flags for configuring and building linker
1531 plugins [none]
1532 --enable-host-shared build host code as shared libraries
1533 --enable-stage1-languages[=all]
1534 choose additional languages to build during stage1.
1535 Mostly useful for compiler development
1536 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1537 Objective-C runtime
1538 --enable-vtable-verify Enable vtable verification feature
1539 --enable-serial-[{host,target,build}-]configure
1540 force sequential configuration of sub-packages for
1541 the host, target or build machine, or all
1542 sub-packages
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-stage1-checking[=all]
1547 choose additional checking for stage1 of the
1548 compiler
1549 --enable-werror enable -Werror in bootstrap stage2 and later
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-build-libsubdir=DIR Directory where to find libraries for build system
1555 --with-system-zlib use installed libz
1556 --with-mpc=PATH specify prefix directory for installed MPC package.
1557 Equivalent to --with-mpc-include=PATH/include plus
1558 --with-mpc-lib=PATH/lib
1559 --with-mpc-include=PATH specify directory for installed MPC include files
1560 --with-mpc-lib=PATH specify directory for the installed MPC library
1561 --with-mpfr-dir=PATH this option has been REMOVED
1562 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1563 Equivalent to --with-mpfr-include=PATH/include plus
1564 --with-mpfr-lib=PATH/lib
1565 --with-mpfr-include=PATH
1566 specify directory for installed MPFR include files
1567 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1568 --with-gmp-dir=PATH this option has been REMOVED
1569 --with-gmp=PATH specify prefix directory for the installed GMP
1570 package. Equivalent to
1571 --with-gmp-include=PATH/include plus
1572 --with-gmp-lib=PATH/lib
1573 --with-gmp-include=PATH specify directory for installed GMP include files
1574 --with-gmp-lib=PATH specify directory for the installed GMP library
1575 --with-stage1-libs=LIBS libraries for stage1
1576 --with-static-standard-libraries
1577 use -static-libstdc++ and -static-libgcc
1578 (default=auto)
1579 --with-stage1-ldflags=FLAGS
1580 linker flags for stage1
1581 --with-boot-libs=LIBS libraries for stage2 and later
1582 --with-boot-ldflags=FLAGS
1583 linker flags for stage2 and later
1584 --with-isl=PATH Specify prefix directory for the installed isl
1585 package. Equivalent to
1586 --with-isl-include=PATH/include plus
1587 --with-isl-lib=PATH/lib
1588 --with-isl-include=PATH Specify directory for installed isl include files
1589 --with-isl-lib=PATH Specify the directory for the installed isl library
1590 --with-target-bdw-gc=PATHLIST
1591 specify prefix directory for installed bdw-gc
1592 package. Equivalent to
1593 --with-target-bdw-gc-include=PATH/include plus
1594 --with-target-bdw-gc-lib=PATH/lib
1595 --with-target-bdw-gc-include=PATHLIST
1596 specify directories for installed bdw-gc include
1597 files
1598 --with-target-bdw-gc-lib=PATHLIST
1599 specify directories for installed bdw-gc library
1600 --with-gcc-major-version-only
1601 use only GCC major number in filesystem paths
1602 --with-build-sysroot=SYSROOT
1603 use sysroot as the system root during the build
1604 --with-debug-prefix-map='A=B C=D ...'
1605 map A to B, C to D ... in debug information
1606 --with-build-config='NAME NAME2...'
1607 use config/NAME.mk build configuration
1608 --with-build-time-tools=PATH
1609 use given path to find target tools during the build
1610
1611Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CXX C++ compiler command
1620 CXXFLAGS C++ compiler flags
1621 build_configargs
1622 additional configure arguments for build directories
1623 host_configargs
1624 additional configure arguments for host directories
1625 target_configargs
1626 additional configure arguments for target directories
1627 AR AR for the host
1628 AS AS for the host
1629 DLLTOOL DLLTOOL for the host
1630 LD LD for the host
1631 LIPO LIPO for the host
1632 NM NM for the host
1633 RANLIB RANLIB for the host
1634 STRIP STRIP for the host
1635 WINDRES WINDRES for the host
1636 WINDMC WINDMC for the host
1637 OBJCOPY OBJCOPY for the host
1638 OBJDUMP OBJDUMP for the host
1639 READELF READELF for the host
1640 CC_FOR_TARGET
1641 CC for the target
1642 CXX_FOR_TARGET
1643 CXX for the target
1644 GCC_FOR_TARGET
1645 GCC for the target
1646 GFORTRAN_FOR_TARGET
1647 GFORTRAN for the target
1648 GOC_FOR_TARGET
1649 GOC for the target
1650 AR_FOR_TARGET
1651 AR for the target
1652 AS_FOR_TARGET
1653 AS for the target
1654 DLLTOOL_FOR_TARGET
1655 DLLTOOL for the target
1656 LD_FOR_TARGET
1657 LD for the target
1658 LIPO_FOR_TARGET
1659 LIPO for the target
1660 NM_FOR_TARGET
1661 NM for the target
1662 OBJCOPY_FOR_TARGET
1663 OBJCOPY for the target
1664 OBJDUMP_FOR_TARGET
1665 OBJDUMP for the target
1666 RANLIB_FOR_TARGET
1667 RANLIB for the target
1668 READELF_FOR_TARGET
1669 READELF for the target
1670 STRIP_FOR_TARGET
1671 STRIP for the target
1672 WINDRES_FOR_TARGET
1673 WINDRES for the target
1674 WINDMC_FOR_TARGET
1675 WINDMC for the target
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
1680Report bugs to the package provider.
1681_ACEOF
1682ac_status=$?
1683fi
1684
1685if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
1691 ac_builddir=.
1692
1693case "$ac_dir" in
1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695*)
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703esac
1704ac_abs_top_builddir=$ac_pwd
1705ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706# for backward compatibility:
1707ac_top_builddir=$ac_top_build_prefix
1708
1709case $srcdir in
1710 .) # We are building in place.
1711 ac_srcdir=.
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
1715 ac_srcdir=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722esac
1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1733 else
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1737 done
1738fi
1739
1740test -n "$ac_init_help" && exit $ac_status
1741if $ac_init_version; then
1742 cat <<\_ACEOF
1743configure
1744generated by GNU Autoconf 2.69
1745
1746Copyright (C) 2012 Free Software Foundation, Inc.
1747This configure script is free software; the Free Software Foundation
1748gives unlimited permission to copy, distribute and modify it.
1749_ACEOF
1750 exit
1751fi
1752
1753## ------------------------ ##
1754## Autoconf initialization. ##
1755## ------------------------ ##
1756
1757# ac_fn_c_try_compile LINENO
1758# --------------------------
1759# Try to compile conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_compile ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_compile
1794
1795# ac_fn_cxx_try_compile LINENO
1796# ----------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_compile ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831} # ac_fn_cxx_try_compile
1832
1833# ac_fn_cxx_try_link LINENO
1834# -------------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_try_link ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 test -x conftest$ac_exeext
1861 }; then :
1862 ac_retval=0
1863else
1864 $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877} # ac_fn_cxx_try_link
1878
1879# ac_fn_c_try_link LINENO
1880# -----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_c_try_link ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909else
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_link
1924cat >config.log <<_ACEOF
1925This file contains any messages produced by compilers while
1926running configure, to aid debugging if configure makes a mistake.
1927
1928It was created by $as_me, which was
1929generated by GNU Autoconf 2.69. Invocation command line was
1930
1931 $ $0 $@
1932
1933_ACEOF
1934exec 5>>config.log
1935{
1936cat <<_ASUNAME
1937## --------- ##
1938## Platform. ##
1939## --------- ##
1940
1941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1954/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958_ASUNAME
1959
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 $as_echo "PATH: $as_dir"
1966 done
1967IFS=$as_save_IFS
1968
1969} >&5
1970
1971cat >&5 <<_ACEOF
1972
1973
1974## ----------- ##
1975## Core tests. ##
1976## ----------- ##
1977
1978_ACEOF
1979
1980
1981# Keep a trace of the command line.
1982# Strip out --no-create and --no-recursion so they do not pile up.
1983# Strip out --silent because we don't want to record it for future runs.
1984# Also quote any args containing shell meta-characters.
1985# Make two passes to allow for proper duplicate-argument suppression.
1986ac_configure_args=
1987ac_configure_args0=
1988ac_configure_args1=
1989ac_must_keep_next=false
1990for ac_pass in 1 2
1991do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 esac
2002 case $ac_pass in
2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 2)
2005 as_fn_append ac_configure_args1 " '$ac_arg'"
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
2021 as_fn_append ac_configure_args " '$ac_arg'"
2022 ;;
2023 esac
2024 done
2025done
2026{ ac_configure_args0=; unset ac_configure_args0;}
2027{ ac_configure_args1=; unset ac_configure_args1;}
2028
2029# When interrupted or exit'd, cleanup temporary files, and complete
2030# config.log. We remove comments because anyway the quotes in there
2031# would cause problems or look ugly.
2032# WARNING: Use '\'' to represent an apostrophe within the trap.
2033# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
2039 $as_echo "## ---------------- ##
2040## Cache variables. ##
2041## ---------------- ##"
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
2044(
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
2060 (set) 2>&1 |
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2063 sed -n \
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
2067 *)
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ;;
2070 esac |
2071 sort
2072)
2073 echo
2074
2075 $as_echo "## ----------------- ##
2076## Output variables. ##
2077## ----------------- ##"
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
2090 $as_echo "## ------------------- ##
2091## File substitutions. ##
2092## ------------------- ##"
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 $as_echo "## ----------- ##
2107## confdefs.h. ##
2108## ----------- ##"
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120' 0
2121for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123done
2124ac_signal=0
2125
2126# confdefs.h avoids OS command line length limits that DEFS can exceed.
2127rm -f -r conftest* confdefs.h
2128
2129$as_echo "/* confdefs.h */" > confdefs.h
2130
2131# Predefined preprocessor variables.
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_NAME "$PACKAGE_NAME"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_STRING "$PACKAGE_STRING"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_URL "$PACKAGE_URL"
2155_ACEOF
2156
2157
2158# Let the site file select an alternate cache file if it wants to.
2159# Prefer an explicitly selected file to automatically selected ones.
2160ac_site_file1=NONE
2161ac_site_file2=NONE
2162if test -n "$CONFIG_SITE"; then
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
2169elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
2175fi
2176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177do
2178 test "x$ac_site_file" = xNONE && continue
2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186as_fn_error $? "failed to load site script $ac_site_file
2187See \`config.log' for more details" "$LINENO" 5; }
2188 fi
2189done
2190
2191if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
2211for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2256 fi
2257done
2258if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264fi
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
2268
2269ac_ext=c
2270ac_cpp='$CPP $CPPFLAGS'
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
2278
2279
2280
2281
2282progname=$0
2283# if PWD already has a value, it is probably wrong.
2284if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2285
2286# Export original configure arguments for use by sub-configures.
2287# Quote arguments with shell meta charatcers.
2288TOPLEVEL_CONFIGURE_ARGUMENTS=
2289set -- "$progname" "$@"
2290for ac_arg
2291do
2292 case "$ac_arg" in
2293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2295 # if the argument is of the form -foo=baz, quote the baz part only
2296 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2297 *) ;;
2298 esac
2299 # Add the quoted argument to the list.
2300 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2301done
2302if test "$silent" = yes; then
2303 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2304fi
2305# Remove the initial space we just introduced and, as these will be
2306# expanded by make, quote '$'.
2307TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2308
2309
2310# Find the build, host, and target systems.
2311ac_aux_dir=
2312for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313 if 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/install.sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 break
2321 elif test -f "$ac_dir/shtool"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 break
2325 fi
2326done
2327if test -z "$ac_aux_dir"; then
2328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2329fi
2330
2331# These three variables are undocumented and unsupported,
2332# and are intended to be withdrawn in a future Autoconf release.
2333# They can cause serious problems if a builder's source tree is in a directory
2334# whose full name contains unusual characters.
2335ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338
2339
2340# Make sure we can run config.sub.
2341$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2343
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345$as_echo_n "checking build system type... " >&6; }
2346if ${ac_cv_build+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348else
2349 ac_build_alias=$build_alias
2350test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352test "x$ac_build_alias" = x &&
2353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2354ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356
2357fi
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359$as_echo "$ac_cv_build" >&6; }
2360case $ac_cv_build in
2361*-*-*) ;;
2362*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363esac
2364build=$ac_cv_build
2365ac_save_IFS=$IFS; IFS='-'
2366set x $ac_cv_build
2367shift
2368build_cpu=$1
2369build_vendor=$2
2370shift; shift
2371# Remember, the first character of IFS is used to create $*,
2372# except with old shells:
2373build_os=$*
2374IFS=$ac_save_IFS
2375case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 case ${build_alias} in
2379 "") build_noncanonical=${build} ;;
2380 *) build_noncanonical=${build_alias} ;;
2381esac
2382
2383
2384
2385 case ${host_alias} in
2386 "") host_noncanonical=${build_noncanonical} ;;
2387 *) host_noncanonical=${host_alias} ;;
2388esac
2389
2390
2391
2392 case ${target_alias} in
2393 "") target_noncanonical=${host_noncanonical} ;;
2394 *) target_noncanonical=${target_alias} ;;
2395esac
2396
2397
2398
2399
2400test "$host_noncanonical" = "$target_noncanonical" &&
2401 test "$program_prefix$program_suffix$program_transform_name" = \
2402 NONENONEs,x,x, &&
2403 program_transform_name=s,y,y,
2404
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2406$as_echo_n "checking host system type... " >&6; }
2407if ${ac_cv_host+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409else
2410 if test "x$host_alias" = x; then
2411 ac_cv_host=$ac_cv_build
2412else
2413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2415fi
2416
2417fi
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2419$as_echo "$ac_cv_host" >&6; }
2420case $ac_cv_host in
2421*-*-*) ;;
2422*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2423esac
2424host=$ac_cv_host
2425ac_save_IFS=$IFS; IFS='-'
2426set x $ac_cv_host
2427shift
2428host_cpu=$1
2429host_vendor=$2
2430shift; shift
2431# Remember, the first character of IFS is used to create $*,
2432# except with old shells:
2433host_os=$*
2434IFS=$ac_save_IFS
2435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2436
2437
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2439$as_echo_n "checking target system type... " >&6; }
2440if ${ac_cv_target+:} false; then :
2441 $as_echo_n "(cached) " >&6
2442else
2443 if test "x$target_alias" = x; then
2444 ac_cv_target=$ac_cv_host
2445else
2446 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2448fi
2449
2450fi
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2452$as_echo "$ac_cv_target" >&6; }
2453case $ac_cv_target in
2454*-*-*) ;;
2455*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2456esac
2457target=$ac_cv_target
2458ac_save_IFS=$IFS; IFS='-'
2459set x $ac_cv_target
2460shift
2461target_cpu=$1
2462target_vendor=$2
2463shift; shift
2464# Remember, the first character of IFS is used to create $*,
2465# except with old shells:
2466target_os=$*
2467IFS=$ac_save_IFS
2468case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2469
2470
2471# The aliases save the names the user supplied, while $host etc.
2472# will get canonicalized.
2473test -n "$target_alias" &&
2474 test "$program_prefix$program_suffix$program_transform_name" = \
2475 NONENONEs,x,x, &&
2476 program_prefix=${target_alias}-
2477
2478test "$program_prefix" != NONE &&
2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2480# Use a double $ so make ignores it.
2481test "$program_suffix" != NONE &&
2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483# Double any \ or $.
2484# By default was `s,x,x', remove it if useless.
2485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2487
2488
2489
2490# Get 'install' or 'install-sh' and its variants.
2491# Find a good install program. We prefer a C program (faster),
2492# so one script is as good as another. But avoid the broken or
2493# incompatible versions:
2494# SysV /etc/install, /usr/sbin/install
2495# SunOS /usr/etc/install
2496# IRIX /sbin/install
2497# AIX /bin/install
2498# AmigaOS /C/install, which installs bootblocks on floppy discs
2499# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502# OS/2's system install, which has a completely different semantic
2503# ./install, which can be erroneously created by make from ./install.sh.
2504# Reject install programs that cannot install multiple files.
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2506$as_echo_n "checking for a BSD-compatible install... " >&6; }
2507if test -z "$INSTALL"; then
2508if ${ac_cv_path_install+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517case $as_dir/ in #((
2518 ./ | .// | /[cC]/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2532 :
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
2537 else
2538 rm -rf conftest.one conftest.two conftest.dir
2539 echo one > conftest.one
2540 echo two > conftest.two
2541 mkdir conftest.dir
2542 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2543 test -s conftest.one && test -s conftest.two &&
2544 test -s conftest.dir/conftest.one &&
2545 test -s conftest.dir/conftest.two
2546 then
2547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2548 break 3
2549 fi
2550 fi
2551 fi
2552 done
2553 done
2554 ;;
2555esac
2556
2557 done
2558IFS=$as_save_IFS
2559
2560rm -rf conftest.one conftest.two conftest.dir
2561
2562fi
2563 if test "${ac_cv_path_install+set}" = set; then
2564 INSTALL=$ac_cv_path_install
2565 else
2566 # As a last resort, use the slow shell script. Don't cache a
2567 # value for INSTALL within a source directory, because that will
2568 # break other packages using the cache if that directory is
2569 # removed, or if the value is a relative name.
2570 INSTALL=$ac_install_sh
2571 fi
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2574$as_echo "$INSTALL" >&6; }
2575
2576# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2577# It thinks the first close brace ends the variable substitution.
2578test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2579
2580test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2581
2582test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2583
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2585$as_echo_n "checking whether ln works... " >&6; }
2586if ${acx_cv_prog_LN+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588else
2589 rm -f conftestdata_t
2590echo >conftestdata_f
2591if ln conftestdata_f conftestdata_t 2>/dev/null
2592then
2593 acx_cv_prog_LN=ln
2594else
2595 acx_cv_prog_LN=no
2596fi
2597rm -f conftestdata_f conftestdata_t
2598
2599fi
2600if test $acx_cv_prog_LN = no; then
2601 LN="cp"
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2603$as_echo "no, using $LN" >&6; }
2604else
2605 LN="$acx_cv_prog_LN"
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2607$as_echo "yes" >&6; }
2608fi
2609
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2611$as_echo_n "checking whether ln -s works... " >&6; }
2612LN_S=$as_ln_s
2613if test "$LN_S" = "ln -s"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
2616else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2618$as_echo "no, using $LN_S" >&6; }
2619fi
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2622$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2623if ${ac_cv_path_SED+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625else
2626 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2627 for ac_i in 1 2 3 4 5 6 7; do
2628 ac_script="$ac_script$as_nl$ac_script"
2629 done
2630 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2631 { ac_script=; unset ac_script;}
2632 if test -z "$SED"; then
2633 ac_path_SED_found=false
2634 # Loop through the user's path and test for each of PROGNAME-LIST
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_prog in sed gsed; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2643 as_fn_executable_p "$ac_path_SED" || continue
2644# Check for GNU ac_path_SED and select it if it is found.
2645 # Check for GNU $ac_path_SED
2646case `"$ac_path_SED" --version 2>&1` in
2647*GNU*)
2648 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2649*)
2650 ac_count=0
2651 $as_echo_n 0123456789 >"conftest.in"
2652 while :
2653 do
2654 cat "conftest.in" "conftest.in" >"conftest.tmp"
2655 mv "conftest.tmp" "conftest.in"
2656 cp "conftest.in" "conftest.nl"
2657 $as_echo '' >> "conftest.nl"
2658 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2660 as_fn_arith $ac_count + 1 && ac_count=$as_val
2661 if test $ac_count -gt ${ac_path_SED_max-0}; then
2662 # Best one so far, save it but keep looking for a better one
2663 ac_cv_path_SED="$ac_path_SED"
2664 ac_path_SED_max=$ac_count
2665 fi
2666 # 10*(2^10) chars as input seems more than enough
2667 test $ac_count -gt 10 && break
2668 done
2669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2670esac
2671
2672 $ac_path_SED_found && break 3
2673 done
2674 done
2675 done
2676IFS=$as_save_IFS
2677 if test -z "$ac_cv_path_SED"; then
2678 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2679 fi
2680else
2681 ac_cv_path_SED=$SED
2682fi
2683
2684fi
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2686$as_echo "$ac_cv_path_SED" >&6; }
2687 SED="$ac_cv_path_SED"
2688 rm -f conftest.sed
2689
2690for ac_prog in gawk mawk nawk awk
2691do
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_AWK+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698else
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_AWK="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713done
2714 done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719AWK=$ac_cv_prog_AWK
2720if test -n "$AWK"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722$as_echo "$AWK" >&6; }
2723else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729 test -n "$AWK" && break
2730done
2731
2732
2733srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2734
2735# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2736# a relative path.
2737if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2738 INSTALL="${srcpwd}/install-sh -c"
2739fi
2740
2741# Set srcdir to "." if that's what it is.
2742# This is important for multilib support.
2743pwd=`${PWDCMD-pwd}`
2744if test "${pwd}" = "${srcpwd}" ; then
2745 srcdir=.
2746fi
2747
2748topsrcdir=$srcpwd
2749
2750extra_host_args=
2751
2752### To add a new directory to the tree, first choose whether it is a target
2753### or a host dependent tool. Then put it into the appropriate list
2754### (library or tools, host or target), doing a dependency sort.
2755
2756# Subdirs will be configured in the order listed in build_configdirs,
2757# configdirs, or target_configdirs; see the serialization section below.
2758
2759# Dependency sorting is only needed when *configuration* must be done in
2760# a particular order. In all cases a dependency should be specified in
2761# the Makefile, whether or not it's implicitly specified here.
2762
2763# Double entries in build_configdirs, configdirs, or target_configdirs may
2764# cause circular dependencies and break everything horribly.
2765
2766# these library is used by various programs built for the build
2767# environment
2768#
2769build_libs="build-libiberty build-libcpp"
2770
2771# these tools are built for the build environment
2772build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2773
2774# these libraries are used by various programs built for the host environment
2775#f
2776host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2777
2778# these tools are built for the host environment
2779# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2780# know that we are building the simulator.
2781# binutils, gas and ld appear in that order because it makes sense to run
2782# "make check" in that particular order.
2783# If --enable-gold is used, "gold" may replace "ld".
2784host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2785
2786# these libraries are built for the target environment, and are built after
2787# the host libraries and the host tools (which may be a cross compiler)
2788# Note that libiberty is not a target library.
2789target_libraries="target-libgcc \
2790 target-libbacktrace \
2791 target-libgloss \
2792 target-newlib \
2793 target-libgomp \
2794 target-liboffloadmic \
2795 target-libhsail-rt \
2796 target-libatomic \
2797 target-libitm \
2798 target-libstdc++-v3 \
2799 target-libsanitizer \
2800 target-libvtv \
2801 target-libssp \
2802 target-libquadmath \
2803 target-libgfortran \
2804 target-libffi \
2805 target-libobjc \
2806 target-libada \
2807 target-libgo"
2808
2809# these tools are built using the target libraries, and are intended to
2810# run only in the target environment
2811#
2812# note: any program that *uses* libraries that are in the "target_libraries"
2813# list belongs in this list.
2814#
2815target_tools="target-rda"
2816
2817################################################################################
2818
2819## All tools belong in one of the four categories, and are assigned above
2820## We assign ${configdirs} this way to remove all embedded newlines. This
2821## is important because configure will choke if they ever get through.
2822## ${configdirs} is directories we build using the host tools.
2823## ${target_configdirs} is directories we build using the target tools.
2824configdirs=`echo ${host_libs} ${host_tools}`
2825target_configdirs=`echo ${target_libraries} ${target_tools}`
2826build_configdirs=`echo ${build_libs} ${build_tools}`
2827
2828
2829
2830################################################################################
2831
2832srcname="gnu development package"
2833
2834# This gets set non-empty for some net releases of packages.
2835appdirs=""
2836
2837# Define is_cross_compiler to save on calls to 'test'.
2838is_cross_compiler=
2839if test x"${host}" = x"${target}" ; then
2840 is_cross_compiler=no
2841else
2842 is_cross_compiler=yes
2843fi
2844
2845# Find the build and target subdir names.
2846
2847# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2848# have matching libraries, they should use host libraries: Makefile.tpl
2849# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2850# However, they still use the build modules, because the corresponding
2851# host modules (e.g. bison) are only built for the host when bootstrap
2852# finishes. So:
2853# - build_subdir is where we find build modules, and never changes.
2854# - build_libsubdir is where we find build libraries, and can be overridden.
2855
2856# Prefix 'build-' so this never conflicts with target_subdir.
2857build_subdir="build-${build_noncanonical}"
2858
2859# Check whether --with-build-libsubdir was given.
2860if test "${with_build_libsubdir+set}" = set; then :
2861 withval=$with_build_libsubdir; build_libsubdir="$withval"
2862else
2863 build_libsubdir="$build_subdir"
2864fi
2865
2866# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2867if ( test $srcdir = . && test -d gcc ) \
2868 || test -d $srcdir/../host-${host_noncanonical}; then
2869 host_subdir="host-${host_noncanonical}"
2870else
2871 host_subdir=.
2872fi
2873# No prefix.
2874target_subdir=${target_noncanonical}
2875
2876# Be sure to cover against remnants of an in-tree build.
2877if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2878 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2879Use a pristine source tree when building in a separate tree" "$LINENO" 5
2880fi
2881
2882# Skipdirs are removed silently.
2883skipdirs=
2884# Noconfigdirs are removed loudly.
2885noconfigdirs=""
2886
2887use_gnu_ld=
2888# Make sure we don't let GNU ld be added if we didn't want it.
2889if test x$with_gnu_ld = xno ; then
2890 use_gnu_ld=no
2891 noconfigdirs="$noconfigdirs ld gold"
2892fi
2893
2894use_gnu_as=
2895# Make sure we don't let GNU as be added if we didn't want it.
2896if test x$with_gnu_as = xno ; then
2897 use_gnu_as=no
2898 noconfigdirs="$noconfigdirs gas"
2899fi
2900
2901use_included_zlib=
2902
2903# Check whether --with-system-zlib was given.
2904if test "${with_system_zlib+set}" = set; then :
2905 withval=$with_system_zlib;
2906fi
2907
2908# Make sure we don't let ZLIB be added if we didn't want it.
2909if test x$with_system_zlib = xyes ; then
2910 use_included_zlib=no
2911 noconfigdirs="$noconfigdirs zlib"
2912fi
2913
2914# Don't compile the bundled readline/libreadline.a if --with-system-readline
2915# is provided.
2916if test x$with_system_readline = xyes ; then
2917 noconfigdirs="$noconfigdirs readline"
2918fi
2919
2920# some tools are so dependent upon X11 that if we're not building with X,
2921# it's not even worth trying to configure, much less build, that tool.
2922
2923case ${with_x} in
2924 yes | "") ;; # the default value for this tree is that X11 is available
2925 no)
2926 skipdirs="${skipdirs} tk itcl libgui"
2927 # We won't be able to build gdbtk without X.
2928 enable_gdbtk=no
2929 ;;
2930 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2931esac
2932
2933# Some are only suitable for cross toolchains.
2934# Remove these if host=target.
2935cross_only="target-libgloss target-newlib target-opcodes"
2936
2937case $is_cross_compiler in
2938 no) skipdirs="${skipdirs} ${cross_only}" ;;
2939esac
2940
2941# If both --with-headers and --with-libs are specified, default to
2942# --without-newlib.
2943if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2944 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2945 if test x"${with_newlib}" = x ; then
2946 with_newlib=no
2947 fi
2948fi
2949
2950# Recognize --with-newlib/--without-newlib.
2951case ${with_newlib} in
2952 no) skipdirs="${skipdirs} target-newlib" ;;
2953 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2954esac
2955
2956# Check whether --enable-as-accelerator-for was given.
2957if test "${enable_as_accelerator_for+set}" = set; then :
2958 enableval=$enable_as_accelerator_for;
2959fi
2960
2961
2962# Check whether --enable-offload-targets was given.
2963if test "${enable_offload_targets+set}" = set; then :
2964 enableval=$enable_offload_targets;
2965 if test x"$enable_offload_targets" = x; then
2966 as_fn_error $? "no offload targets specified" "$LINENO" 5
2967 fi
2968
2969else
2970 enable_offload_targets=
2971fi
2972
2973
2974# Handle --enable-gold, --enable-ld.
2975# --disable-gold [--enable-ld]
2976# Build only ld. Default option.
2977# --enable-gold [--enable-ld]
2978# Build both gold and ld. Install gold as "ld.gold", install ld
2979# as "ld.bfd" and "ld".
2980# --enable-gold=default [--enable-ld]
2981# Build both gold and ld. Install gold as "ld.gold" and "ld",
2982# install ld as "ld.bfd".
2983# --enable-gold[=default] --disable-ld
2984# Build only gold, which is then installed as both "ld.gold" and "ld".
2985# --enable-gold --enable-ld=default
2986# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2987# and ld.bfd).
2988# In other words, ld is default
2989# --enable-gold=default --enable-ld=default
2990# Error.
2991
2992default_ld=
2993# Check whether --enable-gold was given.
2994if test "${enable_gold+set}" = set; then :
2995 enableval=$enable_gold; ENABLE_GOLD=$enableval
2996else
2997 ENABLE_GOLD=no
2998fi
2999
3000case "${ENABLE_GOLD}" in
3001 yes|default)
3002 # Check for ELF target.
3003 is_elf=no
3004 case "${target}" in
3005 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3006 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3007 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3008 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3009 case "${target}" in
3010 *-*-linux*aout* | *-*-linux*oldld*)
3011 ;;
3012 *)
3013 is_elf=yes
3014 ;;
3015 esac
3016 esac
3017
3018 if test "$is_elf" = "yes"; then
3019 # Check for target supported by gold.
3020 case "${target}" in
3021 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3022 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3023 configdirs="$configdirs gold"
3024 if test x${ENABLE_GOLD} = xdefault; then
3025 default_ld=gold
3026 fi
3027 ENABLE_GOLD=yes
3028 ;;
3029 esac
3030 fi
3031 ;;
3032 no)
3033 ;;
3034 *)
3035 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3036 ;;
3037esac
3038
3039# Check whether --enable-ld was given.
3040if test "${enable_ld+set}" = set; then :
3041 enableval=$enable_ld; ENABLE_LD=$enableval
3042else
3043 ENABLE_LD=yes
3044fi
3045
3046
3047case "${ENABLE_LD}" in
3048 default)
3049 if test x${default_ld} != x; then
3050 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3051 fi
3052 ;;
3053 yes)
3054 ;;
3055 no)
3056 if test x${ENABLE_GOLD} != xyes; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3058$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3059 fi
3060 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3061 ;;
3062 *)
3063 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3064 ;;
3065esac
3066
3067# PR gas/19109
3068# Decide the default method for compressing debug sections.
3069# Provide a configure time option to override our default.
3070# Check whether --enable-compressed_debug_sections was given.
3071if test "${enable_compressed_debug_sections+set}" = set; then :
3072 enableval=$enable_compressed_debug_sections;
3073 if test x"$enable_compressed_debug_sections" = xyes; then
3074 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3075 fi
3076
3077else
3078 enable_compressed_debug_sections=
3079fi
3080
3081
3082# Configure extra directories which are host specific
3083
3084case "${host}" in
3085 *-cygwin*)
3086 configdirs="$configdirs libtermcap" ;;
3087esac
3088
3089# A target can indicate whether a language isn't supported for some reason.
3090# Only spaces may be used in this macro; not newlines or tabs.
3091unsupported_languages=
3092
3093# Remove more programs from consideration, based on the host or
3094# target this usually means that a port of the program doesn't
3095# exist yet.
3096
3097case "${host}" in
3098 i[3456789]86-*-msdosdjgpp*)
3099 noconfigdirs="$noconfigdirs tcl tk itcl"
3100 ;;
3101esac
3102
3103
3104# Check whether --enable-libquadmath was given.
3105if test "${enable_libquadmath+set}" = set; then :
3106 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3107else
3108 ENABLE_LIBQUADMATH=yes
3109fi
3110
3111if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3112 noconfigdirs="$noconfigdirs target-libquadmath"
3113fi
3114
3115
3116# Check whether --enable-libquadmath-support was given.
3117if test "${enable_libquadmath_support+set}" = set; then :
3118 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3119else
3120 ENABLE_LIBQUADMATH_SUPPORT=yes
3121fi
3122
3123enable_libquadmath_support=
3124if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3125 enable_libquadmath_support=no
3126fi
3127
3128
3129# Check whether --enable-libada was given.
3130if test "${enable_libada+set}" = set; then :
3131 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3132else
3133 ENABLE_LIBADA=yes
3134fi
3135
3136if test "${ENABLE_LIBADA}" != "yes" ; then
3137 noconfigdirs="$noconfigdirs gnattools"
3138fi
3139
3140# Check whether --enable-libssp was given.
3141if test "${enable_libssp+set}" = set; then :
3142 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3143else
3144 ENABLE_LIBSSP=yes
3145fi
3146
3147
3148# Check whether --enable-libstdcxx was given.
3149if test "${enable_libstdcxx+set}" = set; then :
3150 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3151else
3152 ENABLE_LIBSTDCXX=default
3153fi
3154
3155if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3156 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3157fi
3158
3159# If this is accelerator compiler and its target is intelmic we enable
3160# target liboffloadmic by default. If this is compiler with offloading
3161# for intelmic we enable host liboffloadmic by default. Otherwise
3162# liboffloadmic is disabled by default.
3163# Check whether --enable-liboffloadmic was given.
3164if test "${enable_liboffloadmic+set}" = set; then :
3165 enableval=$enable_liboffloadmic; case "$enableval" in
3166 no | host | target)
3167 enable_liboffloadmic=$enableval ;;
3168 *)
3169 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3170esac
3171else
3172 if test x"$enable_as_accelerator_for" != x; then
3173 case "${target}" in
3174 *-intelmic-* | *-intelmicemul-*)
3175 enable_liboffloadmic=target
3176 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3177 ;;
3178 *)
3179 enable_liboffloadmic=no
3180 ;;
3181 esac
3182else
3183 case "${enable_offload_targets}" in
3184 *-intelmic-* | *-intelmicemul-*)
3185 enable_liboffloadmic=host
3186 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3187 ;;
3188 *)
3189 enable_liboffloadmic=no
3190 ;;
3191 esac
3192fi
3193fi
3194
3195
3196
3197# Enable libgomp by default on hosted POSIX systems, and a few others.
3198if test x$enable_libgomp = x ; then
3199 case "${target}" in
3200 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3201 ;;
3202 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3203 ;;
3204 *-*-solaris2* | *-*-hpux11*)
3205 ;;
3206 *-*-darwin* | *-*-aix*)
3207 ;;
3208 nvptx*-*-*)
3209 ;;
3210 *)
3211 noconfigdirs="$noconfigdirs target-libgomp"
3212 ;;
3213 esac
3214fi
3215
3216# Disable libatomic on unsupported systems.
3217if test -d ${srcdir}/libatomic; then
3218 if test x$enable_libatomic = x; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3220$as_echo_n "checking for libatomic support... " >&6; }
3221 if (srcdir=${srcdir}/libatomic; \
3222 . ${srcdir}/configure.tgt; \
3223 test -n "$UNSUPPORTED")
3224 then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3227 noconfigdirs="$noconfigdirs target-libatomic"
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230$as_echo "yes" >&6; }
3231 fi
3232 fi
3233fi
3234
3235# Disable liboffloadmic on unsupported systems.
3236if test -d ${srcdir}/liboffloadmic; then
3237 if test x$enable_liboffloadmic != xno; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3239$as_echo_n "checking for liboffloadmic support... " >&6; }
3240 if (srcdir=${srcdir}/liboffloadmic; \
3241 . ${srcdir}/configure.tgt; \
3242 test -n "$UNSUPPORTED")
3243 then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246 noconfigdirs="$noconfigdirs target-liboffloadmic"
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250 fi
3251 fi
3252fi
3253
3254# Disable libitm on unsupported systems.
3255if test -d ${srcdir}/libitm; then
3256 if test x$enable_libitm = x; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3258$as_echo_n "checking for libitm support... " >&6; }
3259 if (srcdir=${srcdir}/libitm; \
3260 . ${srcdir}/configure.tgt; \
3261 test -n "$UNSUPPORTED")
3262 then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265 noconfigdirs="$noconfigdirs target-libitm"
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268$as_echo "yes" >&6; }
3269 fi
3270 fi
3271fi
3272
3273# Disable libsanitizer on unsupported systems.
3274if test -d ${srcdir}/libsanitizer; then
3275 if test x$enable_libsanitizer = x; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3277$as_echo_n "checking for libsanitizer support... " >&6; }
3278 if (srcdir=${srcdir}/libsanitizer; \
3279 . ${srcdir}/configure.tgt; \
3280 test -n "$UNSUPPORTED")
3281 then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3284 noconfigdirs="$noconfigdirs target-libsanitizer"
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288 fi
3289 fi
3290fi
3291
3292# Disable libvtv on unsupported systems.
3293if test -d ${srcdir}/libvtv; then
3294 if test x$enable_libvtv = x; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3296$as_echo_n "checking for libvtv support... " >&6; }
3297 if (srcdir=${srcdir}/libvtv; \
3298 . ${srcdir}/configure.tgt; \
3299 test "$VTV_SUPPORTED" != "yes")
3300 then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303 noconfigdirs="$noconfigdirs target-libvtv"
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306$as_echo "yes" >&6; }
3307 fi
3308 fi
3309fi
3310
3311
3312# Disable libhsail-rt on unsupported systems.
3313if test -d ${srcdir}/libhsail-rt; then
3314 if test x$enable_libhsail_rt = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3316$as_echo_n "checking for libhsail-rt support... " >&6; }
3317 if (srcdir=${srcdir}/libhsail-rt; \
3318 . ${srcdir}/configure.tgt; \
3319 test -n "$UNSUPPORTED")
3320 then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323 unsupported_languages="$unsupported_languages brig"
3324 # This implicitly disables also target-libhsail-rt as it won't
3325 # get added to the build without BRIG FE.
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328$as_echo "yes" >&6; }
3329 fi
3330 fi
3331fi
3332
3333
3334# Disable libquadmath for some systems.
3335case "${target}" in
3336 avr-*-*)
3337 noconfigdirs="$noconfigdirs target-libquadmath"
3338 ;;
3339 # libquadmath is unused on AIX and libquadmath build process use of
3340 # LD_LIBRARY_PATH can break AIX bootstrap.
3341 powerpc-*-aix* | rs6000-*-aix*)
3342 noconfigdirs="$noconfigdirs target-libquadmath"
3343 ;;
3344esac
3345
3346# Disable libssp for some systems.
3347case "${target}" in
3348 avr-*-*)
3349 # No hosted I/O support.
3350 noconfigdirs="$noconfigdirs target-libssp"
3351 ;;
3352 powerpc-*-aix* | rs6000-*-aix*)
3353 noconfigdirs="$noconfigdirs target-libssp"
3354 ;;
3355 rl78-*-*)
3356 # libssp uses a misaligned load to trigger a fault, but the RL78
3357 # doesn't fault for those - instead, it gives a build-time error
3358 # for explicit misaligned loads.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 visium-*-*)
3362 # No hosted I/O support.
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
3365esac
3366
3367# Disable libstdc++-v3 for some systems.
3368# Allow user to override this if they pass --enable-libstdc++-v3
3369if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3370 case "${target}" in
3371 *-*-vxworks*)
3372 # VxWorks uses the Dinkumware C++ library.
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 arm*-wince-pe*)
3376 # the C++ libraries don't build on top of CE's C libraries
3377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 ;;
3379 avr-*-*)
3380 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3381 ;;
3382 ft32-*-*)
3383 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 ;;
3385 esac
3386fi
3387
3388# Disable Fortran for some systems.
3389case "${target}" in
3390 mmix-*-*)
3391 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3392 unsupported_languages="$unsupported_languages fortran"
3393 ;;
3394esac
3395
3396# Disable libffi for some systems.
3397case "${target}" in
3398 powerpc-*-darwin*)
3399 ;;
3400 i[3456789]86-*-darwin*)
3401 ;;
3402 x86_64-*-darwin[912]*)
3403 ;;
3404 *-*-darwin*)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 *-*-netware*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 *-*-phoenix*)
3411 noconfigdirs="$noconfigdirs target-libffi"
3412 ;;
3413 *-*-rtems*)
3414 noconfigdirs="$noconfigdirs target-libffi"
3415 ;;
3416 *-*-tpf*)
3417 noconfigdirs="$noconfigdirs target-libffi"
3418 ;;
3419 *-*-uclinux*)
3420 noconfigdirs="$noconfigdirs target-libffi"
3421 ;;
3422 *-*-vxworks*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3424 ;;
3425 aarch64*-*-freebsd*)
3426 noconfigdirs="$noconfigdirs target-libffi"
3427 ;;
3428 alpha*-*-*vms*)
3429 noconfigdirs="$noconfigdirs target-libffi"
3430 ;;
3431 arm*-*-freebsd*)
3432 noconfigdirs="$noconfigdirs target-libffi"
3433 ;;
3434 arm-wince-pe)
3435 noconfigdirs="$noconfigdirs target-libffi"
3436 ;;
3437 arm*-*-symbianelf*)
3438 noconfigdirs="$noconfigdirs target-libffi"
3439 ;;
3440 cris-*-* | crisv32-*-*)
3441 case "${target}" in
3442 *-*-linux*)
3443 ;;
3444 *) # See PR46792 regarding target-libffi.
3445 noconfigdirs="$noconfigdirs target-libffi";;
3446 esac
3447 ;;
3448 hppa*64*-*-hpux*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 hppa*-hp-hpux11*)
3452 ;;
3453 hppa*-*-hpux*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 ia64*-*-*vms*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3458 ;;
3459 i[3456789]86-w64-mingw*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3461 ;;
3462 i[3456789]86-*-mingw*)
3463 noconfigdirs="$noconfigdirs target-libffi"
3464 ;;
3465 x86_64-*-mingw*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 mmix-*-*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3470 ;;
3471 powerpc-*-aix*)
3472 ;;
3473 rs6000-*-aix*)
3474 ;;
3475 ft32-*-*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 *-*-lynxos*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
3481esac
3482
3483# Disable the go frontend on systems where it is known to not work. Please keep
3484# this in sync with contrib/config-list.mk.
3485case "${target}" in
3486*-*-darwin* | *-*-cygwin* | *-*-mingw*)
3487 unsupported_languages="$unsupported_languages go"
3488 ;;
3489esac
3490
3491# Only allow gdbserver on some systems.
3492if test -d ${srcdir}/gdbserver; then
3493 if test x$enable_gdbserver = x; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3495$as_echo_n "checking for gdbserver support... " >&6; }
3496 if (srcdir=${srcdir}/gdbserver; \
3497 . ${srcdir}/configure.srv; \
3498 test -n "$UNSUPPORTED")
3499 then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502 noconfigdirs="$noconfigdirs gdbserver"
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505$as_echo "yes" >&6; }
3506 fi
3507 fi
3508fi
3509
3510# Disable libgo for some systems where it is known to not work.
3511# For testing, you can easily override this with --enable-libgo.
3512if test x$enable_libgo = x; then
3513 case "${target}" in
3514 *-*-darwin*)
3515 # PR 46986
3516 noconfigdirs="$noconfigdirs target-libgo"
3517 ;;
3518 *-*-cygwin* | *-*-mingw*)
3519 noconfigdirs="$noconfigdirs target-libgo"
3520 ;;
3521 esac
3522fi
3523
3524# Default libgloss CPU subdirectory.
3525libgloss_dir="$target_cpu"
3526
3527case "${target}" in
3528 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3529 libgloss_dir=wince
3530 ;;
3531 aarch64*-*-* )
3532 libgloss_dir=aarch64
3533 ;;
3534 arm*-*-*)
3535 libgloss_dir=arm
3536 ;;
3537 cris-*-* | crisv32-*-*)
3538 libgloss_dir=cris
3539 ;;
3540 hppa*-*-*)
3541 libgloss_dir=pa
3542 ;;
3543 i[3456789]86-*-*)
3544 libgloss_dir=i386
3545 ;;
3546 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3547 libgloss_dir=m68hc11
3548 ;;
3549 m68*-*-* | fido-*-*)
3550 libgloss_dir=m68k
3551 ;;
3552 mips*-*-*)
3553 libgloss_dir=mips
3554 ;;
3555 powerpc*-*-*)
3556 libgloss_dir=rs6000
3557 ;;
3558 sparc*-*-*)
3559 libgloss_dir=sparc
3560 ;;
3561esac
3562
3563# Disable newlib and libgloss for various target OSes.
3564case "${target}" in
3565 alpha*-dec-osf*)
3566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 ;;
3568 i[3456789]86-*-linux*)
3569 # This section makes it possible to build newlib natively on linux.
3570 # If we are using a cross compiler then don't configure newlib.
3571 if test x${is_cross_compiler} != xno ; then
3572 noconfigdirs="$noconfigdirs target-newlib"
3573 fi
3574 noconfigdirs="$noconfigdirs target-libgloss"
3575 # If we are not using a cross compiler, do configure newlib.
3576 # Note however, that newlib will only be configured in this situation
3577 # if the --with-newlib option has been given, because otherwise
3578 # 'target-newlib' will appear in skipdirs.
3579 ;;
3580 i[3456789]86-*-rdos*)
3581 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 ;;
3583 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 ;;
3586 sparc-*-sunos4*)
3587 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3588 ;;
3589 *-*-aix*)
3590 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 ;;
3592 *-*-beos*)
3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 ;;
3595 *-*-chorusos)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 ;;
3598 *-*-dragonfly*)
3599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 ;;
3601 *-*-freebsd*)
3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 ;;
3604 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 ;;
3607 *-*-lynxos*)
3608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 ;;
3610 *-*-mingw*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
3613 *-*-netbsd*)
3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 ;;
3616 *-*-netware*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 *-*-tpf*)
3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 ;;
3622 *-*-uclinux*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 *-*-vxworks*)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 ;;
3628esac
3629
3630case "${target}" in
3631 *-*-chorusos)
3632 ;;
3633 aarch64-*-darwin*)
3634 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3635 noconfigdirs="$noconfigdirs sim target-rda"
3636 ;;
3637 arm-*-darwin*)
3638 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3639 noconfigdirs="$noconfigdirs sim target-rda"
3640 ;;
3641 powerpc-*-darwin*)
3642 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3643 noconfigdirs="$noconfigdirs sim target-rda"
3644 ;;
3645 i[3456789]86-*-darwin*)
3646 noconfigdirs="$noconfigdirs ld gprof"
3647 noconfigdirs="$noconfigdirs sim target-rda"
3648 ;;
3649 x86_64-*-darwin[912]*)
3650 noconfigdirs="$noconfigdirs ld gas gprof"
3651 noconfigdirs="$noconfigdirs sim target-rda"
3652 ;;
3653 *-*-darwin*)
3654 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3655 noconfigdirs="$noconfigdirs sim target-rda"
3656 ;;
3657 *-*-dragonfly*)
3658 ;;
3659 *-*-freebsd*)
3660 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3661 && test -f /usr/local/include/gmp.h; then
3662 with_gmp=/usr/local
3663 fi
3664 ;;
3665 *-*-kaos*)
3666 # Remove unsupported stuff on all kaOS configurations.
3667 noconfigdirs="$noconfigdirs target-libgloss"
3668 ;;
3669 *-*-netbsd*)
3670 ;;
3671 *-*-netware*)
3672 ;;
3673 *-*-phoenix*)
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 ;;
3676 *-*-rtems*)
3677 noconfigdirs="$noconfigdirs target-libgloss"
3678 ;;
3679 # The tpf target doesn't support gdb yet.
3680 *-*-tpf*)
3681 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3682 ;;
3683 *-*-uclinux*)
3684 noconfigdirs="$noconfigdirs target-rda"
3685 ;;
3686 *-*-vxworks*)
3687 ;;
3688 alpha*-dec-osf*)
3689 # ld works, but does not support shared libraries.
3690 # gas doesn't generate exception information.
3691 noconfigdirs="$noconfigdirs gas ld"
3692 ;;
3693 alpha*-*-*vms*)
3694 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3695 ;;
3696 alpha*-*-*)
3697 # newlib is not 64 bit ready
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3701 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3702 ;;
3703 arc*-*-*)
3704 noconfigdirs="$noconfigdirs sim"
3705 ;;
3706 arm-*-pe*)
3707 noconfigdirs="$noconfigdirs target-libgloss"
3708 ;;
3709 arm-*-riscix*)
3710 noconfigdirs="$noconfigdirs ld target-libgloss"
3711 ;;
3712 avr-*-*)
3713 if test x${with_avrlibc} != xno; then
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 fi
3716 ;;
3717 c4x-*-* | tic4x-*-*)
3718 noconfigdirs="$noconfigdirs target-libgloss"
3719 ;;
3720 tic54x-*-*)
3721 noconfigdirs="$noconfigdirs target-libgloss gdb"
3722 ;;
3723 d10v-*-*)
3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 ;;
3726 d30v-*-*)
3727 noconfigdirs="$noconfigdirs gdb"
3728 ;;
3729 fr30-*-elf*)
3730 noconfigdirs="$noconfigdirs gdb"
3731 ;;
3732 ft32-*-*)
3733 noconfigdirs="$noconfigdirs target-rda gprof"
3734 ;;
3735 moxie-*-*)
3736 noconfigdirs="$noconfigdirs"
3737 ;;
3738 h8300*-*-*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3740 ;;
3741 h8500-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss"
3743 ;;
3744 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3745 ;;
3746 hppa*64*-*-hpux*)
3747 noconfigdirs="$noconfigdirs gdb"
3748 ;;
3749 hppa*-*-hpux11*)
3750 noconfigdirs="$noconfigdirs gdb ld"
3751 ;;
3752 hppa*64*-*-linux*)
3753 ;;
3754 hppa*-*-linux*)
3755 ;;
3756 hppa*-*-*elf* | \
3757 hppa*-*-lites* | \
3758 hppa*-*-openbsd* | \
3759 hppa*64*-*-*)
3760 ;;
3761 hppa*-*-pro*)
3762 ;;
3763 hppa*-*-*)
3764 noconfigdirs="$noconfigdirs ld"
3765 ;;
3766 i960-*-*)
3767 noconfigdirs="$noconfigdirs gdb"
3768 ;;
3769 ia64*-*-elf*)
3770 # No gdb support yet.
3771 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3772 ;;
3773 ia64*-**-hpux*)
3774 # No ld support yet.
3775 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3776 ;;
3777 ia64*-*-*vms*)
3778 # No ld support yet.
3779 noconfigdirs="$noconfigdirs libgui itcl ld"
3780 ;;
3781 i[3456789]86-w64-mingw*)
3782 ;;
3783 i[3456789]86-*-mingw*)
3784 target_configdirs="$target_configdirs target-winsup"
3785 ;;
3786 *-*-cygwin*)
3787 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3788 noconfigdirs="$noconfigdirs target-libgloss"
3789 # always build newlib if winsup directory is present.
3790 if test -d "$srcdir/winsup/cygwin"; then
3791 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3792 elif test -d "$srcdir/newlib"; then
3793 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3794 fi
3795 ;;
3796 i[3456789]86-*-pe)
3797 noconfigdirs="$noconfigdirs target-libgloss"
3798 ;;
3799 i[3456789]86-*-sco3.2v5*)
3800 # The linker does not yet know about weak symbols in COFF,
3801 # and is not configured to handle mixed ELF and COFF.
3802 noconfigdirs="$noconfigdirs ld target-libgloss"
3803 ;;
3804 i[3456789]86-*-sco*)
3805 noconfigdirs="$noconfigdirs gprof target-libgloss"
3806 ;;
3807 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3808 noconfigdirs="$noconfigdirs target-libgloss"
3809 ;;
3810 i[3456789]86-*-sysv4*)
3811 noconfigdirs="$noconfigdirs target-libgloss"
3812 ;;
3813 i[3456789]86-*-beos*)
3814 noconfigdirs="$noconfigdirs gdb"
3815 ;;
3816 i[3456789]86-*-rdos*)
3817 noconfigdirs="$noconfigdirs gdb"
3818 ;;
3819 mmix-*-*)
3820 noconfigdirs="$noconfigdirs gdb"
3821 ;;
3822 mt-*-*)
3823 noconfigdirs="$noconfigdirs sim"
3824 ;;
3825 nfp-*-*)
3826 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3827 noconfigdirs="$noconfigdirs $target_libraries"
3828 ;;
3829 pdp11-*-*)
3830 noconfigdirs="$noconfigdirs gdb gprof"
3831 ;;
3832 powerpc-*-aix*)
3833 # copied from rs6000-*-* entry
3834 noconfigdirs="$noconfigdirs gprof"
3835 ;;
3836 powerpc*-*-winnt* | powerpc*-*-pe*)
3837 target_configdirs="$target_configdirs target-winsup"
3838 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3839 # always build newlib.
3840 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3841 ;;
3842 # This is temporary until we can link against shared libraries
3843 powerpcle-*-solaris*)
3844 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3845 ;;
3846 powerpc-*-beos*)
3847 noconfigdirs="$noconfigdirs gdb"
3848 ;;
3849 rs6000-*-lynxos*)
3850 noconfigdirs="$noconfigdirs gprof"
3851 ;;
3852 rs6000-*-aix*)
3853 noconfigdirs="$noconfigdirs gprof"
3854 ;;
3855 rs6000-*-*)
3856 noconfigdirs="$noconfigdirs gprof"
3857 ;;
3858 m68k-apollo-*)
3859 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3860 ;;
3861 microblaze*)
3862 noconfigdirs="$noconfigdirs gprof"
3863 ;;
3864 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3865 if test x$with_newlib = xyes; then
3866 noconfigdirs="$noconfigdirs gprof"
3867 fi
3868 ;;
3869 mips*-*-irix5*)
3870 noconfigdirs="$noconfigdirs gprof target-libgloss"
3871 ;;
3872 mips*-*-irix6*)
3873 noconfigdirs="$noconfigdirs gprof target-libgloss"
3874 ;;
3875 mips*-*-bsd*)
3876 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3877 ;;
3878 mips*-*-linux*)
3879 ;;
3880 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3881 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3882 noconfigdirs="$noconfigdirs ld gas gprof"
3883 ;;
3884 mips*-*-*)
3885 noconfigdirs="$noconfigdirs gprof"
3886 ;;
3887 nvptx*-*-*)
3888 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3889 ;;
3890 sh-*-*)
3891 case "${target}" in
3892 sh*-*-elf)
3893 ;;
3894 *)
3895 noconfigdirs="$noconfigdirs target-libgloss" ;;
3896 esac
3897 ;;
3898 sparc-*-sunos4*)
3899 if test x${is_cross_compiler} = xno ; then
3900 use_gnu_ld=no
3901 fi
3902 ;;
3903 tic6x-*-*)
3904 noconfigdirs="$noconfigdirs sim"
3905 ;;
3906 tilepro*-*-* | tilegx*-*-*)
3907 noconfigdirs="$noconfigdirs sim"
3908 ;;
3909 v810-*-*)
3910 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3911 ;;
3912 vax-*-*)
3913 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3914 ;;
3915 wasm32-*-*)
3916 noconfigdirs="$noconfigdirs ld"
3917 ;;
3918esac
3919
3920# If we aren't building newlib, then don't build libgloss, since libgloss
3921# depends upon some newlib header files.
3922case "${noconfigdirs}" in
3923 *target-libgloss*) ;;
3924 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3925esac
3926
3927# Work in distributions that contain no compiler tools, like Autoconf.
3928host_makefile_frag=/dev/null
3929if test -d ${srcdir}/config ; then
3930case "${host}" in
3931 i[3456789]86-*-msdosdjgpp*)
3932 host_makefile_frag="config/mh-djgpp"
3933 ;;
3934 *-cygwin*)
3935
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3937$as_echo_n "checking to see if cat works as expected... " >&6; }
3938echo a >cygwin-cat-check
3939if test `cat cygwin-cat-check` = a ; then
3940 rm cygwin-cat-check
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942$as_echo "yes" >&6; }
3943else
3944 rm cygwin-cat-check
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947 as_fn_error $? "The cat command does not ignore carriage return characters.
3948 Please either mount the build directory in binary mode or run the following
3949 commands before running any configure script:
3950set -o igncr
3951export SHELLOPTS
3952 " "$LINENO" 5
3953fi
3954
3955 host_makefile_frag="config/mh-cygwin"
3956 ;;
3957 *-mingw*)
3958 host_makefile_frag="config/mh-mingw"
3959 ;;
3960 alpha*-linux*)
3961 host_makefile_frag="config/mh-alpha-linux"
3962 ;;
3963 hppa*-hp-hpux10*)
3964 host_makefile_frag="config/mh-pa-hpux10"
3965 ;;
3966 hppa*-hp-hpux*)
3967 host_makefile_frag="config/mh-pa"
3968 ;;
3969 hppa*-*)
3970 host_makefile_frag="config/mh-pa"
3971 ;;
3972 *-*-darwin*)
3973 host_makefile_frag="config/mh-darwin"
3974 ;;
3975 powerpc-*-aix*)
3976 host_makefile_frag="config/mh-ppc-aix"
3977 ;;
3978 rs6000-*-aix*)
3979 host_makefile_frag="config/mh-ppc-aix"
3980 ;;
3981esac
3982fi
3983
3984if test "${build}" != "${host}" ; then
3985 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3986 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3987 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3988 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3989 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3990 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3991 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3992 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3993 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3994 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3995 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3996 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3997else
3998 AR_FOR_BUILD="\$(AR)"
3999 AS_FOR_BUILD="\$(AS)"
4000 CC_FOR_BUILD="\$(CC)"
4001 CXX_FOR_BUILD="\$(CXX)"
4002 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4003 GOC_FOR_BUILD="\$(GOC)"
4004 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4005 LD_FOR_BUILD="\$(LD)"
4006 NM_FOR_BUILD="\$(NM)"
4007 RANLIB_FOR_BUILD="\$(RANLIB)"
4008 WINDRES_FOR_BUILD="\$(WINDRES)"
4009 WINDMC_FOR_BUILD="\$(WINDMC)"
4010fi
4011
4012ac_ext=c
4013ac_cpp='$CPP $CPPFLAGS'
4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017if test -n "$ac_tool_prefix"; then
4018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4019set dummy ${ac_tool_prefix}gcc; ac_word=$2
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021$as_echo_n "checking for $ac_word... " >&6; }
4022if ${ac_cv_prog_CC+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024else
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC="$CC" # Let the user override the test.
4027else
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039done
4040 done
4041IFS=$as_save_IFS
4042
4043fi
4044fi
4045CC=$ac_cv_prog_CC
4046if test -n "$CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048$as_echo "$CC" >&6; }
4049else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051$as_echo "no" >&6; }
4052fi
4053
4054
4055fi
4056if test -z "$ac_cv_prog_CC"; then
4057 ac_ct_CC=$CC
4058 # Extract the first word of "gcc", so it can be a program name with args.
4059set dummy gcc; ac_word=$2
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
4062if ${ac_cv_prog_ac_ct_CC+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064else
4065 if test -n "$ac_ct_CC"; then
4066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_ac_ct_CC="gcc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079done
4080 done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085ac_ct_CC=$ac_cv_prog_ac_ct_CC
4086if test -n "$ac_ct_CC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4088$as_echo "$ac_ct_CC" >&6; }
4089else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092fi
4093
4094 if test "x$ac_ct_CC" = x; then
4095 CC=""
4096 else
4097 case $cross_compiling:$ac_tool_warned in
4098yes:)
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4101ac_tool_warned=yes ;;
4102esac
4103 CC=$ac_ct_CC
4104 fi
4105else
4106 CC="$ac_cv_prog_CC"
4107fi
4108
4109if test -z "$CC"; then
4110 if test -n "$ac_tool_prefix"; then
4111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4112set dummy ${ac_tool_prefix}cc; ac_word=$2
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if ${ac_cv_prog_CC+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117else
4118 if test -n "$CC"; then
4119 ac_cv_prog_CC="$CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_CC="${ac_tool_prefix}cc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4131 fi
4132done
4133 done
4134IFS=$as_save_IFS
4135
4136fi
4137fi
4138CC=$ac_cv_prog_CC
4139if test -n "$CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141$as_echo "$CC" >&6; }
4142else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146
4147
4148 fi
4149fi
4150if test -z "$CC"; then
4151 # Extract the first word of "cc", so it can be a program name with args.
4152set dummy cc; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if ${ac_cv_prog_CC+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157else
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160else
4161 ac_prog_rejected=no
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4170 ac_prog_rejected=yes
4171 continue
4172 fi
4173 ac_cv_prog_CC="cc"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178 done
4179IFS=$as_save_IFS
4180
4181if test $ac_prog_rejected = yes; then
4182 # We found a bogon in the path, so make sure we never use it.
4183 set dummy $ac_cv_prog_CC
4184 shift
4185 if test $# != 0; then
4186 # We chose a different compiler from the bogus one.
4187 # However, it has the same basename, so the bogon will be chosen
4188 # first if we set CC to just the basename; use the full file name.
4189 shift
4190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4191 fi
4192fi
4193fi
4194fi
4195CC=$ac_cv_prog_CC
4196if test -n "$CC"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4198$as_echo "$CC" >&6; }
4199else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
4202fi
4203
4204
4205fi
4206if test -z "$CC"; then
4207 if test -n "$ac_tool_prefix"; then
4208 for ac_prog in cl.exe
4209 do
4210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
4214if ${ac_cv_prog_CC+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216else
4217 if test -n "$CC"; then
4218 ac_cv_prog_CC="$CC" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231done
4232 done
4233IFS=$as_save_IFS
4234
4235fi
4236fi
4237CC=$ac_cv_prog_CC
4238if test -n "$CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4240$as_echo "$CC" >&6; }
4241else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246
4247 test -n "$CC" && break
4248 done
4249fi
4250if test -z "$CC"; then
4251 ac_ct_CC=$CC
4252 for ac_prog in cl.exe
4253do
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255set dummy $ac_prog; ac_word=$2
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257$as_echo_n "checking for $ac_word... " >&6; }
4258if ${ac_cv_prog_ac_ct_CC+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260else
4261 if test -n "$ac_ct_CC"; then
4262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4263else
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_ac_ct_CC="$ac_prog"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
4276 done
4277IFS=$as_save_IFS
4278
4279fi
4280fi
4281ac_ct_CC=$ac_cv_prog_ac_ct_CC
4282if test -n "$ac_ct_CC"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4284$as_echo "$ac_ct_CC" >&6; }
4285else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287$as_echo "no" >&6; }
4288fi
4289
4290
4291 test -n "$ac_ct_CC" && break
4292done
4293
4294 if test "x$ac_ct_CC" = x; then
4295 CC=""
4296 else
4297 case $cross_compiling:$ac_tool_warned in
4298yes:)
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4301ac_tool_warned=yes ;;
4302esac
4303 CC=$ac_ct_CC
4304 fi
4305fi
4306
4307fi
4308
4309
4310test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4312as_fn_error $? "no acceptable C compiler found in \$PATH
4313See \`config.log' for more details" "$LINENO" 5; }
4314
4315# Provide some information about the compiler.
4316$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4317set X $ac_compile
4318ac_compiler=$2
4319for ac_option in --version -v -V -qversion; do
4320 { { ac_try="$ac_compiler $ac_option >&5"
4321case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326$as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4328 ac_status=$?
4329 if test -s conftest.err; then
4330 sed '10a\
4331... rest of stderr output deleted ...
4332 10q' conftest.err >conftest.er1
4333 cat conftest.er1 >&5
4334 fi
4335 rm -f conftest.er1 conftest.err
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }
4338done
4339
4340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351ac_clean_files_save=$ac_clean_files
4352ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4353# Try to create an executable without -o first, disregard a.out.
4354# It will help us diagnose broken compilers, and finding out an intuition
4355# of exeext.
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4357$as_echo_n "checking whether the C compiler works... " >&6; }
4358ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4359
4360# The possible output files:
4361ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4362
4363ac_rmfiles=
4364for ac_file in $ac_files
4365do
4366 case $ac_file in
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4368 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4369 esac
4370done
4371rm -f $ac_rmfiles
4372
4373if { { ac_try="$ac_link_default"
4374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379$as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_link_default") 2>&5
4381 ac_status=$?
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }; then :
4384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4385# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4386# in a Makefile. We should not override ac_cv_exeext if it was cached,
4387# so that the user can short-circuit this test for compilers unknown to
4388# Autoconf.
4389for ac_file in $ac_files ''
4390do
4391 test -f "$ac_file" || continue
4392 case $ac_file in
4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4394 ;;
4395 [ab].out )
4396 # We found the default executable, but exeext='' is most
4397 # certainly right.
4398 break;;
4399 *.* )
4400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4401 then :; else
4402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4403 fi
4404 # We set ac_cv_exeext here because the later test for it is not
4405 # safe: cross compilers may not add the suffix if given an `-o'
4406 # argument, so we may need to know it at that point already.
4407 # Even if this section looks crufty: it has the advantage of
4408 # actually working.
4409 break;;
4410 * )
4411 break;;
4412 esac
4413done
4414test "$ac_cv_exeext" = no && ac_cv_exeext=
4415
4416else
4417 ac_file=''
4418fi
4419if test -z "$ac_file"; then :
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421$as_echo "no" >&6; }
4422$as_echo "$as_me: failed program was:" >&5
4423sed 's/^/| /' conftest.$ac_ext >&5
4424
4425{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427as_fn_error 77 "C compiler cannot create executables
4428See \`config.log' for more details" "$LINENO" 5; }
4429else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4431$as_echo "yes" >&6; }
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4434$as_echo_n "checking for C compiler default output file name... " >&6; }
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4436$as_echo "$ac_file" >&6; }
4437ac_exeext=$ac_cv_exeext
4438
4439rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4440ac_clean_files=$ac_clean_files_save
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4442$as_echo_n "checking for suffix of executables... " >&6; }
4443if { { ac_try="$ac_link"
4444case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447esac
4448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449$as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_link") 2>&5
4451 ac_status=$?
4452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453 test $ac_status = 0; }; then :
4454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4456# work properly (i.e., refer to `conftest.exe'), while it won't with
4457# `rm'.
4458for ac_file in conftest.exe conftest conftest.*; do
4459 test -f "$ac_file" || continue
4460 case $ac_file in
4461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4463 break;;
4464 * ) break;;
4465 esac
4466done
4467else
4468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4470as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4471See \`config.log' for more details" "$LINENO" 5; }
4472fi
4473rm -f conftest conftest$ac_cv_exeext
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4475$as_echo "$ac_cv_exeext" >&6; }
4476
4477rm -f conftest.$ac_ext
4478EXEEXT=$ac_cv_exeext
4479ac_exeext=$EXEEXT
4480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h. */
4482#include <stdio.h>
4483int
4484main ()
4485{
4486FILE *f = fopen ("conftest.out", "w");
4487 return ferror (f) || fclose (f) != 0;
4488
4489 ;
4490 return 0;
4491}
4492_ACEOF
4493ac_clean_files="$ac_clean_files conftest.out"
4494# Check that the compiler produces executables we can run. If not, either
4495# the compiler is broken, or we cross compile.
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4497$as_echo_n "checking whether we are cross compiling... " >&6; }
4498if test "$cross_compiling" != yes; then
4499 { { ac_try="$ac_link"
4500case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503esac
4504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505$as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_link") 2>&5
4507 ac_status=$?
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4510 if { ac_try='./conftest$ac_cv_exeext'
4511 { { case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
4515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516$as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_try") 2>&5
4518 ac_status=$?
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; }; then
4521 cross_compiling=no
4522 else
4523 if test "$cross_compiling" = maybe; then
4524 cross_compiling=yes
4525 else
4526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528as_fn_error $? "cannot run C compiled programs.
4529If you meant to cross compile, use \`--host'.
4530See \`config.log' for more details" "$LINENO" 5; }
4531 fi
4532 fi
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4535$as_echo "$cross_compiling" >&6; }
4536
4537rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4538ac_clean_files=$ac_clean_files_save
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4540$as_echo_n "checking for suffix of object files... " >&6; }
4541if ${ac_cv_objext+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543else
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h. */
4546
4547int
4548main ()
4549{
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555rm -f conftest.o conftest.obj
4556if { { ac_try="$ac_compile"
4557case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560esac
4561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562$as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_compile") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }; then :
4567 for ac_file in conftest.o conftest.obj conftest.*; do
4568 test -f "$ac_file" || continue;
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4572 break;;
4573 esac
4574done
4575else
4576 $as_echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581as_fn_error $? "cannot compute suffix of object files: cannot compile
4582See \`config.log' for more details" "$LINENO" 5; }
4583fi
4584rm -f conftest.$ac_cv_objext conftest.$ac_ext
4585fi
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4587$as_echo "$ac_cv_objext" >&6; }
4588OBJEXT=$ac_cv_objext
4589ac_objext=$OBJEXT
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4591$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4592if ${ac_cv_c_compiler_gnu+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594else
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h. */
4597
4598int
4599main ()
4600{
4601#ifndef __GNUC__
4602 choke me
4603#endif
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_compiler_gnu=yes
4611else
4612 ac_compiler_gnu=no
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615ac_cv_c_compiler_gnu=$ac_compiler_gnu
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4619$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4620if test $ac_compiler_gnu = yes; then
4621 GCC=yes
4622else
4623 GCC=
4624fi
4625ac_test_CFLAGS=${CFLAGS+set}
4626ac_save_CFLAGS=$CFLAGS
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4628$as_echo_n "checking whether $CC accepts -g... " >&6; }
4629if ${ac_cv_prog_cc_g+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631else
4632 ac_save_c_werror_flag=$ac_c_werror_flag
4633 ac_c_werror_flag=yes
4634 ac_cv_prog_cc_g=no
4635 CFLAGS="-g"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638
4639int
4640main ()
4641{
4642
4643 ;
4644 return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_prog_cc_g=yes
4649else
4650 CFLAGS=""
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h. */
4653
4654int
4655main ()
4656{
4657
4658 ;
4659 return 0;
4660}
4661_ACEOF
4662if ac_fn_c_try_compile "$LINENO"; then :
4663
4664else
4665 ac_c_werror_flag=$ac_save_c_werror_flag
4666 CFLAGS="-g"
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h. */
4669
4670int
4671main ()
4672{
4673
4674 ;
4675 return 0;
4676}
4677_ACEOF
4678if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_cv_prog_cc_g=yes
4680fi
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_c_werror_flag=$ac_save_c_werror_flag
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4689$as_echo "$ac_cv_prog_cc_g" >&6; }
4690if test "$ac_test_CFLAGS" = set; then
4691 CFLAGS=$ac_save_CFLAGS
4692elif test $ac_cv_prog_cc_g = yes; then
4693 if test "$GCC" = yes; then
4694 CFLAGS="-g -O2"
4695 else
4696 CFLAGS="-g"
4697 fi
4698else
4699 if test "$GCC" = yes; then
4700 CFLAGS="-O2"
4701 else
4702 CFLAGS=
4703 fi
4704fi
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4706$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4707if ${ac_cv_prog_cc_c89+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709else
4710 ac_cv_prog_cc_c89=no
4711ac_save_CC=$CC
4712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h. */
4714#include <stdarg.h>
4715#include <stdio.h>
4716struct stat;
4717/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4718struct buf { int x; };
4719FILE * (*rcsopen) (struct buf *, struct stat *, int);
4720static char *e (p, i)
4721 char **p;
4722 int i;
4723{
4724 return p[i];
4725}
4726static char *f (char * (*g) (char **, int), char **p, ...)
4727{
4728 char *s;
4729 va_list v;
4730 va_start (v,p);
4731 s = g (p, va_arg (v,int));
4732 va_end (v);
4733 return s;
4734}
4735
4736/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4737 function prototypes and stuff, but not '\xHH' hex character constants.
4738 These don't provoke an error unfortunately, instead are silently treated
4739 as 'x'. The following induces an error, until -std is added to get
4740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4741 array size at least. It's necessary to write '\x00'==0 to get something
4742 that's true only with -std. */
4743int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4744
4745/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4746 inside strings and character constants. */
4747#define FOO(x) 'x'
4748int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4749
4750int test (int i, double x);
4751struct s1 {int (*f) (int a);};
4752struct s2 {int (*f) (double a);};
4753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4754int argc;
4755char **argv;
4756int
4757main ()
4758{
4759return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4765 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4766do
4767 CC="$ac_save_CC $ac_arg"
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_prog_cc_c89=$ac_arg
4770fi
4771rm -f core conftest.err conftest.$ac_objext
4772 test "x$ac_cv_prog_cc_c89" != "xno" && break
4773done
4774rm -f conftest.$ac_ext
4775CC=$ac_save_CC
4776
4777fi
4778# AC_CACHE_VAL
4779case "x$ac_cv_prog_cc_c89" in
4780 x)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4782$as_echo "none needed" >&6; } ;;
4783 xno)
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4785$as_echo "unsupported" >&6; } ;;
4786 *)
4787 CC="$CC $ac_cv_prog_cc_c89"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4789$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4790esac
4791if test "x$ac_cv_prog_cc_c89" != xno; then :
4792
4793fi
4794
4795ac_ext=c
4796ac_cpp='$CPP $CPPFLAGS'
4797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800
4801ac_ext=cpp
4802ac_cpp='$CXXCPP $CPPFLAGS'
4803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4806if test -z "$CXX"; then
4807 if test -n "$CCC"; then
4808 CXX=$CCC
4809 else
4810 if test -n "$ac_tool_prefix"; then
4811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4812 do
4813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if ${ac_cv_prog_CXX+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819else
4820 if test -n "$CXX"; then
4821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834done
4835 done
4836IFS=$as_save_IFS
4837
4838fi
4839fi
4840CXX=$ac_cv_prog_CXX
4841if test -n "$CXX"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4843$as_echo "$CXX" >&6; }
4844else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
4847fi
4848
4849
4850 test -n "$CXX" && break
4851 done
4852fi
4853if test -z "$CXX"; then
4854 ac_ct_CXX=$CXX
4855 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4856do
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858set dummy $ac_prog; ac_word=$2
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860$as_echo_n "checking for $ac_word... " >&6; }
4861if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863else
4864 if test -n "$ac_ct_CXX"; then
4865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_ac_ct_CXX="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878done
4879 done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4885if test -n "$ac_ct_CXX"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4887$as_echo "$ac_ct_CXX" >&6; }
4888else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893
4894 test -n "$ac_ct_CXX" && break
4895done
4896
4897 if test "x$ac_ct_CXX" = x; then
4898 CXX="g++"
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901yes:)
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904ac_tool_warned=yes ;;
4905esac
4906 CXX=$ac_ct_CXX
4907 fi
4908fi
4909
4910 fi
4911fi
4912# Provide some information about the compiler.
4913$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4914set X $ac_compile
4915ac_compiler=$2
4916for ac_option in --version -v -V -qversion; do
4917 { { ac_try="$ac_compiler $ac_option >&5"
4918case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921esac
4922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4923$as_echo "$ac_try_echo"; } >&5
4924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4925 ac_status=$?
4926 if test -s conftest.err; then
4927 sed '10a\
4928... rest of stderr output deleted ...
4929 10q' conftest.err >conftest.er1
4930 cat conftest.er1 >&5
4931 fi
4932 rm -f conftest.er1 conftest.err
4933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4934 test $ac_status = 0; }
4935done
4936
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4938$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4939if ${ac_cv_cxx_compiler_gnu+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948#ifndef __GNUC__
4949 choke me
4950#endif
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956if ac_fn_cxx_try_compile "$LINENO"; then :
4957 ac_compiler_gnu=yes
4958else
4959 ac_compiler_gnu=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4963
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4966$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4967if test $ac_compiler_gnu = yes; then
4968 GXX=yes
4969else
4970 GXX=
4971fi
4972ac_test_CXXFLAGS=${CXXFLAGS+set}
4973ac_save_CXXFLAGS=$CXXFLAGS
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4975$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4976if ${ac_cv_prog_cxx_g+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978else
4979 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4980 ac_cxx_werror_flag=yes
4981 ac_cv_prog_cxx_g=no
4982 CXXFLAGS="-g"
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h. */
4985
4986int
4987main ()
4988{
4989
4990 ;
4991 return 0;
4992}
4993_ACEOF
4994if ac_fn_cxx_try_compile "$LINENO"; then :
4995 ac_cv_prog_cxx_g=yes
4996else
4997 CXXFLAGS=""
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999/* end confdefs.h. */
5000
5001int
5002main ()
5003{
5004
5005 ;
5006 return 0;
5007}
5008_ACEOF
5009if ac_fn_cxx_try_compile "$LINENO"; then :
5010
5011else
5012 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5013 CXXFLAGS="-g"
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
5025if ac_fn_cxx_try_compile "$LINENO"; then :
5026 ac_cv_prog_cxx_g=yes
5027fi
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5034fi
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5036$as_echo "$ac_cv_prog_cxx_g" >&6; }
5037if test "$ac_test_CXXFLAGS" = set; then
5038 CXXFLAGS=$ac_save_CXXFLAGS
5039elif test $ac_cv_prog_cxx_g = yes; then
5040 if test "$GXX" = yes; then
5041 CXXFLAGS="-g -O2"
5042 else
5043 CXXFLAGS="-g"
5044 fi
5045else
5046 if test "$GXX" = yes; then
5047 CXXFLAGS="-O2"
5048 else
5049 CXXFLAGS=
5050 fi
5051fi
5052ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057
5058
5059# We must set the default linker to the linker used by gcc for the correct
5060# operation of libtool. If LD is not defined and we are using gcc, try to
5061# set the LD default to the ld used by gcc.
5062if test -z "$LD"; then
5063 if test "$GCC" = yes; then
5064 case $build in
5065 *-*-mingw*)
5066 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5067 *)
5068 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5069 esac
5070 case $gcc_prog_ld in
5071 # Accept absolute paths.
5072 [\\/]* | [A-Za-z]:[\\/]*)
5073 LD="$gcc_prog_ld" ;;
5074 esac
5075 fi
5076fi
5077
5078# Check whether -static-libstdc++ -static-libgcc is supported.
5079have_static_libs=no
5080if test "$GCC" = yes; then
5081 saved_LDFLAGS="$LDFLAGS"
5082
5083 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5085$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5086 ac_ext=cpp
5087ac_cpp='$CXXCPP $CPPFLAGS'
5088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091
5092
5093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095
5096#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5097#error -static-libstdc++ not implemented
5098#endif
5099int main() {}
5100_ACEOF
5101if ac_fn_cxx_try_link "$LINENO"; then :
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103$as_echo "yes" >&6; }; have_static_libs=yes
5104else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106$as_echo "no" >&6; }
5107fi
5108rm -f core conftest.err conftest.$ac_objext \
5109 conftest$ac_exeext conftest.$ac_ext
5110 ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115
5116
5117 LDFLAGS="$saved_LDFLAGS"
5118fi
5119
5120
5121
5122
5123if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5125set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if ${ac_cv_prog_GNATBIND+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 if test -n "$GNATBIND"; then
5132 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146 done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
5151GNATBIND=$ac_cv_prog_GNATBIND
5152if test -n "$GNATBIND"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5154$as_echo "$GNATBIND" >&6; }
5155else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160
5161fi
5162if test -z "$ac_cv_prog_GNATBIND"; then
5163 ac_ct_GNATBIND=$GNATBIND
5164 # Extract the first word of "gnatbind", so it can be a program name with args.
5165set dummy gnatbind; ac_word=$2
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167$as_echo_n "checking for $ac_word... " >&6; }
5168if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170else
5171 if test -n "$ac_ct_GNATBIND"; then
5172 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186 done
5187IFS=$as_save_IFS
5188
5189fi
5190fi
5191ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5192if test -n "$ac_ct_GNATBIND"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5194$as_echo "$ac_ct_GNATBIND" >&6; }
5195else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
5199
5200 if test "x$ac_ct_GNATBIND" = x; then
5201 GNATBIND="no"
5202 else
5203 case $cross_compiling:$ac_tool_warned in
5204yes:)
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207ac_tool_warned=yes ;;
5208esac
5209 GNATBIND=$ac_ct_GNATBIND
5210 fi
5211else
5212 GNATBIND="$ac_cv_prog_GNATBIND"
5213fi
5214
5215if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if ${ac_cv_prog_GNATMAKE+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 if test -n "$GNATMAKE"; then
5224 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237done
5238 done
5239IFS=$as_save_IFS
5240
5241fi
5242fi
5243GNATMAKE=$ac_cv_prog_GNATMAKE
5244if test -n "$GNATMAKE"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5246$as_echo "$GNATMAKE" >&6; }
5247else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250fi
5251
5252
5253fi
5254if test -z "$ac_cv_prog_GNATMAKE"; then
5255 ac_ct_GNATMAKE=$GNATMAKE
5256 # Extract the first word of "gnatmake", so it can be a program name with args.
5257set dummy gnatmake; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262else
5263 if test -n "$ac_ct_GNATMAKE"; then
5264 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277done
5278 done
5279IFS=$as_save_IFS
5280
5281fi
5282fi
5283ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5284if test -n "$ac_ct_GNATMAKE"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5286$as_echo "$ac_ct_GNATMAKE" >&6; }
5287else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292 if test "x$ac_ct_GNATMAKE" = x; then
5293 GNATMAKE="no"
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296yes:)
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299ac_tool_warned=yes ;;
5300esac
5301 GNATMAKE=$ac_ct_GNATMAKE
5302 fi
5303else
5304 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305fi
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5308$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5309if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311else
5312 cat >conftest.adb <<EOF
5313procedure conftest is begin null; end conftest;
5314EOF
5315acx_cv_cc_gcc_supports_ada=no
5316# There is a bug in old released versions of GCC which causes the
5317# driver to exit successfully when the appropriate language module
5318# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5319# Therefore we must check for the error message as well as an
5320# unsuccessful exit.
5321# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5322# given a .adb file, but produce no object file. So we must check
5323# if an object file was really produced to guard against this.
5324errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5325if test x"$errors" = x && test -f conftest.$ac_objext; then
5326 acx_cv_cc_gcc_supports_ada=yes
5327fi
5328rm -f conftest.*
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5331$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5332
5333if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5334 have_gnat=yes
5335else
5336 have_gnat=no
5337fi
5338
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5340$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5341if ${gcc_cv_prog_cmp_skip+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343else
5344 echo abfoo >t1
5345 echo cdfoo >t2
5346 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5347 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5348 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5349 :
5350 else
5351 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5352 fi
5353 fi
5354 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5355 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5356 :
5357 else
5358 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5359 fi
5360 fi
5361 rm t1 t2
5362
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5365$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5366do_compare="$gcc_cv_prog_cmp_skip"
5367
5368
5369
5370# Check whether --enable-bootstrap was given.
5371if test "${enable_bootstrap+set}" = set; then :
5372 enableval=$enable_bootstrap;
5373else
5374 enable_bootstrap=default
5375fi
5376
5377
5378# Issue errors and warnings for invalid/strange bootstrap combinations.
5379if test -r $srcdir/gcc/configure; then
5380 have_compiler=yes
5381else
5382 have_compiler=no
5383fi
5384
5385case "$have_compiler:$host:$target:$enable_bootstrap" in
5386 *:*:*:no) ;;
5387
5388 # Default behavior. Enable bootstrap if we have a compiler
5389 # and we are in a native configuration.
5390 yes:$build:$build:default)
5391 enable_bootstrap=yes ;;
5392
5393 *:*:*:default)
5394 enable_bootstrap=no ;;
5395
5396 # We have a compiler and we are in a native configuration, bootstrap is ok
5397 yes:$build:$build:yes)
5398 ;;
5399
5400 # Other configurations, but we have a compiler. Assume the user knows
5401 # what he's doing.
5402 yes:*:*:yes)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5404$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5405 ;;
5406
5407 # No compiler: if they passed --enable-bootstrap explicitly, fail
5408 no:*:*:yes)
5409 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5410
5411 # Fail if wrong command line
5412 *)
5413 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5414 ;;
5415esac
5416
5417# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5418# C++98 compiler can still start the bootstrap.
5419if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5420 CXX="$CXX -std=gnu++98"
5421fi
5422
5423# Used for setting $lt_cv_objdir
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5425$as_echo_n "checking for objdir... " >&6; }
5426if ${lt_cv_objdir+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 rm -f .libs 2>/dev/null
5430mkdir .libs 2>/dev/null
5431if test -d .libs; then
5432 lt_cv_objdir=.libs
5433else
5434 # MS-DOS does not allow filenames that begin with a dot.
5435 lt_cv_objdir=_libs
5436fi
5437rmdir .libs 2>/dev/null
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5440$as_echo "$lt_cv_objdir" >&6; }
5441objdir=$lt_cv_objdir
5442
5443
5444
5445
5446
5447cat >>confdefs.h <<_ACEOF
5448#define LT_OBJDIR "$lt_cv_objdir/"
5449_ACEOF
5450
5451
5452
5453# Check for GMP, MPFR and MPC
5454gmplibs="-lmpc -lmpfr -lgmp"
5455gmpinc=
5456have_gmp=no
5457
5458# Specify a location for mpc
5459# check for this first so it ends up on the link line before mpfr.
5460
5461# Check whether --with-mpc was given.
5462if test "${with_mpc+set}" = set; then :
5463 withval=$with_mpc;
5464fi
5465
5466
5467# Check whether --with-mpc-include was given.
5468if test "${with_mpc_include+set}" = set; then :
5469 withval=$with_mpc_include;
5470fi
5471
5472
5473# Check whether --with-mpc-lib was given.
5474if test "${with_mpc_lib+set}" = set; then :
5475 withval=$with_mpc_lib;
5476fi
5477
5478
5479if test "x$with_mpc" != x; then
5480 gmplibs="-L$with_mpc/lib $gmplibs"
5481 gmpinc="-I$with_mpc/include $gmpinc"
5482fi
5483if test "x$with_mpc_include" != x; then
5484 gmpinc="-I$with_mpc_include $gmpinc"
5485fi
5486if test "x$with_mpc_lib" != x; then
5487 gmplibs="-L$with_mpc_lib $gmplibs"
5488fi
5489if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5490 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5491 gmpinc='-I$$s/mpc/src '"$gmpinc"
5492 # Do not test the mpc version. Assume that it is sufficient, since
5493 # it is in the source tree, and the library has not been built yet
5494 # but it would be included on the link line in the version check below
5495 # hence making the test fail.
5496 have_gmp=yes
5497fi
5498
5499# Specify a location for mpfr
5500# check for this first so it ends up on the link line before gmp.
5501
5502# Check whether --with-mpfr-dir was given.
5503if test "${with_mpfr_dir+set}" = set; then :
5504 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5505Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5506fi
5507
5508
5509
5510# Check whether --with-mpfr was given.
5511if test "${with_mpfr+set}" = set; then :
5512 withval=$with_mpfr;
5513fi
5514
5515
5516# Check whether --with-mpfr-include was given.
5517if test "${with_mpfr_include+set}" = set; then :
5518 withval=$with_mpfr_include;
5519fi
5520
5521
5522# Check whether --with-mpfr-lib was given.
5523if test "${with_mpfr_lib+set}" = set; then :
5524 withval=$with_mpfr_lib;
5525fi
5526
5527
5528if test "x$with_mpfr" != x; then
5529 gmplibs="-L$with_mpfr/lib $gmplibs"
5530 gmpinc="-I$with_mpfr/include $gmpinc"
5531fi
5532if test "x$with_mpfr_include" != x; then
5533 gmpinc="-I$with_mpfr_include $gmpinc"
5534fi
5535if test "x$with_mpfr_lib" != x; then
5536 gmplibs="-L$with_mpfr_lib $gmplibs"
5537fi
5538if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5539 # MPFR v3.1.0 moved the sources into a src sub-directory.
5540 if ! test -d ${srcdir}/mpfr/src; then
5541 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5542 fi
5543 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5544 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5545 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5546 # Do not test the mpfr version. Assume that it is sufficient, since
5547 # it is in the source tree, and the library has not been built yet
5548 # but it would be included on the link line in the version check below
5549 # hence making the test fail.
5550 have_gmp=yes
5551fi
5552
5553# Specify a location for gmp
5554
5555# Check whether --with-gmp-dir was given.
5556if test "${with_gmp_dir+set}" = set; then :
5557 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5558Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5559fi
5560
5561
5562
5563# Check whether --with-gmp was given.
5564if test "${with_gmp+set}" = set; then :
5565 withval=$with_gmp;
5566fi
5567
5568
5569# Check whether --with-gmp-include was given.
5570if test "${with_gmp_include+set}" = set; then :
5571 withval=$with_gmp_include;
5572fi
5573
5574
5575# Check whether --with-gmp-lib was given.
5576if test "${with_gmp_lib+set}" = set; then :
5577 withval=$with_gmp_lib;
5578fi
5579
5580
5581
5582if test "x$with_gmp" != x; then
5583 gmplibs="-L$with_gmp/lib $gmplibs"
5584 gmpinc="-I$with_gmp/include $gmpinc"
5585fi
5586if test "x$with_gmp_include" != x; then
5587 gmpinc="-I$with_gmp_include $gmpinc"
5588fi
5589if test "x$with_gmp_lib" != x; then
5590 gmplibs="-L$with_gmp_lib $gmplibs"
5591fi
5592if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5593 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5594 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5595 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5596 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5597 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5598 # Do not test the gmp version. Assume that it is sufficient, since
5599 # it is in the source tree, and the library has not been built yet
5600 # but it would be included on the link line in the version check below
5601 # hence making the test fail.
5602 have_gmp=yes
5603fi
5604
5605if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5606 have_gmp=yes
5607 saved_CFLAGS="$CFLAGS"
5608 CFLAGS="$CFLAGS $gmpinc"
5609 # Check for the recommended and required versions of GMP.
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5611$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5612
5613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
5615#include "gmp.h"
5616int
5617main ()
5618{
5619
5620 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5621 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5622 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5623 choke me
5624 #endif
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h. */
5633#include <gmp.h>
5634int
5635main ()
5636{
5637
5638 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5639 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5640 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5641 choke me
5642 #endif
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650$as_echo "yes" >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5653$as_echo "buggy but acceptable" >&6; }
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }; have_gmp=no
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661
5662 # If we have GMP, check the MPFR version.
5663 if test x"$have_gmp" = xyes; then
5664 # Check for the recommended and required versions of MPFR.
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5666$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h. */
5669#include <gmp.h>
5670 #include <mpfr.h>
5671int
5672main ()
5673{
5674
5675 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5676 choke me
5677 #endif
5678
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683if ac_fn_c_try_compile "$LINENO"; then :
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h. */
5686#include <gmp.h>
5687 #include <mpfr.h>
5688int
5689main ()
5690{
5691
5692 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5693 choke me
5694 #endif
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_compile "$LINENO"; then :
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5702$as_echo "yes" >&6; }
5703else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5705$as_echo "buggy but acceptable" >&6; }
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }; have_gmp=no
5711fi
5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 fi
5714
5715 # Check for the MPC header version.
5716 if test x"$have_gmp" = xyes ; then
5717 # Check for the recommended and required versions of MPC.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5719$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722#include <mpc.h>
5723int
5724main ()
5725{
5726
5727 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5728 choke me
5729 #endif
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h. */
5738#include <mpc.h>
5739int
5740main ()
5741{
5742
5743 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5744 choke me
5745 #endif
5746
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751if ac_fn_c_try_compile "$LINENO"; then :
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5753$as_echo "yes" >&6; }
5754else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5756$as_echo "buggy but acceptable" >&6; }
5757fi
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }; have_gmp=no
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 fi
5765
5766 # Now check the MPFR library.
5767 if test x"$have_gmp" = xyes; then
5768 saved_LIBS="$LIBS"
5769 LIBS="$LIBS $gmplibs"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5771$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h. */
5774#include <mpc.h>
5775int
5776main ()
5777{
5778
5779 mpfr_t n;
5780 mpfr_t x;
5781 mpc_t c;
5782 int t;
5783 mpfr_init (n);
5784 mpfr_init (x);
5785 mpfr_atan2 (n, n, x, GMP_RNDN);
5786 mpfr_erfc (n, x, GMP_RNDN);
5787 mpfr_subnormalize (x, t, GMP_RNDN);
5788 mpfr_clear(n);
5789 mpfr_clear(x);
5790 mpc_init2 (c, 53);
5791 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5792 mpc_cosh (c, c, MPC_RNDNN);
5793 mpc_pow (c, c, c, MPC_RNDNN);
5794 mpc_acosh (c, c, MPC_RNDNN);
5795 mpc_clear (c);
5796
5797 ;
5798 return 0;
5799}
5800_ACEOF
5801if ac_fn_c_try_link "$LINENO"; then :
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5803$as_echo "yes" >&6; }
5804else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806$as_echo "no" >&6; }; have_gmp=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 LIBS="$saved_LIBS"
5811 fi
5812
5813 CFLAGS="$saved_CFLAGS"
5814
5815# The library versions listed in the error message below should match
5816# the HARD-minimums enforced above.
5817 if test x$have_gmp != xyes; then
5818 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5819Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5820their locations. Source code for these libraries can be found at
5821their respective hosting sites as well as at
5822ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5823http://gcc.gnu.org/install/prerequisites.html for additional info. If
5824you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5825make sure that you have installed both the libraries and the header
5826files. They may be located in separate packages." "$LINENO" 5
5827 fi
5828fi
5829
5830# Flags needed for both GMP, MPFR and/or MPC.
5831
5832
5833
5834
5835
5836
5837
5838# Libraries to use for stage1 or when not bootstrapping.
5839
5840# Check whether --with-stage1-libs was given.
5841if test "${with_stage1_libs+set}" = set; then :
5842 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5843 stage1_libs=
5844 else
5845 stage1_libs=$withval
5846 fi
5847else
5848 stage1_libs=
5849fi
5850
5851
5852
5853# Whether or not to use -static-libstdc++ and -static-libgcc. The
5854# default is yes if gcc is being built; no otherwise. The reason for
5855# this default is that gdb is sometimes linked against GNU Source
5856# Highlight, which is a shared library that uses C++ exceptions. In
5857# this case, -static-libstdc++ will cause crashes.
5858
5859# Check whether --with-static-standard-libraries was given.
5860if test "${with_static_standard_libraries+set}" = set; then :
5861 withval=$with_static_standard_libraries;
5862else
5863 with_static_standard_libraries=auto
5864fi
5865
5866if test "$with_static_standard_libraries" = auto; then
5867 with_static_standard_libraries=$have_compiler
5868fi
5869
5870# Linker flags to use for stage1 or when not bootstrapping.
5871
5872# Check whether --with-stage1-ldflags was given.
5873if test "${with_stage1_ldflags+set}" = set; then :
5874 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5875 stage1_ldflags=
5876 else
5877 stage1_ldflags=$withval
5878 fi
5879else
5880 stage1_ldflags=
5881 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5882 # if supported. But if the user explicitly specified the libraries to use,
5883 # trust that they are doing what they want.
5884 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5885 -a "$have_static_libs" = yes; then
5886 stage1_ldflags="-static-libstdc++ -static-libgcc"
5887 fi
5888fi
5889
5890
5891
5892# Libraries to use for stage2 and later builds.
5893
5894# Check whether --with-boot-libs was given.
5895if test "${with_boot_libs+set}" = set; then :
5896 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5897 poststage1_libs=
5898 else
5899 poststage1_libs=$withval
5900 fi
5901else
5902 poststage1_libs=
5903fi
5904
5905
5906
5907# Linker flags to use for stage2 and later builds.
5908
5909# Check whether --with-boot-ldflags was given.
5910if test "${with_boot_ldflags+set}" = set; then :
5911 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5912 poststage1_ldflags=
5913 else
5914 poststage1_ldflags=$withval
5915 fi
5916else
5917 poststage1_ldflags=
5918 # In stages 2 and 3, default to linking libstdc++ and libgcc
5919 # statically. But if the user explicitly specified the libraries to
5920 # use, trust that they are doing what they want.
5921 if test "$poststage1_libs" = ""; then
5922 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5923 fi
5924fi
5925
5926
5927
5928# GCC GRAPHITE dependency isl.
5929# Basic setup is inlined here, actual checks are in config/isl.m4
5930
5931
5932# Check whether --with-isl was given.
5933if test "${with_isl+set}" = set; then :
5934 withval=$with_isl;
5935fi
5936
5937
5938# Treat --without-isl as a request to disable
5939# GRAPHITE support and skip all following checks.
5940if test "x$with_isl" != "xno"; then
5941 # Check for isl
5942
5943
5944# Check whether --with-isl-include was given.
5945if test "${with_isl_include+set}" = set; then :
5946 withval=$with_isl_include;
5947fi
5948
5949
5950# Check whether --with-isl-lib was given.
5951if test "${with_isl_lib+set}" = set; then :
5952 withval=$with_isl_lib;
5953fi
5954
5955
5956 # Check whether --enable-isl-version-check was given.
5957if test "${enable_isl_version_check+set}" = set; then :
5958 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5959else
5960 ENABLE_ISL_CHECK=yes
5961fi
5962
5963
5964 # Initialize isllibs and islinc.
5965 case $with_isl in
5966 no)
5967 isllibs=
5968 islinc=
5969 ;;
5970 "" | yes)
5971 ;;
5972 *)
5973 isllibs="-L$with_isl/lib"
5974 islinc="-I$with_isl/include"
5975 ;;
5976 esac
5977 if test "x${with_isl_include}" != x ; then
5978 islinc="-I$with_isl_include"
5979 fi
5980 if test "x${with_isl_lib}" != x; then
5981 isllibs="-L$with_isl_lib"
5982 fi
5983 if test "x${islinc}" = x && test "x${isllibs}" = x \
5984 && test -d ${srcdir}/isl; then
5985 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5986 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5987 ENABLE_ISL_CHECK=no
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5989$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5990 fi
5991
5992 isllibs="${isllibs} -lisl"
5993
5994
5995
5996 if test "${ENABLE_ISL_CHECK}" = yes ; then
5997 _isl_saved_CFLAGS=$CFLAGS
5998 _isl_saved_LDFLAGS=$LDFLAGS
5999 _isl_saved_LIBS=$LIBS
6000
6001 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6002 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6003 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6006$as_echo_n "checking for isl 0.15 or later... " >&6; }
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009#include <isl/schedule.h>
6010int
6011main ()
6012{
6013isl_options_set_schedule_serialize_sccs (NULL, 0);
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_link "$LINENO"; then :
6019 gcc_cv_isl=yes
6020else
6021 gcc_cv_isl=no
6022fi
6023rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6026$as_echo "$gcc_cv_isl" >&6; }
6027
6028 if test "${gcc_cv_isl}" = no ; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6030$as_echo "required isl version is 0.15 or later" >&6; }
6031 fi
6032
6033 CFLAGS=$_isl_saved_CFLAGS
6034 LDFLAGS=$_isl_saved_LDFLAGS
6035 LIBS=$_isl_saved_LIBS
6036 fi
6037
6038
6039
6040
6041
6042
6043 if test "x${with_isl}" = xno; then
6044 graphite_requested=no
6045 elif test "x${with_isl}" != x \
6046 || test "x${with_isl_include}" != x \
6047 || test "x${with_isl_lib}" != x ; then
6048 graphite_requested=yes
6049 else
6050 graphite_requested=no
6051 fi
6052
6053
6054
6055 if test "${gcc_cv_isl}" = no ; then
6056 isllibs=
6057 islinc=
6058 fi
6059
6060 if test "${graphite_requested}" = yes \
6061 && test "x${isllibs}" = x \
6062 && test "x${islinc}" = x ; then
6063
6064 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6065 fi
6066
6067
6068fi
6069
6070# If the isl check failed, disable builds of in-tree variant of isl
6071if test "x$with_isl" = xno ||
6072 test "x$gcc_cv_isl" = xno; then
6073 noconfigdirs="$noconfigdirs isl"
6074 islinc=
6075fi
6076
6077
6078
6079
6080# Check for LTO support.
6081# Check whether --enable-lto was given.
6082if test "${enable_lto+set}" = set; then :
6083 enableval=$enable_lto; enable_lto=$enableval
6084else
6085 enable_lto=yes; default_enable_lto=yes
6086fi
6087
6088
6089
6090
6091
6092target_elf=no
6093case $target in
6094 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6095 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6096 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6097 nvptx-*-none)
6098 target_elf=no
6099 ;;
6100 *)
6101 target_elf=yes
6102 ;;
6103esac
6104
6105if test $target_elf = yes; then :
6106 # ELF platforms build the lto-plugin always.
6107 build_lto_plugin=yes
6108
6109else
6110 if test x"$default_enable_lto" = x"yes" ; then
6111 case $target in
6112 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6113 # On other non-ELF platforms, LTO has yet to be validated.
6114 *) enable_lto=no ;;
6115 esac
6116 else
6117 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6118 # It would also be nice to check the binutils support, but we don't
6119 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6120 # warn during gcc/ subconfigure; unless you're bootstrapping with
6121 # -flto it won't be needed until after installation anyway.
6122 case $target in
6123 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6124 *) if test x"$enable_lto" = x"yes"; then
6125 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6126 fi
6127 ;;
6128 esac
6129 fi
6130 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6131 # Build it unless LTO was explicitly disabled.
6132 case $target in
6133 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6134 *) ;;
6135 esac
6136
6137fi
6138
6139
6140# Check whether --enable-linker-plugin-configure-flags was given.
6141if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6142 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6143else
6144 extra_linker_plugin_configure_flags=
6145fi
6146
6147
6148# Check whether --enable-linker-plugin-flags was given.
6149if test "${enable_linker_plugin_flags+set}" = set; then :
6150 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6151else
6152 extra_linker_plugin_flags=
6153fi
6154
6155
6156
6157# Enable --enable-host-shared.
6158# Checked early to determine whether jit is an 'all' language
6159# Check whether --enable-host-shared was given.
6160if test "${enable_host_shared+set}" = set; then :
6161 enableval=$enable_host_shared; host_shared=$enableval
6162else
6163 host_shared=no
6164fi
6165
6166
6167
6168# By default, C and C++ are the only stage 1 languages.
6169stage1_languages=,c,
6170
6171# Target libraries that we bootstrap.
6172bootstrap_target_libs=,target-libgcc,
6173
6174# Figure out what language subdirectories are present.
6175# Look if the user specified --enable-languages="..."; if not, use
6176# the environment variable $LANGUAGES if defined. $LANGUAGES might
6177# go away some day.
6178# NB: embedded tabs in this IF block -- do not untabify
6179if test -d ${srcdir}/gcc; then
6180 if test x"${enable_languages+set}" != xset; then
6181 if test x"${LANGUAGES+set}" = xset; then
6182 enable_languages="${LANGUAGES}"
6183 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6184 else
6185 enable_languages=default
6186 fi
6187 else
6188 if test x"${enable_languages}" = x ||
6189 test x"${enable_languages}" = xyes;
6190 then
6191 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6192 exit 1
6193 fi
6194 fi
6195 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6196
6197 # 'f95' is the old name for the 'fortran' language. We issue a warning
6198 # and make the substitution.
6199 case ,${enable_languages}, in
6200 *,f95,*)
6201 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6202 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6203 ;;
6204 esac
6205
6206 # If bootstrapping, C++ must be enabled.
6207 case ",$enable_languages,:$enable_bootstrap" in
6208 *,c++,*:*) ;;
6209 *:yes)
6210 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6211 enable_languages="${enable_languages},c++"
6212 else
6213 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6214 fi
6215 ;;
6216 esac
6217
6218 # First scan to see if an enabled language requires some other language.
6219 # We assume that a given config-lang.in will list all the language
6220 # front ends it requires, even if some are required indirectly.
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
6228 # From the config-lang.in, get $language, $lang_requires, and
6229 # $lang_requires_boot_languages.
6230 language=
6231 lang_requires=
6232 lang_requires_boot_languages=
6233 # set srcdir during sourcing lang_frag to the gcc dir.
6234 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6235 # polutes this shell
6236 saved_srcdir=${srcdir}
6237 srcdir=${srcdir}/gcc . ${lang_frag}
6238 srcdir=${saved_srcdir}
6239 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6240 case ,${enable_languages}, in
6241 *,$other,*) ;;
6242 *,default,*) ;;
6243 *,all,*) ;;
6244 *,$language,*)
6245 echo " \`$other' language required by \`$language'; enabling" 1>&2
6246 enable_languages="${enable_languages},${other}"
6247 ;;
6248 esac
6249 done
6250 for other in ${lang_requires_boot_languages} ; do
6251 if test "$other" != "c"; then
6252 case ,${enable_stage1_languages}, in
6253 *,$other,*) ;;
6254 *,default,*) ;;
6255 *,all,*) ;;
6256 *)
6257 case ,${enable_languages}, in
6258 *,$language,*)
6259 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6260 enable_stage1_languages="$enable_stage1_languages,${other}"
6261 ;;
6262 esac
6263 ;;
6264 esac
6265 fi
6266 done
6267 ;;
6268 esac
6269 done
6270
6271 new_enable_languages=,c,
6272
6273 # If LTO is enabled, add the LTO front end.
6274 if test "$enable_lto" = "yes" ; then
6275 case ,${enable_languages}, in
6276 *,lto,*) ;;
6277 *) enable_languages="${enable_languages},lto" ;;
6278 esac
6279 if test "${build_lto_plugin}" = "yes" ; then
6280 configdirs="$configdirs lto-plugin"
6281 fi
6282 fi
6283
6284 # If we're building an offloading compiler, add the LTO front end.
6285 if test x"$enable_as_accelerator_for" != x ; then
6286 case ,${enable_languages}, in
6287 *,lto,*) ;;
6288 *) enable_languages="${enable_languages},lto" ;;
6289 esac
6290 fi
6291
6292 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6293 potential_languages=,c,
6294
6295 enabled_target_libs=
6296 disabled_target_libs=
6297
6298 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6299 case ${lang_frag} in
6300 ..) ;;
6301 # The odd quoting in the next line works around
6302 # an apparent bug in bash 1.12 on linux.
6303 ${srcdir}/gcc/[*]/config-lang.in) ;;
6304 *)
6305 # From the config-lang.in, get $language, $target_libs,
6306 # $lang_dirs, $boot_language, and $build_by_default
6307 language=
6308 target_libs=
6309 lang_dirs=
6310 subdir_requires=
6311 boot_language=no
6312 build_by_default=yes
6313 # set srcdir during sourcing. See above about save & restore
6314 saved_srcdir=${srcdir}
6315 srcdir=${srcdir}/gcc . ${lang_frag}
6316 srcdir=${saved_srcdir}
6317 if test x${language} = x; then
6318 echo "${lang_frag} doesn't set \$language." 1>&2
6319 exit 1
6320 fi
6321
6322 if test "$language" = "c++"; then
6323 boot_language=yes
6324 fi
6325
6326 add_this_lang=no
6327 # C is always enabled, so no need to add it again
6328 if test "$language" != "c"; then
6329 case ,${enable_languages}, in
6330 *,${language},*)
6331 # Language was explicitly selected; include it
6332 add_this_lang=yes
6333 ;;
6334 *,all,*)
6335 # All languages are enabled
6336 add_this_lang=all
6337 ;;
6338 *,default,*)
6339 # 'default' was selected, select it if it is a default language
6340 add_this_lang=${build_by_default}
6341 ;;
6342 esac
6343 fi
6344
6345 # Disable languages that need other directories if these aren't available.
6346 for i in $subdir_requires; do
6347 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6348 case ${add_this_lang} in
6349 yes)
6350 # Specifically requested language; tell them.
6351 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6352 ;;
6353 all)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6355$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6356 add_this_lang=unsupported
6357 ;;
6358 *)
6359 # Silently disable.
6360 add_this_lang=unsupported
6361 ;;
6362 esac
6363 done
6364
6365 # Disable Ada if no preexisting GNAT is available.
6366 case ${add_this_lang}:${language}:${have_gnat} in
6367 yes:ada:no)
6368 # Specifically requested language; tell them.
6369 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6370 ;;
6371 all:ada:no)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6373$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6374 add_this_lang=unsupported
6375 ;;
6376 *:ada:no)
6377 # Silently disable.
6378 add_this_lang=unsupported
6379 ;;
6380 esac
6381
6382 # Disable jit if -enable-host-shared not specified
6383 case ${add_this_lang}:${language}:${host_shared} in
6384 yes:jit:no)
6385 # PR jit/64780: explicitly specify --enable-host-shared
6386 as_fn_error $? "
6387Enabling language \"jit\" requires --enable-host-shared.
6388
6389--enable-host-shared typically slows the rest of the compiler down by
6390a few %, so you must explicitly enable it.
6391
6392If you want to build both the jit and the regular compiler, it is often
6393best to do this via two separate configure/builds, in separate
6394directories, to avoid imposing the performance cost of
6395--enable-host-shared on the regular compiler." "$LINENO" 5
6396 ;;
6397 all:jit:no)
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6399$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6400 add_this_lang=unsupported
6401 ;;
6402 *:jit:no)
6403 # Silently disable.
6404 add_this_lang=unsupported
6405 ;;
6406 esac
6407
6408 # Disable a language that is unsupported by the target.
6409 case "${add_this_lang}: $unsupported_languages " in
6410 no:*) ;;
6411 unsupported:*) ;;
6412 *:*" $language "*)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6414$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6415 add_this_lang=unsupported
6416 ;;
6417 esac
6418
6419 case $add_this_lang in
6420 unsupported)
6421 # Remove language-dependent dirs.
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
6424 ;;
6425 no)
6426 # Remove language-dependent dirs; still show language as supported.
6427 disabled_target_libs="$disabled_target_libs $target_libs"
6428 noconfigdirs="$noconfigdirs $lang_dirs"
6429 potential_languages="${potential_languages}${language},"
6430 ;;
6431 all|yes)
6432 new_enable_languages="${new_enable_languages}${language},"
6433 potential_languages="${potential_languages}${language},"
6434 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6435 enabled_target_libs="$enabled_target_libs $target_libs"
6436 case "${boot_language}:,$enable_stage1_languages," in
6437 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6438 # Add to (comma-separated) list of stage 1 languages.
6439 case ",$stage1_languages," in
6440 *,$language,* | ,yes, | ,all,) ;;
6441 *) stage1_languages="${stage1_languages}${language}," ;;
6442 esac
6443 # We need to bootstrap any supporting libraries.
6444 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6445 ;;
6446 esac
6447 ;;
6448 esac
6449 ;;
6450 esac
6451 done
6452
6453 # Add target libraries which are only needed for disabled languages
6454 # to noconfigdirs.
6455 if test -n "$disabled_target_libs"; then
6456 for dir in $disabled_target_libs; do
6457 case " $enabled_target_libs " in
6458 *" ${dir} "*) ;;
6459 *) noconfigdirs="$noconfigdirs $dir" ;;
6460 esac
6461 done
6462 fi
6463
6464 # Check whether --enable-stage1-languages was given.
6465if test "${enable_stage1_languages+set}" = set; then :
6466 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6467 ,no,|,,)
6468 # Set it to something that will have no effect in the loop below
6469 enable_stage1_languages=c ;;
6470 ,yes,)
6471 enable_stage1_languages=`echo $new_enable_languages | \
6472 sed -e "s/^,//" -e "s/,$//" ` ;;
6473 *,all,*)
6474 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6475 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6476 esac
6477
6478 # Add "good" languages from enable_stage1_languages to stage1_languages,
6479 # while "bad" languages go in missing_languages. Leave no duplicates.
6480 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6481 case $potential_languages in
6482 *,$i,*)
6483 case $stage1_languages in
6484 *,$i,*) ;;
6485 *) stage1_languages="$stage1_languages$i," ;;
6486 esac ;;
6487 *)
6488 case $missing_languages in
6489 *,$i,*) ;;
6490 *) missing_languages="$missing_languages$i," ;;
6491 esac ;;
6492 esac
6493 done
6494fi
6495
6496
6497 # Remove leading/trailing commas that were added for simplicity
6498 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6499 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6500 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6501 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6502
6503 if test "x$missing_languages" != x; then
6504 as_fn_error $? "
6505The following requested languages could not be built: ${missing_languages}
6506Supported languages are: ${potential_languages}" "$LINENO" 5
6507 fi
6508 if test "x$new_enable_languages" != "x$enable_languages"; then
6509 echo The following languages will be built: ${new_enable_languages}
6510 enable_languages="$new_enable_languages"
6511 fi
6512
6513
6514 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6515fi
6516
6517# Handle --disable-<component> generically.
6518for dir in $configdirs $build_configdirs $target_configdirs ; do
6519 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6520 varname=`echo $dirname | sed -e s/+/_/g`
6521 if eval test x\${enable_${varname}} "=" xno ; then
6522 noconfigdirs="$noconfigdirs $dir"
6523 fi
6524done
6525
6526# Check for Boehm's garbage collector
6527# Check whether --enable-objc-gc was given.
6528if test "${enable_objc_gc+set}" = set; then :
6529 enableval=$enable_objc_gc;
6530fi
6531
6532
6533# Check whether --with-target-bdw-gc was given.
6534if test "${with_target_bdw_gc+set}" = set; then :
6535 withval=$with_target_bdw_gc;
6536fi
6537
6538
6539# Check whether --with-target-bdw-gc-include was given.
6540if test "${with_target_bdw_gc_include+set}" = set; then :
6541 withval=$with_target_bdw_gc_include;
6542fi
6543
6544
6545# Check whether --with-target-bdw-gc-lib was given.
6546if test "${with_target_bdw_gc_lib+set}" = set; then :
6547 withval=$with_target_bdw_gc_lib;
6548fi
6549
6550
6551case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6553$as_echo_n "checking for bdw garbage collector... " >&6; }
6554 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6556$as_echo "using bdw-gc in default locations" >&6; }
6557 else
6558 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6559 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6560 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6561 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6564$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6565 fi
6566 fi
6567esac
6568
6569# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6570case ,${enable_languages}, in
6571 *,c++,*)
6572 # Disable libitm, libsanitizer if we're not building libstdc++
6573 case "${noconfigdirs}" in
6574 *target-libstdc++-v3*)
6575 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6576 ;;
6577 *) ;;
6578 esac
6579 ;;
6580 *)
6581 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6582 ;;
6583esac
6584
6585# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6586# $build_configdirs and $target_configdirs.
6587# If we have the source for $noconfigdirs entries, add them to $notsupp.
6588
6589notsupp=""
6590for dir in . $skipdirs $noconfigdirs ; do
6591 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6592 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6593 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6594 if test -r $srcdir/$dirname/configure ; then
6595 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6596 true
6597 else
6598 notsupp="$notsupp $dir"
6599 fi
6600 fi
6601 fi
6602 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6603 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6604 if test -r $srcdir/$dirname/configure ; then
6605 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6606 true
6607 else
6608 notsupp="$notsupp $dir"
6609 fi
6610 fi
6611 fi
6612 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6613 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6614 if test -r $srcdir/$dirname/configure ; then
6615 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6616 true
6617 else
6618 notsupp="$notsupp $dir"
6619 fi
6620 fi
6621 fi
6622done
6623
6624# Quietly strip out all directories which aren't configurable in this tree.
6625# This relies on all configurable subdirectories being autoconfiscated, which
6626# is now the case.
6627build_configdirs_all="$build_configdirs"
6628build_configdirs=
6629for i in ${build_configdirs_all} ; do
6630 j=`echo $i | sed -e s/build-//g`
6631 if test -f ${srcdir}/$j/configure ; then
6632 build_configdirs="${build_configdirs} $i"
6633 fi
6634done
6635
6636configdirs_all="$configdirs"
6637configdirs=
6638for i in ${configdirs_all} ; do
6639 if test -f ${srcdir}/$i/configure ; then
6640 configdirs="${configdirs} $i"
6641 fi
6642done
6643
6644target_configdirs_all="$target_configdirs"
6645target_configdirs=
6646for i in ${target_configdirs_all} ; do
6647 j=`echo $i | sed -e s/target-//g`
6648 if test -f ${srcdir}/$j/configure ; then
6649 target_configdirs="${target_configdirs} $i"
6650 fi
6651done
6652
6653# libiberty-linker-plugin is special: it doesn't have its own source directory,
6654# so we have to add it after the preceding checks.
6655if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6656then
6657 case " $configdirs " in
6658 *" libiberty "*)
6659 # If we can build libiberty, we can also build libiberty-linker-plugin.
6660 configdirs="$configdirs libiberty-linker-plugin"
6661 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6662 --with-libiberty=../libiberty-linker-plugin";;
6663 *)
6664 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6665 esac
6666fi
6667
6668# Sometimes we have special requirements for the host libiberty.
6669extra_host_libiberty_configure_flags=
6670extra_host_zlib_configure_flags=
6671case " $configdirs " in
6672 *" lto-plugin "* | *" libcc1 "*)
6673 # When these are to be built as shared libraries, the same applies to
6674 # libiberty.
6675 extra_host_libiberty_configure_flags=--enable-shared
6676 ;;
6677 *" bfd "*)
6678 # When bfd is to be built as a shared library, the same applies to
6679 # zlib.
6680 if test "$enable_shared" = "yes"; then
6681 extra_host_zlib_configure_flags=--enable-host-shared
6682 fi
6683 ;;
6684esac
6685
6686
6687
6688# Produce a warning message for the subdirs we can't configure.
6689# This isn't especially interesting in the Cygnus tree, but in the individual
6690# FSF releases, it's important to let people know when their machine isn't
6691# supported by the one or two programs in a package.
6692
6693if test -n "${notsupp}" && test -z "${norecursion}" ; then
6694 # If $appdirs is non-empty, at least one of those directories must still
6695 # be configured, or we error out. (E.g., if the gas release supports a
6696 # specified target in some subdirs but not the gas subdir, we shouldn't
6697 # pretend that all is well.)
6698 if test -n "$appdirs" ; then
6699 for dir in $appdirs ; do
6700 if test -r $dir/Makefile.in ; then
6701 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6702 appdirs=""
6703 break
6704 fi
6705 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6706 appdirs=""
6707 break
6708 fi
6709 fi
6710 done
6711 if test -n "$appdirs" ; then
6712 echo "*** This configuration is not supported by this package." 1>&2
6713 exit 1
6714 fi
6715 fi
6716 # Okay, some application will build, or we don't care to check. Still
6717 # notify of subdirs not getting built.
6718 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6719 echo " ${notsupp}" 1>&2
6720 echo " (Any other directories should still work fine.)" 1>&2
6721fi
6722
6723case "$host" in
6724 *msdosdjgpp*)
6725 enable_gdbtk=no ;;
6726esac
6727
6728# To find our prefix, in gcc_cv_tool_prefix.
6729
6730# The user is always right.
6731if test "${PATH_SEPARATOR+set}" != set; then
6732 echo "#! /bin/sh" >conf$$.sh
6733 echo "exit 0" >>conf$$.sh
6734 chmod +x conf$$.sh
6735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6736 PATH_SEPARATOR=';'
6737 else
6738 PATH_SEPARATOR=:
6739 fi
6740 rm -f conf$$.sh
6741fi
6742
6743
6744 get_gcc_base_ver="cat"
6745
6746# Check whether --with-gcc-major-version-only was given.
6747if test "${with_gcc_major_version_only+set}" = set; then :
6748 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6749 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6750 fi
6751
6752fi
6753
6754
6755
6756
6757
6758
6759if test "x$exec_prefix" = xNONE; then
6760 if test "x$prefix" = xNONE; then
6761 gcc_cv_tool_prefix=$ac_default_prefix
6762 else
6763 gcc_cv_tool_prefix=$prefix
6764 fi
6765else
6766 gcc_cv_tool_prefix=$exec_prefix
6767fi
6768
6769# If there is no compiler in the tree, use the PATH only. In any
6770# case, if there is no compiler in the tree nobody should use
6771# AS_FOR_TARGET and LD_FOR_TARGET.
6772if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6773 if test x$with_gcc_major_version_only = xyes ; then
6774 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6775 else
6776 gcc_version=`cat $srcdir/gcc/BASE-VER`
6777 fi
6778 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6779 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6780 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6783 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6784else
6785 gcc_cv_tool_dirs=
6786fi
6787
6788if test x$build = x$target && test -n "$md_exec_prefix"; then
6789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6790fi
6791
6792
6793
6794copy_dirs=
6795
6796
6797# Check whether --with-build-sysroot was given.
6798if test "${with_build_sysroot+set}" = set; then :
6799 withval=$with_build_sysroot; if test x"$withval" != x ; then
6800 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6801 fi
6802else
6803 SYSROOT_CFLAGS_FOR_TARGET=
6804fi
6805
6806
6807
6808
6809# Check whether --with-debug-prefix-map was given.
6810if test "${with_debug_prefix_map+set}" = set; then :
6811 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6812 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6813 for debug_map in $withval; do
6814 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6815 done
6816 fi
6817else
6818 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6819fi
6820
6821
6822
6823# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6824# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6825# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6826# We want to ensure that TARGET libraries (which we know are built with
6827# gcc) are built with "-O2 -g", so include those options when setting
6828# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6829if test "x$CFLAGS_FOR_TARGET" = x; then
6830 if test "x${is_cross_compiler}" = xyes; then
6831 CFLAGS_FOR_TARGET="-g -O2"
6832 else
6833 CFLAGS_FOR_TARGET=$CFLAGS
6834 case " $CFLAGS " in
6835 *" -O2 "*) ;;
6836 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6837 esac
6838 case " $CFLAGS " in
6839 *" -g "* | *" -g3 "*) ;;
6840 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6841 esac
6842 fi
6843fi
6844
6845
6846if test "x$CXXFLAGS_FOR_TARGET" = x; then
6847 if test "x${is_cross_compiler}" = xyes; then
6848 CXXFLAGS_FOR_TARGET="-g -O2"
6849 else
6850 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6851 case " $CXXFLAGS " in
6852 *" -O2 "*) ;;
6853 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6854 esac
6855 case " $CXXFLAGS " in
6856 *" -g "* | *" -g3 "*) ;;
6857 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6858 esac
6859 fi
6860fi
6861
6862
6863
6864
6865# Handle --with-headers=XXX. If the value is not "yes", the contents of
6866# the named directory are copied to $(tooldir)/sys-include.
6867if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6868 if test x${is_cross_compiler} = xno ; then
6869 echo 1>&2 '***' --with-headers is only supported when cross compiling
6870 exit 1
6871 fi
6872 if test x"${with_headers}" != xyes ; then
6873 x=${gcc_cv_tool_prefix}
6874 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6875 fi
6876fi
6877
6878# Handle --with-libs=XXX. If the value is not "yes", the contents of
6879# the name directories are copied to $(tooldir)/lib. Multiple directories
6880# are permitted.
6881if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6882 if test x${is_cross_compiler} = xno ; then
6883 echo 1>&2 '***' --with-libs is only supported when cross compiling
6884 exit 1
6885 fi
6886 if test x"${with_libs}" != xyes ; then
6887 # Copy the libraries in reverse order, so that files in the first named
6888 # library override files in subsequent libraries.
6889 x=${gcc_cv_tool_prefix}
6890 for l in ${with_libs}; do
6891 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6892 done
6893 fi
6894fi
6895
6896# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6897#
6898# This is done by determining whether or not the appropriate directory
6899# is available, and by checking whether or not specific configurations
6900# have requested that this magic not happen.
6901#
6902# The command line options always override the explicit settings in
6903# configure.ac, and the settings in configure.ac override this magic.
6904#
6905# If the default for a toolchain is to use GNU as and ld, and you don't
6906# want to do that, then you should use the --without-gnu-as and
6907# --without-gnu-ld options for the configure script. Similarly, if
6908# the default is to use the included zlib and you don't want to do that,
6909# you should use the --with-system-zlib option for the configure script.
6910
6911if test x${use_gnu_as} = x &&
6912 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6913 with_gnu_as=yes
6914 extra_host_args="$extra_host_args --with-gnu-as"
6915fi
6916
6917if test x${use_gnu_ld} = x &&
6918 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6919 with_gnu_ld=yes
6920 extra_host_args="$extra_host_args --with-gnu-ld"
6921fi
6922
6923if test x${use_included_zlib} = x &&
6924 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6925 :
6926else
6927 with_system_zlib=yes
6928 extra_host_args="$extra_host_args --with-system-zlib"
6929fi
6930
6931# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6932# can detect this case.
6933
6934if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6935 with_newlib=yes
6936 extra_host_args="$extra_host_args --with-newlib"
6937fi
6938
6939# Handle ${copy_dirs}
6940set fnord ${copy_dirs}
6941shift
6942while test $# != 0 ; do
6943 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6944 :
6945 else
6946 echo Copying $1 to $2
6947
6948 # Use the install script to create the directory and all required
6949 # parent directories.
6950 if test -d $2 ; then
6951 :
6952 else
6953 echo >config.temp
6954 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6955 fi
6956
6957 # Copy the directory, assuming we have tar.
6958 # FIXME: Should we use B in the second tar? Not all systems support it.
6959 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6960
6961 # It is the responsibility of the user to correctly adjust all
6962 # symlinks. If somebody can figure out how to handle them correctly
6963 # here, feel free to add the code.
6964
6965 echo $1 > $2/COPIED
6966 fi
6967 shift; shift
6968done
6969
6970# Determine a target-dependent exec_prefix that the installed
6971# gcc will search in. Keep this list sorted by triplet, with
6972# the *-*-osname triplets last.
6973md_exec_prefix=
6974case "${target}" in
6975 i[34567]86-pc-msdosdjgpp*)
6976 md_exec_prefix=/dev/env/DJDIR/bin
6977 ;;
6978 *-*-hpux* | \
6979 *-*-nto-qnx* | \
6980 *-*-solaris2*)
6981 md_exec_prefix=/usr/ccs/bin
6982 ;;
6983esac
6984
6985extra_arflags_for_target=
6986extra_nmflags_for_target=
6987extra_ranlibflags_for_target=
6988target_makefile_frag=/dev/null
6989case "${target}" in
6990 spu-*-*)
6991 target_makefile_frag="config/mt-spu"
6992 ;;
6993 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6994 target_makefile_frag="config/mt-sde"
6995 ;;
6996 mipsisa*-*-elfoabi*)
6997 target_makefile_frag="config/mt-mips-elfoabi"
6998 ;;
6999 mips*-*-*linux* | mips*-*-gnu*)
7000 target_makefile_frag="config/mt-mips-gnu"
7001 ;;
7002 nios2-*-elf*)
7003 target_makefile_frag="config/mt-nios2-elf"
7004 ;;
7005 *-*-linux-android*)
7006 target_makefile_frag="config/mt-android"
7007 ;;
7008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7009 target_makefile_frag="config/mt-gnu"
7010 ;;
7011 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7012 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7013 # commands to handle both 32-bit and 64-bit objects. These flags are
7014 # harmless if we're using GNU nm or ar.
7015 extra_arflags_for_target=" -X32_64"
7016 extra_nmflags_for_target=" -B -X32_64"
7017 ;;
7018esac
7019
7020alphaieee_frag=/dev/null
7021case $target in
7022 alpha*-*-*)
7023 # This just makes sure to use the -mieee option to build target libs.
7024 # This should probably be set individually by each library.
7025 alphaieee_frag="config/mt-alphaieee"
7026 ;;
7027esac
7028
7029# If --enable-target-optspace always use -Os instead of -O2 to build
7030# the target libraries, similarly if it is not specified, use -Os
7031# on selected platforms.
7032ospace_frag=/dev/null
7033case "${enable_target_optspace}:${target}" in
7034 yes:*)
7035 ospace_frag="config/mt-ospace"
7036 ;;
7037 :d30v-*)
7038 ospace_frag="config/mt-d30v"
7039 ;;
7040 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7041 ospace_frag="config/mt-ospace"
7042 ;;
7043 no:* | :*)
7044 ;;
7045 *)
7046 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7047 ;;
7048esac
7049
7050# Some systems (e.g., one of the i386-aix systems the gas testers are
7051# using) don't handle "\$" correctly, so don't use it here.
7052tooldir='${exec_prefix}'/${target_noncanonical}
7053build_tooldir=${tooldir}
7054
7055# Create a .gdbinit file which runs the one in srcdir
7056# and tells GDB to look there for source files.
7057
7058if test -r ${srcdir}/.gdbinit ; then
7059 case ${srcdir} in
7060 .) ;;
7061 *) cat > ./.gdbinit <<EOF
7062# ${NO_EDIT}
7063dir ${srcdir}
7064dir .
7065source ${srcdir}/.gdbinit
7066EOF
7067 ;;
7068 esac
7069fi
7070
7071# Make sure that the compiler is able to generate an executable. If it
7072# can't, we are probably in trouble. We don't care whether we can run the
7073# executable--we might be using a cross compiler--we only care whether it
7074# can be created. At this point the main configure script has set CC.
7075we_are_ok=no
7076echo "int main () { return 0; }" > conftest.c
7077${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7078if test $? = 0 ; then
7079 if test -s conftest || test -s conftest.exe ; then
7080 we_are_ok=yes
7081 fi
7082fi
7083case $we_are_ok in
7084 no)
7085 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7086 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7087 rm -f conftest*
7088 exit 1
7089 ;;
7090esac
7091rm -f conftest*
7092
7093# Decide which environment variable is used to find dynamic libraries.
7094case "${host}" in
7095 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7096 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7097 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7098 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7099esac
7100
7101# On systems where the dynamic library environment variable is PATH,
7102# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7103# built executables to PATH.
7104if test "$RPATH_ENVVAR" = PATH; then
7105 GCC_SHLIB_SUBDIR=/shlib
7106else
7107 GCC_SHLIB_SUBDIR=
7108fi
7109
7110# Adjust the toplevel makefile according to whether bootstrap was selected.
7111case $enable_bootstrap in
7112 yes)
7113 bootstrap_suffix=bootstrap
7114 BUILD_CONFIG=bootstrap-debug
7115 ;;
7116 no)
7117 bootstrap_suffix=no-bootstrap
7118 BUILD_CONFIG=
7119 ;;
7120esac
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7123$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7124
7125
7126# Check whether --with-build-config was given.
7127if test "${with_build_config+set}" = set; then :
7128 withval=$with_build_config; case $with_build_config in
7129 yes) with_build_config= ;;
7130 no) with_build_config= BUILD_CONFIG= ;;
7131 esac
7132fi
7133
7134
7135if test "x${with_build_config}" != x; then
7136 BUILD_CONFIG=$with_build_config
7137else
7138 case $BUILD_CONFIG in
7139 bootstrap-debug)
7140 if echo "int f (void) { return 0; }" > conftest.c &&
7141 ${CC} -c conftest.c &&
7142 mv conftest.o conftest.o.g0 &&
7143 ${CC} -c -g conftest.c &&
7144 mv conftest.o conftest.o.g &&
7145 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7146 :
7147 else
7148 BUILD_CONFIG=
7149 fi
7150 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7151 ;;
7152 esac
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7155$as_echo "$BUILD_CONFIG" >&6; }
7156
7157
7158# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7160$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7161# Check whether --enable-vtable-verify was given.
7162if test "${enable_vtable_verify+set}" = set; then :
7163 enableval=$enable_vtable_verify; case "$enableval" in
7164 yes) enable_vtable_verify=yes ;;
7165 no) enable_vtable_verify=no ;;
7166 *) enable_vtable_verify=no;;
7167 esac
7168else
7169 enable_vtable_verify=no
7170fi
7171
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7173$as_echo "$enable_vtable_verify" >&6; }
7174
7175# Record target_configdirs and the configure arguments for target and
7176# build configuration in Makefile.
7177target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7178build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7179bootstrap_fixincludes=no
7180
7181# If we are building libgomp, bootstrap it.
7182if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7183 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7184fi
7185
7186# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7187# or bootstrap-ubsan, bootstrap it.
7188if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7189 case "$BUILD_CONFIG" in
7190 *bootstrap-asan* | *bootstrap-ubsan* )
7191 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7192 bootstrap_fixincludes=yes
7193 ;;
7194 esac
7195fi
7196
7197# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7198if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7199 test "$enable_vtable_verify" != no; then
7200 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7201fi
7202
7203# Determine whether gdb needs tk/tcl or not.
7204# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7205# and in that case we want gdb to be built without tk. Ugh!
7206# In fact I believe gdb is the *only* package directly dependent on tk,
7207# so we should be able to put the 'maybe's in unconditionally and
7208# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7209# 100% sure that that's safe though.
7210
7211gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7212case "$enable_gdbtk" in
7213 no)
7214 GDB_TK="" ;;
7215 yes)
7216 GDB_TK="${gdb_tk}" ;;
7217 *)
7218 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7219 # distro. Eventually someone will fix this and move Insight, nee
7220 # gdbtk to a separate directory.
7221 if test -d ${srcdir}/gdb/gdbtk ; then
7222 GDB_TK="${gdb_tk}"
7223 else
7224 GDB_TK=""
7225 fi
7226 ;;
7227esac
7228CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7229INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7230
7231# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7232# else does, only include them if one of these is built. The Makefile
7233# provides the ordering, so it's enough here to add to the list.
7234case " ${configdirs} " in
7235 *\ gdb\ *)
7236 configdirs="${configdirs} gnulib gdbsupport"
7237 ;;
7238 *\ gdbserver\ *)
7239 configdirs="${configdirs} gnulib gdbsupport"
7240 ;;
7241esac
7242
7243# Strip out unwanted targets.
7244
7245# While at that, we remove Makefiles if we were started for recursive
7246# configuration, so that the top-level Makefile reconfigures them,
7247# like we used to do when configure itself was recursive.
7248
7249# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7250# but now we're fixing up the Makefile ourselves with the additional
7251# commands passed to AC_CONFIG_FILES. Use separate variables
7252# extrasub-{build,host,target} not because there is any reason to split
7253# the substitutions up that way, but only to remain below the limit of
7254# 99 commands in a script, for HP-UX sed.
7255
7256# Do not nest @if/@endif or @unless/@endunless pairs, because
7257# configure will not warn you at all.
7258
7259case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7260 yes:yes:*\ gold\ *:*,c++,*) ;;
7261 yes:yes:*\ gold\ *:*)
7262 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7263 ;;
7264esac
7265
7266extrasub_build=
7267for module in ${build_configdirs} ; do
7268 if test -z "${no_recursion}" \
7269 && test -f ${build_subdir}/${module}/Makefile; then
7270 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7271 rm -f ${build_subdir}/${module}/Makefile
7272 fi
7273 extrasub_build="$extrasub_build
7274/^@if build-$module\$/d
7275/^@endif build-$module\$/d
7276/^@unless build-$module\$/,/^@endunless build-$module\$/d
7277/^@if build-$module-$bootstrap_suffix\$/d
7278/^@endif build-$module-$bootstrap_suffix\$/d
7279/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7280done
7281extrasub_host=
7282for module in ${configdirs} ; do
7283 if test -z "${no_recursion}"; then
7284 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7285 if test -f ${file}; then
7286 echo 1>&2 "*** removing ${file} to force reconfigure"
7287 rm -f ${file}
7288 fi
7289 done
7290 fi
7291 case ${module},${bootstrap_fixincludes} in
7292 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7293 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7294 esac
7295 extrasub_host="$extrasub_host
7296/^@if $module\$/d
7297/^@endif $module\$/d
7298/^@unless $module\$/,/^@endunless $module\$/d
7299/^@if $module-$host_bootstrap_suffix\$/d
7300/^@endif $module-$host_bootstrap_suffix\$/d
7301/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7302done
7303extrasub_target=
7304for module in ${target_configdirs} ; do
7305 if test -z "${no_recursion}" \
7306 && test -f ${target_subdir}/${module}/Makefile; then
7307 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7308 rm -f ${target_subdir}/${module}/Makefile
7309 fi
7310
7311 # We only bootstrap target libraries listed in bootstrap_target_libs.
7312 case $bootstrap_target_libs in
7313 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7314 *) target_bootstrap_suffix=no-bootstrap ;;
7315 esac
7316
7317 extrasub_target="$extrasub_target
7318/^@if target-$module\$/d
7319/^@endif target-$module\$/d
7320/^@unless target-$module\$/,/^@endunless target-$module\$/d
7321/^@if target-$module-$target_bootstrap_suffix\$/d
7322/^@endif target-$module-$target_bootstrap_suffix\$/d
7323/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7324done
7325
7326# Do the final fixup along with target modules.
7327extrasub_target="$extrasub_target
7328/^@if /,/^@endif /d
7329/^@unless /d
7330/^@endunless /d"
7331
7332# Create the serialization dependencies. This uses a temporary file.
7333
7334# Check whether --enable-serial-configure was given.
7335if test "${enable_serial_configure+set}" = set; then :
7336 enableval=$enable_serial_configure;
7337fi
7338
7339
7340case ${enable_serial_configure} in
7341 yes)
7342 enable_serial_build_configure=yes
7343 enable_serial_host_configure=yes
7344 enable_serial_target_configure=yes
7345 ;;
7346esac
7347
7348# These force 'configure's to be done one at a time, to avoid problems
7349# with contention over a shared config.cache.
7350rm -f serdep.tmp
7351echo '# serdep.tmp' > serdep.tmp
7352olditem=
7353test "x${enable_serial_build_configure}" = xyes &&
7354for item in ${build_configdirs} ; do
7355 case ${olditem} in
7356 "") ;;
7357 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7358 esac
7359 olditem=${item}
7360done
7361olditem=
7362test "x${enable_serial_host_configure}" = xyes &&
7363for item in ${configdirs} ; do
7364 case ${olditem} in
7365 "") ;;
7366 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7367 esac
7368 olditem=${item}
7369done
7370olditem=
7371test "x${enable_serial_target_configure}" = xyes &&
7372for item in ${target_configdirs} ; do
7373 case ${olditem} in
7374 "") ;;
7375 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7376 esac
7377 olditem=${item}
7378done
7379serialization_dependencies=serdep.tmp
7380
7381
7382# Base args. Strip norecursion, cache-file, srcdir, host, build,
7383# target, nonopt, and variable assignments. These are the ones we
7384# might not want to pass down to subconfigures. The exception being
7385# --cache-file=/dev/null, which is used to turn off the use of cache
7386# files altogether, and which should be passed on to subconfigures.
7387# Also strip program-prefix, program-suffix, and program-transform-name,
7388# so that we can pass down a consistent program-transform-name.
7389baseargs=
7390tbaseargs=
7391keep_next=no
7392skip_next=no
7393eval "set -- $ac_configure_args"
7394for ac_arg
7395do
7396 if test X"$skip_next" = X"yes"; then
7397 skip_next=no
7398 continue
7399 fi
7400 if test X"$keep_next" = X"yes"; then
7401 case $ac_arg in
7402 *\'*)
7403 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7404 esac
7405 baseargs="$baseargs '$ac_arg'"
7406 tbaseargs="$tbaseargs '$ac_arg'"
7407 keep_next=no
7408 continue
7409 fi
7410
7411 # Handle separated arguments. Based on the logic generated by
7412 # autoconf 2.59.
7413 case $ac_arg in
7414 *=* | --config-cache | -C | -disable-* | --disable-* \
7415 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7416 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7417 | -with-* | --with-* | -without-* | --without-* | --x)
7418 separate_arg=no
7419 ;;
7420 -*)
7421 separate_arg=yes
7422 ;;
7423 *)
7424 separate_arg=no
7425 ;;
7426 esac
7427
7428 skip_targ=no
7429 case $ac_arg in
7430
7431 --with-* | --without-*)
7432 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7433
7434 case $libopt in
7435 *[-_]include)
7436 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7437 ;;
7438 *[-_]lib)
7439 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7440 ;;
7441 *)
7442 lib=$libopt
7443 ;;
7444 esac
7445
7446
7447 case $lib in
7448 mpc | mpfr | gmp | isl)
7449 # If we're processing --with-$lib, --with-$lib-include or
7450 # --with-$lib-lib, for one of the libs above, and target is
7451 # different from host, don't pass the current argument to any
7452 # target library's configure.
7453 if test x$is_cross_compiler = xyes; then
7454 skip_targ=yes
7455 fi
7456 ;;
7457 esac
7458 ;;
7459 esac
7460
7461 case "$ac_arg" in
7462 --cache-file=/dev/null | \
7463 -cache-file=/dev/null )
7464 # Handled here to avoid the test to skip args below.
7465 baseargs="$baseargs '$ac_arg'"
7466 tbaseargs="$tbaseargs '$ac_arg'"
7467 # Assert: $separate_arg should always be no.
7468 keep_next=$separate_arg
7469 ;;
7470 --no*)
7471 continue
7472 ;;
7473 --c* | \
7474 --sr* | \
7475 --ho* | \
7476 --bu* | \
7477 --t* | \
7478 --program-* | \
7479 -cache_file* | \
7480 -srcdir* | \
7481 -host* | \
7482 -build* | \
7483 -target* | \
7484 -program-prefix* | \
7485 -program-suffix* | \
7486 -program-transform-name* )
7487 skip_next=$separate_arg
7488 continue
7489 ;;
7490 -*)
7491 # An option. Add it.
7492 case $ac_arg in
7493 *\'*)
7494 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7495 esac
7496 baseargs="$baseargs '$ac_arg'"
7497 if test X"$skip_targ" = Xno; then
7498 tbaseargs="$tbaseargs '$ac_arg'"
7499 fi
7500 keep_next=$separate_arg
7501 ;;
7502 *)
7503 # Either a variable assignment, or a nonopt (triplet). Don't
7504 # pass it down; let the Makefile handle this.
7505 continue
7506 ;;
7507 esac
7508done
7509# Remove the initial space we just introduced and, as these will be
7510# expanded by make, quote '$'.
7511baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7512
7513# Add in --program-transform-name, after --program-prefix and
7514# --program-suffix have been applied to it. Autoconf has already
7515# doubled dollar signs and backslashes in program_transform_name; we want
7516# the backslashes un-doubled, and then the entire thing wrapped in single
7517# quotes, because this will be expanded first by make and then by the shell.
7518# Also, because we want to override the logic in subdir configure scripts to
7519# choose program_transform_name, replace any s,x,x, with s,y,y,.
7520sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7521${program_transform_name}
7522EOF_SED
7523gcc_transform_name=`cat conftestsed.out`
7524rm -f conftestsed.out
7525baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7526tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7527if test "$silent" = yes; then
7528 baseargs="$baseargs --silent"
7529 tbaseargs="$tbaseargs --silent"
7530fi
7531baseargs="$baseargs --disable-option-checking"
7532tbaseargs="$tbaseargs --disable-option-checking"
7533
7534# Record and document user additions to sub configure arguments.
7535
7536
7537
7538
7539# For the build-side libraries, we just need to pretend we're native,
7540# and not use the same cache file. Multilibs are neither needed nor
7541# desired. We can't even use the same cache file for all build-side
7542# libraries, as they're compiled differently; some with C, some with
7543# C++ or with different feature-enabling options.
7544build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7545
7546# For host modules, accept cache file option, or specification as blank.
7547case "${cache_file}" in
7548"") # empty
7549 cache_file_option="" ;;
7550/* | [A-Za-z]:[\\/]* ) # absolute path
7551 cache_file_option="--cache-file=${cache_file}" ;;
7552*) # relative path
7553 cache_file_option="--cache-file=../${cache_file}" ;;
7554esac
7555
7556# Host dirs don't like to share a cache file either, horribly enough.
7557# This seems to be due to autoconf 2.5x stupidity.
7558host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7559
7560target_configargs="$target_configargs ${tbaseargs}"
7561
7562# Passing a --with-cross-host argument lets the target libraries know
7563# whether they are being built with a cross-compiler or being built
7564# native. However, it would be better to use other mechanisms to make the
7565# sorts of decisions they want to make on this basis. Please consider
7566# this option to be deprecated. FIXME.
7567if test x${is_cross_compiler} = xyes ; then
7568 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7569fi
7570
7571# Special user-friendly check for native x86_64-linux build, if
7572# multilib is not explicitly enabled.
7573case "$target:$have_compiler:$host:$target:$enable_multilib" in
7574 x86_64-*linux*:yes:$build:$build:)
7575 # Make sure we have a development environment that handles 32-bit
7576 dev64=no
7577 echo "int main () { return 0; }" > conftest.c
7578 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7579 if test $? = 0 ; then
7580 if test -s conftest || test -s conftest.exe ; then
7581 dev64=yes
7582 fi
7583 fi
7584 rm -f conftest*
7585 if test x${dev64} != xyes ; then
7586 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
7587 fi
7588 ;;
7589esac
7590
7591# Default to --enable-multilib.
7592if test x${enable_multilib} = x ; then
7593 target_configargs="--enable-multilib ${target_configargs}"
7594fi
7595
7596# Pass --with-newlib if appropriate. Note that target_configdirs has
7597# changed from the earlier setting of with_newlib.
7598if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7599 target_configargs="--with-newlib ${target_configargs}"
7600fi
7601
7602# Different target subdirs use different values of certain variables
7603# (notably CXX). Worse, multilibs use *lots* of different values.
7604# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7605# it doesn't automatically accept command-line overrides of them.
7606# This means it's not safe for target subdirs to share a cache file,
7607# which is disgusting, but there you have it. Hopefully this can be
7608# fixed in future. It's still worthwhile to use a cache file for each
7609# directory. I think.
7610
7611# Pass the appropriate --build, --host, --target and --cache-file arguments.
7612# We need to pass --target, as newer autoconf's requires consistency
7613# for target_alias and gcc doesn't manage it consistently.
7614target_configargs="--cache-file=./config.cache ${target_configargs}"
7615
7616FLAGS_FOR_TARGET=
7617case " $target_configdirs " in
7618 *" newlib "*)
7619 case " $target_configargs " in
7620 *" --with-newlib "*)
7621 case "$target" in
7622 *-cygwin*)
7623 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7624 ;;
7625 esac
7626
7627 # If we're not building GCC, don't discard standard headers.
7628 if test -d ${srcdir}/gcc; then
7629 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7630
7631 if test "${build}" != "${host}"; then
7632 # On Canadian crosses, CC_FOR_TARGET will have already been set
7633 # by `configure', so we won't have an opportunity to add -Bgcc/
7634 # to it. This is right: we don't want to search that directory
7635 # for binaries, but we want the header files in there, so add
7636 # them explicitly.
7637 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7638
7639 # Someone might think of using the pre-installed headers on
7640 # Canadian crosses, in case the installed compiler is not fully
7641 # compatible with the compiler being built. In this case, it
7642 # would be better to flag an error than risking having
7643 # incompatible object files being constructed. We can't
7644 # guarantee that an error will be flagged, but let's hope the
7645 # compiler will do it, when presented with incompatible header
7646 # files.
7647 fi
7648 fi
7649
7650 case "${target}-${is_cross_compiler}" in
7651 i[3456789]86-*-linux*-no)
7652 # Here host == target, so we don't need to build gcc,
7653 # so we don't want to discard standard headers.
7654 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7655 ;;
7656 *)
7657 # If we're building newlib, use its generic headers last, but search
7658 # for any libc-related directories first (so make it the last -B
7659 # switch).
7660 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7661
7662 # If we're building libgloss, find the startup file, simulator library
7663 # and linker script.
7664 case " $target_configdirs " in
7665 *" libgloss "*)
7666 # Look for startup file, simulator library and maybe linker script.
7667 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7668 # Look for libnosys.a in case the target needs it.
7669 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7670 # Most targets have the linker script in the source directory.
7671 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7672 ;;
7673 esac
7674 ;;
7675 esac
7676 ;;
7677 esac
7678 ;;
7679esac
7680
7681case "$target" in
7682 x86_64-*mingw* | *-w64-mingw*)
7683 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7684 # however, use a symlink named 'mingw' in ${prefix} .
7685 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7686 ;;
7687 *-mingw*)
7688 # MinGW can't be handled as Cygwin above since it does not use newlib.
7689 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'
7690 ;;
7691esac
7692
7693# Allow the user to override the flags for
7694# our build compiler if desired.
7695if test x"${build}" = x"${host}" ; then
7696 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7697 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7698 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7699fi
7700
7701# On Canadian crosses, we'll be searching the right directories for
7702# the previously-installed cross compiler, so don't bother to add
7703# flags for directories within the install tree of the compiler
7704# being built; programs in there won't even run.
7705if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7706 # Search for pre-installed headers if nothing else fits.
7707 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7708fi
7709
7710if test "x${use_gnu_ld}" = x &&
7711 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7712 # Arrange for us to find uninstalled linker scripts.
7713 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7714fi
7715
7716# Search for other target-specific linker scripts and such.
7717case "${target}" in
7718 mep*)
7719 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7720 ;;
7721esac
7722
7723# Makefile fragments.
7724for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7725do
7726 eval fragval=\$$frag
7727 if test $fragval != /dev/null; then
7728 eval $frag=${srcdir}/$fragval
7729 fi
7730done
7731
7732
7733
7734
7735
7736# Miscellanea: directories, flags, etc.
7737
7738
7739
7740
7741
7742
7743
7744
7745# Build module lists & subconfigure args.
7746
7747
7748
7749# Host module lists & subconfigure args.
7750
7751
7752
7753
7754# Target module lists & subconfigure args.
7755
7756
7757
7758# Build tools.
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775# Generate default definitions for YACC, M4, LEX and other programs that run
7776# on the build machine. These are used if the Makefile can't locate these
7777# programs in objdir.
7778MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7779
7780for ac_prog in 'bison -y' byacc yacc
7781do
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783set dummy $ac_prog; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if ${ac_cv_prog_YACC+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788else
7789 if test -n "$YACC"; then
7790 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_YACC="$ac_prog"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804 done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809YACC=$ac_cv_prog_YACC
7810if test -n "$YACC"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7812$as_echo "$YACC" >&6; }
7813else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819 test -n "$YACC" && break
7820done
7821test -n "$YACC" || YACC="$MISSING bison -y"
7822
7823case " $build_configdirs " in
7824 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7825esac
7826
7827for ac_prog in bison
7828do
7829 # Extract the first word of "$ac_prog", so it can be a program name with args.
7830set dummy $ac_prog; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_BISON+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 if test -n "$BISON"; then
7837 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_BISON="$ac_prog"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851 done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856BISON=$ac_cv_prog_BISON
7857if test -n "$BISON"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7859$as_echo "$BISON" >&6; }
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865
7866 test -n "$BISON" && break
7867done
7868test -n "$BISON" || BISON="$MISSING bison"
7869
7870case " $build_configdirs " in
7871 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7872esac
7873
7874for ac_prog in gm4 gnum4 m4
7875do
7876 # Extract the first word of "$ac_prog", so it can be a program name with args.
7877set dummy $ac_prog; ac_word=$2
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879$as_echo_n "checking for $ac_word... " >&6; }
7880if ${ac_cv_prog_M4+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882else
7883 if test -n "$M4"; then
7884 ac_cv_prog_M4="$M4" # Let the user override the test.
7885else
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_M4="$ac_prog"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7896 fi
7897done
7898 done
7899IFS=$as_save_IFS
7900
7901fi
7902fi
7903M4=$ac_cv_prog_M4
7904if test -n "$M4"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7906$as_echo "$M4" >&6; }
7907else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909$as_echo "no" >&6; }
7910fi
7911
7912
7913 test -n "$M4" && break
7914done
7915test -n "$M4" || M4="$MISSING m4"
7916
7917case " $build_configdirs " in
7918 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7919esac
7920
7921for ac_prog in flex lex
7922do
7923 # Extract the first word of "$ac_prog", so it can be a program name with args.
7924set dummy $ac_prog; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if ${ac_cv_prog_LEX+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929else
7930 if test -n "$LEX"; then
7931 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_LEX="$ac_prog"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945 done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950LEX=$ac_cv_prog_LEX
7951if test -n "$LEX"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7953$as_echo "$LEX" >&6; }
7954else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959
7960 test -n "$LEX" && break
7961done
7962test -n "$LEX" || LEX="$MISSING flex"
7963
7964case " $build_configdirs " in
7965 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7966 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7967esac
7968
7969for ac_prog in flex
7970do
7971 # Extract the first word of "$ac_prog", so it can be a program name with args.
7972set dummy $ac_prog; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if ${ac_cv_prog_FLEX+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977else
7978 if test -n "$FLEX"; then
7979 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_FLEX="$ac_prog"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992done
7993 done
7994IFS=$as_save_IFS
7995
7996fi
7997fi
7998FLEX=$ac_cv_prog_FLEX
7999if test -n "$FLEX"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8001$as_echo "$FLEX" >&6; }
8002else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007
8008 test -n "$FLEX" && break
8009done
8010test -n "$FLEX" || FLEX="$MISSING flex"
8011
8012case " $build_configdirs " in
8013 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8014esac
8015
8016for ac_prog in makeinfo
8017do
8018 # Extract the first word of "$ac_prog", so it can be a program name with args.
8019set dummy $ac_prog; ac_word=$2
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
8022if ${ac_cv_prog_MAKEINFO+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024else
8025 if test -n "$MAKEINFO"; then
8026 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_MAKEINFO="$ac_prog"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039done
8040 done
8041IFS=$as_save_IFS
8042
8043fi
8044fi
8045MAKEINFO=$ac_cv_prog_MAKEINFO
8046if test -n "$MAKEINFO"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8048$as_echo "$MAKEINFO" >&6; }
8049else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052fi
8053
8054
8055 test -n "$MAKEINFO" && break
8056done
8057test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8058
8059case " $build_configdirs " in
8060 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8061 *)
8062
8063 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8064 # higher, else we use the "missing" dummy.
8065 if ${MAKEINFO} --version \
8066 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8067 :
8068 else
8069 MAKEINFO="$MISSING makeinfo"
8070 fi
8071 ;;
8072
8073esac
8074
8075# FIXME: expect and dejagnu may become build tools?
8076
8077for ac_prog in expect
8078do
8079 # Extract the first word of "$ac_prog", so it can be a program name with args.
8080set dummy $ac_prog; ac_word=$2
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if ${ac_cv_prog_EXPECT+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085else
8086 if test -n "$EXPECT"; then
8087 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_EXPECT="$ac_prog"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100done
8101 done
8102IFS=$as_save_IFS
8103
8104fi
8105fi
8106EXPECT=$ac_cv_prog_EXPECT
8107if test -n "$EXPECT"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8109$as_echo "$EXPECT" >&6; }
8110else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
8113fi
8114
8115
8116 test -n "$EXPECT" && break
8117done
8118test -n "$EXPECT" || EXPECT="expect"
8119
8120case " $configdirs " in
8121 *" expect "*)
8122 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8123 ;;
8124esac
8125
8126for ac_prog in runtest
8127do
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129set dummy $ac_prog; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_prog_RUNTEST+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134else
8135 if test -n "$RUNTEST"; then
8136 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145 ac_cv_prog_RUNTEST="$ac_prog"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149done
8150 done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155RUNTEST=$ac_cv_prog_RUNTEST
8156if test -n "$RUNTEST"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8158$as_echo "$RUNTEST" >&6; }
8159else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162fi
8163
8164
8165 test -n "$RUNTEST" && break
8166done
8167test -n "$RUNTEST" || RUNTEST="runtest"
8168
8169case " $configdirs " in
8170 *" dejagnu "*)
8171 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8172 ;;
8173esac
8174
8175
8176# Host tools.
8177ncn_tool_prefix=
8178test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8179ncn_target_tool_prefix=
8180test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8181
8182
8183
8184if test -n "$AR"; then
8185 ac_cv_prog_AR=$AR
8186elif test -n "$ac_cv_prog_AR"; then
8187 AR=$ac_cv_prog_AR
8188fi
8189
8190if test -n "$ac_cv_prog_AR"; then
8191 for ncn_progname in ar; do
8192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8193set dummy ${ncn_progname}; ac_word=$2
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195$as_echo_n "checking for $ac_word... " >&6; }
8196if ${ac_cv_prog_AR+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198else
8199 if test -n "$AR"; then
8200 ac_cv_prog_AR="$AR" # Let the user override the test.
8201else
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_AR="${ncn_progname}"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213done
8214 done
8215IFS=$as_save_IFS
8216
8217fi
8218fi
8219AR=$ac_cv_prog_AR
8220if test -n "$AR"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8222$as_echo "$AR" >&6; }
8223else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
8226fi
8227
8228
8229 done
8230fi
8231
8232for ncn_progname in ar; do
8233 if test -n "$ncn_tool_prefix"; then
8234 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8235set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237$as_echo_n "checking for $ac_word... " >&6; }
8238if ${ac_cv_prog_AR+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240else
8241 if test -n "$AR"; then
8242 ac_cv_prog_AR="$AR" # Let the user override the test.
8243else
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8254 fi
8255done
8256 done
8257IFS=$as_save_IFS
8258
8259fi
8260fi
8261AR=$ac_cv_prog_AR
8262if test -n "$AR"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8264$as_echo "$AR" >&6; }
8265else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267$as_echo "no" >&6; }
8268fi
8269
8270
8271 fi
8272 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8274set dummy ${ncn_progname}; ac_word=$2
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276$as_echo_n "checking for $ac_word... " >&6; }
8277if ${ac_cv_prog_AR+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279else
8280 if test -n "$AR"; then
8281 ac_cv_prog_AR="$AR" # Let the user override the test.
8282else
8283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284for as_dir in $PATH
8285do
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290 ac_cv_prog_AR="${ncn_progname}"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8293 fi
8294done
8295 done
8296IFS=$as_save_IFS
8297
8298fi
8299fi
8300AR=$ac_cv_prog_AR
8301if test -n "$AR"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8303$as_echo "$AR" >&6; }
8304else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306$as_echo "no" >&6; }
8307fi
8308
8309
8310 fi
8311 test -n "$ac_cv_prog_AR" && break
8312done
8313
8314if test -z "$ac_cv_prog_AR" ; then
8315 set dummy ar
8316 if test $build = $host ; then
8317 AR="$2"
8318 else
8319 AR="${ncn_tool_prefix}$2"
8320 fi
8321fi
8322
8323
8324
8325if test -n "$AS"; then
8326 ac_cv_prog_AS=$AS
8327elif test -n "$ac_cv_prog_AS"; then
8328 AS=$ac_cv_prog_AS
8329fi
8330
8331if test -n "$ac_cv_prog_AS"; then
8332 for ncn_progname in as; do
8333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8334set dummy ${ncn_progname}; ac_word=$2
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336$as_echo_n "checking for $ac_word... " >&6; }
8337if ${ac_cv_prog_AS+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339else
8340 if test -n "$AS"; then
8341 ac_cv_prog_AS="$AS" # Let the user override the test.
8342else
8343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344for as_dir in $PATH
8345do
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_AS="${ncn_progname}"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8353 fi
8354done
8355 done
8356IFS=$as_save_IFS
8357
8358fi
8359fi
8360AS=$ac_cv_prog_AS
8361if test -n "$AS"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8363$as_echo "$AS" >&6; }
8364else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
8367fi
8368
8369
8370 done
8371fi
8372
8373for ncn_progname in as; do
8374 if test -n "$ncn_tool_prefix"; then
8375 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8376set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if ${ac_cv_prog_AS+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381else
8382 if test -n "$AS"; then
8383 ac_cv_prog_AS="$AS" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 break 2
8395 fi
8396done
8397 done
8398IFS=$as_save_IFS
8399
8400fi
8401fi
8402AS=$ac_cv_prog_AS
8403if test -n "$AS"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8405$as_echo "$AS" >&6; }
8406else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
8409fi
8410
8411
8412 fi
8413 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8415set dummy ${ncn_progname}; ac_word=$2
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417$as_echo_n "checking for $ac_word... " >&6; }
8418if ${ac_cv_prog_AS+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420else
8421 if test -n "$AS"; then
8422 ac_cv_prog_AS="$AS" # Let the user override the test.
8423else
8424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425for as_dir in $PATH
8426do
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_AS="${ncn_progname}"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435done
8436 done
8437IFS=$as_save_IFS
8438
8439fi
8440fi
8441AS=$ac_cv_prog_AS
8442if test -n "$AS"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8444$as_echo "$AS" >&6; }
8445else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447$as_echo "no" >&6; }
8448fi
8449
8450
8451 fi
8452 test -n "$ac_cv_prog_AS" && break
8453done
8454
8455if test -z "$ac_cv_prog_AS" ; then
8456 set dummy as
8457 if test $build = $host ; then
8458 AS="$2"
8459 else
8460 AS="${ncn_tool_prefix}$2"
8461 fi
8462fi
8463
8464
8465
8466if test -n "$DLLTOOL"; then
8467 ac_cv_prog_DLLTOOL=$DLLTOOL
8468elif test -n "$ac_cv_prog_DLLTOOL"; then
8469 DLLTOOL=$ac_cv_prog_DLLTOOL
8470fi
8471
8472if test -n "$ac_cv_prog_DLLTOOL"; then
8473 for ncn_progname in dlltool; do
8474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8475set dummy ${ncn_progname}; ac_word=$2
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
8478if ${ac_cv_prog_DLLTOOL+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480else
8481 if test -n "$DLLTOOL"; then
8482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_DLLTOOL="${ncn_progname}"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495done
8496 done
8497IFS=$as_save_IFS
8498
8499fi
8500fi
8501DLLTOOL=$ac_cv_prog_DLLTOOL
8502if test -n "$DLLTOOL"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8504$as_echo "$DLLTOOL" >&6; }
8505else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
8508fi
8509
8510
8511 done
8512fi
8513
8514for ncn_progname in dlltool; do
8515 if test -n "$ncn_tool_prefix"; then
8516 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8517set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
8520if ${ac_cv_prog_DLLTOOL+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522else
8523 if test -n "$DLLTOOL"; then
8524 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8525else
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8533 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537done
8538 done
8539IFS=$as_save_IFS
8540
8541fi
8542fi
8543DLLTOOL=$ac_cv_prog_DLLTOOL
8544if test -n "$DLLTOOL"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8546$as_echo "$DLLTOOL" >&6; }
8547else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
8550fi
8551
8552
8553 fi
8554 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8556set dummy ${ncn_progname}; ac_word=$2
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558$as_echo_n "checking for $ac_word... " >&6; }
8559if ${ac_cv_prog_DLLTOOL+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561else
8562 if test -n "$DLLTOOL"; then
8563 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8564else
8565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_DLLTOOL="${ncn_progname}"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
8576done
8577 done
8578IFS=$as_save_IFS
8579
8580fi
8581fi
8582DLLTOOL=$ac_cv_prog_DLLTOOL
8583if test -n "$DLLTOOL"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8585$as_echo "$DLLTOOL" >&6; }
8586else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
8589fi
8590
8591
8592 fi
8593 test -n "$ac_cv_prog_DLLTOOL" && break
8594done
8595
8596if test -z "$ac_cv_prog_DLLTOOL" ; then
8597 set dummy dlltool
8598 if test $build = $host ; then
8599 DLLTOOL="$2"
8600 else
8601 DLLTOOL="${ncn_tool_prefix}$2"
8602 fi
8603fi
8604
8605
8606
8607if test -n "$LD"; then
8608 ac_cv_prog_LD=$LD
8609elif test -n "$ac_cv_prog_LD"; then
8610 LD=$ac_cv_prog_LD
8611fi
8612
8613if test -n "$ac_cv_prog_LD"; then
8614 for ncn_progname in ld; do
8615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8616set dummy ${ncn_progname}; ac_word=$2
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618$as_echo_n "checking for $ac_word... " >&6; }
8619if ${ac_cv_prog_LD+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621else
8622 if test -n "$LD"; then
8623 ac_cv_prog_LD="$LD" # Let the user override the test.
8624else
8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_LD="${ncn_progname}"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8635 fi
8636done
8637 done
8638IFS=$as_save_IFS
8639
8640fi
8641fi
8642LD=$ac_cv_prog_LD
8643if test -n "$LD"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8645$as_echo "$LD" >&6; }
8646else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
8649fi
8650
8651
8652 done
8653fi
8654
8655for ncn_progname in ld; do
8656 if test -n "$ncn_tool_prefix"; then
8657 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8658set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660$as_echo_n "checking for $ac_word... " >&6; }
8661if ${ac_cv_prog_LD+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663else
8664 if test -n "$LD"; then
8665 ac_cv_prog_LD="$LD" # Let the user override the test.
8666else
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679 done
8680IFS=$as_save_IFS
8681
8682fi
8683fi
8684LD=$ac_cv_prog_LD
8685if test -n "$LD"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8687$as_echo "$LD" >&6; }
8688else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
8691fi
8692
8693
8694 fi
8695 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8697set dummy ${ncn_progname}; ac_word=$2
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699$as_echo_n "checking for $ac_word... " >&6; }
8700if ${ac_cv_prog_LD+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702else
8703 if test -n "$LD"; then
8704 ac_cv_prog_LD="$LD" # Let the user override the test.
8705else
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_LD="${ncn_progname}"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8716 fi
8717done
8718 done
8719IFS=$as_save_IFS
8720
8721fi
8722fi
8723LD=$ac_cv_prog_LD
8724if test -n "$LD"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8726$as_echo "$LD" >&6; }
8727else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729$as_echo "no" >&6; }
8730fi
8731
8732
8733 fi
8734 test -n "$ac_cv_prog_LD" && break
8735done
8736
8737if test -z "$ac_cv_prog_LD" ; then
8738 set dummy ld
8739 if test $build = $host ; then
8740 LD="$2"
8741 else
8742 LD="${ncn_tool_prefix}$2"
8743 fi
8744fi
8745
8746
8747
8748if test -n "$LIPO"; then
8749 ac_cv_prog_LIPO=$LIPO
8750elif test -n "$ac_cv_prog_LIPO"; then
8751 LIPO=$ac_cv_prog_LIPO
8752fi
8753
8754if test -n "$ac_cv_prog_LIPO"; then
8755 for ncn_progname in lipo; do
8756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8757set dummy ${ncn_progname}; ac_word=$2
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759$as_echo_n "checking for $ac_word... " >&6; }
8760if ${ac_cv_prog_LIPO+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762else
8763 if test -n "$LIPO"; then
8764 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8765else
8766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767for as_dir in $PATH
8768do
8769 IFS=$as_save_IFS
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773 ac_cv_prog_LIPO="${ncn_progname}"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 break 2
8776 fi
8777done
8778 done
8779IFS=$as_save_IFS
8780
8781fi
8782fi
8783LIPO=$ac_cv_prog_LIPO
8784if test -n "$LIPO"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8786$as_echo "$LIPO" >&6; }
8787else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789$as_echo "no" >&6; }
8790fi
8791
8792
8793 done
8794fi
8795
8796for ncn_progname in lipo; do
8797 if test -n "$ncn_tool_prefix"; then
8798 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8799set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if ${ac_cv_prog_LIPO+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804else
8805 if test -n "$LIPO"; then
8806 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8818 fi
8819done
8820 done
8821IFS=$as_save_IFS
8822
8823fi
8824fi
8825LIPO=$ac_cv_prog_LIPO
8826if test -n "$LIPO"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8828$as_echo "$LIPO" >&6; }
8829else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
8832fi
8833
8834
8835 fi
8836 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8838set dummy ${ncn_progname}; ac_word=$2
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840$as_echo_n "checking for $ac_word... " >&6; }
8841if ${ac_cv_prog_LIPO+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843else
8844 if test -n "$LIPO"; then
8845 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8846else
8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854 ac_cv_prog_LIPO="${ncn_progname}"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858done
8859 done
8860IFS=$as_save_IFS
8861
8862fi
8863fi
8864LIPO=$ac_cv_prog_LIPO
8865if test -n "$LIPO"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8867$as_echo "$LIPO" >&6; }
8868else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870$as_echo "no" >&6; }
8871fi
8872
8873
8874 fi
8875 test -n "$ac_cv_prog_LIPO" && break
8876done
8877
8878if test -z "$ac_cv_prog_LIPO" ; then
8879 set dummy lipo
8880 if test $build = $host ; then
8881 LIPO="$2"
8882 else
8883 LIPO="${ncn_tool_prefix}$2"
8884 fi
8885fi
8886
8887
8888
8889if test -n "$NM"; then
8890 ac_cv_prog_NM=$NM
8891elif test -n "$ac_cv_prog_NM"; then
8892 NM=$ac_cv_prog_NM
8893fi
8894
8895if test -n "$ac_cv_prog_NM"; then
8896 for ncn_progname in nm; do
8897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8898set dummy ${ncn_progname}; ac_word=$2
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900$as_echo_n "checking for $ac_word... " >&6; }
8901if ${ac_cv_prog_NM+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903else
8904 if test -n "$NM"; then
8905 ac_cv_prog_NM="$NM" # Let the user override the test.
8906else
8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908for as_dir in $PATH
8909do
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_NM="${ncn_progname}"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 break 2
8917 fi
8918done
8919 done
8920IFS=$as_save_IFS
8921
8922fi
8923fi
8924NM=$ac_cv_prog_NM
8925if test -n "$NM"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8927$as_echo "$NM" >&6; }
8928else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930$as_echo "no" >&6; }
8931fi
8932
8933
8934 done
8935fi
8936
8937for ncn_progname in nm; do
8938 if test -n "$ncn_tool_prefix"; then
8939 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8940set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942$as_echo_n "checking for $ac_word... " >&6; }
8943if ${ac_cv_prog_NM+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945else
8946 if test -n "$NM"; then
8947 ac_cv_prog_NM="$NM" # Let the user override the test.
8948else
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960done
8961 done
8962IFS=$as_save_IFS
8963
8964fi
8965fi
8966NM=$ac_cv_prog_NM
8967if test -n "$NM"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8969$as_echo "$NM" >&6; }
8970else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
8974
8975
8976 fi
8977 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8979set dummy ${ncn_progname}; ac_word=$2
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981$as_echo_n "checking for $ac_word... " >&6; }
8982if ${ac_cv_prog_NM+:} false; then :
8983 $as_echo_n "(cached) " >&6
8984else
8985 if test -n "$NM"; then
8986 ac_cv_prog_NM="$NM" # Let the user override the test.
8987else
8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989for as_dir in $PATH
8990do
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995 ac_cv_prog_NM="${ncn_progname}"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8998 fi
8999done
9000 done
9001IFS=$as_save_IFS
9002
9003fi
9004fi
9005NM=$ac_cv_prog_NM
9006if test -n "$NM"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9008$as_echo "$NM" >&6; }
9009else
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011$as_echo "no" >&6; }
9012fi
9013
9014
9015 fi
9016 test -n "$ac_cv_prog_NM" && break
9017done
9018
9019if test -z "$ac_cv_prog_NM" ; then
9020 set dummy nm
9021 if test $build = $host ; then
9022 NM="$2"
9023 else
9024 NM="${ncn_tool_prefix}$2"
9025 fi
9026fi
9027
9028
9029
9030if test -n "$RANLIB"; then
9031 ac_cv_prog_RANLIB=$RANLIB
9032elif test -n "$ac_cv_prog_RANLIB"; then
9033 RANLIB=$ac_cv_prog_RANLIB
9034fi
9035
9036if test -n "$ac_cv_prog_RANLIB"; then
9037 for ncn_progname in ranlib; do
9038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9039set dummy ${ncn_progname}; ac_word=$2
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041$as_echo_n "checking for $ac_word... " >&6; }
9042if ${ac_cv_prog_RANLIB+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044else
9045 if test -n "$RANLIB"; then
9046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_RANLIB="${ncn_progname}"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060 done
9061IFS=$as_save_IFS
9062
9063fi
9064fi
9065RANLIB=$ac_cv_prog_RANLIB
9066if test -n "$RANLIB"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9068$as_echo "$RANLIB" >&6; }
9069else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071$as_echo "no" >&6; }
9072fi
9073
9074
9075 done
9076fi
9077
9078for ncn_progname in ranlib; do
9079 if test -n "$ncn_tool_prefix"; then
9080 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9081set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083$as_echo_n "checking for $ac_word... " >&6; }
9084if ${ac_cv_prog_RANLIB+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086else
9087 if test -n "$RANLIB"; then
9088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9089else
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102 done
9103IFS=$as_save_IFS
9104
9105fi
9106fi
9107RANLIB=$ac_cv_prog_RANLIB
9108if test -n "$RANLIB"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9110$as_echo "$RANLIB" >&6; }
9111else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116
9117 fi
9118 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9120set dummy ${ncn_progname}; ac_word=$2
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122$as_echo_n "checking for $ac_word... " >&6; }
9123if ${ac_cv_prog_RANLIB+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125else
9126 if test -n "$RANLIB"; then
9127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136 ac_cv_prog_RANLIB="${ncn_progname}"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141 done
9142IFS=$as_save_IFS
9143
9144fi
9145fi
9146RANLIB=$ac_cv_prog_RANLIB
9147if test -n "$RANLIB"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9149$as_echo "$RANLIB" >&6; }
9150else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152$as_echo "no" >&6; }
9153fi
9154
9155
9156 fi
9157 test -n "$ac_cv_prog_RANLIB" && break
9158done
9159
9160if test -z "$ac_cv_prog_RANLIB" ; then
9161 RANLIB="true"
9162fi
9163
9164
9165
9166if test -n "$STRIP"; then
9167 ac_cv_prog_STRIP=$STRIP
9168elif test -n "$ac_cv_prog_STRIP"; then
9169 STRIP=$ac_cv_prog_STRIP
9170fi
9171
9172if test -n "$ac_cv_prog_STRIP"; then
9173 for ncn_progname in strip; do
9174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9175set dummy ${ncn_progname}; ac_word=$2
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
9178if ${ac_cv_prog_STRIP+:} false; then :
9179 $as_echo_n "(cached) " >&6
9180else
9181 if test -n "$STRIP"; then
9182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191 ac_cv_prog_STRIP="${ncn_progname}"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195done
9196 done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201STRIP=$ac_cv_prog_STRIP
9202if test -n "$STRIP"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9204$as_echo "$STRIP" >&6; }
9205else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211 done
9212fi
9213
9214for ncn_progname in strip; do
9215 if test -n "$ncn_tool_prefix"; then
9216 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9217set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219$as_echo_n "checking for $ac_word... " >&6; }
9220if ${ac_cv_prog_STRIP+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222else
9223 if test -n "$STRIP"; then
9224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9225else
9226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227for as_dir in $PATH
9228do
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9233 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 break 2
9236 fi
9237done
9238 done
9239IFS=$as_save_IFS
9240
9241fi
9242fi
9243STRIP=$ac_cv_prog_STRIP
9244if test -n "$STRIP"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9246$as_echo "$STRIP" >&6; }
9247else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249$as_echo "no" >&6; }
9250fi
9251
9252
9253 fi
9254 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9256set dummy ${ncn_progname}; ac_word=$2
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258$as_echo_n "checking for $ac_word... " >&6; }
9259if ${ac_cv_prog_STRIP+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261else
9262 if test -n "$STRIP"; then
9263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9264else
9265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266for as_dir in $PATH
9267do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272 ac_cv_prog_STRIP="${ncn_progname}"
9273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276done
9277 done
9278IFS=$as_save_IFS
9279
9280fi
9281fi
9282STRIP=$ac_cv_prog_STRIP
9283if test -n "$STRIP"; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9285$as_echo "$STRIP" >&6; }
9286else
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288$as_echo "no" >&6; }
9289fi
9290
9291
9292 fi
9293 test -n "$ac_cv_prog_STRIP" && break
9294done
9295
9296if test -z "$ac_cv_prog_STRIP" ; then
9297 STRIP="true"
9298fi
9299
9300
9301
9302if test -n "$WINDRES"; then
9303 ac_cv_prog_WINDRES=$WINDRES
9304elif test -n "$ac_cv_prog_WINDRES"; then
9305 WINDRES=$ac_cv_prog_WINDRES
9306fi
9307
9308if test -n "$ac_cv_prog_WINDRES"; then
9309 for ncn_progname in windres; do
9310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9311set dummy ${ncn_progname}; ac_word=$2
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313$as_echo_n "checking for $ac_word... " >&6; }
9314if ${ac_cv_prog_WINDRES+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316else
9317 if test -n "$WINDRES"; then
9318 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9319else
9320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323 IFS=$as_save_IFS
9324 test -z "$as_dir" && as_dir=.
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327 ac_cv_prog_WINDRES="${ncn_progname}"
9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329 break 2
9330 fi
9331done
9332 done
9333IFS=$as_save_IFS
9334
9335fi
9336fi
9337WINDRES=$ac_cv_prog_WINDRES
9338if test -n "$WINDRES"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9340$as_echo "$WINDRES" >&6; }
9341else
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343$as_echo "no" >&6; }
9344fi
9345
9346
9347 done
9348fi
9349
9350for ncn_progname in windres; do
9351 if test -n "$ncn_tool_prefix"; then
9352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9353set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355$as_echo_n "checking for $ac_word... " >&6; }
9356if ${ac_cv_prog_WINDRES+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358else
9359 if test -n "$WINDRES"; then
9360 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373done
9374 done
9375IFS=$as_save_IFS
9376
9377fi
9378fi
9379WINDRES=$ac_cv_prog_WINDRES
9380if test -n "$WINDRES"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9382$as_echo "$WINDRES" >&6; }
9383else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385$as_echo "no" >&6; }
9386fi
9387
9388
9389 fi
9390 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9392set dummy ${ncn_progname}; ac_word=$2
9393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394$as_echo_n "checking for $ac_word... " >&6; }
9395if ${ac_cv_prog_WINDRES+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397else
9398 if test -n "$WINDRES"; then
9399 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9400else
9401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402for as_dir in $PATH
9403do
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9408 ac_cv_prog_WINDRES="${ncn_progname}"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412done
9413 done
9414IFS=$as_save_IFS
9415
9416fi
9417fi
9418WINDRES=$ac_cv_prog_WINDRES
9419if test -n "$WINDRES"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9421$as_echo "$WINDRES" >&6; }
9422else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424$as_echo "no" >&6; }
9425fi
9426
9427
9428 fi
9429 test -n "$ac_cv_prog_WINDRES" && break
9430done
9431
9432if test -z "$ac_cv_prog_WINDRES" ; then
9433 set dummy windres
9434 if test $build = $host ; then
9435 WINDRES="$2"
9436 else
9437 WINDRES="${ncn_tool_prefix}$2"
9438 fi
9439fi
9440
9441
9442
9443if test -n "$WINDMC"; then
9444 ac_cv_prog_WINDMC=$WINDMC
9445elif test -n "$ac_cv_prog_WINDMC"; then
9446 WINDMC=$ac_cv_prog_WINDMC
9447fi
9448
9449if test -n "$ac_cv_prog_WINDMC"; then
9450 for ncn_progname in windmc; do
9451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9452set dummy ${ncn_progname}; ac_word=$2
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9454$as_echo_n "checking for $ac_word... " >&6; }
9455if ${ac_cv_prog_WINDMC+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457else
9458 if test -n "$WINDMC"; then
9459 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9460else
9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462for as_dir in $PATH
9463do
9464 IFS=$as_save_IFS
9465 test -z "$as_dir" && as_dir=.
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9468 ac_cv_prog_WINDMC="${ncn_progname}"
9469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9470 break 2
9471 fi
9472done
9473 done
9474IFS=$as_save_IFS
9475
9476fi
9477fi
9478WINDMC=$ac_cv_prog_WINDMC
9479if test -n "$WINDMC"; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9481$as_echo "$WINDMC" >&6; }
9482else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484$as_echo "no" >&6; }
9485fi
9486
9487
9488 done
9489fi
9490
9491for ncn_progname in windmc; do
9492 if test -n "$ncn_tool_prefix"; then
9493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496$as_echo_n "checking for $ac_word... " >&6; }
9497if ${ac_cv_prog_WINDMC+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499else
9500 if test -n "$WINDMC"; then
9501 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9502else
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 break 2
9513 fi
9514done
9515 done
9516IFS=$as_save_IFS
9517
9518fi
9519fi
9520WINDMC=$ac_cv_prog_WINDMC
9521if test -n "$WINDMC"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9523$as_echo "$WINDMC" >&6; }
9524else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
9527fi
9528
9529
9530 fi
9531 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9533set dummy ${ncn_progname}; ac_word=$2
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535$as_echo_n "checking for $ac_word... " >&6; }
9536if ${ac_cv_prog_WINDMC+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538else
9539 if test -n "$WINDMC"; then
9540 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9541else
9542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543for as_dir in $PATH
9544do
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549 ac_cv_prog_WINDMC="${ncn_progname}"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9552 fi
9553done
9554 done
9555IFS=$as_save_IFS
9556
9557fi
9558fi
9559WINDMC=$ac_cv_prog_WINDMC
9560if test -n "$WINDMC"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9562$as_echo "$WINDMC" >&6; }
9563else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565$as_echo "no" >&6; }
9566fi
9567
9568
9569 fi
9570 test -n "$ac_cv_prog_WINDMC" && break
9571done
9572
9573if test -z "$ac_cv_prog_WINDMC" ; then
9574 set dummy windmc
9575 if test $build = $host ; then
9576 WINDMC="$2"
9577 else
9578 WINDMC="${ncn_tool_prefix}$2"
9579 fi
9580fi
9581
9582
9583
9584if test -n "$OBJCOPY"; then
9585 ac_cv_prog_OBJCOPY=$OBJCOPY
9586elif test -n "$ac_cv_prog_OBJCOPY"; then
9587 OBJCOPY=$ac_cv_prog_OBJCOPY
9588fi
9589
9590if test -n "$ac_cv_prog_OBJCOPY"; then
9591 for ncn_progname in objcopy; do
9592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9593set dummy ${ncn_progname}; ac_word=$2
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595$as_echo_n "checking for $ac_word... " >&6; }
9596if ${ac_cv_prog_OBJCOPY+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598else
9599 if test -n "$OBJCOPY"; then
9600 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9601else
9602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603for as_dir in $PATH
9604do
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9609 ac_cv_prog_OBJCOPY="${ncn_progname}"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9612 fi
9613done
9614 done
9615IFS=$as_save_IFS
9616
9617fi
9618fi
9619OBJCOPY=$ac_cv_prog_OBJCOPY
9620if test -n "$OBJCOPY"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9622$as_echo "$OBJCOPY" >&6; }
9623else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625$as_echo "no" >&6; }
9626fi
9627
9628
9629 done
9630fi
9631
9632for ncn_progname in objcopy; do
9633 if test -n "$ncn_tool_prefix"; then
9634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9635set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if ${ac_cv_prog_OBJCOPY+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640else
9641 if test -n "$OBJCOPY"; then
9642 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656 done
9657IFS=$as_save_IFS
9658
9659fi
9660fi
9661OBJCOPY=$ac_cv_prog_OBJCOPY
9662if test -n "$OBJCOPY"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9664$as_echo "$OBJCOPY" >&6; }
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670
9671 fi
9672 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9674set dummy ${ncn_progname}; ac_word=$2
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676$as_echo_n "checking for $ac_word... " >&6; }
9677if ${ac_cv_prog_OBJCOPY+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679else
9680 if test -n "$OBJCOPY"; then
9681 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9682else
9683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684for as_dir in $PATH
9685do
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9690 ac_cv_prog_OBJCOPY="${ncn_progname}"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9693 fi
9694done
9695 done
9696IFS=$as_save_IFS
9697
9698fi
9699fi
9700OBJCOPY=$ac_cv_prog_OBJCOPY
9701if test -n "$OBJCOPY"; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9703$as_echo "$OBJCOPY" >&6; }
9704else
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706$as_echo "no" >&6; }
9707fi
9708
9709
9710 fi
9711 test -n "$ac_cv_prog_OBJCOPY" && break
9712done
9713
9714if test -z "$ac_cv_prog_OBJCOPY" ; then
9715 set dummy objcopy
9716 if test $build = $host ; then
9717 OBJCOPY="$2"
9718 else
9719 OBJCOPY="${ncn_tool_prefix}$2"
9720 fi
9721fi
9722
9723
9724
9725if test -n "$OBJDUMP"; then
9726 ac_cv_prog_OBJDUMP=$OBJDUMP
9727elif test -n "$ac_cv_prog_OBJDUMP"; then
9728 OBJDUMP=$ac_cv_prog_OBJDUMP
9729fi
9730
9731if test -n "$ac_cv_prog_OBJDUMP"; then
9732 for ncn_progname in objdump; do
9733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9734set dummy ${ncn_progname}; ac_word=$2
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736$as_echo_n "checking for $ac_word... " >&6; }
9737if ${ac_cv_prog_OBJDUMP+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739else
9740 if test -n "$OBJDUMP"; then
9741 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750 ac_cv_prog_OBJDUMP="${ncn_progname}"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755 done
9756IFS=$as_save_IFS
9757
9758fi
9759fi
9760OBJDUMP=$ac_cv_prog_OBJDUMP
9761if test -n "$OBJDUMP"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9763$as_echo "$OBJDUMP" >&6; }
9764else
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766$as_echo "no" >&6; }
9767fi
9768
9769
9770 done
9771fi
9772
9773for ncn_progname in objdump; do
9774 if test -n "$ncn_tool_prefix"; then
9775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9776set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if ${ac_cv_prog_OBJDUMP+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781else
9782 if test -n "$OBJDUMP"; then
9783 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9784else
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9795 fi
9796done
9797 done
9798IFS=$as_save_IFS
9799
9800fi
9801fi
9802OBJDUMP=$ac_cv_prog_OBJDUMP
9803if test -n "$OBJDUMP"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9805$as_echo "$OBJDUMP" >&6; }
9806else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
9809fi
9810
9811
9812 fi
9813 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9815set dummy ${ncn_progname}; ac_word=$2
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817$as_echo_n "checking for $ac_word... " >&6; }
9818if ${ac_cv_prog_OBJDUMP+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820else
9821 if test -n "$OBJDUMP"; then
9822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9823else
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831 ac_cv_prog_OBJDUMP="${ncn_progname}"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9834 fi
9835done
9836 done
9837IFS=$as_save_IFS
9838
9839fi
9840fi
9841OBJDUMP=$ac_cv_prog_OBJDUMP
9842if test -n "$OBJDUMP"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9844$as_echo "$OBJDUMP" >&6; }
9845else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847$as_echo "no" >&6; }
9848fi
9849
9850
9851 fi
9852 test -n "$ac_cv_prog_OBJDUMP" && break
9853done
9854
9855if test -z "$ac_cv_prog_OBJDUMP" ; then
9856 set dummy objdump
9857 if test $build = $host ; then
9858 OBJDUMP="$2"
9859 else
9860 OBJDUMP="${ncn_tool_prefix}$2"
9861 fi
9862fi
9863
9864
9865
9866if test -n "$READELF"; then
9867 ac_cv_prog_READELF=$READELF
9868elif test -n "$ac_cv_prog_READELF"; then
9869 READELF=$ac_cv_prog_READELF
9870fi
9871
9872if test -n "$ac_cv_prog_READELF"; then
9873 for ncn_progname in readelf; do
9874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9875set dummy ${ncn_progname}; ac_word=$2
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877$as_echo_n "checking for $ac_word... " >&6; }
9878if ${ac_cv_prog_READELF+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880else
9881 if test -n "$READELF"; then
9882 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9883else
9884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $PATH
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9891 ac_cv_prog_READELF="${ncn_progname}"
9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 break 2
9894 fi
9895done
9896 done
9897IFS=$as_save_IFS
9898
9899fi
9900fi
9901READELF=$ac_cv_prog_READELF
9902if test -n "$READELF"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9904$as_echo "$READELF" >&6; }
9905else
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
9908fi
9909
9910
9911 done
9912fi
9913
9914for ncn_progname in readelf; do
9915 if test -n "$ncn_tool_prefix"; then
9916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9917set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919$as_echo_n "checking for $ac_word... " >&6; }
9920if ${ac_cv_prog_READELF+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922else
9923 if test -n "$READELF"; then
9924 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9925else
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 break 2
9936 fi
9937done
9938 done
9939IFS=$as_save_IFS
9940
9941fi
9942fi
9943READELF=$ac_cv_prog_READELF
9944if test -n "$READELF"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9946$as_echo "$READELF" >&6; }
9947else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949$as_echo "no" >&6; }
9950fi
9951
9952
9953 fi
9954 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9956set dummy ${ncn_progname}; ac_word=$2
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958$as_echo_n "checking for $ac_word... " >&6; }
9959if ${ac_cv_prog_READELF+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961else
9962 if test -n "$READELF"; then
9963 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9964else
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9972 ac_cv_prog_READELF="${ncn_progname}"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976done
9977 done
9978IFS=$as_save_IFS
9979
9980fi
9981fi
9982READELF=$ac_cv_prog_READELF
9983if test -n "$READELF"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9985$as_echo "$READELF" >&6; }
9986else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988$as_echo "no" >&6; }
9989fi
9990
9991
9992 fi
9993 test -n "$ac_cv_prog_READELF" && break
9994done
9995
9996if test -z "$ac_cv_prog_READELF" ; then
9997 set dummy readelf
9998 if test $build = $host ; then
9999 READELF="$2"
10000 else
10001 READELF="${ncn_tool_prefix}$2"
10002 fi
10003fi
10004
10005
10006
10007
10008
10009
10010# Target tools.
10011
10012# Check whether --with-build-time-tools was given.
10013if test "${with_build_time_tools+set}" = set; then :
10014 withval=$with_build_time_tools; case x"$withval" in
10015 x/*) ;;
10016 *)
10017 with_build_time_tools=
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10019$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10020 ;;
10021 esac
10022else
10023 with_build_time_tools=
10024fi
10025
10026
10027
10028
10029if test -n "$CC_FOR_TARGET"; then
10030 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10031elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10032 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10033fi
10034
10035if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10036 for ncn_progname in cc gcc; do
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038set dummy ${ncn_progname}; ac_word=$2
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040$as_echo_n "checking for $ac_word... " >&6; }
10041if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043else
10044 if test -n "$CC_FOR_TARGET"; then
10045 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10057 fi
10058done
10059 done
10060IFS=$as_save_IFS
10061
10062fi
10063fi
10064CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10065if test -n "$CC_FOR_TARGET"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10067$as_echo "$CC_FOR_TARGET" >&6; }
10068else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
10071fi
10072
10073
10074 done
10075fi
10076
10077if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10078 for ncn_progname in cc gcc; do
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10080$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10081 if test -x $with_build_time_tools/${ncn_progname}; then
10082 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084$as_echo "yes" >&6; }
10085 break
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
10089 fi
10090 done
10091fi
10092
10093if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10094 for ncn_progname in cc gcc; do
10095 if test -n "$ncn_target_tool_prefix"; then
10096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10097set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099$as_echo_n "checking for $ac_word... " >&6; }
10100if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102else
10103 if test -n "$CC_FOR_TARGET"; then
10104 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10105else
10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10116 fi
10117done
10118 done
10119IFS=$as_save_IFS
10120
10121fi
10122fi
10123CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10124if test -n "$CC_FOR_TARGET"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10126$as_echo "$CC_FOR_TARGET" >&6; }
10127else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129$as_echo "no" >&6; }
10130fi
10131
10132
10133 fi
10134 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10136set dummy ${ncn_progname}; ac_word=$2
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138$as_echo_n "checking for $ac_word... " >&6; }
10139if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141else
10142 if test -n "$CC_FOR_TARGET"; then
10143 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10144else
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156done
10157 done
10158IFS=$as_save_IFS
10159
10160fi
10161fi
10162CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10163if test -n "$CC_FOR_TARGET"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10165$as_echo "$CC_FOR_TARGET" >&6; }
10166else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168$as_echo "no" >&6; }
10169fi
10170
10171
10172 fi
10173 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10174 done
10175fi
10176
10177if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10178 set dummy cc gcc
10179 if test $build = $target ; then
10180 CC_FOR_TARGET="$2"
10181 else
10182 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10183 fi
10184else
10185 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10186fi
10187
10188
10189
10190if test -n "$CXX_FOR_TARGET"; then
10191 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10192elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10193 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10194fi
10195
10196if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10197 for ncn_progname in c++ g++ cxx gxx; do
10198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10199set dummy ${ncn_progname}; ac_word=$2
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201$as_echo_n "checking for $ac_word... " >&6; }
10202if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204else
10205 if test -n "$CXX_FOR_TARGET"; then
10206 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10207else
10208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209for as_dir in $PATH
10210do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10218 fi
10219done
10220 done
10221IFS=$as_save_IFS
10222
10223fi
10224fi
10225CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10226if test -n "$CXX_FOR_TARGET"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10228$as_echo "$CXX_FOR_TARGET" >&6; }
10229else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231$as_echo "no" >&6; }
10232fi
10233
10234
10235 done
10236fi
10237
10238if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10239 for ncn_progname in c++ g++ cxx gxx; do
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10241$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10242 if test -x $with_build_time_tools/${ncn_progname}; then
10243 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245$as_echo "yes" >&6; }
10246 break
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249$as_echo "no" >&6; }
10250 fi
10251 done
10252fi
10253
10254if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10255 for ncn_progname in c++ g++ cxx gxx; do
10256 if test -n "$ncn_target_tool_prefix"; then
10257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10258set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260$as_echo_n "checking for $ac_word... " >&6; }
10261if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 if test -n "$CXX_FOR_TARGET"; then
10265 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10266else
10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268for as_dir in $PATH
10269do
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278done
10279 done
10280IFS=$as_save_IFS
10281
10282fi
10283fi
10284CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10285if test -n "$CXX_FOR_TARGET"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10287$as_echo "$CXX_FOR_TARGET" >&6; }
10288else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290$as_echo "no" >&6; }
10291fi
10292
10293
10294 fi
10295 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297set dummy ${ncn_progname}; ac_word=$2
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299$as_echo_n "checking for $ac_word... " >&6; }
10300if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302else
10303 if test -n "$CXX_FOR_TARGET"; then
10304 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10305else
10306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307for as_dir in $PATH
10308do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10316 fi
10317done
10318 done
10319IFS=$as_save_IFS
10320
10321fi
10322fi
10323CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10324if test -n "$CXX_FOR_TARGET"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10326$as_echo "$CXX_FOR_TARGET" >&6; }
10327else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329$as_echo "no" >&6; }
10330fi
10331
10332
10333 fi
10334 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10335 done
10336fi
10337
10338if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10339 set dummy c++ g++ cxx gxx
10340 if test $build = $target ; then
10341 CXX_FOR_TARGET="$2"
10342 else
10343 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10344 fi
10345else
10346 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10347fi
10348
10349
10350
10351if test -n "$GCC_FOR_TARGET"; then
10352 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10353elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10354 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10355fi
10356
10357if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10358 for ncn_progname in gcc; do
10359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10360set dummy ${ncn_progname}; ac_word=$2
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362$as_echo_n "checking for $ac_word... " >&6; }
10363if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365else
10366 if test -n "$GCC_FOR_TARGET"; then
10367 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10368else
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380done
10381 done
10382IFS=$as_save_IFS
10383
10384fi
10385fi
10386GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10387if test -n "$GCC_FOR_TARGET"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10389$as_echo "$GCC_FOR_TARGET" >&6; }
10390else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393fi
10394
10395
10396 done
10397fi
10398
10399if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10400 for ncn_progname in gcc; do
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10402$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10403 if test -x $with_build_time_tools/${ncn_progname}; then
10404 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10406$as_echo "yes" >&6; }
10407 break
10408 else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
10411 fi
10412 done
10413fi
10414
10415if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10416 for ncn_progname in gcc; do
10417 if test -n "$ncn_target_tool_prefix"; then
10418 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10419set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421$as_echo_n "checking for $ac_word... " >&6; }
10422if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424else
10425 if test -n "$GCC_FOR_TARGET"; then
10426 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10427else
10428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429for as_dir in $PATH
10430do
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10435 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10438 fi
10439done
10440 done
10441IFS=$as_save_IFS
10442
10443fi
10444fi
10445GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10446if test -n "$GCC_FOR_TARGET"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10448$as_echo "$GCC_FOR_TARGET" >&6; }
10449else
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451$as_echo "no" >&6; }
10452fi
10453
10454
10455 fi
10456 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10458set dummy ${ncn_progname}; ac_word=$2
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460$as_echo_n "checking for $ac_word... " >&6; }
10461if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463else
10464 if test -n "$GCC_FOR_TARGET"; then
10465 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10466else
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479 done
10480IFS=$as_save_IFS
10481
10482fi
10483fi
10484GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10485if test -n "$GCC_FOR_TARGET"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10487$as_echo "$GCC_FOR_TARGET" >&6; }
10488else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490$as_echo "no" >&6; }
10491fi
10492
10493
10494 fi
10495 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10496 done
10497fi
10498
10499if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10500 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10501else
10502 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10503fi
10504
10505
10506
10507if test -n "$GFORTRAN_FOR_TARGET"; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10509elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10510 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10511fi
10512
10513if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10514 for ncn_progname in gfortran; do
10515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10516set dummy ${ncn_progname}; ac_word=$2
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518$as_echo_n "checking for $ac_word... " >&6; }
10519if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 if test -n "$GFORTRAN_FOR_TARGET"; then
10523 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10524else
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537 done
10538IFS=$as_save_IFS
10539
10540fi
10541fi
10542GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10543if test -n "$GFORTRAN_FOR_TARGET"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10545$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10546else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
10549fi
10550
10551
10552 done
10553fi
10554
10555if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10556 for ncn_progname in gfortran; do
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10559 if test -x $with_build_time_tools/${ncn_progname}; then
10560 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10562$as_echo "yes" >&6; }
10563 break
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567 fi
10568 done
10569fi
10570
10571if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10572 for ncn_progname in gfortran; do
10573 if test -n "$ncn_target_tool_prefix"; then
10574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577$as_echo_n "checking for $ac_word... " >&6; }
10578if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580else
10581 if test -n "$GFORTRAN_FOR_TARGET"; then
10582 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10583else
10584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $PATH
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595done
10596 done
10597IFS=$as_save_IFS
10598
10599fi
10600fi
10601GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10602if test -n "$GFORTRAN_FOR_TARGET"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10604$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10605else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607$as_echo "no" >&6; }
10608fi
10609
10610
10611 fi
10612 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10614set dummy ${ncn_progname}; ac_word=$2
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616$as_echo_n "checking for $ac_word... " >&6; }
10617if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619else
10620 if test -n "$GFORTRAN_FOR_TARGET"; then
10621 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10622else
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635 done
10636IFS=$as_save_IFS
10637
10638fi
10639fi
10640GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10641if test -n "$GFORTRAN_FOR_TARGET"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10643$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10644else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646$as_echo "no" >&6; }
10647fi
10648
10649
10650 fi
10651 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10652 done
10653fi
10654
10655if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10656 set dummy gfortran
10657 if test $build = $target ; then
10658 GFORTRAN_FOR_TARGET="$2"
10659 else
10660 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10661 fi
10662else
10663 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10664fi
10665
10666
10667
10668if test -n "$GOC_FOR_TARGET"; then
10669 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10670elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10671 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10672fi
10673
10674if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10675 for ncn_progname in gccgo; do
10676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10677set dummy ${ncn_progname}; ac_word=$2
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679$as_echo_n "checking for $ac_word... " >&6; }
10680if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682else
10683 if test -n "$GOC_FOR_TARGET"; then
10684 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10685else
10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687for as_dir in $PATH
10688do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10696 fi
10697done
10698 done
10699IFS=$as_save_IFS
10700
10701fi
10702fi
10703GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10704if test -n "$GOC_FOR_TARGET"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10706$as_echo "$GOC_FOR_TARGET" >&6; }
10707else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
10710fi
10711
10712
10713 done
10714fi
10715
10716if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10717 for ncn_progname in gccgo; do
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10719$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10720 if test -x $with_build_time_tools/${ncn_progname}; then
10721 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723$as_echo "yes" >&6; }
10724 break
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
10728 fi
10729 done
10730fi
10731
10732if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10733 for ncn_progname in gccgo; do
10734 if test -n "$ncn_target_tool_prefix"; then
10735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10736set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738$as_echo_n "checking for $ac_word... " >&6; }
10739if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741else
10742 if test -n "$GOC_FOR_TARGET"; then
10743 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10744else
10745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746for as_dir in $PATH
10747do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10752 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10755 fi
10756done
10757 done
10758IFS=$as_save_IFS
10759
10760fi
10761fi
10762GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10763if test -n "$GOC_FOR_TARGET"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10765$as_echo "$GOC_FOR_TARGET" >&6; }
10766else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
10769fi
10770
10771
10772 fi
10773 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10775set dummy ${ncn_progname}; ac_word=$2
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777$as_echo_n "checking for $ac_word... " >&6; }
10778if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780else
10781 if test -n "$GOC_FOR_TARGET"; then
10782 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10783else
10784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785for as_dir in $PATH
10786do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10794 fi
10795done
10796 done
10797IFS=$as_save_IFS
10798
10799fi
10800fi
10801GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10802if test -n "$GOC_FOR_TARGET"; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10804$as_echo "$GOC_FOR_TARGET" >&6; }
10805else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807$as_echo "no" >&6; }
10808fi
10809
10810
10811 fi
10812 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10813 done
10814fi
10815
10816if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10817 set dummy gccgo
10818 if test $build = $target ; then
10819 GOC_FOR_TARGET="$2"
10820 else
10821 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10822 fi
10823else
10824 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10825fi
10826
10827
10828
10829cat > conftest.c << \EOF
10830#ifdef __GNUC__
10831 gcc_yay;
10832#endif
10833EOF
10834if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10835 have_gcc_for_target=yes
10836else
10837 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10838 have_gcc_for_target=no
10839fi
10840rm conftest.c
10841
10842
10843
10844
10845if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10846 if test -n "$with_build_time_tools"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10848$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10849 if test -x $with_build_time_tools/ar; then
10850 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10851 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10853$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
10857 fi
10858 elif test $build != $host && test $have_gcc_for_target = yes; then
10859 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10860 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10861 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10862 fi
10863fi
10864if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10865 # Extract the first word of "ar", so it can be a program name with args.
10866set dummy ar; ac_word=$2
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868$as_echo_n "checking for $ac_word... " >&6; }
10869if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871else
10872 case $AR_FOR_TARGET in
10873 [\\/]* | ?:[\\/]*)
10874 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10875 ;;
10876 *)
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $gcc_cv_tool_dirs
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889 done
10890IFS=$as_save_IFS
10891
10892 ;;
10893esac
10894fi
10895AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10896if test -n "$AR_FOR_TARGET"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10898$as_echo "$AR_FOR_TARGET" >&6; }
10899else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
10902fi
10903
10904
10905fi
10906if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10907
10908
10909if test -n "$AR_FOR_TARGET"; then
10910 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10911elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10912 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10913fi
10914
10915if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10916 for ncn_progname in ar; do
10917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918set dummy ${ncn_progname}; ac_word=$2
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920$as_echo_n "checking for $ac_word... " >&6; }
10921if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923else
10924 if test -n "$AR_FOR_TARGET"; then
10925 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10926else
10927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $PATH
10929do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10937 fi
10938done
10939 done
10940IFS=$as_save_IFS
10941
10942fi
10943fi
10944AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10945if test -n "$AR_FOR_TARGET"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10947$as_echo "$AR_FOR_TARGET" >&6; }
10948else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950$as_echo "no" >&6; }
10951fi
10952
10953
10954 done
10955fi
10956
10957if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10958 for ncn_progname in ar; do
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10960$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10961 if test -x $with_build_time_tools/${ncn_progname}; then
10962 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964$as_echo "yes" >&6; }
10965 break
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
10969 fi
10970 done
10971fi
10972
10973if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10974 for ncn_progname in ar; do
10975 if test -n "$ncn_target_tool_prefix"; then
10976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10977set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979$as_echo_n "checking for $ac_word... " >&6; }
10980if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982else
10983 if test -n "$AR_FOR_TARGET"; then
10984 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10985else
10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $PATH
10988do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997done
10998 done
10999IFS=$as_save_IFS
11000
11001fi
11002fi
11003AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11004if test -n "$AR_FOR_TARGET"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11006$as_echo "$AR_FOR_TARGET" >&6; }
11007else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010fi
11011
11012
11013 fi
11014 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11016set dummy ${ncn_progname}; ac_word=$2
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018$as_echo_n "checking for $ac_word... " >&6; }
11019if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021else
11022 if test -n "$AR_FOR_TARGET"; then
11023 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11024else
11025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026for as_dir in $PATH
11027do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036done
11037 done
11038IFS=$as_save_IFS
11039
11040fi
11041fi
11042AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11043if test -n "$AR_FOR_TARGET"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11045$as_echo "$AR_FOR_TARGET" >&6; }
11046else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048$as_echo "no" >&6; }
11049fi
11050
11051
11052 fi
11053 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11054 done
11055fi
11056
11057if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11058 set dummy ar
11059 if test $build = $target ; then
11060 AR_FOR_TARGET="$2"
11061 else
11062 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11063 fi
11064else
11065 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11066fi
11067
11068else
11069 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11070fi
11071
11072
11073
11074
11075if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11076 if test -n "$with_build_time_tools"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11078$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11079 if test -x $with_build_time_tools/as; then
11080 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11081 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11083$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
11087 fi
11088 elif test $build != $host && test $have_gcc_for_target = yes; then
11089 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11090 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11091 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11092 fi
11093fi
11094if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11095 # Extract the first word of "as", so it can be a program name with args.
11096set dummy as; ac_word=$2
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
11099if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 case $AS_FOR_TARGET in
11103 [\\/]* | ?:[\\/]*)
11104 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11105 ;;
11106 *)
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $gcc_cv_tool_dirs
11109do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118done
11119 done
11120IFS=$as_save_IFS
11121
11122 ;;
11123esac
11124fi
11125AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11126if test -n "$AS_FOR_TARGET"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11128$as_echo "$AS_FOR_TARGET" >&6; }
11129else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131$as_echo "no" >&6; }
11132fi
11133
11134
11135fi
11136if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11137
11138
11139if test -n "$AS_FOR_TARGET"; then
11140 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11141elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11142 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11143fi
11144
11145if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11146 for ncn_progname in as; do
11147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11148set dummy ${ncn_progname}; ac_word=$2
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150$as_echo_n "checking for $ac_word... " >&6; }
11151if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153else
11154 if test -n "$AS_FOR_TARGET"; then
11155 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11156else
11157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158for as_dir in $PATH
11159do
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11164 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11167 fi
11168done
11169 done
11170IFS=$as_save_IFS
11171
11172fi
11173fi
11174AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11175if test -n "$AS_FOR_TARGET"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11177$as_echo "$AS_FOR_TARGET" >&6; }
11178else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180$as_echo "no" >&6; }
11181fi
11182
11183
11184 done
11185fi
11186
11187if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11188 for ncn_progname in as; do
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11190$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11191 if test -x $with_build_time_tools/${ncn_progname}; then
11192 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194$as_echo "yes" >&6; }
11195 break
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; }
11199 fi
11200 done
11201fi
11202
11203if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11204 for ncn_progname in as; do
11205 if test -n "$ncn_target_tool_prefix"; then
11206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11207set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209$as_echo_n "checking for $ac_word... " >&6; }
11210if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11211 $as_echo_n "(cached) " >&6
11212else
11213 if test -n "$AS_FOR_TARGET"; then
11214 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11215else
11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $PATH
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227done
11228 done
11229IFS=$as_save_IFS
11230
11231fi
11232fi
11233AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11234if test -n "$AS_FOR_TARGET"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11236$as_echo "$AS_FOR_TARGET" >&6; }
11237else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239$as_echo "no" >&6; }
11240fi
11241
11242
11243 fi
11244 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11246set dummy ${ncn_progname}; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$AS_FOR_TARGET"; then
11253 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267 done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11273if test -n "$AS_FOR_TARGET"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11275$as_echo "$AS_FOR_TARGET" >&6; }
11276else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282 fi
11283 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11284 done
11285fi
11286
11287if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11288 set dummy as
11289 if test $build = $target ; then
11290 AS_FOR_TARGET="$2"
11291 else
11292 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11293 fi
11294else
11295 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11296fi
11297
11298else
11299 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11300fi
11301
11302
11303
11304
11305if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11306 if test -n "$with_build_time_tools"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11308$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11309 if test -x $with_build_time_tools/dlltool; then
11310 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11311 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11313$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
11317 fi
11318 elif test $build != $host && test $have_gcc_for_target = yes; then
11319 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11320 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11321 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11322 fi
11323fi
11324if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11325 # Extract the first word of "dlltool", so it can be a program name with args.
11326set dummy dlltool; ac_word=$2
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328$as_echo_n "checking for $ac_word... " >&6; }
11329if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331else
11332 case $DLLTOOL_FOR_TARGET in
11333 [\\/]* | ?:[\\/]*)
11334 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11335 ;;
11336 *)
11337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338for as_dir in $gcc_cv_tool_dirs
11339do
11340 IFS=$as_save_IFS
11341 test -z "$as_dir" && as_dir=.
11342 for ac_exec_ext in '' $ac_executable_extensions; do
11343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11344 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346 break 2
11347 fi
11348done
11349 done
11350IFS=$as_save_IFS
11351
11352 ;;
11353esac
11354fi
11355DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11356if test -n "$DLLTOOL_FOR_TARGET"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11358$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11359else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
11362fi
11363
11364
11365fi
11366if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11367
11368
11369if test -n "$DLLTOOL_FOR_TARGET"; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11371elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11372 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11373fi
11374
11375if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11376 for ncn_progname in dlltool; do
11377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11378set dummy ${ncn_progname}; ac_word=$2
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380$as_echo_n "checking for $ac_word... " >&6; }
11381if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 if test -n "$DLLTOOL_FOR_TARGET"; then
11385 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11386else
11387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388for as_dir in $PATH
11389do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11397 fi
11398done
11399 done
11400IFS=$as_save_IFS
11401
11402fi
11403fi
11404DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11405if test -n "$DLLTOOL_FOR_TARGET"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11407$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11408else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
11411fi
11412
11413
11414 done
11415fi
11416
11417if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11418 for ncn_progname in dlltool; do
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11420$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11421 if test -x $with_build_time_tools/${ncn_progname}; then
11422 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424$as_echo "yes" >&6; }
11425 break
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
11429 fi
11430 done
11431fi
11432
11433if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11434 for ncn_progname in dlltool; do
11435 if test -n "$ncn_target_tool_prefix"; then
11436 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11437set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439$as_echo_n "checking for $ac_word... " >&6; }
11440if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442else
11443 if test -n "$DLLTOOL_FOR_TARGET"; then
11444 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11445else
11446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447for as_dir in $PATH
11448do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11456 fi
11457done
11458 done
11459IFS=$as_save_IFS
11460
11461fi
11462fi
11463DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11464if test -n "$DLLTOOL_FOR_TARGET"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11466$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11467else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469$as_echo "no" >&6; }
11470fi
11471
11472
11473 fi
11474 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11476set dummy ${ncn_progname}; ac_word=$2
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478$as_echo_n "checking for $ac_word... " >&6; }
11479if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481else
11482 if test -n "$DLLTOOL_FOR_TARGET"; then
11483 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11484else
11485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11492 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496done
11497 done
11498IFS=$as_save_IFS
11499
11500fi
11501fi
11502DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11503if test -n "$DLLTOOL_FOR_TARGET"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11505$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511
11512 fi
11513 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11514 done
11515fi
11516
11517if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11518 set dummy dlltool
11519 if test $build = $target ; then
11520 DLLTOOL_FOR_TARGET="$2"
11521 else
11522 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11523 fi
11524else
11525 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11526fi
11527
11528else
11529 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11530fi
11531
11532
11533
11534
11535if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11536 if test -n "$with_build_time_tools"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11538$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11539 if test -x $with_build_time_tools/ld; then
11540 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11541 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11543$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
11547 fi
11548 elif test $build != $host && test $have_gcc_for_target = yes; then
11549 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11550 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11551 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11552 fi
11553fi
11554if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11555 # Extract the first word of "ld", so it can be a program name with args.
11556set dummy ld; ac_word=$2
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558$as_echo_n "checking for $ac_word... " >&6; }
11559if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561else
11562 case $LD_FOR_TARGET in
11563 [\\/]* | ?:[\\/]*)
11564 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11565 ;;
11566 *)
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568for as_dir in $gcc_cv_tool_dirs
11569do
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11577 fi
11578done
11579 done
11580IFS=$as_save_IFS
11581
11582 ;;
11583esac
11584fi
11585LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11586if test -n "$LD_FOR_TARGET"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11588$as_echo "$LD_FOR_TARGET" >&6; }
11589else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
11592fi
11593
11594
11595fi
11596if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11597
11598
11599if test -n "$LD_FOR_TARGET"; then
11600 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11601elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11602 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11603fi
11604
11605if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11606 for ncn_progname in ld; do
11607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11608set dummy ${ncn_progname}; ac_word=$2
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610$as_echo_n "checking for $ac_word... " >&6; }
11611if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613else
11614 if test -n "$LD_FOR_TARGET"; then
11615 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11616else
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628done
11629 done
11630IFS=$as_save_IFS
11631
11632fi
11633fi
11634LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11635if test -n "$LD_FOR_TARGET"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11637$as_echo "$LD_FOR_TARGET" >&6; }
11638else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640$as_echo "no" >&6; }
11641fi
11642
11643
11644 done
11645fi
11646
11647if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11648 for ncn_progname in ld; do
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11650$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11651 if test -x $with_build_time_tools/${ncn_progname}; then
11652 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654$as_echo "yes" >&6; }
11655 break
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
11659 fi
11660 done
11661fi
11662
11663if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11664 for ncn_progname in ld; do
11665 if test -n "$ncn_target_tool_prefix"; then
11666 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11667set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669$as_echo_n "checking for $ac_word... " >&6; }
11670if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11671 $as_echo_n "(cached) " >&6
11672else
11673 if test -n "$LD_FOR_TARGET"; then
11674 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11675else
11676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677for as_dir in $PATH
11678do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11683 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 break 2
11686 fi
11687done
11688 done
11689IFS=$as_save_IFS
11690
11691fi
11692fi
11693LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11694if test -n "$LD_FOR_TARGET"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11696$as_echo "$LD_FOR_TARGET" >&6; }
11697else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699$as_echo "no" >&6; }
11700fi
11701
11702
11703 fi
11704 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11706set dummy ${ncn_progname}; ac_word=$2
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708$as_echo_n "checking for $ac_word... " >&6; }
11709if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11710 $as_echo_n "(cached) " >&6
11711else
11712 if test -n "$LD_FOR_TARGET"; then
11713 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727 done
11728IFS=$as_save_IFS
11729
11730fi
11731fi
11732LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11733if test -n "$LD_FOR_TARGET"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11735$as_echo "$LD_FOR_TARGET" >&6; }
11736else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739fi
11740
11741
11742 fi
11743 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11744 done
11745fi
11746
11747if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11748 set dummy ld
11749 if test $build = $target ; then
11750 LD_FOR_TARGET="$2"
11751 else
11752 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11753 fi
11754else
11755 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11756fi
11757
11758else
11759 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11760fi
11761
11762
11763
11764
11765if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11766 if test -n "$with_build_time_tools"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11768$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11769 if test -x $with_build_time_tools/lipo; then
11770 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11771 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11773$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
11777 fi
11778 elif test $build != $host && test $have_gcc_for_target = yes; then
11779 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11780 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11781 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11782 fi
11783fi
11784if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11785 # Extract the first word of "lipo", so it can be a program name with args.
11786set dummy lipo; ac_word=$2
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788$as_echo_n "checking for $ac_word... " >&6; }
11789if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791else
11792 case $LIPO_FOR_TARGET in
11793 [\\/]* | ?:[\\/]*)
11794 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11795 ;;
11796 *)
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798for as_dir in $gcc_cv_tool_dirs
11799do
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11807 fi
11808done
11809 done
11810IFS=$as_save_IFS
11811
11812 ;;
11813esac
11814fi
11815LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11816if test -n "$LIPO_FOR_TARGET"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11818$as_echo "$LIPO_FOR_TARGET" >&6; }
11819else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821$as_echo "no" >&6; }
11822fi
11823
11824
11825fi
11826if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11827
11828
11829if test -n "$LIPO_FOR_TARGET"; then
11830 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11831elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11832 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11833fi
11834
11835if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11836 for ncn_progname in lipo; do
11837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11838set dummy ${ncn_progname}; ac_word=$2
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840$as_echo_n "checking for $ac_word... " >&6; }
11841if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11842 $as_echo_n "(cached) " >&6
11843else
11844 if test -n "$LIPO_FOR_TARGET"; then
11845 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11846else
11847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $PATH
11849do
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11854 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11857 fi
11858done
11859 done
11860IFS=$as_save_IFS
11861
11862fi
11863fi
11864LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11865if test -n "$LIPO_FOR_TARGET"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11867$as_echo "$LIPO_FOR_TARGET" >&6; }
11868else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870$as_echo "no" >&6; }
11871fi
11872
11873
11874 done
11875fi
11876
11877if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11878 for ncn_progname in lipo; do
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11880$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11881 if test -x $with_build_time_tools/${ncn_progname}; then
11882 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884$as_echo "yes" >&6; }
11885 break
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
11889 fi
11890 done
11891fi
11892
11893if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11894 for ncn_progname in lipo; do
11895 if test -n "$ncn_target_tool_prefix"; then
11896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11897set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902else
11903 if test -n "$LIPO_FOR_TARGET"; then
11904 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917done
11918 done
11919IFS=$as_save_IFS
11920
11921fi
11922fi
11923LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11924if test -n "$LIPO_FOR_TARGET"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11926$as_echo "$LIPO_FOR_TARGET" >&6; }
11927else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929$as_echo "no" >&6; }
11930fi
11931
11932
11933 fi
11934 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11936set dummy ${ncn_progname}; ac_word=$2
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938$as_echo_n "checking for $ac_word... " >&6; }
11939if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941else
11942 if test -n "$LIPO_FOR_TARGET"; then
11943 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11944else
11945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946for as_dir in $PATH
11947do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956done
11957 done
11958IFS=$as_save_IFS
11959
11960fi
11961fi
11962LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11963if test -n "$LIPO_FOR_TARGET"; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11965$as_echo "$LIPO_FOR_TARGET" >&6; }
11966else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968$as_echo "no" >&6; }
11969fi
11970
11971
11972 fi
11973 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11974 done
11975fi
11976
11977if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11978 set dummy lipo
11979 if test $build = $target ; then
11980 LIPO_FOR_TARGET="$2"
11981 else
11982 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11983 fi
11984else
11985 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11986fi
11987
11988else
11989 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11990fi
11991
11992
11993
11994
11995if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11996 if test -n "$with_build_time_tools"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11998$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11999 if test -x $with_build_time_tools/nm; then
12000 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12001 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12003$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
12007 fi
12008 elif test $build != $host && test $have_gcc_for_target = yes; then
12009 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12010 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12011 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12012 fi
12013fi
12014if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12015 # Extract the first word of "nm", so it can be a program name with args.
12016set dummy nm; ac_word=$2
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
12019if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021else
12022 case $NM_FOR_TARGET in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12025 ;;
12026 *)
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028for as_dir in $gcc_cv_tool_dirs
12029do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12037 fi
12038done
12039 done
12040IFS=$as_save_IFS
12041
12042 ;;
12043esac
12044fi
12045NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12046if test -n "$NM_FOR_TARGET"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12048$as_echo "$NM_FOR_TARGET" >&6; }
12049else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
12052fi
12053
12054
12055fi
12056if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12057
12058
12059if test -n "$NM_FOR_TARGET"; then
12060 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12061elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12062 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12063fi
12064
12065if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12066 for ncn_progname in nm; do
12067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12068set dummy ${ncn_progname}; ac_word=$2
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070$as_echo_n "checking for $ac_word... " >&6; }
12071if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073else
12074 if test -n "$NM_FOR_TARGET"; then
12075 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12076else
12077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078for as_dir in $PATH
12079do
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12084 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12087 fi
12088done
12089 done
12090IFS=$as_save_IFS
12091
12092fi
12093fi
12094NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12095if test -n "$NM_FOR_TARGET"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12097$as_echo "$NM_FOR_TARGET" >&6; }
12098else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100$as_echo "no" >&6; }
12101fi
12102
12103
12104 done
12105fi
12106
12107if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12108 for ncn_progname in nm; do
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12110$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12111 if test -x $with_build_time_tools/${ncn_progname}; then
12112 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12114$as_echo "yes" >&6; }
12115 break
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119 fi
12120 done
12121fi
12122
12123if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12124 for ncn_progname in nm; do
12125 if test -n "$ncn_target_tool_prefix"; then
12126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129$as_echo_n "checking for $ac_word... " >&6; }
12130if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132else
12133 if test -n "$NM_FOR_TARGET"; then
12134 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12135else
12136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $PATH
12138do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12146 fi
12147done
12148 done
12149IFS=$as_save_IFS
12150
12151fi
12152fi
12153NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12154if test -n "$NM_FOR_TARGET"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12156$as_echo "$NM_FOR_TARGET" >&6; }
12157else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159$as_echo "no" >&6; }
12160fi
12161
12162
12163 fi
12164 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12166set dummy ${ncn_progname}; ac_word=$2
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168$as_echo_n "checking for $ac_word... " >&6; }
12169if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171else
12172 if test -n "$NM_FOR_TARGET"; then
12173 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12174else
12175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12185 fi
12186done
12187 done
12188IFS=$as_save_IFS
12189
12190fi
12191fi
12192NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12193if test -n "$NM_FOR_TARGET"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12195$as_echo "$NM_FOR_TARGET" >&6; }
12196else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
12199fi
12200
12201
12202 fi
12203 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12204 done
12205fi
12206
12207if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12208 set dummy nm
12209 if test $build = $target ; then
12210 NM_FOR_TARGET="$2"
12211 else
12212 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12213 fi
12214else
12215 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12216fi
12217
12218else
12219 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12220fi
12221
12222
12223
12224
12225if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12226 if test -n "$with_build_time_tools"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12228$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12229 if test -x $with_build_time_tools/objcopy; then
12230 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12231 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12233$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
12237 fi
12238 elif test $build != $host && test $have_gcc_for_target = yes; then
12239 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12240 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12241 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12242 fi
12243fi
12244if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12245 # Extract the first word of "objcopy", so it can be a program name with args.
12246set dummy objcopy; ac_word=$2
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248$as_echo_n "checking for $ac_word... " >&6; }
12249if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251else
12252 case $OBJCOPY_FOR_TARGET in
12253 [\\/]* | ?:[\\/]*)
12254 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12255 ;;
12256 *)
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $gcc_cv_tool_dirs
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12267 fi
12268done
12269 done
12270IFS=$as_save_IFS
12271
12272 ;;
12273esac
12274fi
12275OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12276if test -n "$OBJCOPY_FOR_TARGET"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12278$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12279else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282fi
12283
12284
12285fi
12286if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12287
12288
12289if test -n "$OBJCOPY_FOR_TARGET"; then
12290 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12291elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12292 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12293fi
12294
12295if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12296 for ncn_progname in objcopy; do
12297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12298set dummy ${ncn_progname}; ac_word=$2
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300$as_echo_n "checking for $ac_word... " >&6; }
12301if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303else
12304 if test -n "$OBJCOPY_FOR_TARGET"; then
12305 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12306else
12307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12314 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 break 2
12317 fi
12318done
12319 done
12320IFS=$as_save_IFS
12321
12322fi
12323fi
12324OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12325if test -n "$OBJCOPY_FOR_TARGET"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12327$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12328else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330$as_echo "no" >&6; }
12331fi
12332
12333
12334 done
12335fi
12336
12337if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12338 for ncn_progname in objcopy; do
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12340$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12341 if test -x $with_build_time_tools/${ncn_progname}; then
12342 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344$as_echo "yes" >&6; }
12345 break
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349 fi
12350 done
12351fi
12352
12353if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12354 for ncn_progname in objcopy; do
12355 if test -n "$ncn_target_tool_prefix"; then
12356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12357set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
12360if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362else
12363 if test -n "$OBJCOPY_FOR_TARGET"; then
12364 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12365else
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377done
12378 done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12384if test -n "$OBJCOPY_FOR_TARGET"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12386$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391
12392
12393 fi
12394 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12396set dummy ${ncn_progname}; ac_word=$2
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398$as_echo_n "checking for $ac_word... " >&6; }
12399if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401else
12402 if test -n "$OBJCOPY_FOR_TARGET"; then
12403 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12404else
12405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12412 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12415 fi
12416done
12417 done
12418IFS=$as_save_IFS
12419
12420fi
12421fi
12422OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12423if test -n "$OBJCOPY_FOR_TARGET"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12425$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12426else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428$as_echo "no" >&6; }
12429fi
12430
12431
12432 fi
12433 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12434 done
12435fi
12436
12437if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12438 set dummy objcopy
12439 if test $build = $target ; then
12440 OBJCOPY_FOR_TARGET="$2"
12441 else
12442 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12443 fi
12444else
12445 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12446fi
12447
12448else
12449 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12450fi
12451
12452
12453
12454
12455if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12456 if test -n "$with_build_time_tools"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12458$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12459 if test -x $with_build_time_tools/objdump; then
12460 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12461 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12463$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12464 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
12467 fi
12468 elif test $build != $host && test $have_gcc_for_target = yes; then
12469 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12470 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12471 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12472 fi
12473fi
12474if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12475 # Extract the first word of "objdump", so it can be a program name with args.
12476set dummy objdump; ac_word=$2
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478$as_echo_n "checking for $ac_word... " >&6; }
12479if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481else
12482 case $OBJDUMP_FOR_TARGET in
12483 [\\/]* | ?:[\\/]*)
12484 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12485 ;;
12486 *)
12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488for as_dir in $gcc_cv_tool_dirs
12489do
12490 IFS=$as_save_IFS
12491 test -z "$as_dir" && as_dir=.
12492 for ac_exec_ext in '' $ac_executable_extensions; do
12493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12494 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 break 2
12497 fi
12498done
12499 done
12500IFS=$as_save_IFS
12501
12502 ;;
12503esac
12504fi
12505OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12506if test -n "$OBJDUMP_FOR_TARGET"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12508$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12509else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
12512fi
12513
12514
12515fi
12516if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12517
12518
12519if test -n "$OBJDUMP_FOR_TARGET"; then
12520 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12521elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12522 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12523fi
12524
12525if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12526 for ncn_progname in objdump; do
12527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12528set dummy ${ncn_progname}; ac_word=$2
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530$as_echo_n "checking for $ac_word... " >&6; }
12531if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533else
12534 if test -n "$OBJDUMP_FOR_TARGET"; then
12535 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12536else
12537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $PATH
12539do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12544 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548done
12549 done
12550IFS=$as_save_IFS
12551
12552fi
12553fi
12554OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12555if test -n "$OBJDUMP_FOR_TARGET"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12557$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12558else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560$as_echo "no" >&6; }
12561fi
12562
12563
12564 done
12565fi
12566
12567if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12568 for ncn_progname in objdump; do
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12570$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12571 if test -x $with_build_time_tools/${ncn_progname}; then
12572 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574$as_echo "yes" >&6; }
12575 break
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579 fi
12580 done
12581fi
12582
12583if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12584 for ncn_progname in objdump; do
12585 if test -n "$ncn_target_tool_prefix"; then
12586 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12587set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
12590if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592else
12593 if test -n "$OBJDUMP_FOR_TARGET"; then
12594 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607done
12608 done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12614if test -n "$OBJDUMP_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12616$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622
12623 fi
12624 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12626set dummy ${ncn_progname}; ac_word=$2
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628$as_echo_n "checking for $ac_word... " >&6; }
12629if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631else
12632 if test -n "$OBJDUMP_FOR_TARGET"; then
12633 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12634else
12635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636for as_dir in $PATH
12637do
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12645 fi
12646done
12647 done
12648IFS=$as_save_IFS
12649
12650fi
12651fi
12652OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12653if test -n "$OBJDUMP_FOR_TARGET"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12655$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12656else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658$as_echo "no" >&6; }
12659fi
12660
12661
12662 fi
12663 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12664 done
12665fi
12666
12667if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12668 set dummy objdump
12669 if test $build = $target ; then
12670 OBJDUMP_FOR_TARGET="$2"
12671 else
12672 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12673 fi
12674else
12675 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12676fi
12677
12678else
12679 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12680fi
12681
12682
12683
12684
12685if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12686 if test -n "$with_build_time_tools"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12688$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12689 if test -x $with_build_time_tools/ranlib; then
12690 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12691 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12693$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696$as_echo "no" >&6; }
12697 fi
12698 elif test $build != $host && test $have_gcc_for_target = yes; then
12699 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12700 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12701 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12702 fi
12703fi
12704if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12705 # Extract the first word of "ranlib", so it can be a program name with args.
12706set dummy ranlib; ac_word=$2
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708$as_echo_n "checking for $ac_word... " >&6; }
12709if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711else
12712 case $RANLIB_FOR_TARGET in
12713 [\\/]* | ?:[\\/]*)
12714 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12715 ;;
12716 *)
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718for as_dir in $gcc_cv_tool_dirs
12719do
12720 IFS=$as_save_IFS
12721 test -z "$as_dir" && as_dir=.
12722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12724 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726 break 2
12727 fi
12728done
12729 done
12730IFS=$as_save_IFS
12731
12732 ;;
12733esac
12734fi
12735RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12736if test -n "$RANLIB_FOR_TARGET"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12738$as_echo "$RANLIB_FOR_TARGET" >&6; }
12739else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741$as_echo "no" >&6; }
12742fi
12743
12744
12745fi
12746if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12747
12748
12749if test -n "$RANLIB_FOR_TARGET"; then
12750 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12751elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12752 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12753fi
12754
12755if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12756 for ncn_progname in ranlib; do
12757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12758set dummy ${ncn_progname}; ac_word=$2
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760$as_echo_n "checking for $ac_word... " >&6; }
12761if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763else
12764 if test -n "$RANLIB_FOR_TARGET"; then
12765 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12766else
12767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $PATH
12769do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12777 fi
12778done
12779 done
12780IFS=$as_save_IFS
12781
12782fi
12783fi
12784RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12785if test -n "$RANLIB_FOR_TARGET"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12787$as_echo "$RANLIB_FOR_TARGET" >&6; }
12788else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790$as_echo "no" >&6; }
12791fi
12792
12793
12794 done
12795fi
12796
12797if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12798 for ncn_progname in ranlib; do
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12800$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12801 if test -x $with_build_time_tools/${ncn_progname}; then
12802 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804$as_echo "yes" >&6; }
12805 break
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809 fi
12810 done
12811fi
12812
12813if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12814 for ncn_progname in ranlib; do
12815 if test -n "$ncn_target_tool_prefix"; then
12816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819$as_echo_n "checking for $ac_word... " >&6; }
12820if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822else
12823 if test -n "$RANLIB_FOR_TARGET"; then
12824 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12825else
12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in $PATH
12828do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837done
12838 done
12839IFS=$as_save_IFS
12840
12841fi
12842fi
12843RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12844if test -n "$RANLIB_FOR_TARGET"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12846$as_echo "$RANLIB_FOR_TARGET" >&6; }
12847else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
12850fi
12851
12852
12853 fi
12854 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12856set dummy ${ncn_progname}; ac_word=$2
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858$as_echo_n "checking for $ac_word... " >&6; }
12859if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861else
12862 if test -n "$RANLIB_FOR_TARGET"; then
12863 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12864else
12865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866for as_dir in $PATH
12867do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876done
12877 done
12878IFS=$as_save_IFS
12879
12880fi
12881fi
12882RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12883if test -n "$RANLIB_FOR_TARGET"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12885$as_echo "$RANLIB_FOR_TARGET" >&6; }
12886else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888$as_echo "no" >&6; }
12889fi
12890
12891
12892 fi
12893 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12894 done
12895fi
12896
12897if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12898 set dummy ranlib
12899 if test $build = $target ; then
12900 RANLIB_FOR_TARGET="$2"
12901 else
12902 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12903 fi
12904else
12905 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12906fi
12907
12908else
12909 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12910fi
12911
12912
12913
12914
12915if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12916 if test -n "$with_build_time_tools"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12918$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12919 if test -x $with_build_time_tools/readelf; then
12920 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12921 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12923$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; }
12927 fi
12928 elif test $build != $host && test $have_gcc_for_target = yes; then
12929 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12930 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12931 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12932 fi
12933fi
12934if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12935 # Extract the first word of "readelf", so it can be a program name with args.
12936set dummy readelf; ac_word=$2
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938$as_echo_n "checking for $ac_word... " >&6; }
12939if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941else
12942 case $READELF_FOR_TARGET in
12943 [\\/]* | ?:[\\/]*)
12944 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12945 ;;
12946 *)
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948for as_dir in $gcc_cv_tool_dirs
12949do
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12957 fi
12958done
12959 done
12960IFS=$as_save_IFS
12961
12962 ;;
12963esac
12964fi
12965READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12966if test -n "$READELF_FOR_TARGET"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12968$as_echo "$READELF_FOR_TARGET" >&6; }
12969else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971$as_echo "no" >&6; }
12972fi
12973
12974
12975fi
12976if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12977
12978
12979if test -n "$READELF_FOR_TARGET"; then
12980 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12981elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12982 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12983fi
12984
12985if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12986 for ncn_progname in readelf; do
12987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12988set dummy ${ncn_progname}; ac_word=$2
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990$as_echo_n "checking for $ac_word... " >&6; }
12991if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993else
12994 if test -n "$READELF_FOR_TARGET"; then
12995 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12996else
12997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998for as_dir in $PATH
12999do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13004 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008done
13009 done
13010IFS=$as_save_IFS
13011
13012fi
13013fi
13014READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13015if test -n "$READELF_FOR_TARGET"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13017$as_echo "$READELF_FOR_TARGET" >&6; }
13018else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020$as_echo "no" >&6; }
13021fi
13022
13023
13024 done
13025fi
13026
13027if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13028 for ncn_progname in readelf; do
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13030$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13031 if test -x $with_build_time_tools/${ncn_progname}; then
13032 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13034$as_echo "yes" >&6; }
13035 break
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
13039 fi
13040 done
13041fi
13042
13043if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13044 for ncn_progname in readelf; do
13045 if test -n "$ncn_target_tool_prefix"; then
13046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13047set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049$as_echo_n "checking for $ac_word... " >&6; }
13050if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052else
13053 if test -n "$READELF_FOR_TARGET"; then
13054 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13055else
13056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057for as_dir in $PATH
13058do
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13066 fi
13067done
13068 done
13069IFS=$as_save_IFS
13070
13071fi
13072fi
13073READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13074if test -n "$READELF_FOR_TARGET"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13076$as_echo "$READELF_FOR_TARGET" >&6; }
13077else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079$as_echo "no" >&6; }
13080fi
13081
13082
13083 fi
13084 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13086set dummy ${ncn_progname}; ac_word=$2
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088$as_echo_n "checking for $ac_word... " >&6; }
13089if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091else
13092 if test -n "$READELF_FOR_TARGET"; then
13093 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13094else
13095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096for as_dir in $PATH
13097do
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13105 fi
13106done
13107 done
13108IFS=$as_save_IFS
13109
13110fi
13111fi
13112READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13113if test -n "$READELF_FOR_TARGET"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13115$as_echo "$READELF_FOR_TARGET" >&6; }
13116else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118$as_echo "no" >&6; }
13119fi
13120
13121
13122 fi
13123 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13124 done
13125fi
13126
13127if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13128 set dummy readelf
13129 if test $build = $target ; then
13130 READELF_FOR_TARGET="$2"
13131 else
13132 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13133 fi
13134else
13135 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13136fi
13137
13138else
13139 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13140fi
13141
13142
13143
13144
13145if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13146 if test -n "$with_build_time_tools"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13148$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13149 if test -x $with_build_time_tools/strip; then
13150 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13151 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13153$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
13157 fi
13158 elif test $build != $host && test $have_gcc_for_target = yes; then
13159 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13160 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13161 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13162 fi
13163fi
13164if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13165 # Extract the first word of "strip", so it can be a program name with args.
13166set dummy strip; ac_word=$2
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168$as_echo_n "checking for $ac_word... " >&6; }
13169if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171else
13172 case $STRIP_FOR_TARGET in
13173 [\\/]* | ?:[\\/]*)
13174 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13175 ;;
13176 *)
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178for as_dir in $gcc_cv_tool_dirs
13179do
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186 break 2
13187 fi
13188done
13189 done
13190IFS=$as_save_IFS
13191
13192 ;;
13193esac
13194fi
13195STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13196if test -n "$STRIP_FOR_TARGET"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13198$as_echo "$STRIP_FOR_TARGET" >&6; }
13199else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201$as_echo "no" >&6; }
13202fi
13203
13204
13205fi
13206if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13207
13208
13209if test -n "$STRIP_FOR_TARGET"; then
13210 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13211elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13212 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13213fi
13214
13215if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13216 for ncn_progname in strip; do
13217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13218set dummy ${ncn_progname}; ac_word=$2
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220$as_echo_n "checking for $ac_word... " >&6; }
13221if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223else
13224 if test -n "$STRIP_FOR_TARGET"; then
13225 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13226else
13227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $PATH
13229do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13237 fi
13238done
13239 done
13240IFS=$as_save_IFS
13241
13242fi
13243fi
13244STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13245if test -n "$STRIP_FOR_TARGET"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13247$as_echo "$STRIP_FOR_TARGET" >&6; }
13248else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250$as_echo "no" >&6; }
13251fi
13252
13253
13254 done
13255fi
13256
13257if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13258 for ncn_progname in strip; do
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13260$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13261 if test -x $with_build_time_tools/${ncn_progname}; then
13262 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264$as_echo "yes" >&6; }
13265 break
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
13269 fi
13270 done
13271fi
13272
13273if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13274 for ncn_progname in strip; do
13275 if test -n "$ncn_target_tool_prefix"; then
13276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13277set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279$as_echo_n "checking for $ac_word... " >&6; }
13280if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13281 $as_echo_n "(cached) " >&6
13282else
13283 if test -n "$STRIP_FOR_TARGET"; then
13284 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13285else
13286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $PATH
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297done
13298 done
13299IFS=$as_save_IFS
13300
13301fi
13302fi
13303STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13304if test -n "$STRIP_FOR_TARGET"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13306$as_echo "$STRIP_FOR_TARGET" >&6; }
13307else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309$as_echo "no" >&6; }
13310fi
13311
13312
13313 fi
13314 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13316set dummy ${ncn_progname}; ac_word=$2
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318$as_echo_n "checking for $ac_word... " >&6; }
13319if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321else
13322 if test -n "$STRIP_FOR_TARGET"; then
13323 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13324else
13325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326for as_dir in $PATH
13327do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13332 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336done
13337 done
13338IFS=$as_save_IFS
13339
13340fi
13341fi
13342STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13343if test -n "$STRIP_FOR_TARGET"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13345$as_echo "$STRIP_FOR_TARGET" >&6; }
13346else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349fi
13350
13351
13352 fi
13353 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13354 done
13355fi
13356
13357if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13358 set dummy strip
13359 if test $build = $target ; then
13360 STRIP_FOR_TARGET="$2"
13361 else
13362 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13363 fi
13364else
13365 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13366fi
13367
13368else
13369 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13370fi
13371
13372
13373
13374
13375if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13376 if test -n "$with_build_time_tools"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13378$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13379 if test -x $with_build_time_tools/windres; then
13380 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13381 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13383$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386$as_echo "no" >&6; }
13387 fi
13388 elif test $build != $host && test $have_gcc_for_target = yes; then
13389 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13390 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13391 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13392 fi
13393fi
13394if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13395 # Extract the first word of "windres", so it can be a program name with args.
13396set dummy windres; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
13399if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401else
13402 case $WINDRES_FOR_TARGET in
13403 [\\/]* | ?:[\\/]*)
13404 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13405 ;;
13406 *)
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408for as_dir in $gcc_cv_tool_dirs
13409do
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 break 2
13417 fi
13418done
13419 done
13420IFS=$as_save_IFS
13421
13422 ;;
13423esac
13424fi
13425WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13426if test -n "$WINDRES_FOR_TARGET"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13428$as_echo "$WINDRES_FOR_TARGET" >&6; }
13429else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431$as_echo "no" >&6; }
13432fi
13433
13434
13435fi
13436if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13437
13438
13439if test -n "$WINDRES_FOR_TARGET"; then
13440 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13441elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13442 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13443fi
13444
13445if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13446 for ncn_progname in windres; do
13447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13448set dummy ${ncn_progname}; ac_word=$2
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450$as_echo_n "checking for $ac_word... " >&6; }
13451if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453else
13454 if test -n "$WINDRES_FOR_TARGET"; then
13455 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13456else
13457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458for as_dir in $PATH
13459do
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13467 fi
13468done
13469 done
13470IFS=$as_save_IFS
13471
13472fi
13473fi
13474WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13475if test -n "$WINDRES_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13477$as_echo "$WINDRES_FOR_TARGET" >&6; }
13478else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480$as_echo "no" >&6; }
13481fi
13482
13483
13484 done
13485fi
13486
13487if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13488 for ncn_progname in windres; do
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13490$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13491 if test -x $with_build_time_tools/${ncn_progname}; then
13492 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494$as_echo "yes" >&6; }
13495 break
13496 else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498$as_echo "no" >&6; }
13499 fi
13500 done
13501fi
13502
13503if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13504 for ncn_progname in windres; do
13505 if test -n "$ncn_target_tool_prefix"; then
13506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13509$as_echo_n "checking for $ac_word... " >&6; }
13510if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512else
13513 if test -n "$WINDRES_FOR_TARGET"; then
13514 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13515else
13516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13517for as_dir in $PATH
13518do
13519 IFS=$as_save_IFS
13520 test -z "$as_dir" && as_dir=.
13521 for ac_exec_ext in '' $ac_executable_extensions; do
13522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13523 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13525 break 2
13526 fi
13527done
13528 done
13529IFS=$as_save_IFS
13530
13531fi
13532fi
13533WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13534if test -n "$WINDRES_FOR_TARGET"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13536$as_echo "$WINDRES_FOR_TARGET" >&6; }
13537else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539$as_echo "no" >&6; }
13540fi
13541
13542
13543 fi
13544 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13546set dummy ${ncn_progname}; ac_word=$2
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548$as_echo_n "checking for $ac_word... " >&6; }
13549if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551else
13552 if test -n "$WINDRES_FOR_TARGET"; then
13553 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13554else
13555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556for as_dir in $PATH
13557do
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13562 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13565 fi
13566done
13567 done
13568IFS=$as_save_IFS
13569
13570fi
13571fi
13572WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13573if test -n "$WINDRES_FOR_TARGET"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13575$as_echo "$WINDRES_FOR_TARGET" >&6; }
13576else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578$as_echo "no" >&6; }
13579fi
13580
13581
13582 fi
13583 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13584 done
13585fi
13586
13587if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13588 set dummy windres
13589 if test $build = $target ; then
13590 WINDRES_FOR_TARGET="$2"
13591 else
13592 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13593 fi
13594else
13595 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13596fi
13597
13598else
13599 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13600fi
13601
13602
13603
13604
13605if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13606 if test -n "$with_build_time_tools"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13608$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13609 if test -x $with_build_time_tools/windmc; then
13610 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13611 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13613$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616$as_echo "no" >&6; }
13617 fi
13618 elif test $build != $host && test $have_gcc_for_target = yes; then
13619 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13620 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13621 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13622 fi
13623fi
13624if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13625 # Extract the first word of "windmc", so it can be a program name with args.
13626set dummy windmc; ac_word=$2
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628$as_echo_n "checking for $ac_word... " >&6; }
13629if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631else
13632 case $WINDMC_FOR_TARGET in
13633 [\\/]* | ?:[\\/]*)
13634 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13635 ;;
13636 *)
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $gcc_cv_tool_dirs
13639do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13647 fi
13648done
13649 done
13650IFS=$as_save_IFS
13651
13652 ;;
13653esac
13654fi
13655WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13656if test -n "$WINDMC_FOR_TARGET"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13658$as_echo "$WINDMC_FOR_TARGET" >&6; }
13659else
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661$as_echo "no" >&6; }
13662fi
13663
13664
13665fi
13666if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13667
13668
13669if test -n "$WINDMC_FOR_TARGET"; then
13670 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13671elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13672 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13673fi
13674
13675if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13676 for ncn_progname in windmc; do
13677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13678set dummy ${ncn_progname}; ac_word=$2
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13680$as_echo_n "checking for $ac_word... " >&6; }
13681if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13682 $as_echo_n "(cached) " >&6
13683else
13684 if test -n "$WINDMC_FOR_TARGET"; then
13685 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13686else
13687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688for as_dir in $PATH
13689do
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13697 fi
13698done
13699 done
13700IFS=$as_save_IFS
13701
13702fi
13703fi
13704WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13705if test -n "$WINDMC_FOR_TARGET"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13707$as_echo "$WINDMC_FOR_TARGET" >&6; }
13708else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710$as_echo "no" >&6; }
13711fi
13712
13713
13714 done
13715fi
13716
13717if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13718 for ncn_progname in windmc; do
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13720$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13721 if test -x $with_build_time_tools/${ncn_progname}; then
13722 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13724$as_echo "yes" >&6; }
13725 break
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728$as_echo "no" >&6; }
13729 fi
13730 done
13731fi
13732
13733if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13734 for ncn_progname in windmc; do
13735 if test -n "$ncn_target_tool_prefix"; then
13736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13737set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739$as_echo_n "checking for $ac_word... " >&6; }
13740if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13741 $as_echo_n "(cached) " >&6
13742else
13743 if test -n "$WINDMC_FOR_TARGET"; then
13744 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13756 fi
13757done
13758 done
13759IFS=$as_save_IFS
13760
13761fi
13762fi
13763WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13764if test -n "$WINDMC_FOR_TARGET"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13766$as_echo "$WINDMC_FOR_TARGET" >&6; }
13767else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
13770fi
13771
13772
13773 fi
13774 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13776set dummy ${ncn_progname}; ac_word=$2
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778$as_echo_n "checking for $ac_word... " >&6; }
13779if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781else
13782 if test -n "$WINDMC_FOR_TARGET"; then
13783 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13784else
13785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786for as_dir in $PATH
13787do
13788 IFS=$as_save_IFS
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13792 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13794 break 2
13795 fi
13796done
13797 done
13798IFS=$as_save_IFS
13799
13800fi
13801fi
13802WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13803if test -n "$WINDMC_FOR_TARGET"; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13805$as_echo "$WINDMC_FOR_TARGET" >&6; }
13806else
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808$as_echo "no" >&6; }
13809fi
13810
13811
13812 fi
13813 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13814 done
13815fi
13816
13817if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13818 set dummy windmc
13819 if test $build = $target ; then
13820 WINDMC_FOR_TARGET="$2"
13821 else
13822 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13823 fi
13824else
13825 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13826fi
13827
13828else
13829 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13830fi
13831
13832
13833RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13834
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13836$as_echo_n "checking where to find the target ar... " >&6; }
13837if test "x${build}" != "x${host}" ; then
13838 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13839 # We already found the complete path
13840 ac_dir=`dirname $AR_FOR_TARGET`
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13842$as_echo "pre-installed in $ac_dir" >&6; }
13843 else
13844 # Canadian cross, just use what we found
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846$as_echo "pre-installed" >&6; }
13847 fi
13848else
13849 ok=yes
13850 case " ${configdirs} " in
13851 *" binutils "*) ;;
13852 *) ok=no ;;
13853 esac
13854
13855 if test $ok = yes; then
13856 # An in-tree tool is available and we can use it
13857 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13859$as_echo "just compiled" >&6; }
13860 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13861 # We already found the complete path
13862 ac_dir=`dirname $AR_FOR_TARGET`
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864$as_echo "pre-installed in $ac_dir" >&6; }
13865 elif test "x$target" = "x$host"; then
13866 # We can use an host tool
13867 AR_FOR_TARGET='$(AR)'
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13869$as_echo "host tool" >&6; }
13870 else
13871 # We need a cross tool
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873$as_echo "pre-installed" >&6; }
13874 fi
13875fi
13876
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13878$as_echo_n "checking where to find the target as... " >&6; }
13879if test "x${build}" != "x${host}" ; then
13880 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13881 # We already found the complete path
13882 ac_dir=`dirname $AS_FOR_TARGET`
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13884$as_echo "pre-installed in $ac_dir" >&6; }
13885 else
13886 # Canadian cross, just use what we found
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13888$as_echo "pre-installed" >&6; }
13889 fi
13890else
13891 ok=yes
13892 case " ${configdirs} " in
13893 *" gas "*) ;;
13894 *) ok=no ;;
13895 esac
13896
13897 if test $ok = yes; then
13898 # An in-tree tool is available and we can use it
13899 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13901$as_echo "just compiled" >&6; }
13902 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13903 # We already found the complete path
13904 ac_dir=`dirname $AS_FOR_TARGET`
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13906$as_echo "pre-installed in $ac_dir" >&6; }
13907 elif test "x$target" = "x$host"; then
13908 # We can use an host tool
13909 AS_FOR_TARGET='$(AS)'
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13911$as_echo "host tool" >&6; }
13912 else
13913 # We need a cross tool
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13915$as_echo "pre-installed" >&6; }
13916 fi
13917fi
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13920$as_echo_n "checking where to find the target cc... " >&6; }
13921if test "x${build}" != "x${host}" ; then
13922 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13923 # We already found the complete path
13924 ac_dir=`dirname $CC_FOR_TARGET`
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13926$as_echo "pre-installed in $ac_dir" >&6; }
13927 else
13928 # Canadian cross, just use what we found
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930$as_echo "pre-installed" >&6; }
13931 fi
13932else
13933 ok=yes
13934 case " ${configdirs} " in
13935 *" gcc "*) ;;
13936 *) ok=no ;;
13937 esac
13938
13939 if test $ok = yes; then
13940 # An in-tree tool is available and we can use it
13941 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13943$as_echo "just compiled" >&6; }
13944 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13945 # We already found the complete path
13946 ac_dir=`dirname $CC_FOR_TARGET`
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13948$as_echo "pre-installed in $ac_dir" >&6; }
13949 elif test "x$target" = "x$host"; then
13950 # We can use an host tool
13951 CC_FOR_TARGET='$(CC)'
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13953$as_echo "host tool" >&6; }
13954 else
13955 # We need a cross tool
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13957$as_echo "pre-installed" >&6; }
13958 fi
13959fi
13960
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13962$as_echo_n "checking where to find the target c++... " >&6; }
13963if test "x${build}" != "x${host}" ; then
13964 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13965 # We already found the complete path
13966 ac_dir=`dirname $CXX_FOR_TARGET`
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13968$as_echo "pre-installed in $ac_dir" >&6; }
13969 else
13970 # Canadian cross, just use what we found
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13972$as_echo "pre-installed" >&6; }
13973 fi
13974else
13975 ok=yes
13976 case " ${configdirs} " in
13977 *" gcc "*) ;;
13978 *) ok=no ;;
13979 esac
13980 case ,${enable_languages}, in
13981 *,c++,*) ;;
13982 *) ok=no ;;
13983 esac
13984 if test $ok = yes; then
13985 # An in-tree tool is available and we can use it
13986 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'
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13988$as_echo "just compiled" >&6; }
13989 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13990 # We already found the complete path
13991 ac_dir=`dirname $CXX_FOR_TARGET`
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993$as_echo "pre-installed in $ac_dir" >&6; }
13994 elif test "x$target" = "x$host"; then
13995 # We can use an host tool
13996 CXX_FOR_TARGET='$(CXX)'
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13998$as_echo "host tool" >&6; }
13999 else
14000 # We need a cross tool
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14002$as_echo "pre-installed" >&6; }
14003 fi
14004fi
14005
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14007$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14008if test "x${build}" != "x${host}" ; then
14009 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14010 # We already found the complete path
14011 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14013$as_echo "pre-installed in $ac_dir" >&6; }
14014 else
14015 # Canadian cross, just use what we found
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017$as_echo "pre-installed" >&6; }
14018 fi
14019else
14020 ok=yes
14021 case " ${configdirs} " in
14022 *" gcc "*) ;;
14023 *) ok=no ;;
14024 esac
14025 case ,${enable_languages}, in
14026 *,c++,*) ;;
14027 *) ok=no ;;
14028 esac
14029 if test $ok = yes; then
14030 # An in-tree tool is available and we can use it
14031 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'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14033$as_echo "just compiled" >&6; }
14034 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038$as_echo "pre-installed in $ac_dir" >&6; }
14039 elif test "x$target" = "x$host"; then
14040 # We can use an host tool
14041 RAW_CXX_FOR_TARGET='$(CXX)'
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14043$as_echo "host tool" >&6; }
14044 else
14045 # We need a cross tool
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047$as_echo "pre-installed" >&6; }
14048 fi
14049fi
14050
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14052$as_echo_n "checking where to find the target dlltool... " >&6; }
14053if test "x${build}" != "x${host}" ; then
14054 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058$as_echo "pre-installed in $ac_dir" >&6; }
14059 else
14060 # Canadian cross, just use what we found
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062$as_echo "pre-installed" >&6; }
14063 fi
14064else
14065 ok=yes
14066 case " ${configdirs} " in
14067 *" binutils "*) ;;
14068 *) ok=no ;;
14069 esac
14070
14071 if test $ok = yes; then
14072 # An in-tree tool is available and we can use it
14073 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14075$as_echo "just compiled" >&6; }
14076 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080$as_echo "pre-installed in $ac_dir" >&6; }
14081 elif test "x$target" = "x$host"; then
14082 # We can use an host tool
14083 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14085$as_echo "host tool" >&6; }
14086 else
14087 # We need a cross tool
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089$as_echo "pre-installed" >&6; }
14090 fi
14091fi
14092
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14094$as_echo_n "checking where to find the target gcc... " >&6; }
14095if test "x${build}" != "x${host}" ; then
14096 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $GCC_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100$as_echo "pre-installed in $ac_dir" >&6; }
14101 else
14102 # Canadian cross, just use what we found
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104$as_echo "pre-installed" >&6; }
14105 fi
14106else
14107 ok=yes
14108 case " ${configdirs} " in
14109 *" gcc "*) ;;
14110 *) ok=no ;;
14111 esac
14112
14113 if test $ok = yes; then
14114 # An in-tree tool is available and we can use it
14115 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14117$as_echo "just compiled" >&6; }
14118 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $GCC_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122$as_echo "pre-installed in $ac_dir" >&6; }
14123 elif test "x$target" = "x$host"; then
14124 # We can use an host tool
14125 GCC_FOR_TARGET='$()'
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14127$as_echo "host tool" >&6; }
14128 else
14129 # We need a cross tool
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131$as_echo "pre-installed" >&6; }
14132 fi
14133fi
14134
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14136$as_echo_n "checking where to find the target gfortran... " >&6; }
14137if test "x${build}" != "x${host}" ; then
14138 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142$as_echo "pre-installed in $ac_dir" >&6; }
14143 else
14144 # Canadian cross, just use what we found
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146$as_echo "pre-installed" >&6; }
14147 fi
14148else
14149 ok=yes
14150 case " ${configdirs} " in
14151 *" gcc "*) ;;
14152 *) ok=no ;;
14153 esac
14154 case ,${enable_languages}, in
14155 *,fortran,*) ;;
14156 *) ok=no ;;
14157 esac
14158 if test $ok = yes; then
14159 # An in-tree tool is available and we can use it
14160 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14162$as_echo "just compiled" >&6; }
14163 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14164 # We already found the complete path
14165 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167$as_echo "pre-installed in $ac_dir" >&6; }
14168 elif test "x$target" = "x$host"; then
14169 # We can use an host tool
14170 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14172$as_echo "host tool" >&6; }
14173 else
14174 # We need a cross tool
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176$as_echo "pre-installed" >&6; }
14177 fi
14178fi
14179
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14181$as_echo_n "checking where to find the target gccgo... " >&6; }
14182if test "x${build}" != "x${host}" ; then
14183 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14184 # We already found the complete path
14185 ac_dir=`dirname $GOC_FOR_TARGET`
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14187$as_echo "pre-installed in $ac_dir" >&6; }
14188 else
14189 # Canadian cross, just use what we found
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14191$as_echo "pre-installed" >&6; }
14192 fi
14193else
14194 ok=yes
14195 case " ${configdirs} " in
14196 *" gcc "*) ;;
14197 *) ok=no ;;
14198 esac
14199 case ,${enable_languages}, in
14200 *,go,*) ;;
14201 *) ok=no ;;
14202 esac
14203 if test $ok = yes; then
14204 # An in-tree tool is available and we can use it
14205 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14207$as_echo "just compiled" >&6; }
14208 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14209 # We already found the complete path
14210 ac_dir=`dirname $GOC_FOR_TARGET`
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14212$as_echo "pre-installed in $ac_dir" >&6; }
14213 elif test "x$target" = "x$host"; then
14214 # We can use an host tool
14215 GOC_FOR_TARGET='$(GOC)'
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14217$as_echo "host tool" >&6; }
14218 else
14219 # We need a cross tool
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14221$as_echo "pre-installed" >&6; }
14222 fi
14223fi
14224
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14226$as_echo_n "checking where to find the target ld... " >&6; }
14227if test "x${build}" != "x${host}" ; then
14228 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14229 # We already found the complete path
14230 ac_dir=`dirname $LD_FOR_TARGET`
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14232$as_echo "pre-installed in $ac_dir" >&6; }
14233 else
14234 # Canadian cross, just use what we found
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14236$as_echo "pre-installed" >&6; }
14237 fi
14238else
14239 ok=yes
14240 case " ${configdirs} " in
14241 *" ld "*) ;;
14242 *) ok=no ;;
14243 esac
14244
14245 if test $ok = yes; then
14246 # An in-tree tool is available and we can use it
14247 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14249$as_echo "just compiled" >&6; }
14250 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14251 # We already found the complete path
14252 ac_dir=`dirname $LD_FOR_TARGET`
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14254$as_echo "pre-installed in $ac_dir" >&6; }
14255 elif test "x$target" = "x$host"; then
14256 # We can use an host tool
14257 LD_FOR_TARGET='$(LD)'
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14259$as_echo "host tool" >&6; }
14260 else
14261 # We need a cross tool
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14263$as_echo "pre-installed" >&6; }
14264 fi
14265fi
14266
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14268$as_echo_n "checking where to find the target lipo... " >&6; }
14269if test "x${build}" != "x${host}" ; then
14270 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14271 # We already found the complete path
14272 ac_dir=`dirname $LIPO_FOR_TARGET`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274$as_echo "pre-installed in $ac_dir" >&6; }
14275 else
14276 # Canadian cross, just use what we found
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14278$as_echo "pre-installed" >&6; }
14279 fi
14280else
14281 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
14283 ac_dir=`dirname $LIPO_FOR_TARGET`
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285$as_echo "pre-installed in $ac_dir" >&6; }
14286 elif test "x$target" = "x$host"; then
14287 # We can use an host tool
14288 LIPO_FOR_TARGET='$(LIPO)'
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14290$as_echo "host tool" >&6; }
14291 else
14292 # We need a cross tool
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14294$as_echo "pre-installed" >&6; }
14295 fi
14296fi
14297
14298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14299$as_echo_n "checking where to find the target nm... " >&6; }
14300if test "x${build}" != "x${host}" ; then
14301 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14302 # We already found the complete path
14303 ac_dir=`dirname $NM_FOR_TARGET`
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14305$as_echo "pre-installed in $ac_dir" >&6; }
14306 else
14307 # Canadian cross, just use what we found
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309$as_echo "pre-installed" >&6; }
14310 fi
14311else
14312 ok=yes
14313 case " ${configdirs} " in
14314 *" binutils "*) ;;
14315 *) ok=no ;;
14316 esac
14317
14318 if test $ok = yes; then
14319 # An in-tree tool is available and we can use it
14320 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14322$as_echo "just compiled" >&6; }
14323 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14324 # We already found the complete path
14325 ac_dir=`dirname $NM_FOR_TARGET`
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327$as_echo "pre-installed in $ac_dir" >&6; }
14328 elif test "x$target" = "x$host"; then
14329 # We can use an host tool
14330 NM_FOR_TARGET='$(NM)'
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14332$as_echo "host tool" >&6; }
14333 else
14334 # We need a cross tool
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14336$as_echo "pre-installed" >&6; }
14337 fi
14338fi
14339
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14341$as_echo_n "checking where to find the target objcopy... " >&6; }
14342if test "x${build}" != "x${host}" ; then
14343 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14344 # We already found the complete path
14345 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14347$as_echo "pre-installed in $ac_dir" >&6; }
14348 else
14349 # Canadian cross, just use what we found
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351$as_echo "pre-installed" >&6; }
14352 fi
14353else
14354 ok=yes
14355 case " ${configdirs} " in
14356 *" binutils "*) ;;
14357 *) ok=no ;;
14358 esac
14359
14360 if test $ok = yes; then
14361 # An in-tree tool is available and we can use it
14362 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14364$as_echo "just compiled" >&6; }
14365 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14366 # We already found the complete path
14367 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14369$as_echo "pre-installed in $ac_dir" >&6; }
14370 elif test "x$target" = "x$host"; then
14371 # We can use an host tool
14372 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14374$as_echo "host tool" >&6; }
14375 else
14376 # We need a cross tool
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378$as_echo "pre-installed" >&6; }
14379 fi
14380fi
14381
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14383$as_echo_n "checking where to find the target objdump... " >&6; }
14384if test "x${build}" != "x${host}" ; then
14385 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14386 # We already found the complete path
14387 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14389$as_echo "pre-installed in $ac_dir" >&6; }
14390 else
14391 # Canadian cross, just use what we found
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393$as_echo "pre-installed" >&6; }
14394 fi
14395else
14396 ok=yes
14397 case " ${configdirs} " in
14398 *" binutils "*) ;;
14399 *) ok=no ;;
14400 esac
14401
14402 if test $ok = yes; then
14403 # An in-tree tool is available and we can use it
14404 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14406$as_echo "just compiled" >&6; }
14407 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14408 # We already found the complete path
14409 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14411$as_echo "pre-installed in $ac_dir" >&6; }
14412 elif test "x$target" = "x$host"; then
14413 # We can use an host tool
14414 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14416$as_echo "host tool" >&6; }
14417 else
14418 # We need a cross tool
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14420$as_echo "pre-installed" >&6; }
14421 fi
14422fi
14423
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14425$as_echo_n "checking where to find the target ranlib... " >&6; }
14426if test "x${build}" != "x${host}" ; then
14427 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14428 # We already found the complete path
14429 ac_dir=`dirname $RANLIB_FOR_TARGET`
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14431$as_echo "pre-installed in $ac_dir" >&6; }
14432 else
14433 # Canadian cross, just use what we found
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435$as_echo "pre-installed" >&6; }
14436 fi
14437else
14438 ok=yes
14439 case " ${configdirs} " in
14440 *" binutils "*) ;;
14441 *) ok=no ;;
14442 esac
14443
14444 if test $ok = yes; then
14445 # An in-tree tool is available and we can use it
14446 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14448$as_echo "just compiled" >&6; }
14449 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14450 # We already found the complete path
14451 ac_dir=`dirname $RANLIB_FOR_TARGET`
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14453$as_echo "pre-installed in $ac_dir" >&6; }
14454 elif test "x$target" = "x$host"; then
14455 # We can use an host tool
14456 RANLIB_FOR_TARGET='$(RANLIB)'
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14458$as_echo "host tool" >&6; }
14459 else
14460 # We need a cross tool
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14462$as_echo "pre-installed" >&6; }
14463 fi
14464fi
14465
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14467$as_echo_n "checking where to find the target readelf... " >&6; }
14468if test "x${build}" != "x${host}" ; then
14469 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
14471 ac_dir=`dirname $READELF_FOR_TARGET`
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473$as_echo "pre-installed in $ac_dir" >&6; }
14474 else
14475 # Canadian cross, just use what we found
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477$as_echo "pre-installed" >&6; }
14478 fi
14479else
14480 ok=yes
14481 case " ${configdirs} " in
14482 *" binutils "*) ;;
14483 *) ok=no ;;
14484 esac
14485
14486 if test $ok = yes; then
14487 # An in-tree tool is available and we can use it
14488 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14490$as_echo "just compiled" >&6; }
14491 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14492 # We already found the complete path
14493 ac_dir=`dirname $READELF_FOR_TARGET`
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14495$as_echo "pre-installed in $ac_dir" >&6; }
14496 elif test "x$target" = "x$host"; then
14497 # We can use an host tool
14498 READELF_FOR_TARGET='$(READELF)'
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14500$as_echo "host tool" >&6; }
14501 else
14502 # We need a cross tool
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14504$as_echo "pre-installed" >&6; }
14505 fi
14506fi
14507
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14509$as_echo_n "checking where to find the target strip... " >&6; }
14510if test "x${build}" != "x${host}" ; then
14511 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14512 # We already found the complete path
14513 ac_dir=`dirname $STRIP_FOR_TARGET`
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14515$as_echo "pre-installed in $ac_dir" >&6; }
14516 else
14517 # Canadian cross, just use what we found
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14519$as_echo "pre-installed" >&6; }
14520 fi
14521else
14522 ok=yes
14523 case " ${configdirs} " in
14524 *" binutils "*) ;;
14525 *) ok=no ;;
14526 esac
14527
14528 if test $ok = yes; then
14529 # An in-tree tool is available and we can use it
14530 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14532$as_echo "just compiled" >&6; }
14533 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14534 # We already found the complete path
14535 ac_dir=`dirname $STRIP_FOR_TARGET`
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14537$as_echo "pre-installed in $ac_dir" >&6; }
14538 elif test "x$target" = "x$host"; then
14539 # We can use an host tool
14540 STRIP_FOR_TARGET='$(STRIP)'
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14542$as_echo "host tool" >&6; }
14543 else
14544 # We need a cross tool
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14546$as_echo "pre-installed" >&6; }
14547 fi
14548fi
14549
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14551$as_echo_n "checking where to find the target windres... " >&6; }
14552if test "x${build}" != "x${host}" ; then
14553 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14554 # We already found the complete path
14555 ac_dir=`dirname $WINDRES_FOR_TARGET`
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14557$as_echo "pre-installed in $ac_dir" >&6; }
14558 else
14559 # Canadian cross, just use what we found
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14561$as_echo "pre-installed" >&6; }
14562 fi
14563else
14564 ok=yes
14565 case " ${configdirs} " in
14566 *" binutils "*) ;;
14567 *) ok=no ;;
14568 esac
14569
14570 if test $ok = yes; then
14571 # An in-tree tool is available and we can use it
14572 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14574$as_echo "just compiled" >&6; }
14575 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14576 # We already found the complete path
14577 ac_dir=`dirname $WINDRES_FOR_TARGET`
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14579$as_echo "pre-installed in $ac_dir" >&6; }
14580 elif test "x$target" = "x$host"; then
14581 # We can use an host tool
14582 WINDRES_FOR_TARGET='$(WINDRES)'
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14584$as_echo "host tool" >&6; }
14585 else
14586 # We need a cross tool
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14588$as_echo "pre-installed" >&6; }
14589 fi
14590fi
14591
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14593$as_echo_n "checking where to find the target windmc... " >&6; }
14594if test "x${build}" != "x${host}" ; then
14595 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14596 # We already found the complete path
14597 ac_dir=`dirname $WINDMC_FOR_TARGET`
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14599$as_echo "pre-installed in $ac_dir" >&6; }
14600 else
14601 # Canadian cross, just use what we found
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14603$as_echo "pre-installed" >&6; }
14604 fi
14605else
14606 ok=yes
14607 case " ${configdirs} " in
14608 *" binutils "*) ;;
14609 *) ok=no ;;
14610 esac
14611
14612 if test $ok = yes; then
14613 # An in-tree tool is available and we can use it
14614 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14616$as_echo "just compiled" >&6; }
14617 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14618 # We already found the complete path
14619 ac_dir=`dirname $WINDMC_FOR_TARGET`
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14621$as_echo "pre-installed in $ac_dir" >&6; }
14622 elif test "x$target" = "x$host"; then
14623 # We can use an host tool
14624 WINDMC_FOR_TARGET='$(WINDMC)'
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14626$as_echo "host tool" >&6; }
14627 else
14628 # We need a cross tool
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14630$as_echo "pre-installed" >&6; }
14631 fi
14632fi
14633
14634
14635
14636
14637
14638# Certain tools may need extra flags.
14639AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14640RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14641NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14642
14643# When building target libraries, except in a Canadian cross, we use
14644# the same toolchain as the compiler we just built.
14645COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14646COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14647COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14648if test $host = $build; then
14649 case " $configdirs " in
14650 *" gcc "*)
14651 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14652 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14653 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14654 ;;
14655 esac
14656fi
14657
14658
14659
14660
14661
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14663$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14664# Check whether --enable-maintainer-mode was given.
14665if test "${enable_maintainer_mode+set}" = set; then :
14666 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14667else
14668 USE_MAINTAINER_MODE=no
14669fi
14670
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14672$as_echo "$USE_MAINTAINER_MODE" >&6; }
14673
14674
14675if test "$USE_MAINTAINER_MODE" = yes; then
14676 MAINTAINER_MODE_TRUE=
14677 MAINTAINER_MODE_FALSE='#'
14678else
14679 MAINTAINER_MODE_TRUE='#'
14680 MAINTAINER_MODE_FALSE=
14681fi
14682MAINT=$MAINTAINER_MODE_TRUE
14683
14684# ---------------------
14685# GCC bootstrap support
14686# ---------------------
14687
14688# Stage specific cflags for build.
14689stage1_cflags="-g"
14690case $build in
14691 vax-*-*)
14692 case ${GCC} in
14693 yes) stage1_cflags="-g -Wa,-J" ;;
14694 *) stage1_cflags="-g -J" ;;
14695 esac ;;
14696esac
14697
14698
14699
14700# Enable --enable-checking in stage1 of the compiler.
14701# Check whether --enable-stage1-checking was given.
14702if test "${enable_stage1_checking+set}" = set; then :
14703 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14704else
14705 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14706 # For --disable-checking or implicit --enable-checking=release, avoid
14707 # setting --enable-checking=gc in the default stage1 checking for LTO
14708 # bootstraps. See PR62077.
14709 case $BUILD_CONFIG in
14710 *lto*)
14711 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14712 *)
14713 stage1_checking=--enable-checking=yes,types;;
14714 esac
14715 if test "x$enable_checking" = x && \
14716 test -d ${srcdir}/gcc && \
14717 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14718 stage1_checking=--enable-checking=yes,types,extra
14719 fi
14720else
14721 stage1_checking=--enable-checking=$enable_checking,types
14722fi
14723fi
14724
14725
14726
14727# Enable -Werror in bootstrap stage2 and later.
14728# Check whether --enable-werror was given.
14729if test "${enable_werror+set}" = set; then :
14730 enableval=$enable_werror;
14731case ${enable_werror} in
14732 yes) stage2_werror_flag="--enable-werror-always" ;;
14733 *) stage2_werror_flag="" ;;
14734esac
14735
14736else
14737
14738if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14739 case $BUILD_CONFIG in
14740 bootstrap-debug)
14741 stage2_werror_flag="--enable-werror-always" ;;
14742 "")
14743 stage2_werror_flag="--enable-werror-always" ;;
14744 esac
14745fi
14746
14747fi
14748
14749
14750
14751
14752# Specify what files to not compare during bootstrap.
14753
14754compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14755case "$target" in
14756 hppa*64*-*-hpux*) ;;
14757 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14758 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14759esac
14760
14761
14762ac_config_files="$ac_config_files Makefile"
14763
14764cat >confcache <<\_ACEOF
14765# This file is a shell script that caches the results of configure
14766# tests run on this system so they can be shared between configure
14767# scripts and configure runs, see configure's option --config-cache.
14768# It is not useful on other systems. If it contains results you don't
14769# want to keep, you may remove or edit it.
14770#
14771# config.status only pays attention to the cache file if you give it
14772# the --recheck option to rerun configure.
14773#
14774# `ac_cv_env_foo' variables (set or unset) will be overridden when
14775# loading this file, other *unset* `ac_cv_foo' will be assigned the
14776# following values.
14777
14778_ACEOF
14779
14780# The following way of writing the cache mishandles newlines in values,
14781# but we know of no workaround that is simple, portable, and efficient.
14782# So, we kill variables containing newlines.
14783# Ultrix sh set writes to stderr and can't be redirected directly,
14784# and sets the high bit in the cache file unless we assign to the vars.
14785(
14786 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14787 eval ac_val=\$$ac_var
14788 case $ac_val in #(
14789 *${as_nl}*)
14790 case $ac_var in #(
14791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14792$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14793 esac
14794 case $ac_var in #(
14795 _ | IFS | as_nl) ;; #(
14796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14797 *) { eval $ac_var=; unset $ac_var;} ;;
14798 esac ;;
14799 esac
14800 done
14801
14802 (set) 2>&1 |
14803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14804 *${as_nl}ac_space=\ *)
14805 # `set' does not quote correctly, so add quotes: double-quote
14806 # substitution turns \\\\ into \\, and sed turns \\ into \.
14807 sed -n \
14808 "s/'/'\\\\''/g;
14809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14810 ;; #(
14811 *)
14812 # `set' quotes correctly as required by POSIX, so do not add quotes.
14813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14814 ;;
14815 esac |
14816 sort
14817) |
14818 sed '
14819 /^ac_cv_env_/b end
14820 t clear
14821 :clear
14822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14823 t end
14824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14825 :end' >>confcache
14826if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14827 if test -w "$cache_file"; then
14828 if test "x$cache_file" != "x/dev/null"; then
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14830$as_echo "$as_me: updating cache $cache_file" >&6;}
14831 if test ! -f "$cache_file" || test -h "$cache_file"; then
14832 cat confcache >"$cache_file"
14833 else
14834 case $cache_file in #(
14835 */* | ?:*)
14836 mv -f confcache "$cache_file"$$ &&
14837 mv -f "$cache_file"$$ "$cache_file" ;; #(
14838 *)
14839 mv -f confcache "$cache_file" ;;
14840 esac
14841 fi
14842 fi
14843 else
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14845$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14846 fi
14847fi
14848rm -f confcache
14849
14850test "x$prefix" = xNONE && prefix=$ac_default_prefix
14851# Let make expand exec_prefix.
14852test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14853
14854# Transform confdefs.h into DEFS.
14855# Protect against shell expansion while executing Makefile rules.
14856# Protect against Makefile macro expansion.
14857#
14858# If the first sed substitution is executed (which looks for macros that
14859# take arguments), then branch to the quote section. Otherwise,
14860# look for a macro that doesn't take arguments.
14861ac_script='
14862:mline
14863/\\$/{
14864 N
14865 s,\\\n,,
14866 b mline
14867}
14868t clear
14869:clear
14870s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14871t quote
14872s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14873t quote
14874b any
14875:quote
14876s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14877s/\[/\\&/g
14878s/\]/\\&/g
14879s/\$/$$/g
14880H
14881:any
14882${
14883 g
14884 s/^\n//
14885 s/\n/ /g
14886 p
14887}
14888'
14889DEFS=`sed -n "$ac_script" confdefs.h`
14890
14891
14892ac_libobjs=
14893ac_ltlibobjs=
14894U=
14895for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14896 # 1. Remove the extension, and $U if already installed.
14897 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14898 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14899 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14900 # will be set to the directory where LIBOBJS objects are built.
14901 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14902 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14903done
14904LIBOBJS=$ac_libobjs
14905
14906LTLIBOBJS=$ac_ltlibobjs
14907
14908
14909
14910: "${CONFIG_STATUS=./config.status}"
14911ac_write_fail=0
14912ac_clean_files_save=$ac_clean_files
14913ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14915$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14916as_write_fail=0
14917cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14918#! $SHELL
14919# Generated by $as_me.
14920# Run this file to recreate the current configuration.
14921# Compiler output produced by configure, useful for debugging
14922# configure, is in config.log if it exists.
14923
14924debug=false
14925ac_cs_recheck=false
14926ac_cs_silent=false
14927
14928SHELL=\${CONFIG_SHELL-$SHELL}
14929export SHELL
14930_ASEOF
14931cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14932## -------------------- ##
14933## M4sh Initialization. ##
14934## -------------------- ##
14935
14936# Be more Bourne compatible
14937DUALCASE=1; export DUALCASE # for MKS sh
14938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14939 emulate sh
14940 NULLCMD=:
14941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14942 # is contrary to our usage. Disable this feature.
14943 alias -g '${1+"$@"}'='"$@"'
14944 setopt NO_GLOB_SUBST
14945else
14946 case `(set -o) 2>/dev/null` in #(
14947 *posix*) :
14948 set -o posix ;; #(
14949 *) :
14950 ;;
14951esac
14952fi
14953
14954
14955as_nl='
14956'
14957export as_nl
14958# Printing a long string crashes Solaris 7 /usr/bin/printf.
14959as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14962# Prefer a ksh shell builtin over an external printf program on Solaris,
14963# but without wasting forks for bash or zsh.
14964if test -z "$BASH_VERSION$ZSH_VERSION" \
14965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14966 as_echo='print -r --'
14967 as_echo_n='print -rn --'
14968elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14969 as_echo='printf %s\n'
14970 as_echo_n='printf %s'
14971else
14972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14974 as_echo_n='/usr/ucb/echo -n'
14975 else
14976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14977 as_echo_n_body='eval
14978 arg=$1;
14979 case $arg in #(
14980 *"$as_nl"*)
14981 expr "X$arg" : "X\\(.*\\)$as_nl";
14982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14983 esac;
14984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14985 '
14986 export as_echo_n_body
14987 as_echo_n='sh -c $as_echo_n_body as_echo'
14988 fi
14989 export as_echo_body
14990 as_echo='sh -c $as_echo_body as_echo'
14991fi
14992
14993# The user is always right.
14994if test "${PATH_SEPARATOR+set}" != set; then
14995 PATH_SEPARATOR=:
14996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14998 PATH_SEPARATOR=';'
14999 }
15000fi
15001
15002
15003# IFS
15004# We need space, tab and new line, in precisely that order. Quoting is
15005# there to prevent editors from complaining about space-tab.
15006# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15007# splitting by setting IFS to empty value.)
15008IFS=" "" $as_nl"
15009
15010# Find who we are. Look in the path if we contain no directory separator.
15011as_myself=
15012case $0 in #((
15013 *[\\/]* ) as_myself=$0 ;;
15014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015for as_dir in $PATH
15016do
15017 IFS=$as_save_IFS
15018 test -z "$as_dir" && as_dir=.
15019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15020 done
15021IFS=$as_save_IFS
15022
15023 ;;
15024esac
15025# We did not find ourselves, most probably we were run as `sh COMMAND'
15026# in which case we are not to be found in the path.
15027if test "x$as_myself" = x; then
15028 as_myself=$0
15029fi
15030if test ! -f "$as_myself"; then
15031 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15032 exit 1
15033fi
15034
15035# Unset variables that we do not need and which cause bugs (e.g. in
15036# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15037# suppresses any "Segmentation fault" message there. '((' could
15038# trigger a bug in pdksh 5.2.14.
15039for as_var in BASH_ENV ENV MAIL MAILPATH
15040do eval test x\${$as_var+set} = xset \
15041 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15042done
15043PS1='$ '
15044PS2='> '
15045PS4='+ '
15046
15047# NLS nuisances.
15048LC_ALL=C
15049export LC_ALL
15050LANGUAGE=C
15051export LANGUAGE
15052
15053# CDPATH.
15054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15055
15056
15057# as_fn_error STATUS ERROR [LINENO LOG_FD]
15058# ----------------------------------------
15059# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15060# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15061# script with STATUS, using 1 if that was 0.
15062as_fn_error ()
15063{
15064 as_status=$1; test $as_status -eq 0 && as_status=1
15065 if test "$4"; then
15066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15067 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15068 fi
15069 $as_echo "$as_me: error: $2" >&2
15070 as_fn_exit $as_status
15071} # as_fn_error
15072
15073
15074# as_fn_set_status STATUS
15075# -----------------------
15076# Set $? to STATUS, without forking.
15077as_fn_set_status ()
15078{
15079 return $1
15080} # as_fn_set_status
15081
15082# as_fn_exit STATUS
15083# -----------------
15084# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15085as_fn_exit ()
15086{
15087 set +e
15088 as_fn_set_status $1
15089 exit $1
15090} # as_fn_exit
15091
15092# as_fn_unset VAR
15093# ---------------
15094# Portably unset VAR.
15095as_fn_unset ()
15096{
15097 { eval $1=; unset $1;}
15098}
15099as_unset=as_fn_unset
15100# as_fn_append VAR VALUE
15101# ----------------------
15102# Append the text in VALUE to the end of the definition contained in VAR. Take
15103# advantage of any shell optimizations that allow amortized linear growth over
15104# repeated appends, instead of the typical quadratic growth present in naive
15105# implementations.
15106if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15107 eval 'as_fn_append ()
15108 {
15109 eval $1+=\$2
15110 }'
15111else
15112 as_fn_append ()
15113 {
15114 eval $1=\$$1\$2
15115 }
15116fi # as_fn_append
15117
15118# as_fn_arith ARG...
15119# ------------------
15120# Perform arithmetic evaluation on the ARGs, and store the result in the
15121# global $as_val. Take advantage of shells that can avoid forks. The arguments
15122# must be portable across $(()) and expr.
15123if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15124 eval 'as_fn_arith ()
15125 {
15126 as_val=$(( $* ))
15127 }'
15128else
15129 as_fn_arith ()
15130 {
15131 as_val=`expr "$@" || test $? -eq 1`
15132 }
15133fi # as_fn_arith
15134
15135
15136if expr a : '\(a\)' >/dev/null 2>&1 &&
15137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15138 as_expr=expr
15139else
15140 as_expr=false
15141fi
15142
15143if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15144 as_basename=basename
15145else
15146 as_basename=false
15147fi
15148
15149if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15150 as_dirname=dirname
15151else
15152 as_dirname=false
15153fi
15154
15155as_me=`$as_basename -- "$0" ||
15156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15157 X"$0" : 'X\(//\)$' \| \
15158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15159$as_echo X/"$0" |
15160 sed '/^.*\/\([^/][^/]*\)\/*$/{
15161 s//\1/
15162 q
15163 }
15164 /^X\/\(\/\/\)$/{
15165 s//\1/
15166 q
15167 }
15168 /^X\/\(\/\).*/{
15169 s//\1/
15170 q
15171 }
15172 s/.*/./; q'`
15173
15174# Avoid depending upon Character Ranges.
15175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15178as_cr_digits='0123456789'
15179as_cr_alnum=$as_cr_Letters$as_cr_digits
15180
15181ECHO_C= ECHO_N= ECHO_T=
15182case `echo -n x` in #(((((
15183-n*)
15184 case `echo 'xy\c'` in
15185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15186 xy) ECHO_C='\c';;
15187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15188 ECHO_T=' ';;
15189 esac;;
15190*)
15191 ECHO_N='-n';;
15192esac
15193
15194rm -f conf$$ conf$$.exe conf$$.file
15195if test -d conf$$.dir; then
15196 rm -f conf$$.dir/conf$$.file
15197else
15198 rm -f conf$$.dir
15199 mkdir conf$$.dir 2>/dev/null
15200fi
15201if (echo >conf$$.file) 2>/dev/null; then
15202 if ln -s conf$$.file conf$$ 2>/dev/null; then
15203 as_ln_s='ln -s'
15204 # ... but there are two gotchas:
15205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15207 # In both cases, we have to default to `cp -pR'.
15208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15209 as_ln_s='cp -pR'
15210 elif ln conf$$.file conf$$ 2>/dev/null; then
15211 as_ln_s=ln
15212 else
15213 as_ln_s='cp -pR'
15214 fi
15215else
15216 as_ln_s='cp -pR'
15217fi
15218rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15219rmdir conf$$.dir 2>/dev/null
15220
15221
15222# as_fn_mkdir_p
15223# -------------
15224# Create "$as_dir" as a directory, including parents if necessary.
15225as_fn_mkdir_p ()
15226{
15227
15228 case $as_dir in #(
15229 -*) as_dir=./$as_dir;;
15230 esac
15231 test -d "$as_dir" || eval $as_mkdir_p || {
15232 as_dirs=
15233 while :; do
15234 case $as_dir in #(
15235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15236 *) as_qdir=$as_dir;;
15237 esac
15238 as_dirs="'$as_qdir' $as_dirs"
15239 as_dir=`$as_dirname -- "$as_dir" ||
15240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15241 X"$as_dir" : 'X\(//\)[^/]' \| \
15242 X"$as_dir" : 'X\(//\)$' \| \
15243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15244$as_echo X"$as_dir" |
15245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15246 s//\1/
15247 q
15248 }
15249 /^X\(\/\/\)[^/].*/{
15250 s//\1/
15251 q
15252 }
15253 /^X\(\/\/\)$/{
15254 s//\1/
15255 q
15256 }
15257 /^X\(\/\).*/{
15258 s//\1/
15259 q
15260 }
15261 s/.*/./; q'`
15262 test -d "$as_dir" && break
15263 done
15264 test -z "$as_dirs" || eval "mkdir $as_dirs"
15265 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15266
15267
15268} # as_fn_mkdir_p
15269if mkdir -p . 2>/dev/null; then
15270 as_mkdir_p='mkdir -p "$as_dir"'
15271else
15272 test -d ./-p && rmdir ./-p
15273 as_mkdir_p=false
15274fi
15275
15276
15277# as_fn_executable_p FILE
15278# -----------------------
15279# Test if FILE is an executable regular file.
15280as_fn_executable_p ()
15281{
15282 test -f "$1" && test -x "$1"
15283} # as_fn_executable_p
15284as_test_x='test -x'
15285as_executable_p=as_fn_executable_p
15286
15287# Sed expression to map a string onto a valid CPP name.
15288as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15289
15290# Sed expression to map a string onto a valid variable name.
15291as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15292
15293
15294exec 6>&1
15295## ----------------------------------- ##
15296## Main body of $CONFIG_STATUS script. ##
15297## ----------------------------------- ##
15298_ASEOF
15299test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15300
15301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15302# Save the log message, to keep $0 and so on meaningful, and to
15303# report actual input values of CONFIG_FILES etc. instead of their
15304# values after options handling.
15305ac_log="
15306This file was extended by $as_me, which was
15307generated by GNU Autoconf 2.69. Invocation command line was
15308
15309 CONFIG_FILES = $CONFIG_FILES
15310 CONFIG_HEADERS = $CONFIG_HEADERS
15311 CONFIG_LINKS = $CONFIG_LINKS
15312 CONFIG_COMMANDS = $CONFIG_COMMANDS
15313 $ $0 $@
15314
15315on `(hostname || uname -n) 2>/dev/null | sed 1q`
15316"
15317
15318_ACEOF
15319
15320case $ac_config_files in *"
15321"*) set x $ac_config_files; shift; ac_config_files=$*;;
15322esac
15323
15324
15325
15326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15327# Files that config.status was made for.
15328config_files="$ac_config_files"
15329
15330_ACEOF
15331
15332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15333ac_cs_usage="\
15334\`$as_me' instantiates files and other configuration actions
15335from templates according to the current configuration. Unless the files
15336and actions are specified as TAGs, all are instantiated by default.
15337
15338Usage: $0 [OPTION]... [TAG]...
15339
15340 -h, --help print this help, then exit
15341 -V, --version print version number and configuration settings, then exit
15342 --config print configuration, then exit
15343 -q, --quiet, --silent
15344 do not print progress messages
15345 -d, --debug don't remove temporary files
15346 --recheck update $as_me by reconfiguring in the same conditions
15347 --file=FILE[:TEMPLATE]
15348 instantiate the configuration file FILE
15349
15350Configuration files:
15351$config_files
15352
15353Report bugs to the package provider."
15354
15355_ACEOF
15356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15357ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15358ac_cs_version="\\
15359config.status
15360configured by $0, generated by GNU Autoconf 2.69,
15361 with options \\"\$ac_cs_config\\"
15362
15363Copyright (C) 2012 Free Software Foundation, Inc.
15364This config.status script is free software; the Free Software Foundation
15365gives unlimited permission to copy, distribute and modify it."
15366
15367ac_pwd='$ac_pwd'
15368srcdir='$srcdir'
15369INSTALL='$INSTALL'
15370AWK='$AWK'
15371test -n "\$AWK" || AWK=awk
15372_ACEOF
15373
15374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15375# The default lists apply if the user does not specify any file.
15376ac_need_defaults=:
15377while test $# != 0
15378do
15379 case $1 in
15380 --*=?*)
15381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15383 ac_shift=:
15384 ;;
15385 --*=)
15386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15387 ac_optarg=
15388 ac_shift=:
15389 ;;
15390 *)
15391 ac_option=$1
15392 ac_optarg=$2
15393 ac_shift=shift
15394 ;;
15395 esac
15396
15397 case $ac_option in
15398 # Handling of the options.
15399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15400 ac_cs_recheck=: ;;
15401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15402 $as_echo "$ac_cs_version"; exit ;;
15403 --config | --confi | --conf | --con | --co | --c )
15404 $as_echo "$ac_cs_config"; exit ;;
15405 --debug | --debu | --deb | --de | --d | -d )
15406 debug=: ;;
15407 --file | --fil | --fi | --f )
15408 $ac_shift
15409 case $ac_optarg in
15410 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15411 '') as_fn_error $? "missing file argument" ;;
15412 esac
15413 as_fn_append CONFIG_FILES " '$ac_optarg'"
15414 ac_need_defaults=false;;
15415 --he | --h | --help | --hel | -h )
15416 $as_echo "$ac_cs_usage"; exit ;;
15417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15419 ac_cs_silent=: ;;
15420
15421 # This is an error.
15422 -*) as_fn_error $? "unrecognized option: \`$1'
15423Try \`$0 --help' for more information." ;;
15424
15425 *) as_fn_append ac_config_targets " $1"
15426 ac_need_defaults=false ;;
15427
15428 esac
15429 shift
15430done
15431
15432ac_configure_extra_args=
15433
15434if $ac_cs_silent; then
15435 exec 6>/dev/null
15436 ac_configure_extra_args="$ac_configure_extra_args --silent"
15437fi
15438
15439_ACEOF
15440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441if \$ac_cs_recheck; then
15442 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15443 shift
15444 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15445 CONFIG_SHELL='$SHELL'
15446 export CONFIG_SHELL
15447 exec "\$@"
15448fi
15449
15450_ACEOF
15451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452exec 5>>config.log
15453{
15454 echo
15455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15456## Running $as_me. ##
15457_ASBOX
15458 $as_echo "$ac_log"
15459} >&5
15460
15461_ACEOF
15462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463#
15464# INIT-COMMANDS
15465#
15466extrasub_build="$extrasub_build"
15467 extrasub_host="$extrasub_host"
15468 extrasub_target="$extrasub_target"
15469
15470_ACEOF
15471
15472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473
15474# Handling of arguments.
15475for ac_config_target in $ac_config_targets
15476do
15477 case $ac_config_target in
15478 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15479
15480 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15481 esac
15482done
15483
15484
15485# If the user did not use the arguments to specify the items to instantiate,
15486# then the envvar interface is used. Set only those that are not.
15487# We use the long form for the default assignment because of an extremely
15488# bizarre bug on SunOS 4.1.3.
15489if $ac_need_defaults; then
15490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15491fi
15492
15493# Have a temporary directory for convenience. Make it in the build tree
15494# simply because there is no reason against having it here, and in addition,
15495# creating and moving files from /tmp can sometimes cause problems.
15496# Hook for its removal unless debugging.
15497# Note that there is a small window in which the directory will not be cleaned:
15498# after its creation but before its name has been assigned to `$tmp'.
15499$debug ||
15500{
15501 tmp= ac_tmp=
15502 trap 'exit_status=$?
15503 : "${ac_tmp:=$tmp}"
15504 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15505' 0
15506 trap 'as_fn_exit 1' 1 2 13 15
15507}
15508# Create a (secure) tmp directory for tmp files.
15509
15510{
15511 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15512 test -d "$tmp"
15513} ||
15514{
15515 tmp=./conf$$-$RANDOM
15516 (umask 077 && mkdir "$tmp")
15517} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15518ac_tmp=$tmp
15519
15520# Set up the scripts for CONFIG_FILES section.
15521# No need to generate them if there are no CONFIG_FILES.
15522# This happens for instance with `./config.status config.h'.
15523if test -n "$CONFIG_FILES"; then
15524
15525if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15526 ac_cs_awk_getline=:
15527 ac_cs_awk_pipe_init=
15528 ac_cs_awk_read_file='
15529 while ((getline aline < (F[key])) > 0)
15530 print(aline)
15531 close(F[key])'
15532 ac_cs_awk_pipe_fini=
15533else
15534 ac_cs_awk_getline=false
15535 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15536 ac_cs_awk_read_file='
15537 print "|#_!!_#|"
15538 print "cat " F[key] " &&"
15539 '$ac_cs_awk_pipe_init
15540 # The final `:' finishes the AND list.
15541 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15542fi
15543ac_cr=`echo X | tr X '\015'`
15544# On cygwin, bash can eat \r inside `` if the user requested igncr.
15545# But we know of no other shell where ac_cr would be empty at this
15546# point, so we can use a bashism as a fallback.
15547if test "x$ac_cr" = x; then
15548 eval ac_cr=\$\'\\r\'
15549fi
15550ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15551if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15552 ac_cs_awk_cr='\\r'
15553else
15554 ac_cs_awk_cr=$ac_cr
15555fi
15556
15557echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15558_ACEOF
15559
15560# Create commands to substitute file output variables.
15561{
15562 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15563 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15564 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15565 echo "_ACAWK" &&
15566 echo "_ACEOF"
15567} >conf$$files.sh &&
15568. ./conf$$files.sh ||
15569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15570rm -f conf$$files.sh
15571
15572{
15573 echo "cat >conf$$subs.awk <<_ACEOF" &&
15574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15575 echo "_ACEOF"
15576} >conf$$subs.sh ||
15577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15578ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15579ac_delim='%!_!# '
15580for ac_last_try in false false false false false :; do
15581 . ./conf$$subs.sh ||
15582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15583
15584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15585 if test $ac_delim_n = $ac_delim_num; then
15586 break
15587 elif $ac_last_try; then
15588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15589 else
15590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15591 fi
15592done
15593rm -f conf$$subs.sh
15594
15595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15597_ACEOF
15598sed -n '
15599h
15600s/^/S["/; s/!.*/"]=/
15601p
15602g
15603s/^[^!]*!//
15604:repl
15605t repl
15606s/'"$ac_delim"'$//
15607t delim
15608:nl
15609h
15610s/\(.\{148\}\)..*/\1/
15611t more1
15612s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15613p
15614n
15615b repl
15616:more1
15617s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15618p
15619g
15620s/.\{148\}//
15621t nl
15622:delim
15623h
15624s/\(.\{148\}\)..*/\1/
15625t more2
15626s/["\\]/\\&/g; s/^/"/; s/$/"/
15627p
15628b
15629:more2
15630s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15631p
15632g
15633s/.\{148\}//
15634t delim
15635' <conf$$subs.awk | sed '
15636/^[^""]/{
15637 N
15638 s/\n//
15639}
15640' >>$CONFIG_STATUS || ac_write_fail=1
15641rm -f conf$$subs.awk
15642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15643_ACAWK
15644cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15645 for (key in S) S_is_set[key] = 1
15646 FS = "\a"
15647 \$ac_cs_awk_pipe_init
15648}
15649{
15650 line = $ 0
15651 nfields = split(line, field, "@")
15652 substed = 0
15653 len = length(field[1])
15654 for (i = 2; i < nfields; i++) {
15655 key = field[i]
15656 keylen = length(key)
15657 if (S_is_set[key]) {
15658 value = S[key]
15659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15660 len += length(value) + length(field[++i])
15661 substed = 1
15662 } else
15663 len += 1 + keylen
15664 }
15665 if (nfields == 3 && !substed) {
15666 key = field[2]
15667 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15668 \$ac_cs_awk_read_file
15669 next
15670 }
15671 }
15672 print line
15673}
15674\$ac_cs_awk_pipe_fini
15675_ACAWK
15676_ACEOF
15677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15678if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15679 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15680else
15681 cat
15682fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15683 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15684_ACEOF
15685
15686# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15687# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15688# trailing colons and then remove the whole line if VPATH becomes empty
15689# (actually we leave an empty line to preserve line numbers).
15690if test "x$srcdir" = x.; then
15691 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15692h
15693s///
15694s/^/:/
15695s/[ ]*$/:/
15696s/:\$(srcdir):/:/g
15697s/:\${srcdir}:/:/g
15698s/:@srcdir@:/:/g
15699s/^:*//
15700s/:*$//
15701x
15702s/\(=[ ]*\).*/\1/
15703G
15704s/\n//
15705s/^[^=]*=[ ]*$//
15706}'
15707fi
15708
15709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15710fi # test -n "$CONFIG_FILES"
15711
15712
15713eval set X " :F $CONFIG_FILES "
15714shift
15715for ac_tag
15716do
15717 case $ac_tag in
15718 :[FHLC]) ac_mode=$ac_tag; continue;;
15719 esac
15720 case $ac_mode$ac_tag in
15721 :[FHL]*:*);;
15722 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15723 :[FH]-) ac_tag=-:-;;
15724 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15725 esac
15726 ac_save_IFS=$IFS
15727 IFS=:
15728 set x $ac_tag
15729 IFS=$ac_save_IFS
15730 shift
15731 ac_file=$1
15732 shift
15733
15734 case $ac_mode in
15735 :L) ac_source=$1;;
15736 :[FH])
15737 ac_file_inputs=
15738 for ac_f
15739 do
15740 case $ac_f in
15741 -) ac_f="$ac_tmp/stdin";;
15742 *) # Look for the file first in the build tree, then in the source tree
15743 # (if the path is not absolute). The absolute path cannot be DOS-style,
15744 # because $ac_f cannot contain `:'.
15745 test -f "$ac_f" ||
15746 case $ac_f in
15747 [\\/$]*) false;;
15748 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15749 esac ||
15750 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15751 esac
15752 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15753 as_fn_append ac_file_inputs " '$ac_f'"
15754 done
15755
15756 # Let's still pretend it is `configure' which instantiates (i.e., don't
15757 # use $as_me), people would be surprised to read:
15758 # /* config.h. Generated by config.status. */
15759 configure_input='Generated from '`
15760 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15761 `' by configure.'
15762 if test x"$ac_file" != x-; then
15763 configure_input="$ac_file. $configure_input"
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15765$as_echo "$as_me: creating $ac_file" >&6;}
15766 fi
15767 # Neutralize special characters interpreted by sed in replacement strings.
15768 case $configure_input in #(
15769 *\&* | *\|* | *\\* )
15770 ac_sed_conf_input=`$as_echo "$configure_input" |
15771 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15772 *) ac_sed_conf_input=$configure_input;;
15773 esac
15774
15775 case $ac_tag in
15776 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15778 esac
15779 ;;
15780 esac
15781
15782 ac_dir=`$as_dirname -- "$ac_file" ||
15783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15784 X"$ac_file" : 'X\(//\)[^/]' \| \
15785 X"$ac_file" : 'X\(//\)$' \| \
15786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15787$as_echo X"$ac_file" |
15788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15789 s//\1/
15790 q
15791 }
15792 /^X\(\/\/\)[^/].*/{
15793 s//\1/
15794 q
15795 }
15796 /^X\(\/\/\)$/{
15797 s//\1/
15798 q
15799 }
15800 /^X\(\/\).*/{
15801 s//\1/
15802 q
15803 }
15804 s/.*/./; q'`
15805 as_dir="$ac_dir"; as_fn_mkdir_p
15806 ac_builddir=.
15807
15808case "$ac_dir" in
15809.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15810*)
15811 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15812 # A ".." for each directory in $ac_dir_suffix.
15813 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15814 case $ac_top_builddir_sub in
15815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15817 esac ;;
15818esac
15819ac_abs_top_builddir=$ac_pwd
15820ac_abs_builddir=$ac_pwd$ac_dir_suffix
15821# for backward compatibility:
15822ac_top_builddir=$ac_top_build_prefix
15823
15824case $srcdir in
15825 .) # We are building in place.
15826 ac_srcdir=.
15827 ac_top_srcdir=$ac_top_builddir_sub
15828 ac_abs_top_srcdir=$ac_pwd ;;
15829 [\\/]* | ?:[\\/]* ) # Absolute name.
15830 ac_srcdir=$srcdir$ac_dir_suffix;
15831 ac_top_srcdir=$srcdir
15832 ac_abs_top_srcdir=$srcdir ;;
15833 *) # Relative name.
15834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15835 ac_top_srcdir=$ac_top_build_prefix$srcdir
15836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15837esac
15838ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15839
15840
15841 case $ac_mode in
15842 :F)
15843 #
15844 # CONFIG_FILE
15845 #
15846
15847 case $INSTALL in
15848 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15849 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15850 esac
15851_ACEOF
15852
15853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15854# If the template does not know about datarootdir, expand it.
15855# FIXME: This hack should be removed a few years after 2.60.
15856ac_datarootdir_hack=; ac_datarootdir_seen=
15857ac_sed_dataroot='
15858/datarootdir/ {
15859 p
15860 q
15861}
15862/@datadir@/p
15863/@docdir@/p
15864/@infodir@/p
15865/@localedir@/p
15866/@mandir@/p'
15867case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15868*datarootdir*) ac_datarootdir_seen=yes;;
15869*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15871$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15872_ACEOF
15873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15874 ac_datarootdir_hack='
15875 s&@datadir@&$datadir&g
15876 s&@docdir@&$docdir&g
15877 s&@infodir@&$infodir&g
15878 s&@localedir@&$localedir&g
15879 s&@mandir@&$mandir&g
15880 s&\\\${datarootdir}&$datarootdir&g' ;;
15881esac
15882_ACEOF
15883
15884# Neutralize VPATH when `$srcdir' = `.'.
15885# Shell code in configure.ac might set extrasub.
15886# FIXME: do we really want to maintain this feature?
15887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888ac_sed_extra="$ac_vpsub
15889$extrasub
15890_ACEOF
15891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892:t
15893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15894s|@configure_input@|$ac_sed_conf_input|;t t
15895s&@top_builddir@&$ac_top_builddir_sub&;t t
15896s&@top_build_prefix@&$ac_top_build_prefix&;t t
15897s&@srcdir@&$ac_srcdir&;t t
15898s&@abs_srcdir@&$ac_abs_srcdir&;t t
15899s&@top_srcdir@&$ac_top_srcdir&;t t
15900s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15901s&@builddir@&$ac_builddir&;t t
15902s&@abs_builddir@&$ac_abs_builddir&;t t
15903s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15904s&@INSTALL@&$ac_INSTALL&;t t
15905$ac_datarootdir_hack
15906"
15907eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15908if $ac_cs_awk_getline; then
15909 $AWK -f "$ac_tmp/subs.awk"
15910else
15911 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15912fi \
15913 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15914
15915test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15916 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15917 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15918 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15920which seems to be undefined. Please make sure it is defined" >&5
15921$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15922which seems to be undefined. Please make sure it is defined" >&2;}
15923
15924 rm -f "$ac_tmp/stdin"
15925 case $ac_file in
15926 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15927 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15928 esac \
15929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15930 ;;
15931
15932
15933
15934 esac
15935
15936
15937 case $ac_file$ac_mode in
15938 "Makefile":F) sed "$extrasub_build" Makefile |
15939 sed "$extrasub_host" |
15940 sed "$extrasub_target" > mf$$
15941 mv -f mf$$ Makefile ;;
15942
15943 esac
15944done # for ac_tag
15945
15946
15947as_fn_exit 0
15948_ACEOF
15949ac_clean_files=$ac_clean_files_save
15950
15951test $ac_write_fail = 0 ||
15952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15953
15954
15955# configure is writing to config.log, and then calls config.status.
15956# config.status does its own redirection, appending to config.log.
15957# Unfortunately, on DOS this fails, as config.log is still kept open
15958# by configure, so config.status won't be able to write to it; its
15959# output is simply discarded. So we exec the FD to /dev/null,
15960# effectively closing config.log, so it can be properly (re)opened and
15961# appended to by config.status. When coming back to configure, we
15962# need to make the FD available again.
15963if test "$no_create" != yes; then
15964 ac_cs_success=:
15965 ac_config_status_args=
15966 test "$silent" = yes &&
15967 ac_config_status_args="$ac_config_status_args --quiet"
15968 exec 5>/dev/null
15969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15970 exec 5>>config.log
15971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15972 # would make configure fail if this is the last instruction.
15973 $ac_cs_success || as_fn_exit 1
15974fi
15975if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15977$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15978fi
15979