]> git.ipfire.org Git - thirdparty/gcc.git/blame_incremental - configure
Ada: Remove left-overs of front-end exception mechanism
[thirdparty/gcc.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
606OTOOL_FOR_TARGET
607OBJDUMP_FOR_TARGET
608OBJCOPY_FOR_TARGET
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DSYMUTIL_FOR_TARGET
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
616GM2_FOR_TARGET
617GDC_FOR_TARGET
618GOC_FOR_TARGET
619GFORTRAN_FOR_TARGET
620GCC_FOR_TARGET
621CXX_FOR_TARGET
622CC_FOR_TARGET
623RANLIB_PLUGIN_OPTION
624AR_PLUGIN_OPTION
625PKG_CONFIG_PATH
626GDCFLAGS
627READELF
628OTOOL
629OBJDUMP
630OBJCOPY
631WINDMC
632WINDRES
633STRIP
634RANLIB
635NM
636LIPO
637LD
638DSYMUTIL
639DLLTOOL
640AS
641AR
642RUNTEST
643EXPECT
644MAKEINFO
645FLEX
646LEX
647M4
648BISON
649YACC
650WINDRES_FOR_BUILD
651WINDMC_FOR_BUILD
652RANLIB_FOR_BUILD
653NM_FOR_BUILD
654LD_FOR_BUILD
655LDFLAGS_FOR_BUILD
656GNATMAKE_FOR_BUILD
657GDC_FOR_BUILD
658GOC_FOR_BUILD
659GFORTRAN_FOR_BUILD
660DSYMUTIL_FOR_BUILD
661DLLTOOL_FOR_BUILD
662CXX_FOR_BUILD
663CXXFLAGS_FOR_BUILD
664CPPFLAGS_FOR_BUILD
665CPP_FOR_BUILD
666CFLAGS_FOR_BUILD
667CC_FOR_BUILD
668AS_FOR_BUILD
669AR_FOR_BUILD
670target_configdirs
671configdirs
672build_configdirs
673INSTALL_GDB_TK
674GDB_TK
675CONFIGURE_GDB_TK
676build_tooldir
677tooldir
678GCC_SHLIB_SUBDIR
679RPATH_ENVVAR
680target_configargs
681host_configargs
682build_configargs
683BUILD_CONFIG
684LDFLAGS_FOR_TARGET
685CXXFLAGS_FOR_TARGET
686CFLAGS_FOR_TARGET
687DEBUG_PREFIX_CFLAGS_FOR_TARGET
688SYSROOT_CFLAGS_FOR_TARGET
689get_gcc_base_ver
690extra_host_zlib_configure_flags
691extra_host_libiberty_configure_flags
692stage1_languages
693host_libs_picflag
694CRAB1_LIBS
695enable_libgdiagnostics
696PICFLAG
697host_shared
698gcc_host_pie
699host_pie
700extra_linker_plugin_flags
701extra_linker_plugin_configure_flags
702islinc
703isllibs
704poststage1_ldflags
705poststage1_libs
706stage1_ldflags
707stage1_libs
708extra_isl_gmp_configure_flags
709extra_mpc_mpfr_configure_flags
710extra_mpc_gmp_configure_flags
711extra_mpfr_configure_flags
712gmpinc
713gmplibs
714PGO_BUILD_LTO_CFLAGS
715PGO_BUILD_USE_CFLAGS
716PGO_BUILD_GEN_CFLAGS
717HAVE_CXX14_FOR_BUILD
718HAVE_CXX14
719do_compare
720CARGO
721GDC
722GNATMAKE
723GNATBIND
724ac_ct_CXX
725CXXFLAGS
726CXX
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734cpu_type
735target_subdir
736host_subdir
737build_subdir
738build_libsubdir
739AWK
740SED
741LN_S
742LN
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_os
747target_vendor
748target_cpu
749target
750host_os
751host_vendor
752host_cpu
753host
754target_noncanonical
755host_noncanonical
756build_noncanonical
757build_os
758build_vendor
759build_cpu
760build
761TOPLEVEL_CONFIGURE_ARGUMENTS
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781localstatedir
782sharedstatedir
783sysconfdir
784datadir
785datarootdir
786libexecdir
787sbindir
788bindir
789program_transform_name
790prefix
791exec_prefix
792PACKAGE_URL
793PACKAGE_BUGREPORT
794PACKAGE_STRING
795PACKAGE_VERSION
796PACKAGE_TARNAME
797PACKAGE_NAME
798PATH_SEPARATOR
799SHELL'
800ac_subst_files='serialization_dependencies
801host_makefile_frag
802target_makefile_frag
803alphaieee_frag
804ospace_frag'
805ac_user_opts='
806enable_option_checking
807with_build_libsubdir
808with_system_zlib
809with_zstd
810enable_as_accelerator_for
811enable_offload_targets
812enable_offload_defaulted
813enable_gold
814enable_ld
815enable_gprofng
816enable_compressed_debug_sections
817enable_default_compressed_debug_sections_algorithm
818enable_year2038
819enable_libquadmath
820enable_libquadmath_support
821enable_libada
822enable_libgm2
823enable_libssp
824enable_libstdcxx
825enable_bootstrap
826enable_pgo_build
827with_mpc
828with_mpc_include
829with_mpc_lib
830with_mpfr
831with_mpfr_include
832with_mpfr_lib
833with_gmp
834with_gmp_include
835with_gmp_lib
836with_stage1_libs
837with_static_standard_libraries
838with_stage1_ldflags
839with_boot_libs
840with_boot_ldflags
841with_isl
842with_isl_include
843with_isl_lib
844enable_isl_version_check
845enable_lto
846enable_linker_plugin_configure_flags
847enable_linker_plugin_flags
848enable_host_pie
849enable_host_shared
850enable_libgdiagnostics
851enable_stage1_languages
852enable_objc_gc
853with_target_bdw_gc
854with_target_bdw_gc_include
855with_target_bdw_gc_lib
856with_gcc_major_version_only
857with_build_sysroot
858with_debug_prefix_map
859with_build_config
860enable_vtable_verify
861enable_serial_configure
862with_build_time_tools
863enable_maintainer_mode
864enable_stage1_checking
865enable_werror
866'
867 ac_precious_vars='build_alias
868host_alias
869target_alias
870CC
871CFLAGS
872LDFLAGS
873LIBS
874CPPFLAGS
875CXX
876CXXFLAGS
877CCC
878build_configargs
879host_configargs
880target_configargs
881AR
882AS
883DLLTOOL
884DSYMUTIL
885LD
886LIPO
887NM
888RANLIB
889STRIP
890WINDRES
891WINDMC
892OBJCOPY
893OBJDUMP
894OTOOL
895READELF
896CC_FOR_TARGET
897CXX_FOR_TARGET
898GCC_FOR_TARGET
899GFORTRAN_FOR_TARGET
900GOC_FOR_TARGET
901GDC_FOR_TARGET
902GM2_FOR_TARGET
903AR_FOR_TARGET
904AS_FOR_TARGET
905DLLTOOL_FOR_TARGET
906DSYMUTIL_FOR_TARGET
907LD_FOR_TARGET
908LIPO_FOR_TARGET
909NM_FOR_TARGET
910OBJCOPY_FOR_TARGET
911OBJDUMP_FOR_TARGET
912OTOOL_FOR_TARGET
913RANLIB_FOR_TARGET
914READELF_FOR_TARGET
915STRIP_FOR_TARGET
916WINDRES_FOR_TARGET
917WINDMC_FOR_TARGET'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
977 fi
978
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
984
985 # Accept the important Cygnus configure options, so we can diagnose typos.
986
987 case $ac_dashdash$ac_option in
988 --)
989 ac_dashdash=yes ;;
990
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
995
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1000
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1007
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1010
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1015
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1022
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032"enable_$ac_useropt"
1033"*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1038
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1043
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1048
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058"enable_$ac_useropt"
1059"*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1073
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1077
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1084
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1089
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1095
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1102
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1107
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1112
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1119
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1124
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1131
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1136
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1140
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1144
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1148
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1157
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1162
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1169
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1176
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1193
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1198
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1203
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1207
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1224
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1234
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1241
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1252
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262"with_$ac_useropt"
1263"*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1268
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278"with_$ac_useropt"
1279"*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1302
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304Try \`$0 --help' for more information"
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1316
1317 *)
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 ;;
1324
1325 esac
1326done
1327
1328if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1331fi
1332
1333if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1339fi
1340
1341# Check all directory arguments for consistency.
1342for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1346do
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429fi
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444case $srcdir in
1445 *" "*)
1446 as_fn_error $? "path to source, $srcdir, contains spaces"
1447 ;;
1448esac
1449ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1450
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
1457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
1465\`configure' configures this package to adapt to many kinds of systems.
1466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking ...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
1485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 [PREFIX]
1490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1518_ACEOF
1519
1520 cat <<\_ACEOF
1521
1522Program names:
1523 --program-prefix=PREFIX prepend PREFIX to installed program names
1524 --program-suffix=SUFFIX append SUFFIX to installed program names
1525 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1526
1527System types:
1528 --build=BUILD configure for building on BUILD [guessed]
1529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 --target=TARGET configure for building compilers for TARGET [HOST]
1531_ACEOF
1532fi
1533
1534if test -n "$ac_init_help"; then
1535
1536 cat <<\_ACEOF
1537
1538Optional Features:
1539 --disable-option-checking ignore unrecognized --enable/--with options
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --enable-as-accelerator-for=ARG
1543 build as offload target compiler. Specify offload
1544 host triple by ARG
1545 --enable-offload-targets=LIST
1546 enable offloading to devices from comma-separated
1547 LIST of TARGET[=DIR]. Use optional path to find
1548 offload target compiler during the build
1549 --enable-offload-defaulted
1550 If enabled, configured but not installed offload compilers and
1551 libgomp plugins are silently ignored. Useful for distribution
1552 compilers where those are in separate optional packages.
1553
1554 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1555 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1556 --disable-gprofng do not build gprofng
1557 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1558 Enable compressed debug sections for gas, gold or ld
1559 by default
1560 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1561 Default compression algorithm for
1562 --enable-compressed-debug-sections.
1563 --enable-year2038 enable support for timestamps past the year 2038
1564 --disable-libquadmath do not build libquadmath directory
1565 --disable-libquadmath-support
1566 disable libquadmath support for Fortran
1567 --enable-libada build libada directory
1568 --enable-libgm2 build libgm2 directory
1569 --enable-libssp build libssp directory
1570 --disable-libstdcxx do not build libstdc++-v3 directory
1571 --enable-bootstrap enable bootstrapping [yes if native build]
1572 --enable-pgo-build[=lto]
1573 enable the PGO build
1574 --disable-isl-version-check
1575 disable check for isl version
1576 --enable-lto enable link time optimization support
1577 --enable-linker-plugin-configure-flags=FLAGS
1578 additional flags for configuring linker plugins
1579 [none]
1580 --enable-linker-plugin-flags=FLAGS
1581 additional flags for configuring and building linker
1582 plugins [none]
1583 --enable-host-pie build position independent host executables
1584 --enable-host-shared build host code as shared libraries
1585 --enable-libgdiagnostics
1586 build libgdiagnostics shared library
1587 --enable-stage1-languages[=all]
1588 choose additional languages to build during stage1.
1589 Mostly useful for compiler development
1590 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1591 Objective-C runtime
1592 --enable-vtable-verify Enable vtable verification feature
1593 --enable-serial-[{host,target,build}-]configure
1594 force sequential configuration of sub-packages for
1595 the host, target or build machine, or all
1596 sub-packages
1597 --enable-maintainer-mode
1598 enable make rules and dependencies not useful (and
1599 sometimes confusing) to the casual installer
1600 --enable-stage1-checking[=all]
1601 choose additional checking for stage1 of the
1602 compiler
1603 --enable-werror enable -Werror in bootstrap stage2 and later
1604
1605Optional Packages:
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-build-libsubdir=DIR Directory where to find libraries for build system
1609 --with-system-zlib use installed libz
1610 --with-zstd Support zstd compressed debug sections
1611 (default=auto)
1612 --with-mpc=PATH specify prefix directory for installed MPC package.
1613 Equivalent to --with-mpc-include=PATH/include plus
1614 --with-mpc-lib=PATH/lib
1615 --with-mpc-include=PATH specify directory for installed MPC include files
1616 --with-mpc-lib=PATH specify directory for the installed MPC library
1617 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1618 Equivalent to --with-mpfr-include=PATH/include plus
1619 --with-mpfr-lib=PATH/lib
1620 --with-mpfr-include=PATH
1621 specify directory for installed MPFR include files
1622 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1623 --with-gmp=PATH specify prefix directory for the installed GMP
1624 package. Equivalent to
1625 --with-gmp-include=PATH/include plus
1626 --with-gmp-lib=PATH/lib
1627 --with-gmp-include=PATH specify directory for installed GMP include files
1628 --with-gmp-lib=PATH specify directory for the installed GMP library
1629 --with-stage1-libs=LIBS libraries for stage1
1630 --with-static-standard-libraries
1631 use -static-libstdc++ and -static-libgcc
1632 (default=auto)
1633 --with-stage1-ldflags=FLAGS
1634 linker flags for stage1
1635 --with-boot-libs=LIBS libraries for stage2 and later
1636 --with-boot-ldflags=FLAGS
1637 linker flags for stage2 and later
1638 --with-isl=PATH Specify prefix directory for the installed isl
1639 package. Equivalent to
1640 --with-isl-include=PATH/include plus
1641 --with-isl-lib=PATH/lib
1642 --with-isl-include=PATH Specify directory for installed isl include files
1643 --with-isl-lib=PATH Specify the directory for the installed isl library
1644 --with-target-bdw-gc=PATHLIST
1645 specify prefix directory for installed bdw-gc
1646 package. Equivalent to
1647 --with-target-bdw-gc-include=PATH/include plus
1648 --with-target-bdw-gc-lib=PATH/lib
1649 --with-target-bdw-gc-include=PATHLIST
1650 specify directories for installed bdw-gc include
1651 files
1652 --with-target-bdw-gc-lib=PATHLIST
1653 specify directories for installed bdw-gc library
1654 --with-gcc-major-version-only
1655 use only GCC major number in filesystem paths
1656 --with-build-sysroot=SYSROOT
1657 use sysroot as the system root during the build
1658 --with-debug-prefix-map='A=B C=D ...'
1659 map A to B, C to D ... in debug information
1660 --with-build-config='NAME NAME2...'
1661 use config/NAME.mk build configuration
1662 --with-build-time-tools=PATH
1663 use given path to find target tools during the build
1664
1665Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CXX C++ compiler command
1674 CXXFLAGS C++ compiler flags
1675 build_configargs
1676 additional configure arguments for build directories
1677 host_configargs
1678 additional configure arguments for host directories
1679 target_configargs
1680 additional configure arguments for target directories
1681 AR AR for the host
1682 AS AS for the host
1683 DLLTOOL DLLTOOL for the host
1684 DSYMUTIL DSYMUTIL for the host
1685 LD LD for the host
1686 LIPO LIPO for the host
1687 NM NM for the host
1688 RANLIB RANLIB for the host
1689 STRIP STRIP for the host
1690 WINDRES WINDRES for the host
1691 WINDMC WINDMC for the host
1692 OBJCOPY OBJCOPY for the host
1693 OBJDUMP OBJDUMP for the host
1694 OTOOL OTOOL for the host
1695 READELF READELF for the host
1696 CC_FOR_TARGET
1697 CC for the target
1698 CXX_FOR_TARGET
1699 CXX for the target
1700 GCC_FOR_TARGET
1701 GCC for the target
1702 GFORTRAN_FOR_TARGET
1703 GFORTRAN for the target
1704 GOC_FOR_TARGET
1705 GOC for the target
1706 GDC_FOR_TARGET
1707 GDC for the target
1708 GM2_FOR_TARGET
1709 GM2 for the target
1710 AR_FOR_TARGET
1711 AR for the target
1712 AS_FOR_TARGET
1713 AS for the target
1714 DLLTOOL_FOR_TARGET
1715 DLLTOOL for the target
1716 DSYMUTIL_FOR_TARGET
1717 DSYMUTIL for the target
1718 LD_FOR_TARGET
1719 LD for the target
1720 LIPO_FOR_TARGET
1721 LIPO for the target
1722 NM_FOR_TARGET
1723 NM for the target
1724 OBJCOPY_FOR_TARGET
1725 OBJCOPY for the target
1726 OBJDUMP_FOR_TARGET
1727 OBJDUMP for the target
1728 OTOOL_FOR_TARGET
1729 OTOOL for the target
1730 RANLIB_FOR_TARGET
1731 RANLIB for the target
1732 READELF_FOR_TARGET
1733 READELF for the target
1734 STRIP_FOR_TARGET
1735 STRIP for the target
1736 WINDRES_FOR_TARGET
1737 WINDRES for the target
1738 WINDMC_FOR_TARGET
1739 WINDMC for the target
1740
1741Use these variables to override the choices made by `configure' or to help
1742it to find libraries and programs with nonstandard names/locations.
1743
1744Report bugs to the package provider.
1745_ACEOF
1746ac_status=$?
1747fi
1748
1749if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754 continue
1755 ac_builddir=.
1756
1757case "$ac_dir" in
1758.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759*)
1760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766 esac ;;
1767esac
1768ac_abs_top_builddir=$ac_pwd
1769ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770# for backward compatibility:
1771ac_top_builddir=$ac_top_build_prefix
1772
1773case $srcdir in
1774 .) # We are building in place.
1775 ac_srcdir=.
1776 ac_top_srcdir=$ac_top_builddir_sub
1777 ac_abs_top_srcdir=$ac_pwd ;;
1778 [\\/]* | ?:[\\/]* ) # Absolute name.
1779 ac_srcdir=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir=$srcdir
1781 ac_abs_top_srcdir=$srcdir ;;
1782 *) # Relative name.
1783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1786esac
1787ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788
1789 cd "$ac_dir" || { ac_status=$?; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1792 echo &&
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1797 else
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1799 fi || ac_status=$?
1800 cd "$ac_pwd" || { ac_status=$?; break; }
1801 done
1802fi
1803
1804test -n "$ac_init_help" && exit $ac_status
1805if $ac_init_version; then
1806 cat <<\_ACEOF
1807configure
1808generated by GNU Autoconf 2.69
1809
1810Copyright (C) 2012 Free Software Foundation, Inc.
1811This configure script is free software; the Free Software Foundation
1812gives unlimited permission to copy, distribute and modify it.
1813_ACEOF
1814 exit
1815fi
1816
1817## ------------------------ ##
1818## Autoconf initialization. ##
1819## ------------------------ ##
1820
1821# ac_fn_c_try_compile LINENO
1822# --------------------------
1823# Try to compile conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_c_try_compile ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857} # ac_fn_c_try_compile
1858
1859# ac_fn_cxx_try_compile LINENO
1860# ----------------------------
1861# Try to compile conftest.$ac_ext, and return whether this succeeded.
1862ac_fn_cxx_try_compile ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1867case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870esac
1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872$as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1885 ac_retval=0
1886else
1887 $as_echo "$as_me: failed program was:" >&5
1888sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=1
1891fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895} # ac_fn_cxx_try_compile
1896
1897# ac_fn_cxx_try_link LINENO
1898# -------------------------
1899# Try to link conftest.$ac_ext, and return whether this succeeded.
1900ac_fn_cxx_try_link ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908esac
1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910$as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927else
1928 $as_echo "$as_me: failed program was:" >&5
1929sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932fi
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941} # ac_fn_cxx_try_link
1942
1943# ac_fn_c_try_link LINENO
1944# -----------------------
1945# Try to link conftest.$ac_ext, and return whether this succeeded.
1946ac_fn_c_try_link ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext conftest$ac_exeext
1950 if { { ac_try="$ac_link"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 test -x conftest$ac_exeext
1971 }; then :
1972 ac_retval=0
1973else
1974 $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=1
1978fi
1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981 # interfere with the next link command; also delete a directory that is
1982 # left behind by Apple's compiler. We do this before executing the actions.
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1986
1987} # ac_fn_c_try_link
1988cat >config.log <<_ACEOF
1989This file contains any messages produced by compilers while
1990running configure, to aid debugging if configure makes a mistake.
1991
1992It was created by $as_me, which was
1993generated by GNU Autoconf 2.69. Invocation command line was
1994
1995 $ $0 $@
1996
1997_ACEOF
1998exec 5>>config.log
1999{
2000cat <<_ASUNAME
2001## --------- ##
2002## Platform. ##
2003## --------- ##
2004
2005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2006uname -m = `(uname -m) 2>/dev/null || echo unknown`
2007uname -r = `(uname -r) 2>/dev/null || echo unknown`
2008uname -s = `(uname -s) 2>/dev/null || echo unknown`
2009uname -v = `(uname -v) 2>/dev/null || echo unknown`
2010
2011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2013
2014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2017/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2021
2022_ASUNAME
2023
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 $as_echo "PATH: $as_dir"
2030 done
2031IFS=$as_save_IFS
2032
2033} >&5
2034
2035cat >&5 <<_ACEOF
2036
2037
2038## ----------- ##
2039## Core tests. ##
2040## ----------- ##
2041
2042_ACEOF
2043
2044
2045# Keep a trace of the command line.
2046# Strip out --no-create and --no-recursion so they do not pile up.
2047# Strip out --silent because we don't want to record it for future runs.
2048# Also quote any args containing shell meta-characters.
2049# Make two passes to allow for proper duplicate-argument suppression.
2050ac_configure_args=
2051ac_configure_args0=
2052ac_configure_args1=
2053ac_must_keep_next=false
2054for ac_pass in 1 2
2055do
2056 for ac_arg
2057 do
2058 case $ac_arg in
2059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2061 | -silent | --silent | --silen | --sile | --sil)
2062 continue ;;
2063 *\'*)
2064 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 esac
2066 case $ac_pass in
2067 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2068 2)
2069 as_fn_append ac_configure_args1 " '$ac_arg'"
2070 if test $ac_must_keep_next = true; then
2071 ac_must_keep_next=false # Got value, back to normal.
2072 else
2073 case $ac_arg in
2074 *=* | --config-cache | -C | -disable-* | --disable-* \
2075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2077 | -with-* | --with-* | -without-* | --without-* | --x)
2078 case "$ac_configure_args0 " in
2079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2080 esac
2081 ;;
2082 -* ) ac_must_keep_next=true ;;
2083 esac
2084 fi
2085 as_fn_append ac_configure_args " '$ac_arg'"
2086 ;;
2087 esac
2088 done
2089done
2090{ ac_configure_args0=; unset ac_configure_args0;}
2091{ ac_configure_args1=; unset ac_configure_args1;}
2092
2093# When interrupted or exit'd, cleanup temporary files, and complete
2094# config.log. We remove comments because anyway the quotes in there
2095# would cause problems or look ugly.
2096# WARNING: Use '\'' to represent an apostrophe within the trap.
2097# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2098trap 'exit_status=$?
2099 # Save into config.log some information that might help in debugging.
2100 {
2101 echo
2102
2103 $as_echo "## ---------------- ##
2104## Cache variables. ##
2105## ---------------- ##"
2106 echo
2107 # The following way of writing the cache mishandles newlines in values,
2108(
2109 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in #(
2112 *${as_nl}*)
2113 case $ac_var in #(
2114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2116 esac
2117 case $ac_var in #(
2118 _ | IFS | as_nl) ;; #(
2119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2120 *) { eval $ac_var=; unset $ac_var;} ;;
2121 esac ;;
2122 esac
2123 done
2124 (set) 2>&1 |
2125 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2126 *${as_nl}ac_space=\ *)
2127 sed -n \
2128 "s/'\''/'\''\\\\'\'''\''/g;
2129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2130 ;; #(
2131 *)
2132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2133 ;;
2134 esac |
2135 sort
2136)
2137 echo
2138
2139 $as_echo "## ----------------- ##
2140## Output variables. ##
2141## ----------------- ##"
2142 echo
2143 for ac_var in $ac_subst_vars
2144 do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in
2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 esac
2149 $as_echo "$ac_var='\''$ac_val'\''"
2150 done | sort
2151 echo
2152
2153 if test -n "$ac_subst_files"; then
2154 $as_echo "## ------------------- ##
2155## File substitutions. ##
2156## ------------------- ##"
2157 echo
2158 for ac_var in $ac_subst_files
2159 do
2160 eval ac_val=\$$ac_var
2161 case $ac_val in
2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2163 esac
2164 $as_echo "$ac_var='\''$ac_val'\''"
2165 done | sort
2166 echo
2167 fi
2168
2169 if test -s confdefs.h; then
2170 $as_echo "## ----------- ##
2171## confdefs.h. ##
2172## ----------- ##"
2173 echo
2174 cat confdefs.h
2175 echo
2176 fi
2177 test "$ac_signal" != 0 &&
2178 $as_echo "$as_me: caught signal $ac_signal"
2179 $as_echo "$as_me: exit $exit_status"
2180 } >&5
2181 rm -f core *.core core.conftest.* &&
2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2183 exit $exit_status
2184' 0
2185for ac_signal in 1 2 13 15; do
2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187done
2188ac_signal=0
2189
2190# confdefs.h avoids OS command line length limits that DEFS can exceed.
2191rm -f -r conftest* confdefs.h
2192
2193$as_echo "/* confdefs.h */" > confdefs.h
2194
2195# Predefined preprocessor variables.
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_NAME "$PACKAGE_NAME"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_VERSION "$PACKAGE_VERSION"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_STRING "$PACKAGE_STRING"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2215_ACEOF
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_URL "$PACKAGE_URL"
2219_ACEOF
2220
2221
2222# Let the site file select an alternate cache file if it wants to.
2223# Prefer an explicitly selected file to automatically selected ones.
2224ac_site_file1=NONE
2225ac_site_file2=NONE
2226if test -n "$CONFIG_SITE"; then
2227 # We do not want a PATH search for config.site.
2228 case $CONFIG_SITE in #((
2229 -*) ac_site_file1=./$CONFIG_SITE;;
2230 */*) ac_site_file1=$CONFIG_SITE;;
2231 *) ac_site_file1=./$CONFIG_SITE;;
2232 esac
2233elif test "x$prefix" != xNONE; then
2234 ac_site_file1=$prefix/share/config.site
2235 ac_site_file2=$prefix/etc/config.site
2236else
2237 ac_site_file1=$ac_default_prefix/share/config.site
2238 ac_site_file2=$ac_default_prefix/etc/config.site
2239fi
2240for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2241do
2242 test "x$ac_site_file" = xNONE && continue
2243 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2245$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2246 sed 's/^/| /' "$ac_site_file" >&5
2247 . "$ac_site_file" \
2248 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2250as_fn_error $? "failed to load site script $ac_site_file
2251See \`config.log' for more details" "$LINENO" 5; }
2252 fi
2253done
2254
2255if test -r "$cache_file"; then
2256 # Some versions of bash will fail to source /dev/null (special files
2257 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2258 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2260$as_echo "$as_me: loading cache $cache_file" >&6;}
2261 case $cache_file in
2262 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2263 *) . "./$cache_file";;
2264 esac
2265 fi
2266else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2268$as_echo "$as_me: creating cache $cache_file" >&6;}
2269 >$cache_file
2270fi
2271
2272# Check that the precious variables saved in the cache have kept the same
2273# value.
2274ac_cache_corrupted=false
2275for ac_var in $ac_precious_vars; do
2276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2277 eval ac_new_set=\$ac_env_${ac_var}_set
2278 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2279 eval ac_new_val=\$ac_env_${ac_var}_value
2280 case $ac_old_set,$ac_new_set in
2281 set,)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2283$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,set)
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2287$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2289 ,);;
2290 *)
2291 if test "x$ac_old_val" != "x$ac_new_val"; then
2292 # differences in whitespace do not lead to failure.
2293 ac_old_val_w=`echo x $ac_old_val`
2294 ac_new_val_w=`echo x $ac_new_val`
2295 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2297$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2298 ac_cache_corrupted=:
2299 else
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2301$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2302 eval $ac_var=\$ac_old_val
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2305$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2307$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2308 fi;;
2309 esac
2310 # Pass precious variables to config.status.
2311 if test "$ac_new_set" = set; then
2312 case $ac_new_val in
2313 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 *) ac_arg=$ac_var=$ac_new_val ;;
2315 esac
2316 case " $ac_configure_args " in
2317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2318 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2319 esac
2320 fi
2321done
2322if $ac_cache_corrupted; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2326$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2327 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2328fi
2329## -------------------- ##
2330## Main body of script. ##
2331## -------------------- ##
2332
2333ac_ext=c
2334ac_cpp='$CPP $CPPFLAGS'
2335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338
2339
2340
2341
2342
2343
2344
2345
2346progname=$0
2347# if PWD already has a value, it is probably wrong.
2348if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2349
2350# Export original configure arguments for use by sub-configures.
2351# Quote arguments with shell meta charatcers.
2352TOPLEVEL_CONFIGURE_ARGUMENTS=
2353set -- "$progname" "$@"
2354for ac_arg
2355do
2356 case "$ac_arg" in
2357 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2358 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2359 # if the argument is of the form -foo=baz, quote the baz part only
2360 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2361 *) ;;
2362 esac
2363 # Add the quoted argument to the list.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2365done
2366if test "$silent" = yes; then
2367 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2368fi
2369# Remove the initial space we just introduced and, as these will be
2370# expanded by make, quote '$'.
2371TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2372
2373
2374# Find the build, host, and target systems.
2375ac_aux_dir=
2376for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2377 if test -f "$ac_dir/install-sh"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/install-sh -c"
2380 break
2381 elif test -f "$ac_dir/install.sh"; then
2382 ac_aux_dir=$ac_dir
2383 ac_install_sh="$ac_aux_dir/install.sh -c"
2384 break
2385 elif test -f "$ac_dir/shtool"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/shtool install -c"
2388 break
2389 fi
2390done
2391if test -z "$ac_aux_dir"; then
2392 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393fi
2394
2395# These three variables are undocumented and unsupported,
2396# and are intended to be withdrawn in a future Autoconf release.
2397# They can cause serious problems if a builder's source tree is in a directory
2398# whose full name contains unusual characters.
2399ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402
2403
2404# Make sure we can run config.sub.
2405$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2406 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2407
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2409$as_echo_n "checking build system type... " >&6; }
2410if ${ac_cv_build+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412else
2413 ac_build_alias=$build_alias
2414test "x$ac_build_alias" = x &&
2415 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2416test "x$ac_build_alias" = x &&
2417 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2418ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420
2421fi
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2423$as_echo "$ac_cv_build" >&6; }
2424case $ac_cv_build in
2425*-*-*) ;;
2426*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2427esac
2428build=$ac_cv_build
2429ac_save_IFS=$IFS; IFS='-'
2430set x $ac_cv_build
2431shift
2432build_cpu=$1
2433build_vendor=$2
2434shift; shift
2435# Remember, the first character of IFS is used to create $*,
2436# except with old shells:
2437build_os=$*
2438IFS=$ac_save_IFS
2439case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440
2441
2442 case ${build_alias} in
2443 "") build_noncanonical=${build} ;;
2444 *) build_noncanonical=${build_alias} ;;
2445esac
2446
2447
2448
2449 case ${host_alias} in
2450 "") host_noncanonical=${build_noncanonical} ;;
2451 *) host_noncanonical=${host_alias} ;;
2452esac
2453
2454
2455
2456 case ${target_alias} in
2457 "") target_noncanonical=${host_noncanonical} ;;
2458 *) target_noncanonical=${target_alias} ;;
2459esac
2460
2461
2462
2463
2464test "$host_noncanonical" = "$target_noncanonical" &&
2465 test "$program_prefix$program_suffix$program_transform_name" = \
2466 NONENONEs,x,x, &&
2467 program_transform_name=s,y,y,
2468
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2470$as_echo_n "checking host system type... " >&6; }
2471if ${ac_cv_host+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473else
2474 if test "x$host_alias" = x; then
2475 ac_cv_host=$ac_cv_build
2476else
2477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2479fi
2480
2481fi
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2483$as_echo "$ac_cv_host" >&6; }
2484case $ac_cv_host in
2485*-*-*) ;;
2486*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2487esac
2488host=$ac_cv_host
2489ac_save_IFS=$IFS; IFS='-'
2490set x $ac_cv_host
2491shift
2492host_cpu=$1
2493host_vendor=$2
2494shift; shift
2495# Remember, the first character of IFS is used to create $*,
2496# except with old shells:
2497host_os=$*
2498IFS=$ac_save_IFS
2499case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500
2501
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2503$as_echo_n "checking target system type... " >&6; }
2504if ${ac_cv_target+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506else
2507 if test "x$target_alias" = x; then
2508 ac_cv_target=$ac_cv_host
2509else
2510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2512fi
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2516$as_echo "$ac_cv_target" >&6; }
2517case $ac_cv_target in
2518*-*-*) ;;
2519*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2520esac
2521target=$ac_cv_target
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_target
2524shift
2525target_cpu=$1
2526target_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530target_os=$*
2531IFS=$ac_save_IFS
2532case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533
2534
2535# The aliases save the names the user supplied, while $host etc.
2536# will get canonicalized.
2537test -n "$target_alias" &&
2538 test "$program_prefix$program_suffix$program_transform_name" = \
2539 NONENONEs,x,x, &&
2540 program_prefix=${target_alias}-
2541
2542test "$program_prefix" != NONE &&
2543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2544# Use a double $ so make ignores it.
2545test "$program_suffix" != NONE &&
2546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2547# Double any \ or $.
2548# By default was `s,x,x', remove it if useless.
2549ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2550program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551
2552
2553
2554# Get 'install' or 'install-sh' and its variants.
2555# Find a good install program. We prefer a C program (faster),
2556# so one script is as good as another. But avoid the broken or
2557# incompatible versions:
2558# SysV /etc/install, /usr/sbin/install
2559# SunOS /usr/etc/install
2560# IRIX /sbin/install
2561# AIX /bin/install
2562# AmigaOS /C/install, which installs bootblocks on floppy discs
2563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566# OS/2's system install, which has a completely different semantic
2567# ./install, which can be erroneously created by make from ./install.sh.
2568# Reject install programs that cannot install multiple files.
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570$as_echo_n "checking for a BSD-compatible install... " >&6; }
2571if test -z "$INSTALL"; then
2572if ${ac_cv_path_install+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 # Account for people who put trailing slashes in PATH elements.
2581case $as_dir/ in #((
2582 ./ | .// | /[cC]/* | \
2583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2584 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2585 /usr/ucb/* ) ;;
2586 *)
2587 # OSF1 and SCO ODT 3.0 have their own names for install.
2588 # Don't use installbsd from OSF since it installs stuff as root
2589 # by default.
2590 for ac_prog in ginstall scoinst install; do
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2593 if test $ac_prog = install &&
2594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595 # AIX install. It has an incompatible calling convention.
2596 :
2597 elif test $ac_prog = install &&
2598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # program-specific install script used by HP pwplus--don't use.
2600 :
2601 else
2602 rm -rf conftest.one conftest.two conftest.dir
2603 echo one > conftest.one
2604 echo two > conftest.two
2605 mkdir conftest.dir
2606 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2607 test -s conftest.one && test -s conftest.two &&
2608 test -s conftest.dir/conftest.one &&
2609 test -s conftest.dir/conftest.two
2610 then
2611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2612 break 3
2613 fi
2614 fi
2615 fi
2616 done
2617 done
2618 ;;
2619esac
2620
2621 done
2622IFS=$as_save_IFS
2623
2624rm -rf conftest.one conftest.two conftest.dir
2625
2626fi
2627 if test "${ac_cv_path_install+set}" = set; then
2628 INSTALL=$ac_cv_path_install
2629 else
2630 # As a last resort, use the slow shell script. Don't cache a
2631 # value for INSTALL within a source directory, because that will
2632 # break other packages using the cache if that directory is
2633 # removed, or if the value is a relative name.
2634 INSTALL=$ac_install_sh
2635 fi
2636fi
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2638$as_echo "$INSTALL" >&6; }
2639
2640# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2641# It thinks the first close brace ends the variable substitution.
2642test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2643
2644test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2645
2646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2649$as_echo_n "checking whether ln works... " >&6; }
2650if ${acx_cv_prog_LN+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652else
2653 rm -f conftestdata_t
2654echo >conftestdata_f
2655if ln conftestdata_f conftestdata_t 2>/dev/null
2656then
2657 acx_cv_prog_LN=ln
2658else
2659 acx_cv_prog_LN=no
2660fi
2661rm -f conftestdata_f conftestdata_t
2662
2663fi
2664if test $acx_cv_prog_LN = no; then
2665 LN="cp"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2667$as_echo "no, using $LN" >&6; }
2668else
2669 LN="$acx_cv_prog_LN"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
2672fi
2673
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2675$as_echo_n "checking whether ln -s works... " >&6; }
2676LN_S=$as_ln_s
2677if test "$LN_S" = "ln -s"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2679$as_echo "yes" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2682$as_echo "no, using $LN_S" >&6; }
2683fi
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2686$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2687if ${ac_cv_path_SED+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689else
2690 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2691 for ac_i in 1 2 3 4 5 6 7; do
2692 ac_script="$ac_script$as_nl$ac_script"
2693 done
2694 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2695 { ac_script=; unset ac_script;}
2696 if test -z "$SED"; then
2697 ac_path_SED_found=false
2698 # Loop through the user's path and test for each of PROGNAME-LIST
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_prog in sed gsed; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2707 as_fn_executable_p "$ac_path_SED" || continue
2708# Check for GNU ac_path_SED and select it if it is found.
2709 # Check for GNU $ac_path_SED
2710case `"$ac_path_SED" --version 2>&1` in
2711*GNU*)
2712 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2713*)
2714 ac_count=0
2715 $as_echo_n 0123456789 >"conftest.in"
2716 while :
2717 do
2718 cat "conftest.in" "conftest.in" >"conftest.tmp"
2719 mv "conftest.tmp" "conftest.in"
2720 cp "conftest.in" "conftest.nl"
2721 $as_echo '' >> "conftest.nl"
2722 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2724 as_fn_arith $ac_count + 1 && ac_count=$as_val
2725 if test $ac_count -gt ${ac_path_SED_max-0}; then
2726 # Best one so far, save it but keep looking for a better one
2727 ac_cv_path_SED="$ac_path_SED"
2728 ac_path_SED_max=$ac_count
2729 fi
2730 # 10*(2^10) chars as input seems more than enough
2731 test $ac_count -gt 10 && break
2732 done
2733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2734esac
2735
2736 $ac_path_SED_found && break 3
2737 done
2738 done
2739 done
2740IFS=$as_save_IFS
2741 if test -z "$ac_cv_path_SED"; then
2742 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2743 fi
2744else
2745 ac_cv_path_SED=$SED
2746fi
2747
2748fi
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2750$as_echo "$ac_cv_path_SED" >&6; }
2751 SED="$ac_cv_path_SED"
2752 rm -f conftest.sed
2753
2754for ac_prog in gawk mawk nawk awk
2755do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757set dummy $ac_prog; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
2778 done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783AWK=$ac_cv_prog_AWK
2784if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786$as_echo "$AWK" >&6; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793 test -n "$AWK" && break
2794done
2795
2796
2797srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2798
2799# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2800# a relative path.
2801if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2802 INSTALL="${srcpwd}/install-sh -c"
2803fi
2804
2805# Set srcdir to "." if that's what it is.
2806# This is important for multilib support.
2807pwd=`${PWDCMD-pwd}`
2808if test "${pwd}" = "${srcpwd}" ; then
2809 srcdir=.
2810fi
2811
2812topsrcdir=$srcpwd
2813
2814extra_host_args=
2815
2816### To add a new directory to the tree, first choose whether it is a target
2817### or a host dependent tool. Then put it into the appropriate list
2818### (library or tools, host or target), doing a dependency sort.
2819
2820# Subdirs will be configured in the order listed in build_configdirs,
2821# configdirs, or target_configdirs; see the serialization section below.
2822
2823# Dependency sorting is only needed when *configuration* must be done in
2824# a particular order. In all cases a dependency should be specified in
2825# the Makefile, whether or not it's implicitly specified here.
2826
2827# Double entries in build_configdirs, configdirs, or target_configdirs may
2828# cause circular dependencies and break everything horribly.
2829
2830# these library is used by various programs built for the build
2831# environment
2832#
2833build_libs="build-libiberty build-libcpp"
2834
2835# these tools are built for the build environment
2836build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2837
2838# these libraries are used by various programs built for the host environment
2839#f
2840host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2841
2842# these tools are built for the host environment
2843# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2844# know that we are building the simulator.
2845# binutils, gas and ld appear in that order because it makes sense to run
2846# "make check" in that particular order.
2847# If --enable-gold is used, "gold" may replace "ld".
2848host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2849
2850# these libraries are built for the target environment, and are built after
2851# the host libraries and the host tools (which may be a cross compiler)
2852# Note that libiberty is not a target library.
2853target_libraries="target-libgcc \
2854 target-libbacktrace \
2855 target-libgloss \
2856 target-newlib \
2857 target-libgomp \
2858 target-libatomic \
2859 target-libitm \
2860 target-libstdc++-v3 \
2861 target-libsanitizer \
2862 target-libvtv \
2863 target-libssp \
2864 target-libquadmath \
2865 target-libgfortran \
2866 target-libffi \
2867 target-libobjc \
2868 target-libgcobol \
2869 target-libada \
2870 target-libgm2 \
2871 target-libgo \
2872 target-libgrust \
2873 target-libphobos \
2874 target-zlib"
2875
2876# these tools are built using the target libraries, and are intended to
2877# run only in the target environment
2878#
2879# note: any program that *uses* libraries that are in the "target_libraries"
2880# list belongs in this list.
2881#
2882target_tools="target-rda"
2883
2884################################################################################
2885
2886## All tools belong in one of the four categories, and are assigned above
2887## We assign ${configdirs} this way to remove all embedded newlines. This
2888## is important because configure will choke if they ever get through.
2889## ${configdirs} is directories we build using the host tools.
2890## ${target_configdirs} is directories we build using the target tools.
2891configdirs=`echo ${host_libs} ${host_tools}`
2892target_configdirs=`echo ${target_libraries} ${target_tools}`
2893build_configdirs=`echo ${build_libs} ${build_tools}`
2894
2895
2896
2897################################################################################
2898
2899srcname="gnu development package"
2900
2901# This gets set non-empty for some net releases of packages.
2902appdirs=""
2903
2904# Define is_cross_compiler to save on calls to 'test'.
2905is_cross_compiler=
2906if test x"${host}" = x"${target}" ; then
2907 is_cross_compiler=no
2908else
2909 is_cross_compiler=yes
2910fi
2911
2912# Find the build and target subdir names.
2913
2914# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2915# have matching libraries, they should use host libraries: Makefile.tpl
2916# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2917# However, they still use the build modules, because the corresponding
2918# host modules (e.g. bison) are only built for the host when bootstrap
2919# finishes. So:
2920# - build_subdir is where we find build modules, and never changes.
2921# - build_libsubdir is where we find build libraries, and can be overridden.
2922
2923# Prefix 'build-' so this never conflicts with target_subdir.
2924build_subdir="build-${build_noncanonical}"
2925
2926# Check whether --with-build-libsubdir was given.
2927if test "${with_build_libsubdir+set}" = set; then :
2928 withval=$with_build_libsubdir; build_libsubdir="$withval"
2929else
2930 build_libsubdir="$build_subdir"
2931fi
2932
2933# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2934if ( test $srcdir = . && test -d gcc ) \
2935 || test -d $srcdir/../host-${host_noncanonical}; then
2936 host_subdir="host-${host_noncanonical}"
2937else
2938 host_subdir=.
2939fi
2940# No prefix.
2941target_subdir=${target_noncanonical}
2942
2943# Be sure to cover against remnants of an in-tree build.
2944if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2945 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2946Use a pristine source tree when building in a separate tree" "$LINENO" 5
2947fi
2948
2949# Skipdirs are removed silently.
2950skipdirs=
2951# Noconfigdirs are removed loudly.
2952noconfigdirs=""
2953
2954use_gnu_ld=
2955# Make sure we don't let GNU ld be added if we didn't want it.
2956if test x$with_gnu_ld = xno ; then
2957 use_gnu_ld=no
2958 noconfigdirs="$noconfigdirs ld gold"
2959fi
2960
2961use_gnu_as=
2962# Make sure we don't let GNU as be added if we didn't want it.
2963if test x$with_gnu_as = xno ; then
2964 use_gnu_as=no
2965 noconfigdirs="$noconfigdirs gas"
2966fi
2967
2968use_included_zlib=
2969
2970# Check whether --with-system-zlib was given.
2971if test "${with_system_zlib+set}" = set; then :
2972 withval=$with_system_zlib;
2973fi
2974
2975# Make sure we don't let ZLIB be added if we didn't want it.
2976if test x$with_system_zlib = xyes ; then
2977 use_included_zlib=no
2978 noconfigdirs="$noconfigdirs zlib"
2979fi
2980
2981# Don't compile the bundled readline/libreadline.a if --with-system-readline
2982# is provided.
2983if test x$with_system_readline = xyes ; then
2984 noconfigdirs="$noconfigdirs readline"
2985fi
2986
2987
2988# Check whether --with-zstd was given.
2989if test "${with_zstd+set}" = set; then :
2990 withval=$with_zstd;
2991fi
2992
2993
2994# some tools are so dependent upon X11 that if we're not building with X,
2995# it's not even worth trying to configure, much less build, that tool.
2996
2997case ${with_x} in
2998 yes | "") ;; # the default value for this tree is that X11 is available
2999 no)
3000 skipdirs="${skipdirs} tk itcl libgui"
3001 # We won't be able to build gdbtk without X.
3002 enable_gdbtk=no
3003 ;;
3004 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3005esac
3006
3007# Some are only suitable for cross toolchains.
3008# Remove these if host=target.
3009cross_only="target-libgloss target-newlib target-opcodes"
3010
3011case $is_cross_compiler in
3012 no) skipdirs="${skipdirs} ${cross_only}" ;;
3013esac
3014
3015# If both --with-headers and --with-libs are specified, default to
3016# --without-newlib.
3017if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3018 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3019 if test x"${with_newlib}" = x ; then
3020 with_newlib=no
3021 fi
3022fi
3023
3024# Recognize --with-newlib/--without-newlib.
3025case ${with_newlib} in
3026 no) skipdirs="${skipdirs} target-newlib" ;;
3027 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3028esac
3029
3030# Check whether --enable-as-accelerator-for was given.
3031if test "${enable_as_accelerator_for+set}" = set; then :
3032 enableval=$enable_as_accelerator_for;
3033fi
3034
3035
3036# Check whether --enable-offload-targets was given.
3037if test "${enable_offload_targets+set}" = set; then :
3038 enableval=$enable_offload_targets;
3039 if test x"$enable_offload_targets" = x; then
3040 as_fn_error $? "no offload targets specified" "$LINENO" 5
3041 fi
3042
3043else
3044 enable_offload_targets=
3045fi
3046
3047
3048# Check whether --enable-offload-defaulted was given.
3049if test "${enable_offload_defaulted+set}" = set; then :
3050 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3051else
3052 enable_offload_defaulted=
3053fi
3054
3055
3056# Handle --enable-gold, --enable-ld.
3057# --disable-gold [--enable-ld]
3058# Build only ld. Default option.
3059# --enable-gold [--enable-ld]
3060# Build both gold and ld. Install gold as "ld.gold", install ld
3061# as "ld.bfd" and "ld".
3062# --enable-gold=default [--enable-ld]
3063# Build both gold and ld. Install gold as "ld.gold" and "ld",
3064# install ld as "ld.bfd".
3065# --enable-gold[=default] --disable-ld
3066# Build only gold, which is then installed as both "ld.gold" and "ld".
3067# --enable-gold --enable-ld=default
3068# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3069# and ld.bfd).
3070# In other words, ld is default
3071# --enable-gold=default --enable-ld=default
3072# Error.
3073
3074default_ld=
3075# Check whether --enable-gold was given.
3076if test "${enable_gold+set}" = set; then :
3077 enableval=$enable_gold; ENABLE_GOLD=$enableval
3078else
3079 ENABLE_GOLD=no
3080fi
3081
3082case "${ENABLE_GOLD}" in
3083 yes|default)
3084 # Check for ELF target.
3085 is_elf=no
3086 case "${target}" in
3087 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3088 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3089 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3090 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3091 case "${target}" in
3092 *-*-linux*aout* | *-*-linux*oldld*)
3093 ;;
3094 *)
3095 is_elf=yes
3096 ;;
3097 esac
3098 esac
3099
3100 if test "$is_elf" = "yes"; then
3101 # Check for target supported by gold.
3102 case "${target}" in
3103 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3104 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3105 configdirs="$configdirs gold"
3106 if test x${ENABLE_GOLD} = xdefault; then
3107 default_ld=gold
3108 fi
3109 ENABLE_GOLD=yes
3110 ;;
3111 esac
3112 fi
3113 ;;
3114 no)
3115 ;;
3116 *)
3117 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3118 ;;
3119esac
3120
3121# Check whether --enable-ld was given.
3122if test "${enable_ld+set}" = set; then :
3123 enableval=$enable_ld; ENABLE_LD=$enableval
3124else
3125 ENABLE_LD=yes
3126fi
3127
3128
3129case "${ENABLE_LD}" in
3130 default)
3131 if test x${default_ld} != x; then
3132 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3133 fi
3134 ;;
3135 yes)
3136 ;;
3137 no)
3138 if test x${ENABLE_GOLD} != xyes; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3140$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3141 fi
3142 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3143 ;;
3144 *)
3145 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3146 ;;
3147esac
3148
3149# Check whether --enable-gprofng was given.
3150if test "${enable_gprofng+set}" = set; then :
3151 enableval=$enable_gprofng; enable_gprofng=$enableval
3152else
3153 enable_gprofng=yes
3154fi
3155
3156if test "$enable_gprofng" = "yes"; then
3157 case "${target}" in
3158 *-musl*)
3159 ;;
3160 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3161 configdirs="$configdirs gprofng"
3162 ;;
3163 esac
3164fi
3165
3166
3167# PR gas/19109
3168# Decide the default method for compressing debug sections.
3169# Provide a configure time option to override our default.
3170# Check whether --enable-compressed_debug_sections was given.
3171if test "${enable_compressed_debug_sections+set}" = set; then :
3172 enableval=$enable_compressed_debug_sections;
3173 if test x"$enable_compressed_debug_sections" = xyes; then
3174 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3175 fi
3176
3177else
3178 enable_compressed_debug_sections=
3179fi
3180
3181
3182# Select default compression algorithm.
3183# Check whether --enable-default_compressed_debug_sections_algorithm was given.
3184if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3185 enableval=$enable_default_compressed_debug_sections_algorithm;
3186else
3187 default_compressed_debug_sections_algorithm=
3188fi
3189
3190
3191# Configure extra directories which are host specific
3192
3193case "${host}" in
3194 *-cygwin*)
3195 configdirs="$configdirs libtermcap" ;;
3196esac
3197
3198# A target can indicate whether a language isn't supported for some reason.
3199# Only spaces may be used in this macro; not newlines or tabs.
3200unsupported_languages=
3201
3202# Remove more programs from consideration, based on the host or
3203# target this usually means that a port of the program doesn't
3204# exist yet.
3205
3206case "${host}" in
3207 i[3456789]86-*-msdosdjgpp*)
3208 noconfigdirs="$noconfigdirs tcl tk itcl"
3209 ;;
3210esac
3211
3212# Default to --disable-year2038 until we can handle differences between
3213# projects that use gnulib (which understands year 2038) and projects that
3214# do not (like BFD).
3215# Check whether --enable-year2038 was given.
3216if test "${enable_year2038+set}" = set; then :
3217 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3218else
3219 ENABLE_YEAR2038=no
3220fi
3221
3222enable_year2038=
3223if test "${ENABLE_YEAR2038}" = "no" ; then
3224 enable_year2038=no
3225fi
3226
3227# Check whether --enable-libquadmath was given.
3228if test "${enable_libquadmath+set}" = set; then :
3229 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3230else
3231 ENABLE_LIBQUADMATH=yes
3232fi
3233
3234if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3235 noconfigdirs="$noconfigdirs target-libquadmath"
3236fi
3237
3238
3239# Check whether --enable-libquadmath-support was given.
3240if test "${enable_libquadmath_support+set}" = set; then :
3241 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3242else
3243 ENABLE_LIBQUADMATH_SUPPORT=yes
3244fi
3245
3246enable_libquadmath_support=
3247if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3248 enable_libquadmath_support=no
3249fi
3250
3251
3252# Check whether --enable-libada was given.
3253if test "${enable_libada+set}" = set; then :
3254 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3255else
3256 ENABLE_LIBADA=yes
3257fi
3258
3259if test "${ENABLE_LIBADA}" != "yes" ; then
3260 noconfigdirs="$noconfigdirs gnattools"
3261fi
3262
3263# Check whether --enable-libgm2 was given.
3264if test "${enable_libgm2+set}" = set; then :
3265 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3266else
3267 ENABLE_LIBGM2=no
3268fi
3269
3270if test "${ENABLE_LIBGM2}" != "yes" ; then
3271 noconfigdirs="$noconfigdirs gm2tools"
3272fi
3273
3274# Check whether --enable-libssp was given.
3275if test "${enable_libssp+set}" = set; then :
3276 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3277else
3278 ENABLE_LIBSSP=yes
3279fi
3280
3281
3282# Check whether --enable-libstdcxx was given.
3283if test "${enable_libstdcxx+set}" = set; then :
3284 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3285else
3286 ENABLE_LIBSTDCXX=default
3287fi
3288
3289if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3290 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3291fi
3292
3293# Enable libgomp by default on hosted POSIX systems, and a few others.
3294if test x$enable_libgomp = x ; then
3295 case "${target}" in
3296 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3297 ;;
3298 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3299 ;;
3300 *-*-solaris2* | *-*-hpux11*)
3301 ;;
3302 *-*-darwin* | *-*-aix*)
3303 ;;
3304 nvptx*-*-* | amdgcn*-*-*)
3305 ;;
3306 *)
3307 noconfigdirs="$noconfigdirs target-libgomp"
3308 ;;
3309 esac
3310fi
3311
3312# Disable libatomic on unsupported systems.
3313if test -d ${srcdir}/libatomic; then
3314 if test x$enable_libatomic = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3316$as_echo_n "checking for libatomic support... " >&6; }
3317 if (srcdir=${srcdir}/libatomic; \
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 noconfigdirs="$noconfigdirs target-libatomic"
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326$as_echo "yes" >&6; }
3327 fi
3328 fi
3329fi
3330
3331# Disable libitm on unsupported systems.
3332if test -d ${srcdir}/libitm; then
3333 if test x$enable_libitm = x; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3335$as_echo_n "checking for libitm support... " >&6; }
3336 if (srcdir=${srcdir}/libitm; \
3337 . ${srcdir}/configure.tgt; \
3338 test -n "$UNSUPPORTED")
3339 then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341$as_echo "no" >&6; }
3342 noconfigdirs="$noconfigdirs target-libitm"
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345$as_echo "yes" >&6; }
3346 fi
3347 fi
3348fi
3349
3350# Disable libsanitizer on unsupported systems.
3351if test -d ${srcdir}/libsanitizer; then
3352 if test x$enable_libsanitizer = x; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3354$as_echo_n "checking for libsanitizer support... " >&6; }
3355 if (srcdir=${srcdir}/libsanitizer; \
3356 . ${srcdir}/configure.tgt; \
3357 test -n "$UNSUPPORTED")
3358 then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361 noconfigdirs="$noconfigdirs target-libsanitizer"
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364$as_echo "yes" >&6; }
3365 fi
3366 fi
3367fi
3368
3369# Disable libvtv on unsupported systems.
3370if test -d ${srcdir}/libvtv; then
3371 if test x$enable_libvtv = x; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3373$as_echo_n "checking for libvtv support... " >&6; }
3374 if (srcdir=${srcdir}/libvtv; \
3375 . ${srcdir}/configure.tgt; \
3376 test "$VTV_SUPPORTED" != "yes")
3377 then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380 noconfigdirs="$noconfigdirs target-libvtv"
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383$as_echo "yes" >&6; }
3384 fi
3385 fi
3386fi
3387
3388# Disable libquadmath for some systems.
3389case "${target}" in
3390 avr-*-*)
3391 noconfigdirs="$noconfigdirs target-libquadmath"
3392 ;;
3393 # libquadmath is unused on AIX and libquadmath build process use of
3394 # LD_LIBRARY_PATH can break AIX bootstrap.
3395 powerpc-*-aix* | rs6000-*-aix*)
3396 noconfigdirs="$noconfigdirs target-libquadmath"
3397 ;;
3398esac
3399
3400cpu_type=`echo ${host} | sed 's/-.*$//'`
3401# Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
3402if test "${cpu_type}" = "x86_64" ; then
3403 cpu_type="i386"
3404fi
3405
3406
3407# Disable libssp for some systems.
3408case "${target}" in
3409 avr-*-*)
3410 # No hosted I/O support.
3411 noconfigdirs="$noconfigdirs target-libssp"
3412 ;;
3413 bpf-*-*)
3414 noconfigdirs="$noconfigdirs target-libssp"
3415 ;;
3416 powerpc-*-aix* | rs6000-*-aix*)
3417 noconfigdirs="$noconfigdirs target-libssp"
3418 ;;
3419 pru-*-*)
3420 # No hosted I/O support.
3421 noconfigdirs="$noconfigdirs target-libssp"
3422 ;;
3423 rl78-*-*)
3424 # libssp uses a misaligned load to trigger a fault, but the RL78
3425 # doesn't fault for those - instead, it gives a build-time error
3426 # for explicit misaligned loads.
3427 noconfigdirs="$noconfigdirs target-libssp"
3428 ;;
3429 visium-*-*)
3430 # No hosted I/O support.
3431 noconfigdirs="$noconfigdirs target-libssp"
3432 ;;
3433esac
3434
3435# Disable libstdc++-v3 for some systems.
3436# Allow user to override this if they pass --enable-libstdcxx
3437if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3438 case "${target}" in
3439 *-*-vxworks*)
3440 # VxWorks uses the Dinkumware C++ library.
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3442 ;;
3443 arm*-wince-pe*)
3444 # the C++ libraries don't build on top of CE's C libraries
3445 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3446 ;;
3447 avr-*-*)
3448 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3449 ;;
3450 bpf-*-*)
3451 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3452 ;;
3453 ft32-*-*)
3454 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3455 ;;
3456 esac
3457fi
3458
3459# Disable Ada/GNAT on systems where it is known to not work.
3460# For testing, you can override this with --enable-languages=ada.
3461case ,${enable_languages}, in
3462 *,ada,*)
3463 ;;
3464 *)
3465 case "${target}" in
3466 amdgcn*-*-* \
3467 | nvptx*-*-* )
3468 unsupported_languages="$unsupported_languages ada"
3469 ;;
3470 esac
3471 ;;
3472esac
3473
3474# Disable C++ on systems where it is known to not work.
3475# For testing, you can override this with --enable-languages=c++.
3476case ,${enable_languages}, in
3477 *,c++,*)
3478 ;;
3479 *)
3480 case "${target}" in
3481 bpf-*-*)
3482 unsupported_languages="$unsupported_languages c++"
3483 ;;
3484 esac
3485 ;;
3486esac
3487
3488# Disable Objc on systems where it is known to not work.
3489# For testing, you can override this with --enable-languages=objc.
3490case ,${enable_languages}, in
3491 *,objc,*)
3492 ;;
3493 *)
3494 case "${target}" in
3495 bpf-*-*)
3496 unsupported_languages="$unsupported_languages objc"
3497 ;;
3498 esac
3499 ;;
3500esac
3501
3502# Disable libobjc for some systems where it is known to not work.
3503case "${target}" in
3504 amdgcn*-*-*)
3505 noconfigdirs="$noconfigdirs target-libobjc"
3506 ;;
3507 nvptx*-*-*)
3508 noconfigdirs="$noconfigdirs target-libobjc"
3509 ;;
3510esac
3511
3512# Disable D on systems where it is known to not work.
3513# For testing, you can override this with --enable-languages=d.
3514case ,${enable_languages}, in
3515 *,d,*)
3516 ;;
3517 *)
3518 case "${target}" in
3519 bpf-*-*)
3520 unsupported_languages="$unsupported_languages d"
3521 ;;
3522 esac
3523 ;;
3524esac
3525
3526# Disable libphobos on unsupported systems.
3527# For testing, you can override this with --enable-libphobos.
3528if test -d ${srcdir}/libphobos; then
3529 if test x$enable_libphobos = x; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3531$as_echo_n "checking for libphobos support... " >&6; }
3532 if (srcdir=${srcdir}/libphobos; \
3533 . ${srcdir}/configure.tgt; \
3534 test "$LIBPHOBOS_SUPPORTED" != "yes")
3535 then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537$as_echo "no" >&6; }
3538 noconfigdirs="$noconfigdirs target-libphobos"
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541$as_echo "yes" >&6; }
3542 fi
3543 fi
3544fi
3545
3546# Disable libgcobol on unsupported systems.
3547# For testing, you can override this with --enable-libgcobol.
3548if test -d ${srcdir}/libgcobol; then
3549 if test x$enable_libgcobol = x; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcobol support" >&5
3551$as_echo_n "checking for libgcobol support... " >&6; }
3552 if (srcdir=${srcdir}/libgcobol; \
3553 . ${srcdir}/configure.tgt; \
3554 test -n "$UNSUPPORTED")
3555 then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558 noconfigdirs="$noconfigdirs target-libgcobol"
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561$as_echo "yes" >&6; }
3562 fi
3563 fi
3564fi
3565
3566# Disable Fortran for some systems.
3567case "${target}" in
3568 mmix-*-*)
3569 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3570 unsupported_languages="$unsupported_languages fortran"
3571 ;;
3572 bpf-*-*)
3573 unsupported_languages="$unsupported_languages fortran"
3574 ;;
3575esac
3576
3577# Always enable COBOL for --enable-languages=*cobol*
3578# Otherwise, enable COBOL only for known architectures
3579case ,${enable_languages}, in
3580 *,cobol,*)
3581 case ,${enable_languages}, in
3582 *,c++,*)
3583 ;;
3584 *)
3585 # We have an explicit cobol, but no c++. We need c++, because cobol
3586 # requires libstdc++
3587 enable_languages="$enable_languages,c++"
3588 ;;
3589 esac
3590 ;;
3591 *)
3592 case "${target}" in
3593 aarch64-*-linux*|x86_64-*-linux*)
3594 ;;
3595 *-*-*)
3596 unsupported_languages="$unsupported_languages cobol"
3597 ;;
3598 esac
3599 case "${host}" in
3600 aarch64-*-linux*|x86_64-*-linux*)
3601 ;;
3602 *-*-*)
3603 unsupported_languages="$unsupported_languages cobol"
3604 ;;
3605 esac
3606 ;;
3607esac
3608
3609# Disable libffi for some systems.
3610case "${target}" in
3611 powerpc-*-darwin*)
3612 ;;
3613 i[3456789]86-*-darwin*)
3614 ;;
3615 x86_64-*-darwin[912]*)
3616 ;;
3617 *-*-darwin*)
3618 noconfigdirs="$noconfigdirs target-libffi"
3619 ;;
3620 *-*-netware*)
3621 noconfigdirs="$noconfigdirs target-libffi"
3622 ;;
3623 *-*-phoenix*)
3624 noconfigdirs="$noconfigdirs target-libffi"
3625 ;;
3626 *-*-rtems*)
3627 noconfigdirs="$noconfigdirs target-libffi"
3628 ;;
3629 *-*-tpf*)
3630 noconfigdirs="$noconfigdirs target-libffi"
3631 ;;
3632 *-*-uclinux*)
3633 noconfigdirs="$noconfigdirs target-libffi"
3634 ;;
3635 *-*-vxworks*)
3636 noconfigdirs="$noconfigdirs target-libffi"
3637 ;;
3638 aarch64*-*-freebsd*)
3639 noconfigdirs="$noconfigdirs target-libffi"
3640 ;;
3641 alpha*-*-*vms*)
3642 noconfigdirs="$noconfigdirs target-libffi"
3643 ;;
3644 amdgcn*-*-*)
3645 noconfigdirs="$noconfigdirs target-libffi"
3646 ;;
3647 arm*-*-freebsd*)
3648 noconfigdirs="$noconfigdirs target-libffi"
3649 ;;
3650 arm-wince-pe)
3651 noconfigdirs="$noconfigdirs target-libffi"
3652 ;;
3653 arm*-*-symbianelf*)
3654 noconfigdirs="$noconfigdirs target-libffi"
3655 ;;
3656 bpf-*-*)
3657 noconfigdirs="$noconfigdirs target-libffi"
3658 ;;
3659 cris-*-* | crisv32-*-*)
3660 case "${target}" in
3661 *-*-linux*)
3662 ;;
3663 *) # See PR46792 regarding target-libffi.
3664 noconfigdirs="$noconfigdirs target-libffi";;
3665 esac
3666 ;;
3667 hppa*64*-*-hpux*)
3668 noconfigdirs="$noconfigdirs target-libffi"
3669 ;;
3670 hppa*-hp-hpux11*)
3671 ;;
3672 hppa*-*-hpux*)
3673 noconfigdirs="$noconfigdirs target-libffi"
3674 ;;
3675 ia64*-*-*vms*)
3676 noconfigdirs="$noconfigdirs target-libffi"
3677 ;;
3678 i[3456789]86-w64-mingw*)
3679 noconfigdirs="$noconfigdirs target-libffi"
3680 ;;
3681 i[3456789]86-*-mingw*)
3682 noconfigdirs="$noconfigdirs target-libffi"
3683 ;;
3684 x86_64-*-mingw*)
3685 noconfigdirs="$noconfigdirs target-libffi"
3686 ;;
3687 mmix-*-*)
3688 noconfigdirs="$noconfigdirs target-libffi"
3689 ;;
3690 nvptx*-*-*)
3691 noconfigdirs="$noconfigdirs target-libffi"
3692 ;;
3693 powerpc-*-aix*)
3694 ;;
3695 rs6000-*-aix*)
3696 ;;
3697 ft32-*-*)
3698 noconfigdirs="$noconfigdirs target-libffi"
3699 ;;
3700 *-*-lynxos*)
3701 noconfigdirs="$noconfigdirs target-libffi"
3702 ;;
3703esac
3704
3705# Disable the go frontend on systems where it is known to not work. Please keep
3706# this in sync with contrib/config-list.mk.
3707case "${target}" in
3708*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3709 unsupported_languages="$unsupported_languages go"
3710 ;;
3711esac
3712
3713# Only allow gdbserver on some systems.
3714if test -d ${srcdir}/gdbserver; then
3715 if test x$enable_gdbserver = x; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3717$as_echo_n "checking for gdbserver support... " >&6; }
3718 if (srcdir=${srcdir}/gdbserver; \
3719 . ${srcdir}/configure.srv; \
3720 test -n "$UNSUPPORTED")
3721 then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723$as_echo "no" >&6; }
3724 noconfigdirs="$noconfigdirs gdbserver"
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727$as_echo "yes" >&6; }
3728 fi
3729 fi
3730fi
3731
3732# Disable libgo for some systems where it is known to not work.
3733# For testing, you can easily override this with --enable-libgo.
3734if test x$enable_libgo = x; then
3735 case "${target}" in
3736 *-*-darwin*)
3737 # PR 46986
3738 noconfigdirs="$noconfigdirs target-libgo"
3739 ;;
3740 *-*-cygwin* | *-*-mingw*)
3741 noconfigdirs="$noconfigdirs target-libgo"
3742 ;;
3743 amdgcn*-*-*)
3744 noconfigdirs="$noconfigdirs target-libgo"
3745 ;;
3746 bpf-*-*)
3747 noconfigdirs="$noconfigdirs target-libgo"
3748 ;;
3749 nvptx*-*-*)
3750 noconfigdirs="$noconfigdirs target-libgo"
3751 ;;
3752 esac
3753fi
3754
3755# Default libgloss CPU subdirectory.
3756libgloss_dir="$target_cpu"
3757
3758case "${target}" in
3759 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3760 libgloss_dir=wince
3761 ;;
3762 aarch64*-*-* )
3763 libgloss_dir=aarch64
3764 ;;
3765 arm*-*-*)
3766 libgloss_dir=arm
3767 ;;
3768 cris-*-* | crisv32-*-*)
3769 libgloss_dir=cris
3770 ;;
3771 kvx-*-elf)
3772 libgloss_dir=kvx-elf
3773 ;;
3774 kvx-*-mbr)
3775 libgloss_dir=kvx-mbr
3776 ;;
3777 kvx-*-cos)
3778 libgloss_dir=kvx-cos
3779 ;;
3780 hppa*-*-*)
3781 libgloss_dir=pa
3782 ;;
3783 i[3456789]86-*-*)
3784 libgloss_dir=i386
3785 ;;
3786 loongarch*-*-*)
3787 libgloss_dir=loongarch
3788 ;;
3789 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3790 libgloss_dir=m68hc11
3791 ;;
3792 m68*-*-* | fido-*-*)
3793 libgloss_dir=m68k
3794 ;;
3795 mips*-*-*)
3796 libgloss_dir=mips
3797 ;;
3798 powerpc*-*-*)
3799 libgloss_dir=rs6000
3800 ;;
3801 pru-*-*)
3802 libgloss_dir=pru
3803 ;;
3804 sparc*-*-*)
3805 libgloss_dir=sparc
3806 ;;
3807esac
3808
3809# Disable newlib and libgloss for various target OSes.
3810case "${target}" in
3811 alpha*-dec-osf*)
3812 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3813 ;;
3814 i[3456789]86-*-linux*)
3815 # This section makes it possible to build newlib natively on linux.
3816 # If we are using a cross compiler then don't configure newlib.
3817 if test x${is_cross_compiler} != xno ; then
3818 noconfigdirs="$noconfigdirs target-newlib"
3819 fi
3820 noconfigdirs="$noconfigdirs target-libgloss"
3821 # If we are not using a cross compiler, do configure newlib.
3822 # Note however, that newlib will only be configured in this situation
3823 # if the --with-newlib option has been given, because otherwise
3824 # 'target-newlib' will appear in skipdirs.
3825 ;;
3826 i[3456789]86-*-rdos*)
3827 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3828 ;;
3829 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 ;;
3832 sparc-*-sunos4*)
3833 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3834 ;;
3835 bpf-*-*)
3836 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3837 ;;
3838 *-*-aix*)
3839 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3840 ;;
3841 *-*-beos*)
3842 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3843 ;;
3844 *-*-chorusos)
3845 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3846 ;;
3847 *-*-dragonfly*)
3848 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3849 ;;
3850 *-*-freebsd*)
3851 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3852 ;;
3853 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3854 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3855 ;;
3856 *-*-lynxos*)
3857 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3858 ;;
3859 *-*-mingw*)
3860 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3861 ;;
3862 *-*-netbsd*)
3863 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864 ;;
3865 *-*-netware*)
3866 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3867 ;;
3868 *-*-tpf*)
3869 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3870 ;;
3871 *-*-uclinux*)
3872 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3873 ;;
3874 *-*-vxworks*)
3875 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3876 ;;
3877esac
3878
3879# The ARM simulator has been deprecated for all ARM targets.
3880case "${target}" in
3881 arm*-*-*)
3882 noconfigdirs="$noconfigdirs sim"
3883 ;;
3884esac
3885
3886case "${target}" in
3887 *-*-chorusos)
3888 ;;
3889 aarch64-*-darwin*)
3890 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3891 noconfigdirs="$noconfigdirs sim target-rda"
3892 ;;
3893 amdgcn*-*-*)
3894 ;;
3895 arm-*-darwin*)
3896 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3897 noconfigdirs="$noconfigdirs target-rda"
3898 ;;
3899 powerpc-*-darwin*)
3900 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3901 noconfigdirs="$noconfigdirs sim target-rda"
3902 ;;
3903 i[3456789]86-*-darwin*)
3904 noconfigdirs="$noconfigdirs ld gprof"
3905 noconfigdirs="$noconfigdirs sim target-rda"
3906 ;;
3907 x86_64-*-darwin[912]*)
3908 noconfigdirs="$noconfigdirs ld gas gprof"
3909 noconfigdirs="$noconfigdirs sim target-rda"
3910 ;;
3911 *-*-darwin*)
3912 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3913 noconfigdirs="$noconfigdirs sim target-rda"
3914 ;;
3915 *-*-dragonfly*)
3916 ;;
3917 *-*-freebsd*)
3918 if test "x$with_gmp" = x \
3919 && ! test -d ${srcdir}/gmp \
3920 && test -f /usr/local/include/gmp.h; then
3921 with_gmp=/usr/local
3922 fi
3923 ;;
3924 *-*-kaos*)
3925 # Remove unsupported stuff on all kaOS configurations.
3926 noconfigdirs="$noconfigdirs target-libgloss"
3927 ;;
3928 *-*-netbsd*)
3929 ;;
3930 *-*-netware*)
3931 ;;
3932 *-*-phoenix*)
3933 noconfigdirs="$noconfigdirs target-libgloss"
3934 ;;
3935 *-*-rtems*)
3936 noconfigdirs="$noconfigdirs target-libgloss"
3937 ;;
3938 # The tpf target doesn't support gdb yet.
3939 *-*-tpf*)
3940 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3941 ;;
3942 *-*-uclinux*)
3943 noconfigdirs="$noconfigdirs target-rda"
3944 ;;
3945 *-*-vxworks*)
3946 ;;
3947 alpha*-dec-osf*)
3948 # ld works, but does not support shared libraries.
3949 # gas doesn't generate exception information.
3950 noconfigdirs="$noconfigdirs gas ld"
3951 ;;
3952 alpha*-*-*vms*)
3953 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3954 ;;
3955 alpha*-*-*)
3956 # newlib is not 64 bit ready
3957 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3958 ;;
3959 bpf-*-*)
3960 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3961 ;;
3962 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3963 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3964 ;;
3965 arc*-*-*)
3966 noconfigdirs="$noconfigdirs sim"
3967 ;;
3968 arm-*-pe*)
3969 noconfigdirs="$noconfigdirs target-libgloss"
3970 ;;
3971 arm-*-riscix*)
3972 noconfigdirs="$noconfigdirs ld target-libgloss"
3973 ;;
3974 avr-*-*)
3975 if test x${with_avrlibc} != xno; then
3976 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3977 fi
3978 ;;
3979 c4x-*-* | tic4x-*-*)
3980 noconfigdirs="$noconfigdirs target-libgloss"
3981 ;;
3982 tic54x-*-*)
3983 noconfigdirs="$noconfigdirs target-libgloss gdb"
3984 ;;
3985 d10v-*-*)
3986 noconfigdirs="$noconfigdirs target-libgloss"
3987 ;;
3988 d30v-*-*)
3989 noconfigdirs="$noconfigdirs gdb"
3990 ;;
3991 fr30-*-elf*)
3992 noconfigdirs="$noconfigdirs gdb"
3993 ;;
3994 ft32-*-*)
3995 noconfigdirs="$noconfigdirs target-rda gprof"
3996 ;;
3997 moxie-*-*)
3998 noconfigdirs="$noconfigdirs"
3999 ;;
4000 h8300*-*-*)
4001 noconfigdirs="$noconfigdirs target-libgloss"
4002 ;;
4003 h8500-*-*)
4004 noconfigdirs="$noconfigdirs target-libgloss"
4005 ;;
4006 hppa1.1-*-osf* | hppa1.1-*-bsd* )
4007 ;;
4008 hppa*64*-*-hpux*)
4009 noconfigdirs="$noconfigdirs gdb"
4010 ;;
4011 hppa*-*-hpux11*)
4012 noconfigdirs="$noconfigdirs gdb ld"
4013 ;;
4014 hppa*64*-*-linux*)
4015 ;;
4016 hppa*-*-linux*)
4017 ;;
4018 hppa*-*-*elf* | \
4019 hppa*-*-lites* | \
4020 hppa*-*-openbsd* | \
4021 hppa*64*-*-*)
4022 ;;
4023 hppa*-*-pro*)
4024 ;;
4025 hppa*-*-*)
4026 noconfigdirs="$noconfigdirs ld"
4027 ;;
4028 i960-*-*)
4029 noconfigdirs="$noconfigdirs gdb"
4030 ;;
4031 ia64*-*-elf*)
4032 # No gdb support yet.
4033 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
4034 ;;
4035 ia64*-**-hpux*)
4036 # No ld support yet.
4037 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
4038 ;;
4039 ia64*-*-*vms*)
4040 # No ld support yet.
4041 noconfigdirs="$noconfigdirs libgui itcl ld"
4042 ;;
4043 i[3456789]86-w64-mingw*)
4044 ;;
4045 i[3456789]86-*-mingw*)
4046 target_configdirs="$target_configdirs target-winsup"
4047 ;;
4048 *-*-cygwin*)
4049 target_configdirs="$target_configdirs target-libtermcap target-winsup"
4050 noconfigdirs="$noconfigdirs target-libgloss"
4051 # always build newlib if winsup directory is present.
4052 if test -d "$srcdir/winsup/cygwin"; then
4053 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4054 elif test -d "$srcdir/newlib"; then
4055 echo "Warning: winsup/cygwin is missing so newlib can't be built."
4056 fi
4057 ;;
4058 i[3456789]86-*-pe)
4059 noconfigdirs="$noconfigdirs target-libgloss"
4060 ;;
4061 i[3456789]86-*-sco3.2v5*)
4062 # The linker does not yet know about weak symbols in COFF,
4063 # and is not configured to handle mixed ELF and COFF.
4064 noconfigdirs="$noconfigdirs ld target-libgloss"
4065 ;;
4066 i[3456789]86-*-sco*)
4067 noconfigdirs="$noconfigdirs gprof target-libgloss"
4068 ;;
4069 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4070 noconfigdirs="$noconfigdirs target-libgloss"
4071 ;;
4072 i[3456789]86-*-sysv4*)
4073 noconfigdirs="$noconfigdirs target-libgloss"
4074 ;;
4075 i[3456789]86-*-beos*)
4076 noconfigdirs="$noconfigdirs gdb"
4077 ;;
4078 i[3456789]86-*-rdos*)
4079 noconfigdirs="$noconfigdirs gdb"
4080 ;;
4081 kvx-*-*)
4082 noconfigdirs="$noconfigdirs gdb gdbserver sim"
4083 ;;
4084 mmix-*-*)
4085 noconfigdirs="$noconfigdirs gdb"
4086 ;;
4087 mt-*-*)
4088 noconfigdirs="$noconfigdirs sim"
4089 ;;
4090 nfp-*-*)
4091 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4092 noconfigdirs="$noconfigdirs $target_libraries"
4093 ;;
4094 pdp11-*-*)
4095 noconfigdirs="$noconfigdirs gdb gprof"
4096 ;;
4097 powerpc-*-aix*)
4098 # copied from rs6000-*-* entry
4099 noconfigdirs="$noconfigdirs gprof"
4100 ;;
4101 powerpc*-*-winnt* | powerpc*-*-pe*)
4102 target_configdirs="$target_configdirs target-winsup"
4103 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4104 # always build newlib.
4105 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4106 ;;
4107 # This is temporary until we can link against shared libraries
4108 powerpcle-*-solaris*)
4109 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4110 ;;
4111 powerpc-*-beos*)
4112 noconfigdirs="$noconfigdirs gdb"
4113 ;;
4114 rs6000-*-lynxos*)
4115 noconfigdirs="$noconfigdirs gprof"
4116 ;;
4117 rs6000-*-aix*)
4118 noconfigdirs="$noconfigdirs gprof"
4119 ;;
4120 rs6000-*-*)
4121 noconfigdirs="$noconfigdirs gprof"
4122 ;;
4123 m68k-apollo-*)
4124 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4125 ;;
4126 microblaze*)
4127 noconfigdirs="$noconfigdirs gprof"
4128 ;;
4129 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4130 if test x$with_newlib = xyes; then
4131 noconfigdirs="$noconfigdirs gprof"
4132 fi
4133 ;;
4134 mips*-*-irix5*)
4135 noconfigdirs="$noconfigdirs gprof target-libgloss"
4136 ;;
4137 mips*-*-irix6*)
4138 noconfigdirs="$noconfigdirs gprof target-libgloss"
4139 ;;
4140 mips*-*-bsd*)
4141 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4142 ;;
4143 mips*-*-linux*)
4144 ;;
4145 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4146 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4147 noconfigdirs="$noconfigdirs ld gas gprof"
4148 ;;
4149 mips*-*-*)
4150 noconfigdirs="$noconfigdirs gprof"
4151 ;;
4152 nvptx*-*-*)
4153 noconfigdirs="$noconfigdirs target-libssp"
4154 ;;
4155 sh-*-*)
4156 case "${target}" in
4157 sh*-*-elf)
4158 ;;
4159 *)
4160 noconfigdirs="$noconfigdirs target-libgloss" ;;
4161 esac
4162 ;;
4163 sparc-*-sunos4*)
4164 if test x${is_cross_compiler} = xno ; then
4165 use_gnu_ld=no
4166 fi
4167 ;;
4168 tic6x-*-*)
4169 noconfigdirs="$noconfigdirs sim"
4170 ;;
4171 tilepro*-*-* | tilegx*-*-*)
4172 noconfigdirs="$noconfigdirs sim"
4173 ;;
4174 v810-*-*)
4175 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4176 ;;
4177 vax-*-*)
4178 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4179 ;;
4180 wasm32-*-*)
4181 noconfigdirs="$noconfigdirs ld"
4182 ;;
4183 loongarch*-*-linux*)
4184 ;;
4185 loongarch*-*-*)
4186 noconfigdirs="$noconfigdirs gprof"
4187 ;;
4188esac
4189
4190# If we aren't building newlib, then don't build libgloss, since libgloss
4191# depends upon some newlib header files.
4192case "${noconfigdirs}" in
4193 *target-libgloss*) ;;
4194 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4195esac
4196
4197# Work in distributions that contain no compiler tools, like Autoconf.
4198host_makefile_frag=/dev/null
4199if test -d ${srcdir}/config ; then
4200case "${host}" in
4201 i[3456789]86-*-msdosdjgpp*)
4202 host_makefile_frag="config/mh-djgpp"
4203 ;;
4204 *-cygwin*)
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4207$as_echo_n "checking to see if cat works as expected... " >&6; }
4208echo a >cygwin-cat-check
4209if test `cat cygwin-cat-check` = a ; then
4210 rm cygwin-cat-check
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212$as_echo "yes" >&6; }
4213else
4214 rm cygwin-cat-check
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216$as_echo "no" >&6; }
4217 as_fn_error $? "The cat command does not ignore carriage return characters.
4218 Please either mount the build directory in binary mode or run the following
4219 commands before running any configure script:
4220set -o igncr
4221export SHELLOPTS
4222 " "$LINENO" 5
4223fi
4224
4225 host_makefile_frag="config/mh-cygwin"
4226 ;;
4227 *-mingw*)
4228 host_makefile_frag="config/mh-mingw"
4229 ;;
4230 alpha*-linux*)
4231 host_makefile_frag="config/mh-alpha-linux"
4232 ;;
4233 hppa*-hp-hpux*)
4234 host_makefile_frag="config/mh-pa"
4235 ;;
4236 hppa*-*)
4237 host_makefile_frag="config/mh-pa"
4238 ;;
4239 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4240 host_makefile_frag="config/mh-darwin"
4241 ;;
4242 powerpc-*-aix*)
4243 host_makefile_frag="config/mh-ppc-aix"
4244 ;;
4245 rs6000-*-aix*)
4246 host_makefile_frag="config/mh-ppc-aix"
4247 ;;
4248esac
4249fi
4250
4251if test "${build}" != "${host}" ; then
4252 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4253 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4254 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4255 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4256 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4257 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4258 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4259 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4260 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4261 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4262 GNATMAKE_FOR_BUILD=${GNATMAKE_FOR_BUILD-gnatmake}
4263 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4264 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4265 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4266 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4267 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4268else
4269 AR_FOR_BUILD="\$(AR)"
4270 AS_FOR_BUILD="\$(AS)"
4271 CC_FOR_BUILD="\$(CC)"
4272 CXX_FOR_BUILD="\$(CXX)"
4273 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4274 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4275 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4276 GOC_FOR_BUILD="\$(GOC)"
4277 GDC_FOR_BUILD="\$(GDC)"
4278 GNATMAKE_FOR_BUILD="\$(GNATMAKE)"
4279 LD_FOR_BUILD="\$(LD)"
4280 NM_FOR_BUILD="\$(NM)"
4281 RANLIB_FOR_BUILD="\$(RANLIB)"
4282 WINDRES_FOR_BUILD="\$(WINDRES)"
4283 WINDMC_FOR_BUILD="\$(WINDMC)"
4284fi
4285
4286ac_ext=c
4287ac_cpp='$CPP $CPPFLAGS'
4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4293set dummy ${ac_tool_prefix}gcc; ac_word=$2
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295$as_echo_n "checking for $ac_word... " >&6; }
4296if ${ac_cv_prog_CC+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298else
4299 if test -n "$CC"; then
4300 ac_cv_prog_CC="$CC" # Let the user override the test.
4301else
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4304do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313done
4314 done
4315IFS=$as_save_IFS
4316
4317fi
4318fi
4319CC=$ac_cv_prog_CC
4320if test -n "$CC"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4322$as_echo "$CC" >&6; }
4323else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325$as_echo "no" >&6; }
4326fi
4327
4328
4329fi
4330if test -z "$ac_cv_prog_CC"; then
4331 ac_ct_CC=$CC
4332 # Extract the first word of "gcc", so it can be a program name with args.
4333set dummy gcc; ac_word=$2
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335$as_echo_n "checking for $ac_word... " >&6; }
4336if ${ac_cv_prog_ac_ct_CC+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338else
4339 if test -n "$ac_ct_CC"; then
4340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4341else
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_CC="gcc"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353done
4354 done
4355IFS=$as_save_IFS
4356
4357fi
4358fi
4359ac_ct_CC=$ac_cv_prog_ac_ct_CC
4360if test -n "$ac_ct_CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4362$as_echo "$ac_ct_CC" >&6; }
4363else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365$as_echo "no" >&6; }
4366fi
4367
4368 if test "x$ac_ct_CC" = x; then
4369 CC=""
4370 else
4371 case $cross_compiling:$ac_tool_warned in
4372yes:)
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375ac_tool_warned=yes ;;
4376esac
4377 CC=$ac_ct_CC
4378 fi
4379else
4380 CC="$ac_cv_prog_CC"
4381fi
4382
4383if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4386set dummy ${ac_tool_prefix}cc; ac_word=$2
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
4389if ${ac_cv_prog_CC+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391else
4392 if test -n "$CC"; then
4393 ac_cv_prog_CC="$CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_CC="${ac_tool_prefix}cc"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407 done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412CC=$ac_cv_prog_CC
4413if test -n "$CC"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4415$as_echo "$CC" >&6; }
4416else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420
4421
4422 fi
4423fi
4424if test -z "$CC"; then
4425 # Extract the first word of "cc", so it can be a program name with args.
4426set dummy cc; ac_word=$2
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428$as_echo_n "checking for $ac_word... " >&6; }
4429if ${ac_cv_prog_CC+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431else
4432 if test -n "$CC"; then
4433 ac_cv_prog_CC="$CC" # Let the user override the test.
4434else
4435 ac_prog_rejected=no
4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4444 ac_prog_rejected=yes
4445 continue
4446 fi
4447 ac_cv_prog_CC="cc"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451done
4452 done
4453IFS=$as_save_IFS
4454
4455if test $ac_prog_rejected = yes; then
4456 # We found a bogon in the path, so make sure we never use it.
4457 set dummy $ac_cv_prog_CC
4458 shift
4459 if test $# != 0; then
4460 # We chose a different compiler from the bogus one.
4461 # However, it has the same basename, so the bogon will be chosen
4462 # first if we set CC to just the basename; use the full file name.
4463 shift
4464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4465 fi
4466fi
4467fi
4468fi
4469CC=$ac_cv_prog_CC
4470if test -n "$CC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4472$as_echo "$CC" >&6; }
4473else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475$as_echo "no" >&6; }
4476fi
4477
4478
4479fi
4480if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 for ac_prog in cl.exe
4483 do
4484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
4488if ${ac_cv_prog_CC+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490else
4491 if test -n "$CC"; then
4492 ac_cv_prog_CC="$CC" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506 done
4507IFS=$as_save_IFS
4508
4509fi
4510fi
4511CC=$ac_cv_prog_CC
4512if test -n "$CC"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4514$as_echo "$CC" >&6; }
4515else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518fi
4519
4520
4521 test -n "$CC" && break
4522 done
4523fi
4524if test -z "$CC"; then
4525 ac_ct_CC=$CC
4526 for ac_prog in cl.exe
4527do
4528 # Extract the first word of "$ac_prog", so it can be a program name with args.
4529set dummy $ac_prog; ac_word=$2
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531$as_echo_n "checking for $ac_word... " >&6; }
4532if ${ac_cv_prog_ac_ct_CC+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535 if test -n "$ac_ct_CC"; then
4536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_ac_ct_CC="$ac_prog"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549done
4550 done
4551IFS=$as_save_IFS
4552
4553fi
4554fi
4555ac_ct_CC=$ac_cv_prog_ac_ct_CC
4556if test -n "$ac_ct_CC"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4558$as_echo "$ac_ct_CC" >&6; }
4559else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561$as_echo "no" >&6; }
4562fi
4563
4564
4565 test -n "$ac_ct_CC" && break
4566done
4567
4568 if test "x$ac_ct_CC" = x; then
4569 CC=""
4570 else
4571 case $cross_compiling:$ac_tool_warned in
4572yes:)
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575ac_tool_warned=yes ;;
4576esac
4577 CC=$ac_ct_CC
4578 fi
4579fi
4580
4581fi
4582
4583
4584test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586as_fn_error $? "no acceptable C compiler found in \$PATH
4587See \`config.log' for more details" "$LINENO" 5; }
4588
4589# Provide some information about the compiler.
4590$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4591set X $ac_compile
4592ac_compiler=$2
4593for ac_option in --version -v -V -qversion; do
4594 { { ac_try="$ac_compiler $ac_option >&5"
4595case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598esac
4599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600$as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4602 ac_status=$?
4603 if test -s conftest.err; then
4604 sed '10a\
4605... rest of stderr output deleted ...
4606 10q' conftest.err >conftest.er1
4607 cat conftest.er1 >&5
4608 fi
4609 rm -f conftest.er1 conftest.err
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612done
4613
4614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625ac_clean_files_save=$ac_clean_files
4626ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4627# Try to create an executable without -o first, disregard a.out.
4628# It will help us diagnose broken compilers, and finding out an intuition
4629# of exeext.
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4631$as_echo_n "checking whether the C compiler works... " >&6; }
4632ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4633
4634# The possible output files:
4635ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4636
4637ac_rmfiles=
4638for ac_file in $ac_files
4639do
4640 case $ac_file in
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4643 esac
4644done
4645rm -f $ac_rmfiles
4646
4647if { { ac_try="$ac_link_default"
4648case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651esac
4652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653$as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_link_default") 2>&5
4655 ac_status=$?
4656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; then :
4658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4659# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4660# in a Makefile. We should not override ac_cv_exeext if it was cached,
4661# so that the user can short-circuit this test for compilers unknown to
4662# Autoconf.
4663for ac_file in $ac_files ''
4664do
4665 test -f "$ac_file" || continue
4666 case $ac_file in
4667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4668 ;;
4669 [ab].out )
4670 # We found the default executable, but exeext='' is most
4671 # certainly right.
4672 break;;
4673 *.* )
4674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4675 then :; else
4676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4677 fi
4678 # We set ac_cv_exeext here because the later test for it is not
4679 # safe: cross compilers may not add the suffix if given an `-o'
4680 # argument, so we may need to know it at that point already.
4681 # Even if this section looks crufty: it has the advantage of
4682 # actually working.
4683 break;;
4684 * )
4685 break;;
4686 esac
4687done
4688test "$ac_cv_exeext" = no && ac_cv_exeext=
4689
4690else
4691 ac_file=''
4692fi
4693if test -z "$ac_file"; then :
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
4696$as_echo "$as_me: failed program was:" >&5
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
4699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701as_fn_error 77 "C compiler cannot create executables
4702See \`config.log' for more details" "$LINENO" 5; }
4703else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705$as_echo "yes" >&6; }
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4708$as_echo_n "checking for C compiler default output file name... " >&6; }
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4710$as_echo "$ac_file" >&6; }
4711ac_exeext=$ac_cv_exeext
4712
4713rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4714ac_clean_files=$ac_clean_files_save
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4716$as_echo_n "checking for suffix of executables... " >&6; }
4717if { { ac_try="$ac_link"
4718case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723$as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_link") 2>&5
4725 ac_status=$?
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; then :
4728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4729# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4730# work properly (i.e., refer to `conftest.exe'), while it won't with
4731# `rm'.
4732for ac_file in conftest.exe conftest conftest.*; do
4733 test -f "$ac_file" || continue
4734 case $ac_file in
4735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4737 break;;
4738 * ) break;;
4739 esac
4740done
4741else
4742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4745See \`config.log' for more details" "$LINENO" 5; }
4746fi
4747rm -f conftest conftest$ac_cv_exeext
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4749$as_echo "$ac_cv_exeext" >&6; }
4750
4751rm -f conftest.$ac_ext
4752EXEEXT=$ac_cv_exeext
4753ac_exeext=$EXEEXT
4754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h. */
4756#include <stdio.h>
4757int
4758main ()
4759{
4760FILE *f = fopen ("conftest.out", "w");
4761 return ferror (f) || fclose (f) != 0;
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
4767ac_clean_files="$ac_clean_files conftest.out"
4768# Check that the compiler produces executables we can run. If not, either
4769# the compiler is broken, or we cross compile.
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4771$as_echo_n "checking whether we are cross compiling... " >&6; }
4772if test "$cross_compiling" != yes; then
4773 { { ac_try="$ac_link"
4774case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777esac
4778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779$as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_link") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784 if { ac_try='./conftest$ac_cv_exeext'
4785 { { case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788esac
4789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790$as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_try") 2>&5
4792 ac_status=$?
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; }; then
4795 cross_compiling=no
4796 else
4797 if test "$cross_compiling" = maybe; then
4798 cross_compiling=yes
4799 else
4800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4802as_fn_error $? "cannot run C compiled programs.
4803If you meant to cross compile, use \`--host'.
4804See \`config.log' for more details" "$LINENO" 5; }
4805 fi
4806 fi
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4809$as_echo "$cross_compiling" >&6; }
4810
4811rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4812ac_clean_files=$ac_clean_files_save
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4814$as_echo_n "checking for suffix of object files... " >&6; }
4815if ${ac_cv_objext+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h. */
4820
4821int
4822main ()
4823{
4824
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829rm -f conftest.o conftest.obj
4830if { { ac_try="$ac_compile"
4831case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834esac
4835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836$as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_compile") 2>&5
4838 ac_status=$?
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; }; then :
4841 for ac_file in conftest.o conftest.obj conftest.*; do
4842 test -f "$ac_file" || continue;
4843 case $ac_file in
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4846 break;;
4847 esac
4848done
4849else
4850 $as_echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855as_fn_error $? "cannot compute suffix of object files: cannot compile
4856See \`config.log' for more details" "$LINENO" 5; }
4857fi
4858rm -f conftest.$ac_cv_objext conftest.$ac_ext
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4861$as_echo "$ac_cv_objext" >&6; }
4862OBJEXT=$ac_cv_objext
4863ac_objext=$OBJEXT
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4865$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4866if ${ac_cv_c_compiler_gnu+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868else
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870/* end confdefs.h. */
4871
4872int
4873main ()
4874{
4875#ifndef __GNUC__
4876 choke me
4877#endif
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
4883if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_compiler_gnu=yes
4885else
4886 ac_compiler_gnu=no
4887fi
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889ac_cv_c_compiler_gnu=$ac_compiler_gnu
4890
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4893$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4894if test $ac_compiler_gnu = yes; then
4895 GCC=yes
4896else
4897 GCC=
4898fi
4899ac_test_CFLAGS=${CFLAGS+set}
4900ac_save_CFLAGS=$CFLAGS
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4902$as_echo_n "checking whether $CC accepts -g... " >&6; }
4903if ${ac_cv_prog_cc_g+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905else
4906 ac_save_c_werror_flag=$ac_c_werror_flag
4907 ac_c_werror_flag=yes
4908 ac_cv_prog_cc_g=no
4909 CFLAGS="-g"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912
4913int
4914main ()
4915{
4916
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921if ac_fn_c_try_compile "$LINENO"; then :
4922 ac_cv_prog_cc_g=yes
4923else
4924 CFLAGS=""
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h. */
4927
4928int
4929main ()
4930{
4931
4932 ;
4933 return 0;
4934}
4935_ACEOF
4936if ac_fn_c_try_compile "$LINENO"; then :
4937
4938else
4939 ac_c_werror_flag=$ac_save_c_werror_flag
4940 CFLAGS="-g"
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h. */
4943
4944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952if ac_fn_c_try_compile "$LINENO"; then :
4953 ac_cv_prog_cc_g=yes
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_c_werror_flag=$ac_save_c_werror_flag
4961fi
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4963$as_echo "$ac_cv_prog_cc_g" >&6; }
4964if test "$ac_test_CFLAGS" = set; then
4965 CFLAGS=$ac_save_CFLAGS
4966elif test $ac_cv_prog_cc_g = yes; then
4967 if test "$GCC" = yes; then
4968 CFLAGS="-g -O2"
4969 else
4970 CFLAGS="-g"
4971 fi
4972else
4973 if test "$GCC" = yes; then
4974 CFLAGS="-O2"
4975 else
4976 CFLAGS=
4977 fi
4978fi
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4980$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4981if ${ac_cv_prog_cc_c89+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 ac_cv_prog_cc_c89=no
4985ac_save_CC=$CC
4986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h. */
4988#include <stdarg.h>
4989#include <stdio.h>
4990struct stat;
4991/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4992struct buf { int x; };
4993FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994static char *e (p, i)
4995 char **p;
4996 int i;
4997{
4998 return p[i];
4999}
5000static char *f (char * (*g) (char **, int), char **p, ...)
5001{
5002 char *s;
5003 va_list v;
5004 va_start (v,p);
5005 s = g (p, va_arg (v,int));
5006 va_end (v);
5007 return s;
5008}
5009
5010/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5011 function prototypes and stuff, but not '\xHH' hex character constants.
5012 These don't provoke an error unfortunately, instead are silently treated
5013 as 'x'. The following induces an error, until -std is added to get
5014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5015 array size at least. It's necessary to write '\x00'==0 to get something
5016 that's true only with -std. */
5017int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5018
5019/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5020 inside strings and character constants. */
5021#define FOO(x) 'x'
5022int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5023
5024int test (int i, double x);
5025struct s1 {int (*f) (int a);};
5026struct s2 {int (*f) (double a);};
5027int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5028int argc;
5029char **argv;
5030int
5031main ()
5032{
5033return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5040do
5041 CC="$ac_save_CC $ac_arg"
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_c89=$ac_arg
5044fi
5045rm -f core conftest.err conftest.$ac_objext
5046 test "x$ac_cv_prog_cc_c89" != "xno" && break
5047done
5048rm -f conftest.$ac_ext
5049CC=$ac_save_CC
5050
5051fi
5052# AC_CACHE_VAL
5053case "x$ac_cv_prog_cc_c89" in
5054 x)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5056$as_echo "none needed" >&6; } ;;
5057 xno)
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5059$as_echo "unsupported" >&6; } ;;
5060 *)
5061 CC="$CC $ac_cv_prog_cc_c89"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5064esac
5065if test "x$ac_cv_prog_cc_c89" != xno; then :
5066
5067fi
5068
5069ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5076$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5077if ${ac_cv_prog_cc_c99+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079else
5080 ac_cv_prog_cc_c99=no
5081ac_save_CC=$CC
5082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h. */
5084#include <stdarg.h>
5085#include <stdbool.h>
5086#include <stdlib.h>
5087#include <wchar.h>
5088#include <stdio.h>
5089
5090// Check varargs macros. These examples are taken from C99 6.10.3.5.
5091#define debug(...) fprintf (stderr, __VA_ARGS__)
5092#define showlist(...) puts (#__VA_ARGS__)
5093#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5094static void
5095test_varargs_macros (void)
5096{
5097 int x = 1234;
5098 int y = 5678;
5099 debug ("Flag");
5100 debug ("X = %d\n", x);
5101 showlist (The first, second, and third items.);
5102 report (x>y, "x is %d but y is %d", x, y);
5103}
5104
5105// Check long long types.
5106#define BIG64 18446744073709551615ull
5107#define BIG32 4294967295ul
5108#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5109#if !BIG_OK
5110 your preprocessor is broken;
5111#endif
5112#if BIG_OK
5113#else
5114 your preprocessor is broken;
5115#endif
5116static long long int bignum = -9223372036854775807LL;
5117static unsigned long long int ubignum = BIG64;
5118
5119struct incomplete_array
5120{
5121 int datasize;
5122 double data[];
5123};
5124
5125struct named_init {
5126 int number;
5127 const wchar_t *name;
5128 double average;
5129};
5130
5131typedef const char *ccp;
5132
5133static inline int
5134test_restrict (ccp restrict text)
5135{
5136 // See if C++-style comments work.
5137 // Iterate through items via the restricted pointer.
5138 // Also check for declarations in for loops.
5139 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5140 continue;
5141 return 0;
5142}
5143
5144// Check varargs and va_copy.
5145static void
5146test_varargs (const char *format, ...)
5147{
5148 va_list args;
5149 va_start (args, format);
5150 va_list args_copy;
5151 va_copy (args_copy, args);
5152
5153 const char *str;
5154 int number;
5155 float fnumber;
5156
5157 while (*format)
5158 {
5159 switch (*format++)
5160 {
5161 case 's': // string
5162 str = va_arg (args_copy, const char *);
5163 break;
5164 case 'd': // int
5165 number = va_arg (args_copy, int);
5166 break;
5167 case 'f': // float
5168 fnumber = va_arg (args_copy, double);
5169 break;
5170 default:
5171 break;
5172 }
5173 }
5174 va_end (args_copy);
5175 va_end (args);
5176}
5177
5178int
5179main ()
5180{
5181
5182 // Check bool.
5183 _Bool success = false;
5184
5185 // Check restrict.
5186 if (test_restrict ("String literal") == 0)
5187 success = true;
5188 char *restrict newvar = "Another string";
5189
5190 // Check varargs.
5191 test_varargs ("s, d' f .", "string", 65, 34.234);
5192 test_varargs_macros ();
5193
5194 // Check flexible array members.
5195 struct incomplete_array *ia =
5196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5197 ia->datasize = 10;
5198 for (int i = 0; i < ia->datasize; ++i)
5199 ia->data[i] = i * 1.234;
5200
5201 // Check named initializers.
5202 struct named_init ni = {
5203 .number = 34,
5204 .name = L"Test wide string",
5205 .average = 543.34343,
5206 };
5207
5208 ni.number = 58;
5209
5210 int dynamic_array[ni.number];
5211 dynamic_array[ni.number - 1] = 543;
5212
5213 // work around unused variable warnings
5214 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5215 || dynamic_array[ni.number - 1] != 543);
5216
5217 ;
5218 return 0;
5219}
5220_ACEOF
5221for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5222do
5223 CC="$ac_save_CC $ac_arg"
5224 if ac_fn_c_try_compile "$LINENO"; then :
5225 ac_cv_prog_cc_c99=$ac_arg
5226fi
5227rm -f core conftest.err conftest.$ac_objext
5228 test "x$ac_cv_prog_cc_c99" != "xno" && break
5229done
5230rm -f conftest.$ac_ext
5231CC=$ac_save_CC
5232
5233fi
5234# AC_CACHE_VAL
5235case "x$ac_cv_prog_cc_c99" in
5236 x)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5238$as_echo "none needed" >&6; } ;;
5239 xno)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241$as_echo "unsupported" >&6; } ;;
5242 *)
5243 CC="$CC $ac_cv_prog_cc_c99"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5245$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5246esac
5247if test "x$ac_cv_prog_cc_c99" != xno; then :
5248
5249fi
5250
5251
5252ac_ext=cpp
5253ac_cpp='$CXXCPP $CPPFLAGS'
5254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257if test -z "$CXX"; then
5258 if test -n "$CCC"; then
5259 CXX=$CCC
5260 else
5261 if test -n "$ac_tool_prefix"; then
5262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5263 do
5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if ${ac_cv_prog_CXX+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270else
5271 if test -n "$CXX"; then
5272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285done
5286 done
5287IFS=$as_save_IFS
5288
5289fi
5290fi
5291CXX=$ac_cv_prog_CXX
5292if test -n "$CXX"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5294$as_echo "$CXX" >&6; }
5295else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298fi
5299
5300
5301 test -n "$CXX" && break
5302 done
5303fi
5304if test -z "$CXX"; then
5305 ac_ct_CXX=$CXX
5306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5307do
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309set dummy $ac_prog; ac_word=$2
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311$as_echo_n "checking for $ac_word... " >&6; }
5312if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314else
5315 if test -n "$ac_ct_CXX"; then
5316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_CXX="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330 done
5331IFS=$as_save_IFS
5332
5333fi
5334fi
5335ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336if test -n "$ac_ct_CXX"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5338$as_echo "$ac_ct_CXX" >&6; }
5339else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341$as_echo "no" >&6; }
5342fi
5343
5344
5345 test -n "$ac_ct_CXX" && break
5346done
5347
5348 if test "x$ac_ct_CXX" = x; then
5349 CXX="g++"
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352yes:)
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355ac_tool_warned=yes ;;
5356esac
5357 CXX=$ac_ct_CXX
5358 fi
5359fi
5360
5361 fi
5362fi
5363# Provide some information about the compiler.
5364$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5365set X $ac_compile
5366ac_compiler=$2
5367for ac_option in --version -v -V -qversion; do
5368 { { ac_try="$ac_compiler $ac_option >&5"
5369case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5374$as_echo "$ac_try_echo"; } >&5
5375 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5376 ac_status=$?
5377 if test -s conftest.err; then
5378 sed '10a\
5379... rest of stderr output deleted ...
5380 10q' conftest.err >conftest.er1
5381 cat conftest.er1 >&5
5382 fi
5383 rm -f conftest.er1 conftest.err
5384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5385 test $ac_status = 0; }
5386done
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5389$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5390if ${ac_cv_cxx_compiler_gnu+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395
5396int
5397main ()
5398{
5399#ifndef __GNUC__
5400 choke me
5401#endif
5402
5403 ;
5404 return 0;
5405}
5406_ACEOF
5407if ac_fn_cxx_try_compile "$LINENO"; then :
5408 ac_compiler_gnu=yes
5409else
5410 ac_compiler_gnu=no
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5414
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5417$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5418if test $ac_compiler_gnu = yes; then
5419 GXX=yes
5420else
5421 GXX=
5422fi
5423ac_test_CXXFLAGS=${CXXFLAGS+set}
5424ac_save_CXXFLAGS=$CXXFLAGS
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5426$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5427if ${ac_cv_prog_cxx_g+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429else
5430 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5431 ac_cxx_werror_flag=yes
5432 ac_cv_prog_cxx_g=no
5433 CXXFLAGS="-g"
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436
5437int
5438main ()
5439{
5440
5441 ;
5442 return 0;
5443}
5444_ACEOF
5445if ac_fn_cxx_try_compile "$LINENO"; then :
5446 ac_cv_prog_cxx_g=yes
5447else
5448 CXXFLAGS=""
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h. */
5451
5452int
5453main ()
5454{
5455
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460if ac_fn_cxx_try_compile "$LINENO"; then :
5461
5462else
5463 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5464 CXXFLAGS="-g"
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h. */
5467
5468int
5469main ()
5470{
5471
5472 ;
5473 return 0;
5474}
5475_ACEOF
5476if ac_fn_cxx_try_compile "$LINENO"; then :
5477 ac_cv_prog_cxx_g=yes
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5487$as_echo "$ac_cv_prog_cxx_g" >&6; }
5488if test "$ac_test_CXXFLAGS" = set; then
5489 CXXFLAGS=$ac_save_CXXFLAGS
5490elif test $ac_cv_prog_cxx_g = yes; then
5491 if test "$GXX" = yes; then
5492 CXXFLAGS="-g -O2"
5493 else
5494 CXXFLAGS="-g"
5495 fi
5496else
5497 if test "$GXX" = yes; then
5498 CXXFLAGS="-O2"
5499 else
5500 CXXFLAGS=
5501 fi
5502fi
5503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509
5510# We must set the default linker to the linker used by gcc for the correct
5511# operation of libtool. If LD is not defined and we are using gcc, try to
5512# set the LD default to the ld used by gcc.
5513if test -z "$LD"; then
5514 if test "$GCC" = yes; then
5515 case $build in
5516 *-*-mingw*)
5517 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5518 *)
5519 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5520 esac
5521 case $gcc_prog_ld in
5522 # Accept absolute paths.
5523 [\\/]* | [A-Za-z]:[\\/]*)
5524 LD="$gcc_prog_ld" ;;
5525 esac
5526 fi
5527fi
5528
5529# Check whether -static-libstdc++ -static-libgcc is supported.
5530have_static_libs=no
5531if test "$GCC" = yes; then
5532 saved_LDFLAGS="$LDFLAGS"
5533
5534 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5536$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5537 ac_ext=cpp
5538ac_cpp='$CXXCPP $CPPFLAGS'
5539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5542
5543
5544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h. */
5546
5547#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5548#error -static-libstdc++ not implemented
5549#endif
5550int main() {}
5551_ACEOF
5552if ac_fn_cxx_try_link "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554$as_echo "yes" >&6; }; have_static_libs=yes
5555else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558fi
5559rm -f core conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561 ac_ext=c
5562ac_cpp='$CPP $CPPFLAGS'
5563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566
5567
5568 LDFLAGS="$saved_LDFLAGS"
5569fi
5570
5571
5572
5573
5574if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5576set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if ${ac_cv_prog_GNATBIND+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581else
5582 if test -n "$GNATBIND"; then
5583 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596done
5597 done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602GNATBIND=$ac_cv_prog_GNATBIND
5603if test -n "$GNATBIND"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5605$as_echo "$GNATBIND" >&6; }
5606else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611
5612fi
5613if test -z "$ac_cv_prog_GNATBIND"; then
5614 ac_ct_GNATBIND=$GNATBIND
5615 # Extract the first word of "gnatbind", so it can be a program name with args.
5616set dummy gnatbind; ac_word=$2
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621else
5622 if test -n "$ac_ct_GNATBIND"; then
5623 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636done
5637 done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5643if test -n "$ac_ct_GNATBIND"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5645$as_echo "$ac_ct_GNATBIND" >&6; }
5646else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
5649fi
5650
5651 if test "x$ac_ct_GNATBIND" = x; then
5652 GNATBIND="no"
5653 else
5654 case $cross_compiling:$ac_tool_warned in
5655yes:)
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658ac_tool_warned=yes ;;
5659esac
5660 GNATBIND=$ac_ct_GNATBIND
5661 fi
5662else
5663 GNATBIND="$ac_cv_prog_GNATBIND"
5664fi
5665
5666if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5668set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if ${ac_cv_prog_GNATMAKE+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$GNATMAKE"; then
5675 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694GNATMAKE=$ac_cv_prog_GNATMAKE
5695if test -n "$GNATMAKE"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5697$as_echo "$GNATMAKE" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704fi
5705if test -z "$ac_cv_prog_GNATMAKE"; then
5706 ac_ct_GNATMAKE=$GNATMAKE
5707 # Extract the first word of "gnatmake", so it can be a program name with args.
5708set dummy gnatmake; ac_word=$2
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713else
5714 if test -n "$ac_ct_GNATMAKE"; then
5715 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729 done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5735if test -n "$ac_ct_GNATMAKE"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5737$as_echo "$ac_ct_GNATMAKE" >&6; }
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743 if test "x$ac_ct_GNATMAKE" = x; then
5744 GNATMAKE="no"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752 GNATMAKE=$ac_ct_GNATMAKE
5753 fi
5754else
5755 GNATMAKE="$ac_cv_prog_GNATMAKE"
5756fi
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5759$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5760if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 cat >conftest.adb <<EOF
5764pragma Warnings (Off);
5765with System.CRTL;
5766pragma Warnings (On);
5767use type System.CRTL.int64;
5768procedure conftest is begin null; end conftest;
5769EOF
5770acx_cv_cc_gcc_supports_ada=no
5771# There is a bug in old released versions of GCC which causes the
5772# driver to exit successfully when the appropriate language module
5773# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5774# Therefore we must check for the error message as well as an
5775# unsuccessful exit.
5776# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5777# given a .adb file, but produce no object file. So we must check
5778# if an object file was really produced to guard against this.
5779errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5780if test x"$errors" = x && test -f conftest.$ac_objext; then
5781 acx_cv_cc_gcc_supports_ada=yes
5782fi
5783rm -f conftest.*
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5786$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5787
5788if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5789 have_gnat=yes
5790else
5791 have_gnat=no
5792fi
5793
5794
5795
5796if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5798set dummy ${ac_tool_prefix}gdc; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if ${ac_cv_prog_GDC+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 if test -n "$GDC"; then
5805 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824GDC=$ac_cv_prog_GDC
5825if test -n "$GDC"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5827$as_echo "$GDC" >&6; }
5828else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833
5834fi
5835if test -z "$ac_cv_prog_GDC"; then
5836 ac_ct_GDC=$GDC
5837 # Extract the first word of "gdc", so it can be a program name with args.
5838set dummy gdc; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$ac_ct_GDC"; then
5845 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_ac_ct_GDC="gdc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5865if test -n "$ac_ct_GDC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5867$as_echo "$ac_ct_GDC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873 if test "x$ac_ct_GDC" = x; then
5874 GDC="no"
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877yes:)
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880ac_tool_warned=yes ;;
5881esac
5882 GDC=$ac_ct_GDC
5883 fi
5884else
5885 GDC="$ac_cv_prog_GDC"
5886fi
5887
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5889$as_echo_n "checking whether the D compiler works... " >&6; }
5890if ${acx_cv_d_compiler_works+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892else
5893 cat >conftest.d <<EOF
5894module conftest; int main() { return 0; }
5895EOF
5896acx_cv_d_compiler_works=no
5897if test "x$GDC" != xno; then
5898 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5899 if test x"$errors" = x && test -f conftest.$ac_objext; then
5900 acx_cv_d_compiler_works=yes
5901 fi
5902 rm -f conftest.*
5903fi
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5906$as_echo "$acx_cv_d_compiler_works" >&6; }
5907if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5908 have_gdc=yes
5909else
5910 have_gdc=no
5911fi
5912
5913for ac_prog in cargo
5914do
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916set dummy $ac_prog; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
5919if ${ac_cv_prog_CARGO+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$CARGO"; then
5923 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_CARGO="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937 done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942CARGO=$ac_cv_prog_CARGO
5943if test -n "$CARGO"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5945$as_echo "$CARGO" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952 test -n "$CARGO" && break
5953done
5954test -n "$CARGO" || CARGO="no"
5955
5956if test "x$CARGO" != xno; then
5957 have_cargo=yes
5958else
5959 have_cargo=no
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5962$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5963if ${gcc_cv_prog_cmp_skip+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 echo abfoo >t1
5967 echo cdfoo >t2
5968 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5969 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5970 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5971 :
5972 else
5973 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5974 fi
5975 fi
5976 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5977 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5978 :
5979 else
5980 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5981 fi
5982 fi
5983 rm t1 t2
5984
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5987$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5988do_compare="$gcc_cv_prog_cmp_skip"
5989
5990
5991
5992# Check whether --enable-bootstrap was given.
5993if test "${enable_bootstrap+set}" = set; then :
5994 enableval=$enable_bootstrap;
5995else
5996 enable_bootstrap=default
5997fi
5998
5999
6000# Issue errors and warnings for invalid/strange bootstrap combinations.
6001if test -r $srcdir/gcc/configure; then
6002 have_compiler=yes
6003else
6004 have_compiler=no
6005fi
6006
6007case "$have_compiler:$host:$target:$enable_bootstrap" in
6008 *:*:*:no) ;;
6009
6010 # Default behavior. Enable bootstrap if we have a compiler
6011 # and we are in a native configuration.
6012 yes:$build:$build:default)
6013 enable_bootstrap=yes ;;
6014
6015 *:*:*:default)
6016 enable_bootstrap=no ;;
6017
6018 # We have a compiler and we are in a native configuration, bootstrap is ok
6019 yes:$build:$build:yes)
6020 ;;
6021
6022 # Other configurations, but we have a compiler. Assume the user knows
6023 # what he's doing.
6024 yes:*:*:yes)
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6026$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6027 ;;
6028
6029 # No compiler: if they passed --enable-bootstrap explicitly, fail
6030 no:*:*:yes)
6031 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6032
6033 # Fail if wrong command line
6034 *)
6035 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
6036 ;;
6037esac
6038
6039# When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
6040# C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
6041# require C++14 (or higher).
6042if test "$enable_bootstrap:$GXX" = "yes:yes"; then
6043 CXX="$CXX -std=c++14"
6044elif test "$have_compiler" = yes; then
6045 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
6046 ac_ext=cpp
6047ac_cpp='$CXXCPP $CPPFLAGS'
6048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6051 ac_success=no
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
6054$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
6055if ${ax_cv_cxx_compile_cxx14+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057else
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h. */
6060
6061
6062// If the compiler admits that it is not ready for C++11, why torture it?
6063// Hopefully, this will speed up the test.
6064
6065#ifndef __cplusplus
6066
6067#error "This is not a C++ compiler"
6068
6069#elif __cplusplus < 201103L
6070
6071#error "This is not a C++11 compiler"
6072
6073#else
6074
6075namespace cxx11
6076{
6077
6078 namespace test_static_assert
6079 {
6080
6081 template <typename T>
6082 struct check
6083 {
6084 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6085 };
6086
6087 }
6088
6089 namespace test_final_override
6090 {
6091
6092 struct Base
6093 {
6094 virtual ~Base() {}
6095 virtual void f() {}
6096 };
6097
6098 struct Derived : public Base
6099 {
6100 virtual ~Derived() override {}
6101 virtual void f() override {}
6102 };
6103
6104 }
6105
6106 namespace test_double_right_angle_brackets
6107 {
6108
6109 template < typename T >
6110 struct check {};
6111
6112 typedef check<void> single_type;
6113 typedef check<check<void>> double_type;
6114 typedef check<check<check<void>>> triple_type;
6115 typedef check<check<check<check<void>>>> quadruple_type;
6116
6117 }
6118
6119 namespace test_decltype
6120 {
6121
6122 int
6123 f()
6124 {
6125 int a = 1;
6126 decltype(a) b = 2;
6127 return a + b;
6128 }
6129
6130 }
6131
6132 namespace test_type_deduction
6133 {
6134
6135 template < typename T1, typename T2 >
6136 struct is_same
6137 {
6138 static const bool value = false;
6139 };
6140
6141 template < typename T >
6142 struct is_same<T, T>
6143 {
6144 static const bool value = true;
6145 };
6146
6147 template < typename T1, typename T2 >
6148 auto
6149 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6150 {
6151 return a1 + a2;
6152 }
6153
6154 int
6155 test(const int c, volatile int v)
6156 {
6157 static_assert(is_same<int, decltype(0)>::value == true, "");
6158 static_assert(is_same<int, decltype(c)>::value == false, "");
6159 static_assert(is_same<int, decltype(v)>::value == false, "");
6160 auto ac = c;
6161 auto av = v;
6162 auto sumi = ac + av + 'x';
6163 auto sumf = ac + av + 1.0;
6164 static_assert(is_same<int, decltype(ac)>::value == true, "");
6165 static_assert(is_same<int, decltype(av)>::value == true, "");
6166 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6167 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6168 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6169 return (sumf > 0.0) ? sumi : add(c, v);
6170 }
6171
6172 }
6173
6174 namespace test_noexcept
6175 {
6176
6177 int f() { return 0; }
6178 int g() noexcept { return 0; }
6179
6180 static_assert(noexcept(f()) == false, "");
6181 static_assert(noexcept(g()) == true, "");
6182
6183 }
6184
6185 namespace test_constexpr
6186 {
6187
6188 template < typename CharT >
6189 unsigned long constexpr
6190 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6191 {
6192 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6193 }
6194
6195 template < typename CharT >
6196 unsigned long constexpr
6197 strlen_c(const CharT *const s) noexcept
6198 {
6199 return strlen_c_r(s, 0UL);
6200 }
6201
6202 static_assert(strlen_c("") == 0UL, "");
6203 static_assert(strlen_c("1") == 1UL, "");
6204 static_assert(strlen_c("example") == 7UL, "");
6205 static_assert(strlen_c("another\0example") == 7UL, "");
6206
6207 }
6208
6209 namespace test_rvalue_references
6210 {
6211
6212 template < int N >
6213 struct answer
6214 {
6215 static constexpr int value = N;
6216 };
6217
6218 answer<1> f(int&) { return answer<1>(); }
6219 answer<2> f(const int&) { return answer<2>(); }
6220 answer<3> f(int&&) { return answer<3>(); }
6221
6222 void
6223 test()
6224 {
6225 int i = 0;
6226 const int c = 0;
6227 static_assert(decltype(f(i))::value == 1, "");
6228 static_assert(decltype(f(c))::value == 2, "");
6229 static_assert(decltype(f(0))::value == 3, "");
6230 }
6231
6232 }
6233
6234 namespace test_uniform_initialization
6235 {
6236
6237 struct test
6238 {
6239 static const int zero {};
6240 static const int one {1};
6241 };
6242
6243 static_assert(test::zero == 0, "");
6244 static_assert(test::one == 1, "");
6245
6246 }
6247
6248 namespace test_lambdas
6249 {
6250
6251 void
6252 test1()
6253 {
6254 auto lambda1 = [](){};
6255 auto lambda2 = lambda1;
6256 lambda1();
6257 lambda2();
6258 }
6259
6260 int
6261 test2()
6262 {
6263 auto a = [](int i, int j){ return i + j; }(1, 2);
6264 auto b = []() -> int { return '0'; }();
6265 auto c = [=](){ return a + b; }();
6266 auto d = [&](){ return c; }();
6267 auto e = [a, &b](int x) mutable {
6268 const auto identity = [](int y){ return y; };
6269 for (auto i = 0; i < a; ++i)
6270 a += b--;
6271 return x + identity(a + b);
6272 }(0);
6273 return a + b + c + d + e;
6274 }
6275
6276 int
6277 test3()
6278 {
6279 const auto nullary = [](){ return 0; };
6280 const auto unary = [](int x){ return x; };
6281 using nullary_t = decltype(nullary);
6282 using unary_t = decltype(unary);
6283 const auto higher1st = [](nullary_t f){ return f(); };
6284 const auto higher2nd = [unary](nullary_t f1){
6285 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6286 };
6287 return higher1st(nullary) + higher2nd(nullary)(unary);
6288 }
6289
6290 }
6291
6292 namespace test_variadic_templates
6293 {
6294
6295 template <int...>
6296 struct sum;
6297
6298 template <int N0, int... N1toN>
6299 struct sum<N0, N1toN...>
6300 {
6301 static constexpr auto value = N0 + sum<N1toN...>::value;
6302 };
6303
6304 template <>
6305 struct sum<>
6306 {
6307 static constexpr auto value = 0;
6308 };
6309
6310 static_assert(sum<>::value == 0, "");
6311 static_assert(sum<1>::value == 1, "");
6312 static_assert(sum<23>::value == 23, "");
6313 static_assert(sum<1, 2>::value == 3, "");
6314 static_assert(sum<5, 5, 11>::value == 21, "");
6315 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6316
6317 }
6318
6319 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6320 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6321 // because of this.
6322 namespace test_template_alias_sfinae
6323 {
6324
6325 struct foo {};
6326
6327 template<typename T>
6328 using member = typename T::member_type;
6329
6330 template<typename T>
6331 void func(...) {}
6332
6333 template<typename T>
6334 void func(member<T>*) {}
6335
6336 void test();
6337
6338 void test() { func<foo>(0); }
6339
6340 }
6341
6342} // namespace cxx11
6343
6344#endif // __cplusplus >= 201103L
6345
6346
6347
6348
6349// If the compiler admits that it is not ready for C++14, why torture it?
6350// Hopefully, this will speed up the test.
6351
6352#ifndef __cplusplus
6353
6354#error "This is not a C++ compiler"
6355
6356#elif __cplusplus < 201402L
6357
6358#error "This is not a C++14 compiler"
6359
6360#else
6361
6362namespace cxx14
6363{
6364
6365 namespace test_polymorphic_lambdas
6366 {
6367
6368 int
6369 test()
6370 {
6371 const auto lambda = [](auto&&... args){
6372 const auto istiny = [](auto x){
6373 return (sizeof(x) == 1UL) ? 1 : 0;
6374 };
6375 const int aretiny[] = { istiny(args)... };
6376 return aretiny[0];
6377 };
6378 return lambda(1, 1L, 1.0f, '1');
6379 }
6380
6381 }
6382
6383 namespace test_binary_literals
6384 {
6385
6386 constexpr auto ivii = 0b0000000000101010;
6387 static_assert(ivii == 42, "wrong value");
6388
6389 }
6390
6391 namespace test_generalized_constexpr
6392 {
6393
6394 template < typename CharT >
6395 constexpr unsigned long
6396 strlen_c(const CharT *const s) noexcept
6397 {
6398 auto length = 0UL;
6399 for (auto p = s; *p; ++p)
6400 ++length;
6401 return length;
6402 }
6403
6404 static_assert(strlen_c("") == 0UL, "");
6405 static_assert(strlen_c("x") == 1UL, "");
6406 static_assert(strlen_c("test") == 4UL, "");
6407 static_assert(strlen_c("another\0test") == 7UL, "");
6408
6409 }
6410
6411 namespace test_lambda_init_capture
6412 {
6413
6414 int
6415 test()
6416 {
6417 auto x = 0;
6418 const auto lambda1 = [a = x](int b){ return a + b; };
6419 const auto lambda2 = [a = lambda1(x)](){ return a; };
6420 return lambda2();
6421 }
6422
6423 }
6424
6425 namespace test_digit_separators
6426 {
6427
6428 constexpr auto ten_million = 100'000'000;
6429 static_assert(ten_million == 100000000, "");
6430
6431 }
6432
6433 namespace test_return_type_deduction
6434 {
6435
6436 auto f(int& x) { return x; }
6437 decltype(auto) g(int& x) { return x; }
6438
6439 template < typename T1, typename T2 >
6440 struct is_same
6441 {
6442 static constexpr auto value = false;
6443 };
6444
6445 template < typename T >
6446 struct is_same<T, T>
6447 {
6448 static constexpr auto value = true;
6449 };
6450
6451 int
6452 test()
6453 {
6454 auto x = 0;
6455 static_assert(is_same<int, decltype(f(x))>::value, "");
6456 static_assert(is_same<int&, decltype(g(x))>::value, "");
6457 return x;
6458 }
6459
6460 }
6461
6462} // namespace cxx14
6463
6464#endif // __cplusplus >= 201402L
6465
6466
6467
6468_ACEOF
6469if ac_fn_cxx_try_compile "$LINENO"; then :
6470 ax_cv_cxx_compile_cxx14=yes
6471else
6472 ax_cv_cxx_compile_cxx14=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475fi
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6477$as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6478 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6479 ac_success=yes
6480 fi
6481
6482 if test x$ac_success = xno; then
6483 for alternative in ${ax_cxx_compile_alternatives}; do
6484 switch="-std=gnu++${alternative}"
6485 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6487$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6488if eval \${$cachevar+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490else
6491 ac_save_CXX="$CXX"
6492 CXX="$CXX $switch"
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494/* end confdefs.h. */
6495
6496
6497// If the compiler admits that it is not ready for C++11, why torture it?
6498// Hopefully, this will speed up the test.
6499
6500#ifndef __cplusplus
6501
6502#error "This is not a C++ compiler"
6503
6504#elif __cplusplus < 201103L
6505
6506#error "This is not a C++11 compiler"
6507
6508#else
6509
6510namespace cxx11
6511{
6512
6513 namespace test_static_assert
6514 {
6515
6516 template <typename T>
6517 struct check
6518 {
6519 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6520 };
6521
6522 }
6523
6524 namespace test_final_override
6525 {
6526
6527 struct Base
6528 {
6529 virtual ~Base() {}
6530 virtual void f() {}
6531 };
6532
6533 struct Derived : public Base
6534 {
6535 virtual ~Derived() override {}
6536 virtual void f() override {}
6537 };
6538
6539 }
6540
6541 namespace test_double_right_angle_brackets
6542 {
6543
6544 template < typename T >
6545 struct check {};
6546
6547 typedef check<void> single_type;
6548 typedef check<check<void>> double_type;
6549 typedef check<check<check<void>>> triple_type;
6550 typedef check<check<check<check<void>>>> quadruple_type;
6551
6552 }
6553
6554 namespace test_decltype
6555 {
6556
6557 int
6558 f()
6559 {
6560 int a = 1;
6561 decltype(a) b = 2;
6562 return a + b;
6563 }
6564
6565 }
6566
6567 namespace test_type_deduction
6568 {
6569
6570 template < typename T1, typename T2 >
6571 struct is_same
6572 {
6573 static const bool value = false;
6574 };
6575
6576 template < typename T >
6577 struct is_same<T, T>
6578 {
6579 static const bool value = true;
6580 };
6581
6582 template < typename T1, typename T2 >
6583 auto
6584 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6585 {
6586 return a1 + a2;
6587 }
6588
6589 int
6590 test(const int c, volatile int v)
6591 {
6592 static_assert(is_same<int, decltype(0)>::value == true, "");
6593 static_assert(is_same<int, decltype(c)>::value == false, "");
6594 static_assert(is_same<int, decltype(v)>::value == false, "");
6595 auto ac = c;
6596 auto av = v;
6597 auto sumi = ac + av + 'x';
6598 auto sumf = ac + av + 1.0;
6599 static_assert(is_same<int, decltype(ac)>::value == true, "");
6600 static_assert(is_same<int, decltype(av)>::value == true, "");
6601 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6602 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6603 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6604 return (sumf > 0.0) ? sumi : add(c, v);
6605 }
6606
6607 }
6608
6609 namespace test_noexcept
6610 {
6611
6612 int f() { return 0; }
6613 int g() noexcept { return 0; }
6614
6615 static_assert(noexcept(f()) == false, "");
6616 static_assert(noexcept(g()) == true, "");
6617
6618 }
6619
6620 namespace test_constexpr
6621 {
6622
6623 template < typename CharT >
6624 unsigned long constexpr
6625 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6626 {
6627 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6628 }
6629
6630 template < typename CharT >
6631 unsigned long constexpr
6632 strlen_c(const CharT *const s) noexcept
6633 {
6634 return strlen_c_r(s, 0UL);
6635 }
6636
6637 static_assert(strlen_c("") == 0UL, "");
6638 static_assert(strlen_c("1") == 1UL, "");
6639 static_assert(strlen_c("example") == 7UL, "");
6640 static_assert(strlen_c("another\0example") == 7UL, "");
6641
6642 }
6643
6644 namespace test_rvalue_references
6645 {
6646
6647 template < int N >
6648 struct answer
6649 {
6650 static constexpr int value = N;
6651 };
6652
6653 answer<1> f(int&) { return answer<1>(); }
6654 answer<2> f(const int&) { return answer<2>(); }
6655 answer<3> f(int&&) { return answer<3>(); }
6656
6657 void
6658 test()
6659 {
6660 int i = 0;
6661 const int c = 0;
6662 static_assert(decltype(f(i))::value == 1, "");
6663 static_assert(decltype(f(c))::value == 2, "");
6664 static_assert(decltype(f(0))::value == 3, "");
6665 }
6666
6667 }
6668
6669 namespace test_uniform_initialization
6670 {
6671
6672 struct test
6673 {
6674 static const int zero {};
6675 static const int one {1};
6676 };
6677
6678 static_assert(test::zero == 0, "");
6679 static_assert(test::one == 1, "");
6680
6681 }
6682
6683 namespace test_lambdas
6684 {
6685
6686 void
6687 test1()
6688 {
6689 auto lambda1 = [](){};
6690 auto lambda2 = lambda1;
6691 lambda1();
6692 lambda2();
6693 }
6694
6695 int
6696 test2()
6697 {
6698 auto a = [](int i, int j){ return i + j; }(1, 2);
6699 auto b = []() -> int { return '0'; }();
6700 auto c = [=](){ return a + b; }();
6701 auto d = [&](){ return c; }();
6702 auto e = [a, &b](int x) mutable {
6703 const auto identity = [](int y){ return y; };
6704 for (auto i = 0; i < a; ++i)
6705 a += b--;
6706 return x + identity(a + b);
6707 }(0);
6708 return a + b + c + d + e;
6709 }
6710
6711 int
6712 test3()
6713 {
6714 const auto nullary = [](){ return 0; };
6715 const auto unary = [](int x){ return x; };
6716 using nullary_t = decltype(nullary);
6717 using unary_t = decltype(unary);
6718 const auto higher1st = [](nullary_t f){ return f(); };
6719 const auto higher2nd = [unary](nullary_t f1){
6720 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6721 };
6722 return higher1st(nullary) + higher2nd(nullary)(unary);
6723 }
6724
6725 }
6726
6727 namespace test_variadic_templates
6728 {
6729
6730 template <int...>
6731 struct sum;
6732
6733 template <int N0, int... N1toN>
6734 struct sum<N0, N1toN...>
6735 {
6736 static constexpr auto value = N0 + sum<N1toN...>::value;
6737 };
6738
6739 template <>
6740 struct sum<>
6741 {
6742 static constexpr auto value = 0;
6743 };
6744
6745 static_assert(sum<>::value == 0, "");
6746 static_assert(sum<1>::value == 1, "");
6747 static_assert(sum<23>::value == 23, "");
6748 static_assert(sum<1, 2>::value == 3, "");
6749 static_assert(sum<5, 5, 11>::value == 21, "");
6750 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6751
6752 }
6753
6754 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6755 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6756 // because of this.
6757 namespace test_template_alias_sfinae
6758 {
6759
6760 struct foo {};
6761
6762 template<typename T>
6763 using member = typename T::member_type;
6764
6765 template<typename T>
6766 void func(...) {}
6767
6768 template<typename T>
6769 void func(member<T>*) {}
6770
6771 void test();
6772
6773 void test() { func<foo>(0); }
6774
6775 }
6776
6777} // namespace cxx11
6778
6779#endif // __cplusplus >= 201103L
6780
6781
6782
6783
6784// If the compiler admits that it is not ready for C++14, why torture it?
6785// Hopefully, this will speed up the test.
6786
6787#ifndef __cplusplus
6788
6789#error "This is not a C++ compiler"
6790
6791#elif __cplusplus < 201402L
6792
6793#error "This is not a C++14 compiler"
6794
6795#else
6796
6797namespace cxx14
6798{
6799
6800 namespace test_polymorphic_lambdas
6801 {
6802
6803 int
6804 test()
6805 {
6806 const auto lambda = [](auto&&... args){
6807 const auto istiny = [](auto x){
6808 return (sizeof(x) == 1UL) ? 1 : 0;
6809 };
6810 const int aretiny[] = { istiny(args)... };
6811 return aretiny[0];
6812 };
6813 return lambda(1, 1L, 1.0f, '1');
6814 }
6815
6816 }
6817
6818 namespace test_binary_literals
6819 {
6820
6821 constexpr auto ivii = 0b0000000000101010;
6822 static_assert(ivii == 42, "wrong value");
6823
6824 }
6825
6826 namespace test_generalized_constexpr
6827 {
6828
6829 template < typename CharT >
6830 constexpr unsigned long
6831 strlen_c(const CharT *const s) noexcept
6832 {
6833 auto length = 0UL;
6834 for (auto p = s; *p; ++p)
6835 ++length;
6836 return length;
6837 }
6838
6839 static_assert(strlen_c("") == 0UL, "");
6840 static_assert(strlen_c("x") == 1UL, "");
6841 static_assert(strlen_c("test") == 4UL, "");
6842 static_assert(strlen_c("another\0test") == 7UL, "");
6843
6844 }
6845
6846 namespace test_lambda_init_capture
6847 {
6848
6849 int
6850 test()
6851 {
6852 auto x = 0;
6853 const auto lambda1 = [a = x](int b){ return a + b; };
6854 const auto lambda2 = [a = lambda1(x)](){ return a; };
6855 return lambda2();
6856 }
6857
6858 }
6859
6860 namespace test_digit_separators
6861 {
6862
6863 constexpr auto ten_million = 100'000'000;
6864 static_assert(ten_million == 100000000, "");
6865
6866 }
6867
6868 namespace test_return_type_deduction
6869 {
6870
6871 auto f(int& x) { return x; }
6872 decltype(auto) g(int& x) { return x; }
6873
6874 template < typename T1, typename T2 >
6875 struct is_same
6876 {
6877 static constexpr auto value = false;
6878 };
6879
6880 template < typename T >
6881 struct is_same<T, T>
6882 {
6883 static constexpr auto value = true;
6884 };
6885
6886 int
6887 test()
6888 {
6889 auto x = 0;
6890 static_assert(is_same<int, decltype(f(x))>::value, "");
6891 static_assert(is_same<int&, decltype(g(x))>::value, "");
6892 return x;
6893 }
6894
6895 }
6896
6897} // namespace cxx14
6898
6899#endif // __cplusplus >= 201402L
6900
6901
6902
6903_ACEOF
6904if ac_fn_cxx_try_compile "$LINENO"; then :
6905 eval $cachevar=yes
6906else
6907 eval $cachevar=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 CXX="$ac_save_CXX"
6911fi
6912eval ac_res=\$$cachevar
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6914$as_echo "$ac_res" >&6; }
6915 if eval test x\$$cachevar = xyes; then
6916 CXX="$CXX $switch"
6917 if test -n "$CXXCPP" ; then
6918 CXXCPP="$CXXCPP $switch"
6919 fi
6920 ac_success=yes
6921 break
6922 fi
6923 done
6924 fi
6925
6926 if test x$ac_success = xno; then
6927 for alternative in ${ax_cxx_compile_alternatives}; do
6928 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6929 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6931$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6932if eval \${$cachevar+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934else
6935 ac_save_CXX="$CXX"
6936 CXX="$CXX $switch"
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h. */
6939
6940
6941// If the compiler admits that it is not ready for C++11, why torture it?
6942// Hopefully, this will speed up the test.
6943
6944#ifndef __cplusplus
6945
6946#error "This is not a C++ compiler"
6947
6948#elif __cplusplus < 201103L
6949
6950#error "This is not a C++11 compiler"
6951
6952#else
6953
6954namespace cxx11
6955{
6956
6957 namespace test_static_assert
6958 {
6959
6960 template <typename T>
6961 struct check
6962 {
6963 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6964 };
6965
6966 }
6967
6968 namespace test_final_override
6969 {
6970
6971 struct Base
6972 {
6973 virtual ~Base() {}
6974 virtual void f() {}
6975 };
6976
6977 struct Derived : public Base
6978 {
6979 virtual ~Derived() override {}
6980 virtual void f() override {}
6981 };
6982
6983 }
6984
6985 namespace test_double_right_angle_brackets
6986 {
6987
6988 template < typename T >
6989 struct check {};
6990
6991 typedef check<void> single_type;
6992 typedef check<check<void>> double_type;
6993 typedef check<check<check<void>>> triple_type;
6994 typedef check<check<check<check<void>>>> quadruple_type;
6995
6996 }
6997
6998 namespace test_decltype
6999 {
7000
7001 int
7002 f()
7003 {
7004 int a = 1;
7005 decltype(a) b = 2;
7006 return a + b;
7007 }
7008
7009 }
7010
7011 namespace test_type_deduction
7012 {
7013
7014 template < typename T1, typename T2 >
7015 struct is_same
7016 {
7017 static const bool value = false;
7018 };
7019
7020 template < typename T >
7021 struct is_same<T, T>
7022 {
7023 static const bool value = true;
7024 };
7025
7026 template < typename T1, typename T2 >
7027 auto
7028 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7029 {
7030 return a1 + a2;
7031 }
7032
7033 int
7034 test(const int c, volatile int v)
7035 {
7036 static_assert(is_same<int, decltype(0)>::value == true, "");
7037 static_assert(is_same<int, decltype(c)>::value == false, "");
7038 static_assert(is_same<int, decltype(v)>::value == false, "");
7039 auto ac = c;
7040 auto av = v;
7041 auto sumi = ac + av + 'x';
7042 auto sumf = ac + av + 1.0;
7043 static_assert(is_same<int, decltype(ac)>::value == true, "");
7044 static_assert(is_same<int, decltype(av)>::value == true, "");
7045 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7046 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7047 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7048 return (sumf > 0.0) ? sumi : add(c, v);
7049 }
7050
7051 }
7052
7053 namespace test_noexcept
7054 {
7055
7056 int f() { return 0; }
7057 int g() noexcept { return 0; }
7058
7059 static_assert(noexcept(f()) == false, "");
7060 static_assert(noexcept(g()) == true, "");
7061
7062 }
7063
7064 namespace test_constexpr
7065 {
7066
7067 template < typename CharT >
7068 unsigned long constexpr
7069 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7070 {
7071 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7072 }
7073
7074 template < typename CharT >
7075 unsigned long constexpr
7076 strlen_c(const CharT *const s) noexcept
7077 {
7078 return strlen_c_r(s, 0UL);
7079 }
7080
7081 static_assert(strlen_c("") == 0UL, "");
7082 static_assert(strlen_c("1") == 1UL, "");
7083 static_assert(strlen_c("example") == 7UL, "");
7084 static_assert(strlen_c("another\0example") == 7UL, "");
7085
7086 }
7087
7088 namespace test_rvalue_references
7089 {
7090
7091 template < int N >
7092 struct answer
7093 {
7094 static constexpr int value = N;
7095 };
7096
7097 answer<1> f(int&) { return answer<1>(); }
7098 answer<2> f(const int&) { return answer<2>(); }
7099 answer<3> f(int&&) { return answer<3>(); }
7100
7101 void
7102 test()
7103 {
7104 int i = 0;
7105 const int c = 0;
7106 static_assert(decltype(f(i))::value == 1, "");
7107 static_assert(decltype(f(c))::value == 2, "");
7108 static_assert(decltype(f(0))::value == 3, "");
7109 }
7110
7111 }
7112
7113 namespace test_uniform_initialization
7114 {
7115
7116 struct test
7117 {
7118 static const int zero {};
7119 static const int one {1};
7120 };
7121
7122 static_assert(test::zero == 0, "");
7123 static_assert(test::one == 1, "");
7124
7125 }
7126
7127 namespace test_lambdas
7128 {
7129
7130 void
7131 test1()
7132 {
7133 auto lambda1 = [](){};
7134 auto lambda2 = lambda1;
7135 lambda1();
7136 lambda2();
7137 }
7138
7139 int
7140 test2()
7141 {
7142 auto a = [](int i, int j){ return i + j; }(1, 2);
7143 auto b = []() -> int { return '0'; }();
7144 auto c = [=](){ return a + b; }();
7145 auto d = [&](){ return c; }();
7146 auto e = [a, &b](int x) mutable {
7147 const auto identity = [](int y){ return y; };
7148 for (auto i = 0; i < a; ++i)
7149 a += b--;
7150 return x + identity(a + b);
7151 }(0);
7152 return a + b + c + d + e;
7153 }
7154
7155 int
7156 test3()
7157 {
7158 const auto nullary = [](){ return 0; };
7159 const auto unary = [](int x){ return x; };
7160 using nullary_t = decltype(nullary);
7161 using unary_t = decltype(unary);
7162 const auto higher1st = [](nullary_t f){ return f(); };
7163 const auto higher2nd = [unary](nullary_t f1){
7164 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7165 };
7166 return higher1st(nullary) + higher2nd(nullary)(unary);
7167 }
7168
7169 }
7170
7171 namespace test_variadic_templates
7172 {
7173
7174 template <int...>
7175 struct sum;
7176
7177 template <int N0, int... N1toN>
7178 struct sum<N0, N1toN...>
7179 {
7180 static constexpr auto value = N0 + sum<N1toN...>::value;
7181 };
7182
7183 template <>
7184 struct sum<>
7185 {
7186 static constexpr auto value = 0;
7187 };
7188
7189 static_assert(sum<>::value == 0, "");
7190 static_assert(sum<1>::value == 1, "");
7191 static_assert(sum<23>::value == 23, "");
7192 static_assert(sum<1, 2>::value == 3, "");
7193 static_assert(sum<5, 5, 11>::value == 21, "");
7194 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7195
7196 }
7197
7198 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7199 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7200 // because of this.
7201 namespace test_template_alias_sfinae
7202 {
7203
7204 struct foo {};
7205
7206 template<typename T>
7207 using member = typename T::member_type;
7208
7209 template<typename T>
7210 void func(...) {}
7211
7212 template<typename T>
7213 void func(member<T>*) {}
7214
7215 void test();
7216
7217 void test() { func<foo>(0); }
7218
7219 }
7220
7221} // namespace cxx11
7222
7223#endif // __cplusplus >= 201103L
7224
7225
7226
7227
7228// If the compiler admits that it is not ready for C++14, why torture it?
7229// Hopefully, this will speed up the test.
7230
7231#ifndef __cplusplus
7232
7233#error "This is not a C++ compiler"
7234
7235#elif __cplusplus < 201402L
7236
7237#error "This is not a C++14 compiler"
7238
7239#else
7240
7241namespace cxx14
7242{
7243
7244 namespace test_polymorphic_lambdas
7245 {
7246
7247 int
7248 test()
7249 {
7250 const auto lambda = [](auto&&... args){
7251 const auto istiny = [](auto x){
7252 return (sizeof(x) == 1UL) ? 1 : 0;
7253 };
7254 const int aretiny[] = { istiny(args)... };
7255 return aretiny[0];
7256 };
7257 return lambda(1, 1L, 1.0f, '1');
7258 }
7259
7260 }
7261
7262 namespace test_binary_literals
7263 {
7264
7265 constexpr auto ivii = 0b0000000000101010;
7266 static_assert(ivii == 42, "wrong value");
7267
7268 }
7269
7270 namespace test_generalized_constexpr
7271 {
7272
7273 template < typename CharT >
7274 constexpr unsigned long
7275 strlen_c(const CharT *const s) noexcept
7276 {
7277 auto length = 0UL;
7278 for (auto p = s; *p; ++p)
7279 ++length;
7280 return length;
7281 }
7282
7283 static_assert(strlen_c("") == 0UL, "");
7284 static_assert(strlen_c("x") == 1UL, "");
7285 static_assert(strlen_c("test") == 4UL, "");
7286 static_assert(strlen_c("another\0test") == 7UL, "");
7287
7288 }
7289
7290 namespace test_lambda_init_capture
7291 {
7292
7293 int
7294 test()
7295 {
7296 auto x = 0;
7297 const auto lambda1 = [a = x](int b){ return a + b; };
7298 const auto lambda2 = [a = lambda1(x)](){ return a; };
7299 return lambda2();
7300 }
7301
7302 }
7303
7304 namespace test_digit_separators
7305 {
7306
7307 constexpr auto ten_million = 100'000'000;
7308 static_assert(ten_million == 100000000, "");
7309
7310 }
7311
7312 namespace test_return_type_deduction
7313 {
7314
7315 auto f(int& x) { return x; }
7316 decltype(auto) g(int& x) { return x; }
7317
7318 template < typename T1, typename T2 >
7319 struct is_same
7320 {
7321 static constexpr auto value = false;
7322 };
7323
7324 template < typename T >
7325 struct is_same<T, T>
7326 {
7327 static constexpr auto value = true;
7328 };
7329
7330 int
7331 test()
7332 {
7333 auto x = 0;
7334 static_assert(is_same<int, decltype(f(x))>::value, "");
7335 static_assert(is_same<int&, decltype(g(x))>::value, "");
7336 return x;
7337 }
7338
7339 }
7340
7341} // namespace cxx14
7342
7343#endif // __cplusplus >= 201402L
7344
7345
7346
7347_ACEOF
7348if ac_fn_cxx_try_compile "$LINENO"; then :
7349 eval $cachevar=yes
7350else
7351 eval $cachevar=no
7352fi
7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 CXX="$ac_save_CXX"
7355fi
7356eval ac_res=\$$cachevar
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7358$as_echo "$ac_res" >&6; }
7359 if eval test x\$$cachevar = xyes; then
7360 CXX="$CXX $switch"
7361 if test -n "$CXXCPP" ; then
7362 CXXCPP="$CXXCPP $switch"
7363 fi
7364 ac_success=yes
7365 break
7366 fi
7367 done
7368 if test x$ac_success = xyes; then
7369 break
7370 fi
7371 done
7372 fi
7373
7374 ac_ext=c
7375ac_cpp='$CPP $CPPFLAGS'
7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7381 if test x$ac_success = xno; then
7382 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7383 fi
7384 fi
7385 if test x$ac_success = xno; then
7386 HAVE_CXX14=0
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7388$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7389 else
7390 HAVE_CXX14=1
7391
7392$as_echo "#define HAVE_CXX14 1" >>confdefs.h
7393
7394 fi
7395
7396
7397
7398 if test "${build}" != "${host}"; then
7399 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7400 ac_ext=cpp
7401ac_cpp='$CXXCPP $CPPFLAGS'
7402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405 ac_success=no
7406 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7407 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7408 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7409 CXX="$CXX_FOR_BUILD"
7410 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7411 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7413$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7414if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416else
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h. */
7419
7420
7421// If the compiler admits that it is not ready for C++11, why torture it?
7422// Hopefully, this will speed up the test.
7423
7424#ifndef __cplusplus
7425
7426#error "This is not a C++ compiler"
7427
7428#elif __cplusplus < 201103L
7429
7430#error "This is not a C++11 compiler"
7431
7432#else
7433
7434namespace cxx11
7435{
7436
7437 namespace test_static_assert
7438 {
7439
7440 template <typename T>
7441 struct check
7442 {
7443 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7444 };
7445
7446 }
7447
7448 namespace test_final_override
7449 {
7450
7451 struct Base
7452 {
7453 virtual ~Base() {}
7454 virtual void f() {}
7455 };
7456
7457 struct Derived : public Base
7458 {
7459 virtual ~Derived() override {}
7460 virtual void f() override {}
7461 };
7462
7463 }
7464
7465 namespace test_double_right_angle_brackets
7466 {
7467
7468 template < typename T >
7469 struct check {};
7470
7471 typedef check<void> single_type;
7472 typedef check<check<void>> double_type;
7473 typedef check<check<check<void>>> triple_type;
7474 typedef check<check<check<check<void>>>> quadruple_type;
7475
7476 }
7477
7478 namespace test_decltype
7479 {
7480
7481 int
7482 f()
7483 {
7484 int a = 1;
7485 decltype(a) b = 2;
7486 return a + b;
7487 }
7488
7489 }
7490
7491 namespace test_type_deduction
7492 {
7493
7494 template < typename T1, typename T2 >
7495 struct is_same
7496 {
7497 static const bool value = false;
7498 };
7499
7500 template < typename T >
7501 struct is_same<T, T>
7502 {
7503 static const bool value = true;
7504 };
7505
7506 template < typename T1, typename T2 >
7507 auto
7508 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7509 {
7510 return a1 + a2;
7511 }
7512
7513 int
7514 test(const int c, volatile int v)
7515 {
7516 static_assert(is_same<int, decltype(0)>::value == true, "");
7517 static_assert(is_same<int, decltype(c)>::value == false, "");
7518 static_assert(is_same<int, decltype(v)>::value == false, "");
7519 auto ac = c;
7520 auto av = v;
7521 auto sumi = ac + av + 'x';
7522 auto sumf = ac + av + 1.0;
7523 static_assert(is_same<int, decltype(ac)>::value == true, "");
7524 static_assert(is_same<int, decltype(av)>::value == true, "");
7525 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7526 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7527 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7528 return (sumf > 0.0) ? sumi : add(c, v);
7529 }
7530
7531 }
7532
7533 namespace test_noexcept
7534 {
7535
7536 int f() { return 0; }
7537 int g() noexcept { return 0; }
7538
7539 static_assert(noexcept(f()) == false, "");
7540 static_assert(noexcept(g()) == true, "");
7541
7542 }
7543
7544 namespace test_constexpr
7545 {
7546
7547 template < typename CharT >
7548 unsigned long constexpr
7549 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7550 {
7551 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7552 }
7553
7554 template < typename CharT >
7555 unsigned long constexpr
7556 strlen_c(const CharT *const s) noexcept
7557 {
7558 return strlen_c_r(s, 0UL);
7559 }
7560
7561 static_assert(strlen_c("") == 0UL, "");
7562 static_assert(strlen_c("1") == 1UL, "");
7563 static_assert(strlen_c("example") == 7UL, "");
7564 static_assert(strlen_c("another\0example") == 7UL, "");
7565
7566 }
7567
7568 namespace test_rvalue_references
7569 {
7570
7571 template < int N >
7572 struct answer
7573 {
7574 static constexpr int value = N;
7575 };
7576
7577 answer<1> f(int&) { return answer<1>(); }
7578 answer<2> f(const int&) { return answer<2>(); }
7579 answer<3> f(int&&) { return answer<3>(); }
7580
7581 void
7582 test()
7583 {
7584 int i = 0;
7585 const int c = 0;
7586 static_assert(decltype(f(i))::value == 1, "");
7587 static_assert(decltype(f(c))::value == 2, "");
7588 static_assert(decltype(f(0))::value == 3, "");
7589 }
7590
7591 }
7592
7593 namespace test_uniform_initialization
7594 {
7595
7596 struct test
7597 {
7598 static const int zero {};
7599 static const int one {1};
7600 };
7601
7602 static_assert(test::zero == 0, "");
7603 static_assert(test::one == 1, "");
7604
7605 }
7606
7607 namespace test_lambdas
7608 {
7609
7610 void
7611 test1()
7612 {
7613 auto lambda1 = [](){};
7614 auto lambda2 = lambda1;
7615 lambda1();
7616 lambda2();
7617 }
7618
7619 int
7620 test2()
7621 {
7622 auto a = [](int i, int j){ return i + j; }(1, 2);
7623 auto b = []() -> int { return '0'; }();
7624 auto c = [=](){ return a + b; }();
7625 auto d = [&](){ return c; }();
7626 auto e = [a, &b](int x) mutable {
7627 const auto identity = [](int y){ return y; };
7628 for (auto i = 0; i < a; ++i)
7629 a += b--;
7630 return x + identity(a + b);
7631 }(0);
7632 return a + b + c + d + e;
7633 }
7634
7635 int
7636 test3()
7637 {
7638 const auto nullary = [](){ return 0; };
7639 const auto unary = [](int x){ return x; };
7640 using nullary_t = decltype(nullary);
7641 using unary_t = decltype(unary);
7642 const auto higher1st = [](nullary_t f){ return f(); };
7643 const auto higher2nd = [unary](nullary_t f1){
7644 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7645 };
7646 return higher1st(nullary) + higher2nd(nullary)(unary);
7647 }
7648
7649 }
7650
7651 namespace test_variadic_templates
7652 {
7653
7654 template <int...>
7655 struct sum;
7656
7657 template <int N0, int... N1toN>
7658 struct sum<N0, N1toN...>
7659 {
7660 static constexpr auto value = N0 + sum<N1toN...>::value;
7661 };
7662
7663 template <>
7664 struct sum<>
7665 {
7666 static constexpr auto value = 0;
7667 };
7668
7669 static_assert(sum<>::value == 0, "");
7670 static_assert(sum<1>::value == 1, "");
7671 static_assert(sum<23>::value == 23, "");
7672 static_assert(sum<1, 2>::value == 3, "");
7673 static_assert(sum<5, 5, 11>::value == 21, "");
7674 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7675
7676 }
7677
7678 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7679 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7680 // because of this.
7681 namespace test_template_alias_sfinae
7682 {
7683
7684 struct foo {};
7685
7686 template<typename T>
7687 using member = typename T::member_type;
7688
7689 template<typename T>
7690 void func(...) {}
7691
7692 template<typename T>
7693 void func(member<T>*) {}
7694
7695 void test();
7696
7697 void test() { func<foo>(0); }
7698
7699 }
7700
7701} // namespace cxx11
7702
7703#endif // __cplusplus >= 201103L
7704
7705
7706
7707
7708// If the compiler admits that it is not ready for C++14, why torture it?
7709// Hopefully, this will speed up the test.
7710
7711#ifndef __cplusplus
7712
7713#error "This is not a C++ compiler"
7714
7715#elif __cplusplus < 201402L
7716
7717#error "This is not a C++14 compiler"
7718
7719#else
7720
7721namespace cxx14
7722{
7723
7724 namespace test_polymorphic_lambdas
7725 {
7726
7727 int
7728 test()
7729 {
7730 const auto lambda = [](auto&&... args){
7731 const auto istiny = [](auto x){
7732 return (sizeof(x) == 1UL) ? 1 : 0;
7733 };
7734 const int aretiny[] = { istiny(args)... };
7735 return aretiny[0];
7736 };
7737 return lambda(1, 1L, 1.0f, '1');
7738 }
7739
7740 }
7741
7742 namespace test_binary_literals
7743 {
7744
7745 constexpr auto ivii = 0b0000000000101010;
7746 static_assert(ivii == 42, "wrong value");
7747
7748 }
7749
7750 namespace test_generalized_constexpr
7751 {
7752
7753 template < typename CharT >
7754 constexpr unsigned long
7755 strlen_c(const CharT *const s) noexcept
7756 {
7757 auto length = 0UL;
7758 for (auto p = s; *p; ++p)
7759 ++length;
7760 return length;
7761 }
7762
7763 static_assert(strlen_c("") == 0UL, "");
7764 static_assert(strlen_c("x") == 1UL, "");
7765 static_assert(strlen_c("test") == 4UL, "");
7766 static_assert(strlen_c("another\0test") == 7UL, "");
7767
7768 }
7769
7770 namespace test_lambda_init_capture
7771 {
7772
7773 int
7774 test()
7775 {
7776 auto x = 0;
7777 const auto lambda1 = [a = x](int b){ return a + b; };
7778 const auto lambda2 = [a = lambda1(x)](){ return a; };
7779 return lambda2();
7780 }
7781
7782 }
7783
7784 namespace test_digit_separators
7785 {
7786
7787 constexpr auto ten_million = 100'000'000;
7788 static_assert(ten_million == 100000000, "");
7789
7790 }
7791
7792 namespace test_return_type_deduction
7793 {
7794
7795 auto f(int& x) { return x; }
7796 decltype(auto) g(int& x) { return x; }
7797
7798 template < typename T1, typename T2 >
7799 struct is_same
7800 {
7801 static constexpr auto value = false;
7802 };
7803
7804 template < typename T >
7805 struct is_same<T, T>
7806 {
7807 static constexpr auto value = true;
7808 };
7809
7810 int
7811 test()
7812 {
7813 auto x = 0;
7814 static_assert(is_same<int, decltype(f(x))>::value, "");
7815 static_assert(is_same<int&, decltype(g(x))>::value, "");
7816 return x;
7817 }
7818
7819 }
7820
7821} // namespace cxx14
7822
7823#endif // __cplusplus >= 201402L
7824
7825
7826
7827_ACEOF
7828if ac_fn_cxx_try_compile "$LINENO"; then :
7829 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7830else
7831 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7836$as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7837 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7838 ac_success=yes
7839 fi
7840
7841 if test x$ac_success = xno; then
7842 for alternative in ${ax_cxx_compile_alternatives}; do
7843 switch="-std=gnu++${alternative}"
7844 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7846$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7847if eval \${$cachevar+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849else
7850 ac_save_CXX="$CXX"
7851 CXX="$CXX $switch"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854
7855
7856// If the compiler admits that it is not ready for C++11, why torture it?
7857// Hopefully, this will speed up the test.
7858
7859#ifndef __cplusplus
7860
7861#error "This is not a C++ compiler"
7862
7863#elif __cplusplus < 201103L
7864
7865#error "This is not a C++11 compiler"
7866
7867#else
7868
7869namespace cxx11
7870{
7871
7872 namespace test_static_assert
7873 {
7874
7875 template <typename T>
7876 struct check
7877 {
7878 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7879 };
7880
7881 }
7882
7883 namespace test_final_override
7884 {
7885
7886 struct Base
7887 {
7888 virtual ~Base() {}
7889 virtual void f() {}
7890 };
7891
7892 struct Derived : public Base
7893 {
7894 virtual ~Derived() override {}
7895 virtual void f() override {}
7896 };
7897
7898 }
7899
7900 namespace test_double_right_angle_brackets
7901 {
7902
7903 template < typename T >
7904 struct check {};
7905
7906 typedef check<void> single_type;
7907 typedef check<check<void>> double_type;
7908 typedef check<check<check<void>>> triple_type;
7909 typedef check<check<check<check<void>>>> quadruple_type;
7910
7911 }
7912
7913 namespace test_decltype
7914 {
7915
7916 int
7917 f()
7918 {
7919 int a = 1;
7920 decltype(a) b = 2;
7921 return a + b;
7922 }
7923
7924 }
7925
7926 namespace test_type_deduction
7927 {
7928
7929 template < typename T1, typename T2 >
7930 struct is_same
7931 {
7932 static const bool value = false;
7933 };
7934
7935 template < typename T >
7936 struct is_same<T, T>
7937 {
7938 static const bool value = true;
7939 };
7940
7941 template < typename T1, typename T2 >
7942 auto
7943 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7944 {
7945 return a1 + a2;
7946 }
7947
7948 int
7949 test(const int c, volatile int v)
7950 {
7951 static_assert(is_same<int, decltype(0)>::value == true, "");
7952 static_assert(is_same<int, decltype(c)>::value == false, "");
7953 static_assert(is_same<int, decltype(v)>::value == false, "");
7954 auto ac = c;
7955 auto av = v;
7956 auto sumi = ac + av + 'x';
7957 auto sumf = ac + av + 1.0;
7958 static_assert(is_same<int, decltype(ac)>::value == true, "");
7959 static_assert(is_same<int, decltype(av)>::value == true, "");
7960 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7961 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7962 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7963 return (sumf > 0.0) ? sumi : add(c, v);
7964 }
7965
7966 }
7967
7968 namespace test_noexcept
7969 {
7970
7971 int f() { return 0; }
7972 int g() noexcept { return 0; }
7973
7974 static_assert(noexcept(f()) == false, "");
7975 static_assert(noexcept(g()) == true, "");
7976
7977 }
7978
7979 namespace test_constexpr
7980 {
7981
7982 template < typename CharT >
7983 unsigned long constexpr
7984 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7985 {
7986 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7987 }
7988
7989 template < typename CharT >
7990 unsigned long constexpr
7991 strlen_c(const CharT *const s) noexcept
7992 {
7993 return strlen_c_r(s, 0UL);
7994 }
7995
7996 static_assert(strlen_c("") == 0UL, "");
7997 static_assert(strlen_c("1") == 1UL, "");
7998 static_assert(strlen_c("example") == 7UL, "");
7999 static_assert(strlen_c("another\0example") == 7UL, "");
8000
8001 }
8002
8003 namespace test_rvalue_references
8004 {
8005
8006 template < int N >
8007 struct answer
8008 {
8009 static constexpr int value = N;
8010 };
8011
8012 answer<1> f(int&) { return answer<1>(); }
8013 answer<2> f(const int&) { return answer<2>(); }
8014 answer<3> f(int&&) { return answer<3>(); }
8015
8016 void
8017 test()
8018 {
8019 int i = 0;
8020 const int c = 0;
8021 static_assert(decltype(f(i))::value == 1, "");
8022 static_assert(decltype(f(c))::value == 2, "");
8023 static_assert(decltype(f(0))::value == 3, "");
8024 }
8025
8026 }
8027
8028 namespace test_uniform_initialization
8029 {
8030
8031 struct test
8032 {
8033 static const int zero {};
8034 static const int one {1};
8035 };
8036
8037 static_assert(test::zero == 0, "");
8038 static_assert(test::one == 1, "");
8039
8040 }
8041
8042 namespace test_lambdas
8043 {
8044
8045 void
8046 test1()
8047 {
8048 auto lambda1 = [](){};
8049 auto lambda2 = lambda1;
8050 lambda1();
8051 lambda2();
8052 }
8053
8054 int
8055 test2()
8056 {
8057 auto a = [](int i, int j){ return i + j; }(1, 2);
8058 auto b = []() -> int { return '0'; }();
8059 auto c = [=](){ return a + b; }();
8060 auto d = [&](){ return c; }();
8061 auto e = [a, &b](int x) mutable {
8062 const auto identity = [](int y){ return y; };
8063 for (auto i = 0; i < a; ++i)
8064 a += b--;
8065 return x + identity(a + b);
8066 }(0);
8067 return a + b + c + d + e;
8068 }
8069
8070 int
8071 test3()
8072 {
8073 const auto nullary = [](){ return 0; };
8074 const auto unary = [](int x){ return x; };
8075 using nullary_t = decltype(nullary);
8076 using unary_t = decltype(unary);
8077 const auto higher1st = [](nullary_t f){ return f(); };
8078 const auto higher2nd = [unary](nullary_t f1){
8079 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8080 };
8081 return higher1st(nullary) + higher2nd(nullary)(unary);
8082 }
8083
8084 }
8085
8086 namespace test_variadic_templates
8087 {
8088
8089 template <int...>
8090 struct sum;
8091
8092 template <int N0, int... N1toN>
8093 struct sum<N0, N1toN...>
8094 {
8095 static constexpr auto value = N0 + sum<N1toN...>::value;
8096 };
8097
8098 template <>
8099 struct sum<>
8100 {
8101 static constexpr auto value = 0;
8102 };
8103
8104 static_assert(sum<>::value == 0, "");
8105 static_assert(sum<1>::value == 1, "");
8106 static_assert(sum<23>::value == 23, "");
8107 static_assert(sum<1, 2>::value == 3, "");
8108 static_assert(sum<5, 5, 11>::value == 21, "");
8109 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8110
8111 }
8112
8113 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8114 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8115 // because of this.
8116 namespace test_template_alias_sfinae
8117 {
8118
8119 struct foo {};
8120
8121 template<typename T>
8122 using member = typename T::member_type;
8123
8124 template<typename T>
8125 void func(...) {}
8126
8127 template<typename T>
8128 void func(member<T>*) {}
8129
8130 void test();
8131
8132 void test() { func<foo>(0); }
8133
8134 }
8135
8136} // namespace cxx11
8137
8138#endif // __cplusplus >= 201103L
8139
8140
8141
8142
8143// If the compiler admits that it is not ready for C++14, why torture it?
8144// Hopefully, this will speed up the test.
8145
8146#ifndef __cplusplus
8147
8148#error "This is not a C++ compiler"
8149
8150#elif __cplusplus < 201402L
8151
8152#error "This is not a C++14 compiler"
8153
8154#else
8155
8156namespace cxx14
8157{
8158
8159 namespace test_polymorphic_lambdas
8160 {
8161
8162 int
8163 test()
8164 {
8165 const auto lambda = [](auto&&... args){
8166 const auto istiny = [](auto x){
8167 return (sizeof(x) == 1UL) ? 1 : 0;
8168 };
8169 const int aretiny[] = { istiny(args)... };
8170 return aretiny[0];
8171 };
8172 return lambda(1, 1L, 1.0f, '1');
8173 }
8174
8175 }
8176
8177 namespace test_binary_literals
8178 {
8179
8180 constexpr auto ivii = 0b0000000000101010;
8181 static_assert(ivii == 42, "wrong value");
8182
8183 }
8184
8185 namespace test_generalized_constexpr
8186 {
8187
8188 template < typename CharT >
8189 constexpr unsigned long
8190 strlen_c(const CharT *const s) noexcept
8191 {
8192 auto length = 0UL;
8193 for (auto p = s; *p; ++p)
8194 ++length;
8195 return length;
8196 }
8197
8198 static_assert(strlen_c("") == 0UL, "");
8199 static_assert(strlen_c("x") == 1UL, "");
8200 static_assert(strlen_c("test") == 4UL, "");
8201 static_assert(strlen_c("another\0test") == 7UL, "");
8202
8203 }
8204
8205 namespace test_lambda_init_capture
8206 {
8207
8208 int
8209 test()
8210 {
8211 auto x = 0;
8212 const auto lambda1 = [a = x](int b){ return a + b; };
8213 const auto lambda2 = [a = lambda1(x)](){ return a; };
8214 return lambda2();
8215 }
8216
8217 }
8218
8219 namespace test_digit_separators
8220 {
8221
8222 constexpr auto ten_million = 100'000'000;
8223 static_assert(ten_million == 100000000, "");
8224
8225 }
8226
8227 namespace test_return_type_deduction
8228 {
8229
8230 auto f(int& x) { return x; }
8231 decltype(auto) g(int& x) { return x; }
8232
8233 template < typename T1, typename T2 >
8234 struct is_same
8235 {
8236 static constexpr auto value = false;
8237 };
8238
8239 template < typename T >
8240 struct is_same<T, T>
8241 {
8242 static constexpr auto value = true;
8243 };
8244
8245 int
8246 test()
8247 {
8248 auto x = 0;
8249 static_assert(is_same<int, decltype(f(x))>::value, "");
8250 static_assert(is_same<int&, decltype(g(x))>::value, "");
8251 return x;
8252 }
8253
8254 }
8255
8256} // namespace cxx14
8257
8258#endif // __cplusplus >= 201402L
8259
8260
8261
8262_ACEOF
8263if ac_fn_cxx_try_compile "$LINENO"; then :
8264 eval $cachevar=yes
8265else
8266 eval $cachevar=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 CXX="$ac_save_CXX"
8270fi
8271eval ac_res=\$$cachevar
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8273$as_echo "$ac_res" >&6; }
8274 if eval test x\$$cachevar = xyes; then
8275 CXX="$CXX $switch"
8276 if test -n "$CXXCPP" ; then
8277 CXXCPP="$CXXCPP $switch"
8278 fi
8279 ac_success=yes
8280 break
8281 fi
8282 done
8283 fi
8284
8285 if test x$ac_success = xno; then
8286 for alternative in ${ax_cxx_compile_alternatives}; do
8287 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8288 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8290$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8291if eval \${$cachevar+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293else
8294 ac_save_CXX="$CXX"
8295 CXX="$CXX $switch"
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297/* end confdefs.h. */
8298
8299
8300// If the compiler admits that it is not ready for C++11, why torture it?
8301// Hopefully, this will speed up the test.
8302
8303#ifndef __cplusplus
8304
8305#error "This is not a C++ compiler"
8306
8307#elif __cplusplus < 201103L
8308
8309#error "This is not a C++11 compiler"
8310
8311#else
8312
8313namespace cxx11
8314{
8315
8316 namespace test_static_assert
8317 {
8318
8319 template <typename T>
8320 struct check
8321 {
8322 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8323 };
8324
8325 }
8326
8327 namespace test_final_override
8328 {
8329
8330 struct Base
8331 {
8332 virtual ~Base() {}
8333 virtual void f() {}
8334 };
8335
8336 struct Derived : public Base
8337 {
8338 virtual ~Derived() override {}
8339 virtual void f() override {}
8340 };
8341
8342 }
8343
8344 namespace test_double_right_angle_brackets
8345 {
8346
8347 template < typename T >
8348 struct check {};
8349
8350 typedef check<void> single_type;
8351 typedef check<check<void>> double_type;
8352 typedef check<check<check<void>>> triple_type;
8353 typedef check<check<check<check<void>>>> quadruple_type;
8354
8355 }
8356
8357 namespace test_decltype
8358 {
8359
8360 int
8361 f()
8362 {
8363 int a = 1;
8364 decltype(a) b = 2;
8365 return a + b;
8366 }
8367
8368 }
8369
8370 namespace test_type_deduction
8371 {
8372
8373 template < typename T1, typename T2 >
8374 struct is_same
8375 {
8376 static const bool value = false;
8377 };
8378
8379 template < typename T >
8380 struct is_same<T, T>
8381 {
8382 static const bool value = true;
8383 };
8384
8385 template < typename T1, typename T2 >
8386 auto
8387 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8388 {
8389 return a1 + a2;
8390 }
8391
8392 int
8393 test(const int c, volatile int v)
8394 {
8395 static_assert(is_same<int, decltype(0)>::value == true, "");
8396 static_assert(is_same<int, decltype(c)>::value == false, "");
8397 static_assert(is_same<int, decltype(v)>::value == false, "");
8398 auto ac = c;
8399 auto av = v;
8400 auto sumi = ac + av + 'x';
8401 auto sumf = ac + av + 1.0;
8402 static_assert(is_same<int, decltype(ac)>::value == true, "");
8403 static_assert(is_same<int, decltype(av)>::value == true, "");
8404 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8405 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8406 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8407 return (sumf > 0.0) ? sumi : add(c, v);
8408 }
8409
8410 }
8411
8412 namespace test_noexcept
8413 {
8414
8415 int f() { return 0; }
8416 int g() noexcept { return 0; }
8417
8418 static_assert(noexcept(f()) == false, "");
8419 static_assert(noexcept(g()) == true, "");
8420
8421 }
8422
8423 namespace test_constexpr
8424 {
8425
8426 template < typename CharT >
8427 unsigned long constexpr
8428 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8429 {
8430 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8431 }
8432
8433 template < typename CharT >
8434 unsigned long constexpr
8435 strlen_c(const CharT *const s) noexcept
8436 {
8437 return strlen_c_r(s, 0UL);
8438 }
8439
8440 static_assert(strlen_c("") == 0UL, "");
8441 static_assert(strlen_c("1") == 1UL, "");
8442 static_assert(strlen_c("example") == 7UL, "");
8443 static_assert(strlen_c("another\0example") == 7UL, "");
8444
8445 }
8446
8447 namespace test_rvalue_references
8448 {
8449
8450 template < int N >
8451 struct answer
8452 {
8453 static constexpr int value = N;
8454 };
8455
8456 answer<1> f(int&) { return answer<1>(); }
8457 answer<2> f(const int&) { return answer<2>(); }
8458 answer<3> f(int&&) { return answer<3>(); }
8459
8460 void
8461 test()
8462 {
8463 int i = 0;
8464 const int c = 0;
8465 static_assert(decltype(f(i))::value == 1, "");
8466 static_assert(decltype(f(c))::value == 2, "");
8467 static_assert(decltype(f(0))::value == 3, "");
8468 }
8469
8470 }
8471
8472 namespace test_uniform_initialization
8473 {
8474
8475 struct test
8476 {
8477 static const int zero {};
8478 static const int one {1};
8479 };
8480
8481 static_assert(test::zero == 0, "");
8482 static_assert(test::one == 1, "");
8483
8484 }
8485
8486 namespace test_lambdas
8487 {
8488
8489 void
8490 test1()
8491 {
8492 auto lambda1 = [](){};
8493 auto lambda2 = lambda1;
8494 lambda1();
8495 lambda2();
8496 }
8497
8498 int
8499 test2()
8500 {
8501 auto a = [](int i, int j){ return i + j; }(1, 2);
8502 auto b = []() -> int { return '0'; }();
8503 auto c = [=](){ return a + b; }();
8504 auto d = [&](){ return c; }();
8505 auto e = [a, &b](int x) mutable {
8506 const auto identity = [](int y){ return y; };
8507 for (auto i = 0; i < a; ++i)
8508 a += b--;
8509 return x + identity(a + b);
8510 }(0);
8511 return a + b + c + d + e;
8512 }
8513
8514 int
8515 test3()
8516 {
8517 const auto nullary = [](){ return 0; };
8518 const auto unary = [](int x){ return x; };
8519 using nullary_t = decltype(nullary);
8520 using unary_t = decltype(unary);
8521 const auto higher1st = [](nullary_t f){ return f(); };
8522 const auto higher2nd = [unary](nullary_t f1){
8523 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8524 };
8525 return higher1st(nullary) + higher2nd(nullary)(unary);
8526 }
8527
8528 }
8529
8530 namespace test_variadic_templates
8531 {
8532
8533 template <int...>
8534 struct sum;
8535
8536 template <int N0, int... N1toN>
8537 struct sum<N0, N1toN...>
8538 {
8539 static constexpr auto value = N0 + sum<N1toN...>::value;
8540 };
8541
8542 template <>
8543 struct sum<>
8544 {
8545 static constexpr auto value = 0;
8546 };
8547
8548 static_assert(sum<>::value == 0, "");
8549 static_assert(sum<1>::value == 1, "");
8550 static_assert(sum<23>::value == 23, "");
8551 static_assert(sum<1, 2>::value == 3, "");
8552 static_assert(sum<5, 5, 11>::value == 21, "");
8553 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8554
8555 }
8556
8557 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8558 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8559 // because of this.
8560 namespace test_template_alias_sfinae
8561 {
8562
8563 struct foo {};
8564
8565 template<typename T>
8566 using member = typename T::member_type;
8567
8568 template<typename T>
8569 void func(...) {}
8570
8571 template<typename T>
8572 void func(member<T>*) {}
8573
8574 void test();
8575
8576 void test() { func<foo>(0); }
8577
8578 }
8579
8580} // namespace cxx11
8581
8582#endif // __cplusplus >= 201103L
8583
8584
8585
8586
8587// If the compiler admits that it is not ready for C++14, why torture it?
8588// Hopefully, this will speed up the test.
8589
8590#ifndef __cplusplus
8591
8592#error "This is not a C++ compiler"
8593
8594#elif __cplusplus < 201402L
8595
8596#error "This is not a C++14 compiler"
8597
8598#else
8599
8600namespace cxx14
8601{
8602
8603 namespace test_polymorphic_lambdas
8604 {
8605
8606 int
8607 test()
8608 {
8609 const auto lambda = [](auto&&... args){
8610 const auto istiny = [](auto x){
8611 return (sizeof(x) == 1UL) ? 1 : 0;
8612 };
8613 const int aretiny[] = { istiny(args)... };
8614 return aretiny[0];
8615 };
8616 return lambda(1, 1L, 1.0f, '1');
8617 }
8618
8619 }
8620
8621 namespace test_binary_literals
8622 {
8623
8624 constexpr auto ivii = 0b0000000000101010;
8625 static_assert(ivii == 42, "wrong value");
8626
8627 }
8628
8629 namespace test_generalized_constexpr
8630 {
8631
8632 template < typename CharT >
8633 constexpr unsigned long
8634 strlen_c(const CharT *const s) noexcept
8635 {
8636 auto length = 0UL;
8637 for (auto p = s; *p; ++p)
8638 ++length;
8639 return length;
8640 }
8641
8642 static_assert(strlen_c("") == 0UL, "");
8643 static_assert(strlen_c("x") == 1UL, "");
8644 static_assert(strlen_c("test") == 4UL, "");
8645 static_assert(strlen_c("another\0test") == 7UL, "");
8646
8647 }
8648
8649 namespace test_lambda_init_capture
8650 {
8651
8652 int
8653 test()
8654 {
8655 auto x = 0;
8656 const auto lambda1 = [a = x](int b){ return a + b; };
8657 const auto lambda2 = [a = lambda1(x)](){ return a; };
8658 return lambda2();
8659 }
8660
8661 }
8662
8663 namespace test_digit_separators
8664 {
8665
8666 constexpr auto ten_million = 100'000'000;
8667 static_assert(ten_million == 100000000, "");
8668
8669 }
8670
8671 namespace test_return_type_deduction
8672 {
8673
8674 auto f(int& x) { return x; }
8675 decltype(auto) g(int& x) { return x; }
8676
8677 template < typename T1, typename T2 >
8678 struct is_same
8679 {
8680 static constexpr auto value = false;
8681 };
8682
8683 template < typename T >
8684 struct is_same<T, T>
8685 {
8686 static constexpr auto value = true;
8687 };
8688
8689 int
8690 test()
8691 {
8692 auto x = 0;
8693 static_assert(is_same<int, decltype(f(x))>::value, "");
8694 static_assert(is_same<int&, decltype(g(x))>::value, "");
8695 return x;
8696 }
8697
8698 }
8699
8700} // namespace cxx14
8701
8702#endif // __cplusplus >= 201402L
8703
8704
8705
8706_ACEOF
8707if ac_fn_cxx_try_compile "$LINENO"; then :
8708 eval $cachevar=yes
8709else
8710 eval $cachevar=no
8711fi
8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 CXX="$ac_save_CXX"
8714fi
8715eval ac_res=\$$cachevar
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8717$as_echo "$ac_res" >&6; }
8718 if eval test x\$$cachevar = xyes; then
8719 CXX="$CXX $switch"
8720 if test -n "$CXXCPP" ; then
8721 CXXCPP="$CXXCPP $switch"
8722 fi
8723 ac_success=yes
8724 break
8725 fi
8726 done
8727 if test x$ac_success = xyes; then
8728 break
8729 fi
8730 done
8731 fi
8732 CXX_FOR_BUILD="$CXX"
8733 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8734 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8735 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8736 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8737 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8738 ac_ext=c
8739ac_cpp='$CPP $CPPFLAGS'
8740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8745 if test x$ac_success = xno; then
8746 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8747 fi
8748 fi
8749 if test x$ac_success = xno; then
8750 HAVE_CXX14_FOR_BUILD=0
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8752$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8753 else
8754 HAVE_CXX14_FOR_BUILD=1
8755
8756$as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8757
8758 fi
8759
8760
8761 fi
8762fi
8763
8764# Check whether --enable-pgo-build was given.
8765if test "${enable_pgo_build+set}" = set; then :
8766 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8767else
8768 enable_pgo_build=no
8769fi
8770
8771
8772# Issue errors and warnings for invalid/strange PGO build combinations.
8773case "$have_compiler:$host:$target:$enable_pgo_build" in
8774 *:*:*:no) ;;
8775
8776 # Allow the PGO build only if we aren't building a compiler and
8777 # we are in a native configuration.
8778 no:$build:$build:yes | no:$build:$build:lto) ;;
8779
8780 # Disallow the PGO bootstrap if we are building a compiler.
8781 yes:*:*:yes | yes:*:*:lto)
8782 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8783
8784 *)
8785 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8786 ;;
8787esac
8788
8789if test "$enable_pgo_build" != "no"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8791$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8792 old_CFLAGS="$CFLAGS"
8793 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8794 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8795
8796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h. */
8798int foo;
8799_ACEOF
8800if ac_fn_c_try_compile "$LINENO"; then :
8801
8802else
8803 PGO_BUILD_GEN_CFLAGS=
8804fi
8805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 CFLAGS="$old_CFLAGS"
8807 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8809$as_echo "yes" >&6; }
8810 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813$as_echo "no" >&6; }
8814 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8815 fi
8816
8817 if test "$enable_pgo_build" = "lto"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8819$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8820 old_CFLAGS="$CFLAGS"
8821 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8822 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h. */
8825int foo;
8826_ACEOF
8827if ac_fn_c_try_compile "$LINENO"; then :
8828
8829else
8830 PGO_BUILD_LTO_CFLAGS=
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 CFLAGS="$old_CFLAGS"
8834 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8836$as_echo "yes" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8841$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8842 fi
8843 fi
8844fi
8845
8846
8847
8848
8849# Used for setting $lt_cv_objdir
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8851$as_echo_n "checking for objdir... " >&6; }
8852if ${lt_cv_objdir+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854else
8855 rm -f .libs 2>/dev/null
8856mkdir .libs 2>/dev/null
8857if test -d .libs; then
8858 lt_cv_objdir=.libs
8859else
8860 # MS-DOS does not allow filenames that begin with a dot.
8861 lt_cv_objdir=_libs
8862fi
8863rmdir .libs 2>/dev/null
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8866$as_echo "$lt_cv_objdir" >&6; }
8867objdir=$lt_cv_objdir
8868
8869
8870
8871
8872
8873cat >>confdefs.h <<_ACEOF
8874#define LT_OBJDIR "$lt_cv_objdir/"
8875_ACEOF
8876
8877
8878
8879# Check for GMP, MPFR and MPC
8880require_gmp=no
8881require_mpc=no
8882if test -d ${srcdir}/gcc ; then
8883 require_gmp=yes
8884 require_mpc=yes
8885fi
8886if test -d ${srcdir}/gdb ; then
8887 if test "x$enable_gdb" != xno; then
8888 require_gmp=yes
8889 fi
8890fi
8891
8892gmplibs="-lmpfr -lgmp"
8893if test x"$require_mpc" = "xyes" ; then
8894 gmplibs="-lmpc $gmplibs"
8895fi
8896gmpinc=
8897have_gmp=no
8898
8899# Specify a location for mpc
8900# check for this first so it ends up on the link line before mpfr.
8901
8902# Check whether --with-mpc was given.
8903if test "${with_mpc+set}" = set; then :
8904 withval=$with_mpc;
8905fi
8906
8907
8908# Check whether --with-mpc-include was given.
8909if test "${with_mpc_include+set}" = set; then :
8910 withval=$with_mpc_include;
8911fi
8912
8913
8914# Check whether --with-mpc-lib was given.
8915if test "${with_mpc_lib+set}" = set; then :
8916 withval=$with_mpc_lib;
8917fi
8918
8919
8920if test "x$with_mpc" != x; then
8921 gmplibs="-L$with_mpc/lib $gmplibs"
8922 gmpinc="-I$with_mpc/include $gmpinc"
8923fi
8924if test "x$with_mpc_include" != x; then
8925 gmpinc="-I$with_mpc_include $gmpinc"
8926fi
8927if test "x$with_mpc_lib" != x; then
8928 gmplibs="-L$with_mpc_lib $gmplibs"
8929fi
8930if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8931 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8932 gmpinc='-I$$s/mpc/src '"$gmpinc"
8933 # Do not test the mpc version. Assume that it is sufficient, since
8934 # it is in the source tree, and the library has not been built yet
8935 # but it would be included on the link line in the version check below
8936 # hence making the test fail.
8937 have_gmp=yes
8938fi
8939
8940# Specify a location for mpfr
8941# check for this first so it ends up on the link line before gmp.
8942
8943# Check whether --with-mpfr was given.
8944if test "${with_mpfr+set}" = set; then :
8945 withval=$with_mpfr;
8946fi
8947
8948
8949# Check whether --with-mpfr-include was given.
8950if test "${with_mpfr_include+set}" = set; then :
8951 withval=$with_mpfr_include;
8952fi
8953
8954
8955# Check whether --with-mpfr-lib was given.
8956if test "${with_mpfr_lib+set}" = set; then :
8957 withval=$with_mpfr_lib;
8958fi
8959
8960
8961if test "x$with_mpfr" != x; then
8962 gmplibs="-L$with_mpfr/lib $gmplibs"
8963 gmpinc="-I$with_mpfr/include $gmpinc"
8964fi
8965if test "x$with_mpfr_include" != x; then
8966 gmpinc="-I$with_mpfr_include $gmpinc"
8967fi
8968if test "x$with_mpfr_lib" != x; then
8969 gmplibs="-L$with_mpfr_lib $gmplibs"
8970fi
8971if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8972 # MPFR v3.1.0 moved the sources into a src sub-directory.
8973 if ! test -d ${srcdir}/mpfr/src; then
8974 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8975 fi
8976 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8977 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8978 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8979 # Do not test the mpfr version. Assume that it is sufficient, since
8980 # it is in the source tree, and the library has not been built yet
8981 # but it would be included on the link line in the version check below
8982 # hence making the test fail.
8983 have_gmp=yes
8984fi
8985
8986# Specify a location for gmp
8987
8988# Check whether --with-gmp was given.
8989if test "${with_gmp+set}" = set; then :
8990 withval=$with_gmp;
8991fi
8992
8993
8994# Check whether --with-gmp-include was given.
8995if test "${with_gmp_include+set}" = set; then :
8996 withval=$with_gmp_include;
8997fi
8998
8999
9000# Check whether --with-gmp-lib was given.
9001if test "${with_gmp_lib+set}" = set; then :
9002 withval=$with_gmp_lib;
9003fi
9004
9005
9006
9007if test "x$with_gmp" != x; then
9008 gmplibs="-L$with_gmp/lib $gmplibs"
9009 gmpinc="-I$with_gmp/include $gmpinc"
9010fi
9011if test "x$with_gmp_include" != x; then
9012 gmpinc="-I$with_gmp_include $gmpinc"
9013fi
9014if test "x$with_gmp_lib" != x; then
9015 gmplibs="-L$with_gmp_lib $gmplibs"
9016fi
9017if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
9018 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
9019 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9020 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9021 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9022 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
9023 # Do not test the gmp version. Assume that it is sufficient, since
9024 # it is in the source tree, and the library has not been built yet
9025 # but it would be included on the link line in the version check below
9026 # hence making the test fail.
9027 have_gmp=yes
9028fi
9029
9030if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
9031 have_gmp=yes
9032 saved_CFLAGS="$CFLAGS"
9033 CFLAGS="$CFLAGS $gmpinc"
9034 # Check for the recommended and required versions of GMP.
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
9036$as_echo_n "checking for the correct version of gmp.h... " >&6; }
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038/* end confdefs.h. */
9039#include "gmp.h"
9040int
9041main ()
9042{
9043
9044 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9045 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9046 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
9047 choke me
9048 #endif
9049
9050 ;
9051 return 0;
9052}
9053_ACEOF
9054if ac_fn_c_try_compile "$LINENO"; then :
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h. */
9057#include <gmp.h>
9058int
9059main ()
9060{
9061
9062 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9063 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9064 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
9065 choke me
9066 #endif
9067
9068 ;
9069 return 0;
9070}
9071_ACEOF
9072if ac_fn_c_try_compile "$LINENO"; then :
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9074$as_echo "yes" >&6; }
9075else
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9077$as_echo "buggy but acceptable" >&6; }
9078fi
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082$as_echo "no" >&6; }; have_gmp=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085
9086 # If we have GMP, check the MPFR version.
9087 if test x"$have_gmp" = xyes; then
9088 # Check for the recommended and required versions of MPFR.
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
9090$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h. */
9093#include <gmp.h>
9094 #include <mpfr.h>
9095int
9096main ()
9097{
9098
9099 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9100 choke me
9101 #endif
9102
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107if ac_fn_c_try_compile "$LINENO"; then :
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h. */
9110#include <gmp.h>
9111 #include <mpfr.h>
9112int
9113main ()
9114{
9115
9116 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9117 choke me
9118 #endif
9119
9120 ;
9121 return 0;
9122}
9123_ACEOF
9124if ac_fn_c_try_compile "$LINENO"; then :
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9126$as_echo "yes" >&6; }
9127else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9129$as_echo "buggy but acceptable" >&6; }
9130fi
9131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }; have_gmp=no
9135fi
9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138
9139 # Check for the MPC header version.
9140 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9141 # Check for the recommended and required versions of MPC.
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9143$as_echo_n "checking for the correct version of mpc.h... " >&6; }
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145/* end confdefs.h. */
9146#include <mpc.h>
9147int
9148main ()
9149{
9150
9151 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9152 choke me
9153 #endif
9154
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_compile "$LINENO"; then :
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h. */
9162#include <mpc.h>
9163int
9164main ()
9165{
9166
9167 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9168 choke me
9169 #endif
9170
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_compile "$LINENO"; then :
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9177$as_echo "yes" >&6; }
9178else
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9180$as_echo "buggy but acceptable" >&6; }
9181fi
9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183else
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185$as_echo "no" >&6; }; have_gmp=no
9186fi
9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189
9190 # Now check the MPFR library.
9191 if test x"$have_gmp" = xyes; then
9192 saved_LIBS="$LIBS"
9193 LIBS="$LIBS $gmplibs"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9195$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197/* end confdefs.h. */
9198#include <mpfr.h>
9199int
9200main ()
9201{
9202
9203 mpfr_t n;
9204 mpfr_t x;
9205 int t;
9206 mpfr_init (n);
9207 mpfr_init (x);
9208 mpfr_atan2 (n, n, x, MPFR_RNDN);
9209 mpfr_erfc (n, x, MPFR_RNDN);
9210 mpfr_subnormalize (x, t, MPFR_RNDN);
9211 mpfr_clear(n);
9212 mpfr_clear(x);
9213
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_link "$LINENO"; then :
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9220$as_echo "yes" >&6; }
9221else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }; have_gmp=no
9224fi
9225rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 LIBS="$saved_LIBS"
9228 fi
9229
9230 # Now check the MPC library
9231 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9232 saved_LIBS="$LIBS"
9233 LIBS="$LIBS $gmplibs"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9235$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h. */
9238#include <mpc.h>
9239int
9240main ()
9241{
9242
9243 mpc_t c;
9244 mpc_init2 (c, 53);
9245 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9246 mpc_cosh (c, c, MPC_RNDNN);
9247 mpc_pow (c, c, c, MPC_RNDNN);
9248 mpc_acosh (c, c, MPC_RNDNN);
9249 mpc_clear (c);
9250
9251 ;
9252 return 0;
9253}
9254_ACEOF
9255if ac_fn_c_try_link "$LINENO"; then :
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9257$as_echo "yes" >&6; }
9258else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260$as_echo "no" >&6; }; have_gmp=no
9261fi
9262rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LIBS="$saved_LIBS"
9265 fi
9266
9267 CFLAGS="$saved_CFLAGS"
9268
9269# The library versions listed in the error message below should match
9270# the HARD-minimums enforced above.
9271 if test x$have_gmp != xyes; then
9272 if test -d ${srcdir}/gcc ; then
9273 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9274Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9275their locations. Source code for these libraries can be found at
9276their respective hosting sites as well as at
9277https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9278http://gcc.gnu.org/install/prerequisites.html for additional info. If
9279you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9280make sure that you have installed both the libraries and the header
9281files. They may be located in separate packages." "$LINENO" 5
9282 else
9283 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9284Try the --with-gmp and/or --with-mpfr options to specify
9285their locations. If you obtained GMP and/or MPFR from a vendor
9286distribution package, make sure that you have installed both the libraries
9287and the header files. They may be located in separate packages." "$LINENO" 5
9288 fi
9289 fi
9290fi
9291
9292# Flags needed for both GMP, MPFR and/or MPC.
9293
9294
9295
9296
9297
9298
9299
9300# Libraries to use for stage1 or when not bootstrapping.
9301
9302# Check whether --with-stage1-libs was given.
9303if test "${with_stage1_libs+set}" = set; then :
9304 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9305 stage1_libs=
9306 else
9307 stage1_libs=$withval
9308 fi
9309else
9310 stage1_libs=
9311fi
9312
9313
9314
9315# Whether or not to use -static-libstdc++ and -static-libgcc. The
9316# default is yes if gcc is being built; no otherwise. The reason for
9317# this default is that gdb is sometimes linked against GNU Source
9318# Highlight, which is a shared library that uses C++ exceptions. In
9319# this case, -static-libstdc++ will cause crashes.
9320
9321# Check whether --with-static-standard-libraries was given.
9322if test "${with_static_standard_libraries+set}" = set; then :
9323 withval=$with_static_standard_libraries;
9324else
9325 with_static_standard_libraries=auto
9326fi
9327
9328if test "$with_static_standard_libraries" = auto; then
9329 with_static_standard_libraries=$have_compiler
9330fi
9331
9332# Linker flags to use for stage1 or when not bootstrapping.
9333
9334# Check whether --with-stage1-ldflags was given.
9335if test "${with_stage1_ldflags+set}" = set; then :
9336 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9337 stage1_ldflags=
9338 else
9339 stage1_ldflags=$withval
9340 fi
9341else
9342 stage1_ldflags=
9343 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9344 # if supported. But if the user explicitly specified the libraries to use,
9345 # trust that they are doing what they want.
9346 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9347 -a "$have_static_libs" = yes; then
9348 stage1_ldflags="-static-libstdc++ -static-libgcc"
9349 fi
9350fi
9351
9352
9353
9354# Libraries to use for stage2 and later builds.
9355
9356# Check whether --with-boot-libs was given.
9357if test "${with_boot_libs+set}" = set; then :
9358 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9359 poststage1_libs=
9360 else
9361 poststage1_libs=$withval
9362 fi
9363else
9364 poststage1_libs=
9365fi
9366
9367
9368
9369# Linker flags to use for stage2 and later builds.
9370
9371# Check whether --with-boot-ldflags was given.
9372if test "${with_boot_ldflags+set}" = set; then :
9373 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9374 poststage1_ldflags=
9375 else
9376 poststage1_ldflags=$withval
9377 fi
9378else
9379 poststage1_ldflags=
9380 # In stages 2 and 3, default to linking libstdc++ and libgcc
9381 # statically. But if the user explicitly specified the libraries to
9382 # use, trust that they are doing what they want.
9383 if test "$poststage1_libs" = ""; then
9384 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9385 fi
9386fi
9387
9388case $target in
9389 *-darwin2* | *-darwin1[56789]*)
9390 # For these versions, we default to using embedded rpaths.
9391 if test "x$enable_darwin_at_rpath" != "xno"; then
9392 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9393 fi
9394 ;;
9395 *-darwin*)
9396 # For these versions, we only use embedded rpaths on demand.
9397 if test "x$enable_darwin_at_rpath" = "xyes"; then
9398 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9399 fi
9400 ;;
9401esac
9402
9403
9404# GCC GRAPHITE dependency isl.
9405# Basic setup is inlined here, actual checks are in config/isl.m4
9406
9407
9408# Check whether --with-isl was given.
9409if test "${with_isl+set}" = set; then :
9410 withval=$with_isl;
9411fi
9412
9413
9414# Treat --without-isl as a request to disable
9415# GRAPHITE support and skip all following checks.
9416if test "x$with_isl" != "xno"; then
9417 # Check for isl
9418
9419
9420# Check whether --with-isl-include was given.
9421if test "${with_isl_include+set}" = set; then :
9422 withval=$with_isl_include;
9423fi
9424
9425
9426# Check whether --with-isl-lib was given.
9427if test "${with_isl_lib+set}" = set; then :
9428 withval=$with_isl_lib;
9429fi
9430
9431
9432 # Check whether --enable-isl-version-check was given.
9433if test "${enable_isl_version_check+set}" = set; then :
9434 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9435else
9436 ENABLE_ISL_CHECK=yes
9437fi
9438
9439
9440 # Initialize isllibs and islinc.
9441 case $with_isl in
9442 no)
9443 isllibs=
9444 islinc=
9445 ;;
9446 "" | yes)
9447 ;;
9448 *)
9449 isllibs="-L$with_isl/lib"
9450 islinc="-I$with_isl/include"
9451 ;;
9452 esac
9453 if test "x${with_isl_include}" != x ; then
9454 islinc="-I$with_isl_include"
9455 fi
9456 if test "x${with_isl_lib}" != x; then
9457 isllibs="-L$with_isl_lib"
9458 fi
9459 if test "x${islinc}" = x && test "x${isllibs}" = x \
9460 && test -d ${srcdir}/isl; then
9461 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9462 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9463 ENABLE_ISL_CHECK=no
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9465$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9466 fi
9467
9468 isllibs="${isllibs} -lisl"
9469
9470
9471
9472 if test "${ENABLE_ISL_CHECK}" = yes ; then
9473 _isl_saved_CFLAGS=$CFLAGS
9474 _isl_saved_LDFLAGS=$LDFLAGS
9475 _isl_saved_LIBS=$LIBS
9476
9477 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9478 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9479 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9480
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9482$as_echo_n "checking for isl 0.15 or later... " >&6; }
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h. */
9485#include <isl/schedule.h>
9486int
9487main ()
9488{
9489isl_options_set_schedule_serialize_sccs (NULL, 0);
9490 ;
9491 return 0;
9492}
9493_ACEOF
9494if ac_fn_c_try_link "$LINENO"; then :
9495 gcc_cv_isl=yes
9496else
9497 gcc_cv_isl=no
9498fi
9499rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9502$as_echo "$gcc_cv_isl" >&6; }
9503
9504 if test "${gcc_cv_isl}" = no ; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9506$as_echo "required isl version is 0.15 or later" >&6; }
9507 fi
9508
9509 CFLAGS=$_isl_saved_CFLAGS
9510 LDFLAGS=$_isl_saved_LDFLAGS
9511 LIBS=$_isl_saved_LIBS
9512 fi
9513
9514
9515
9516
9517
9518
9519 if test "x${with_isl}" = xno; then
9520 graphite_requested=no
9521 elif test "x${with_isl}" != x \
9522 || test "x${with_isl_include}" != x \
9523 || test "x${with_isl_lib}" != x ; then
9524 graphite_requested=yes
9525 else
9526 graphite_requested=no
9527 fi
9528
9529
9530
9531 if test "${gcc_cv_isl}" = no ; then
9532 isllibs=
9533 islinc=
9534 fi
9535
9536 if test "${graphite_requested}" = yes \
9537 && test "x${isllibs}" = x \
9538 && test "x${islinc}" = x ; then
9539
9540 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9541 fi
9542
9543
9544fi
9545
9546# If the isl check failed, disable builds of in-tree variant of isl
9547if test "x$with_isl" = xno ||
9548 test "x$gcc_cv_isl" = xno; then
9549 noconfigdirs="$noconfigdirs isl"
9550 islinc=
9551fi
9552
9553
9554
9555
9556# Check for LTO support.
9557# Check whether --enable-lto was given.
9558if test "${enable_lto+set}" = set; then :
9559 enableval=$enable_lto; enable_lto=$enableval
9560else
9561 enable_lto=yes; default_enable_lto=yes
9562fi
9563
9564
9565
9566
9567
9568target_elf=no
9569case $target in
9570 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9571 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9572 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9573 nvptx-*-none)
9574 target_elf=no
9575 ;;
9576 *)
9577 target_elf=yes
9578 ;;
9579esac
9580
9581if test $target_elf = yes; then :
9582 # ELF platforms build the lto-plugin always.
9583 build_lto_plugin=yes
9584
9585else
9586 if test x"$default_enable_lto" = x"yes" ; then
9587 case $target in
9588 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9589 # On other non-ELF platforms, LTO has yet to be validated.
9590 *) enable_lto=no ;;
9591 esac
9592 else
9593 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9594 # It would also be nice to check the binutils support, but we don't
9595 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9596 # warn during gcc/ subconfigure; unless you're bootstrapping with
9597 # -flto it won't be needed until after installation anyway.
9598 case $target in
9599 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9600 *) if test x"$enable_lto" = x"yes"; then
9601 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9602 fi
9603 ;;
9604 esac
9605 fi
9606 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9607 # Build it unless LTO was explicitly disabled.
9608 case $target in
9609 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9610 *) ;;
9611 esac
9612
9613fi
9614
9615
9616# Check whether --enable-linker-plugin-configure-flags was given.
9617if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9618 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9619else
9620 extra_linker_plugin_configure_flags=
9621fi
9622
9623
9624# Check whether --enable-linker-plugin-flags was given.
9625if test "${enable_linker_plugin_flags+set}" = set; then :
9626 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9627else
9628 extra_linker_plugin_flags=
9629fi
9630
9631
9632
9633# Handle --enable-host-pie
9634# If host PIE executables are the default (or must be forced on) for some host,
9635# we must pass that configuration to the gcc directory.
9636gcc_host_pie=
9637# Check whether --enable-host-pie was given.
9638if test "${enable_host_pie+set}" = set; then :
9639 enableval=$enable_host_pie; host_pie=$enableval
9640 case $host in
9641 *-*-darwin2*)
9642 if test x$host_pie != xyes ; then
9643 # for Darwin20+ this is required.
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9645$as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9646 host_pie=yes
9647 gcc_host_pie=--enable-host-pie
9648 fi ;;
9649 *) ;;
9650 esac
9651else
9652 case $host in
9653 *-*-darwin2*)
9654 # Default to PIE (mandatory for aarch64).
9655 host_pie=yes
9656 gcc_host_pie=--enable-host-pie
9657 ;;
9658 *) host_pie=no ;;
9659 esac
9660fi
9661
9662
9663
9664
9665
9666# Enable --enable-host-shared.
9667# Checked early to determine whether jit is an 'all' language
9668# Check whether --enable-host-shared was given.
9669if test "${enable_host_shared+set}" = set; then :
9670 enableval=$enable_host_shared; host_shared=$enableval
9671 case $host in
9672 x86_64-*-darwin* | aarch64-*-darwin*)
9673 if test x$host_shared != xyes ; then
9674 # PIC is the default, and actually cannot be switched off.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9676$as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9677 host_shared=yes
9678 fi ;;
9679 *-*-darwin*)
9680 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9682$as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9683 host_shared=yes
9684 fi ;;
9685 *) ;;
9686 esac
9687else
9688 case $host in
9689 # 64B x86_64 and Aarch64 Darwin default to PIC.
9690 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9691 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9692 *-*-darwin*) host_shared=$host_pie ;;
9693 *) host_shared=no;;
9694 esac
9695fi
9696
9697
9698
9699
9700if test x$host_shared = xyes; then
9701 case $host in
9702 *-*-darwin*)
9703 # Since host shared is the default for 64b Darwin, and also enabled for
9704 # host_pie, ensure that we present the PIE flag when host_pie is active.
9705 if test x$host_pie = xyes; then
9706 PICFLAG=-fPIE
9707 fi
9708 ;;
9709 *)
9710 PICFLAG=-fPIC
9711 ;;
9712 esac
9713elif test x$host_pie = xyes; then
9714 PICFLAG=-fPIE
9715else
9716 PICFLAG=
9717fi
9718
9719
9720
9721
9722# Check for libgdiagnostics support.
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
9724$as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
9725# Check whether --enable-libgdiagnostics was given.
9726if test "${enable_libgdiagnostics+set}" = set; then :
9727 enableval=$enable_libgdiagnostics; enable_libgdiagnostics=$enableval
9728else
9729 enable_libgdiagnostics=no
9730fi
9731
9732
9733if test x$enable_libgdiagnostics = xyes; then
9734 # Disable libgdiagnostics if -enable-host-shared not specified
9735 # but not if building for Mingw. All code in Windows
9736 # is position independent code (PIC).
9737 case $target in
9738 *mingw*) ;;
9739 *)
9740 if test x$host_shared != xyes; then
9741 as_fn_error $? "
9742Enabling libgdiagnostics requires --enable-host-shared.
9743
9744--enable-host-shared typically slows the rest of the compiler down by
9745a few %, so you must explicitly enable it.
9746
9747If you want to build both libgdiagnostics and the regular compiler, it is often
9748best to do this via two separate configure/builds, in separate
9749directories, to avoid imposing the performance cost of
9750--enable-host-shared on the regular compiler." "$LINENO" 5
9751 fi
9752 ;;
9753 esac
9754fi
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
9756$as_echo "$enable_libgdiagnostics" >&6; }
9757
9758
9759
9760# Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9761# default, so we check for them here
9762# We are doing the test here and not in the gcc/configure to be able to nicely disable the
9763# build of the Rust frontend in case a dep is missing.
9764missing_rust_dynlibs=none
9765
9766save_LIBS="$LIBS"
9767LIBS=
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9769$as_echo_n "checking for library containing dlopen... " >&6; }
9770if ${ac_cv_search_dlopen+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772else
9773 ac_func_search_save_LIBS=$LIBS
9774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h. */
9776
9777/* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9780#ifdef __cplusplus
9781extern "C"
9782#endif
9783char dlopen ();
9784int
9785main ()
9786{
9787return dlopen ();
9788 ;
9789 return 0;
9790}
9791_ACEOF
9792for ac_lib in '' dl; do
9793 if test -z "$ac_lib"; then
9794 ac_res="none required"
9795 else
9796 ac_res=-l$ac_lib
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9798 fi
9799 if ac_fn_c_try_link "$LINENO"; then :
9800 ac_cv_search_dlopen=$ac_res
9801fi
9802rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext
9804 if ${ac_cv_search_dlopen+:} false; then :
9805 break
9806fi
9807done
9808if ${ac_cv_search_dlopen+:} false; then :
9809
9810else
9811 ac_cv_search_dlopen=no
9812fi
9813rm conftest.$ac_ext
9814LIBS=$ac_func_search_save_LIBS
9815fi
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9817$as_echo "$ac_cv_search_dlopen" >&6; }
9818ac_res=$ac_cv_search_dlopen
9819if test "$ac_res" != no; then :
9820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9821
9822fi
9823
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9825$as_echo_n "checking for library containing pthread_create... " >&6; }
9826if ${ac_cv_search_pthread_create+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828else
9829 ac_func_search_save_LIBS=$LIBS
9830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h. */
9832
9833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839char pthread_create ();
9840int
9841main ()
9842{
9843return pthread_create ();
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848for ac_lib in '' pthread; do
9849 if test -z "$ac_lib"; then
9850 ac_res="none required"
9851 else
9852 ac_res=-l$ac_lib
9853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9854 fi
9855 if ac_fn_c_try_link "$LINENO"; then :
9856 ac_cv_search_pthread_create=$ac_res
9857fi
9858rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext
9860 if ${ac_cv_search_pthread_create+:} false; then :
9861 break
9862fi
9863done
9864if ${ac_cv_search_pthread_create+:} false; then :
9865
9866else
9867 ac_cv_search_pthread_create=no
9868fi
9869rm conftest.$ac_ext
9870LIBS=$ac_func_search_save_LIBS
9871fi
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9873$as_echo "$ac_cv_search_pthread_create" >&6; }
9874ac_res=$ac_cv_search_pthread_create
9875if test "$ac_res" != no; then :
9876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9877
9878fi
9879
9880CRAB1_LIBS="$LIBS"
9881LIBS="$save_LIBS"
9882
9883if test "$ac_cv_search_dlopen" = no; then
9884 missing_rust_dynlibs="libdl"
9885fi
9886
9887if test "$ac_cv_search_pthread_create" = no; then
9888 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9889fi
9890
9891CRAB1_LIBS="$CRAB1_LIBS"
9892
9893
9894# If we are building PIC/PIE host executables, and we are building dependent
9895# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9896# code.
9897host_libs_picflag=
9898if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9899host_libs_picflag='--with-pic'
9900fi
9901
9902
9903# By default, C and C++ are the only stage 1 languages.
9904stage1_languages=,c,
9905
9906# Target libraries that we bootstrap.
9907bootstrap_target_libs=,target-libgcc,
9908
9909# Figure out what language subdirectories are present.
9910# Look if the user specified --enable-languages="..."; if not, use
9911# the environment variable $LANGUAGES if defined. $LANGUAGES might
9912# go away some day.
9913# NB: embedded tabs in this IF block -- do not untabify
9914if test -d ${srcdir}/gcc; then
9915 if test x"${enable_languages+set}" != xset; then
9916 if test x"${LANGUAGES+set}" = xset; then
9917 enable_languages="${LANGUAGES}"
9918 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9919 else
9920 enable_languages=default
9921 fi
9922 else
9923 if test x"${enable_languages}" = x ||
9924 test x"${enable_languages}" = xyes;
9925 then
9926 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9927 exit 1
9928 fi
9929 fi
9930 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9931
9932 # 'f95' is the old name for the 'fortran' language. We issue a warning
9933 # and make the substitution.
9934 case ,${enable_languages}, in
9935 *,f95,*)
9936 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9937 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9938 ;;
9939 esac
9940
9941 # If bootstrapping, C++ must be enabled.
9942 case ",$enable_languages,:$enable_bootstrap" in
9943 *,c++,*:*) ;;
9944 *:yes)
9945 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9946 enable_languages="${enable_languages},c++"
9947 else
9948 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9949 fi
9950 ;;
9951 esac
9952
9953 # First scan to see if an enabled language requires some other language.
9954 # We assume that a given config-lang.in will list all the language
9955 # front ends it requires, even if some are required indirectly.
9956 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9957 case ${lang_frag} in
9958 ..) ;;
9959 # The odd quoting in the next line works around
9960 # an apparent bug in bash 1.12 on linux.
9961 ${srcdir}/gcc/[*]/config-lang.in) ;;
9962 *)
9963 # From the config-lang.in, get $language, $lang_requires, and
9964 # $lang_requires_boot_languages.
9965 language=
9966 lang_requires=
9967 lang_requires_boot_languages=
9968 # set srcdir during sourcing lang_frag to the gcc dir.
9969 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9970 # pollutes this shell
9971 saved_srcdir=${srcdir}
9972 srcdir=${srcdir}/gcc . ${lang_frag}
9973 srcdir=${saved_srcdir}
9974 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9975 case ,${enable_languages}, in
9976 *,$other,*) ;;
9977 *,default,*) ;;
9978 *,all,*) ;;
9979 *,$language,*)
9980 echo " \`$other' language required by \`$language'; enabling" 1>&2
9981 enable_languages="${enable_languages},${other}"
9982 ;;
9983 esac
9984 done
9985 for other in ${lang_requires_boot_languages} ; do
9986 if test "$other" != "c"; then
9987 case ,${enable_stage1_languages}, in
9988 *,$other,*) ;;
9989 *,default,*) ;;
9990 *,all,*) ;;
9991 *)
9992 case ,${enable_languages}, in
9993 *,$language,*)
9994 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9995 enable_stage1_languages="$enable_stage1_languages,${other}"
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 fi
10001 done
10002 ;;
10003 esac
10004 done
10005
10006 new_enable_languages=,c,
10007
10008 # If LTO is enabled, add the LTO front end.
10009 if test "$enable_lto" = "yes" ; then
10010 case ,${enable_languages}, in
10011 *,lto,*) ;;
10012 *) enable_languages="${enable_languages},lto" ;;
10013 esac
10014 if test "${build_lto_plugin}" = "yes" ; then
10015 configdirs="$configdirs lto-plugin"
10016 fi
10017 fi
10018
10019 # If we're building an offloading compiler, add the LTO front end.
10020 if test x"$enable_as_accelerator_for" != x ; then
10021 case ,${enable_languages}, in
10022 *,lto,*) ;;
10023 *) enable_languages="${enable_languages},lto" ;;
10024 esac
10025 fi
10026
10027 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
10028 potential_languages=,c,
10029
10030 enabled_target_libs=
10031 disabled_target_libs=
10032
10033 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
10034 case ${lang_frag} in
10035 ..) ;;
10036 # The odd quoting in the next line works around
10037 # an apparent bug in bash 1.12 on linux.
10038 ${srcdir}/gcc/[*]/config-lang.in) ;;
10039 *)
10040 # From the config-lang.in, get $language, $target_libs,
10041 # $lang_dirs, $boot_language, and $build_by_default
10042 language=
10043 target_libs=
10044 lang_dirs=
10045 subdir_requires=
10046 boot_language=no
10047 build_by_default=yes
10048 # set srcdir during sourcing. See above about save & restore
10049 saved_srcdir=${srcdir}
10050 srcdir=${srcdir}/gcc . ${lang_frag}
10051 srcdir=${saved_srcdir}
10052 if test x${language} = x; then
10053 echo "${lang_frag} doesn't set \$language." 1>&2
10054 exit 1
10055 fi
10056
10057 if test "$language" = "c++"; then
10058 boot_language=yes
10059 fi
10060
10061 add_this_lang=no
10062 # C is always enabled, so no need to add it again
10063 if test "$language" != "c"; then
10064 case ,${enable_languages}, in
10065 *,${language},*)
10066 # Language was explicitly selected; include it
10067 add_this_lang=yes
10068 ;;
10069 *,all,*)
10070 # All languages are enabled
10071 add_this_lang=all
10072 ;;
10073 *,default,*)
10074 # 'default' was selected, select it if it is a default language
10075 add_this_lang=${build_by_default}
10076 ;;
10077 esac
10078 fi
10079
10080 # Disable languages that need other directories if these aren't available.
10081 for i in $subdir_requires; do
10082 test -f "$srcdir/gcc/$i/config-lang.in" && continue
10083 case ${add_this_lang} in
10084 yes)
10085 # Specifically requested language; tell them.
10086 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
10087 ;;
10088 all)
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
10090$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
10091 add_this_lang=unsupported
10092 ;;
10093 *)
10094 # Silently disable.
10095 add_this_lang=unsupported
10096 ;;
10097 esac
10098 done
10099
10100 # Disable Ada if no preexisting GNAT is available.
10101 case ${add_this_lang}:${language}:${have_gnat} in
10102 yes:ada:no)
10103 # Specifically requested language; tell them.
10104 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
10105 ;;
10106 all:ada:no)
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10108$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10109 add_this_lang=unsupported
10110 ;;
10111 *:ada:no)
10112 # Silently disable.
10113 add_this_lang=unsupported
10114 ;;
10115 esac
10116
10117 # Disable D if no preexisting GDC is available.
10118 case ${add_this_lang}:${language}:${have_gdc} in
10119 yes:d:no)
10120 # Specifically requested language; tell them.
10121 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
10122 ;;
10123 all:d:no)
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10125$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10126 add_this_lang=unsupported
10127 ;;
10128 *:d:no)
10129 # Silently disable.
10130 add_this_lang=unsupported
10131 ;;
10132 esac
10133
10134 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10135 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10136 *:rust:none)
10137 # Nothing to do - we're not missing any C libraries
10138 ;;
10139 yes:rust:*)
10140 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10141 add_this_lang=unsupported
10142 ;;
10143 all:rust:*)
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10145$as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10146 add_this_lang=unsupported
10147 ;;
10148 *:rust:*)
10149 # Silently disable.
10150 add_this_lang=unsupported
10151 ;;
10152 esac
10153
10154 # Disable jit if -enable-host-shared not specified
10155 # but not if building for Mingw. All code in Windows
10156 # is position independent code (PIC).
10157 case $target in
10158 *mingw*) ;;
10159 *)
10160 case ${add_this_lang}:${language}:${host_shared} in
10161 yes:jit:no)
10162 # PR jit/64780: explicitly specify --enable-host-shared
10163 as_fn_error $? "
10164Enabling language \"jit\" requires --enable-host-shared.
10165
10166--enable-host-shared typically slows the rest of the compiler down by
10167a few %, so you must explicitly enable it.
10168
10169If you want to build both the jit and the regular compiler, it is often
10170best to do this via two separate configure/builds, in separate
10171directories, to avoid imposing the performance cost of
10172--enable-host-shared on the regular compiler." "$LINENO" 5
10173 ;;
10174 all:jit:no)
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10176$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10177 add_this_lang=unsupported
10178 ;;
10179 *:jit:no)
10180 # Silently disable.
10181 add_this_lang=unsupported
10182 ;;
10183 esac
10184 ;;
10185 esac
10186
10187 # Pre-conditions to consider whether cargo being supported.
10188 if test x"$have_cargo" = xyes \
10189 && test x"$build" != x"$host"; then
10190 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10191 # "'cargo' should build for the host system" is resolved:
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10193$as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10194 have_cargo=no
10195 else
10196 # Assume that cargo-produced object files are compatible with what
10197 # we're going to build here.
10198 :
10199 fi
10200 # Disable Rust if cargo is unavailable.
10201 case ${add_this_lang}:${language}:${have_cargo} in
10202 yes:rust:no)
10203 # Specifically requested language; tell them.
10204 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10205 ;;
10206 all:rust:no)
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10208$as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10209 add_this_lang=unsupported
10210 ;;
10211 *:rust:no)
10212 # Silently disable.
10213 add_this_lang=unsupported
10214 ;;
10215 esac
10216
10217
10218 # Disable a language that is unsupported by the target.
10219 case "${add_this_lang}: $unsupported_languages " in
10220 no:*) ;;
10221 unsupported:*) ;;
10222 *:*" $language "*)
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10224$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10225 add_this_lang=unsupported
10226 ;;
10227 esac
10228
10229 case $add_this_lang in
10230 unsupported)
10231 # Remove language-dependent dirs.
10232 disabled_target_libs="$disabled_target_libs $target_libs"
10233 noconfigdirs="$noconfigdirs $lang_dirs"
10234 ;;
10235 no)
10236 # Remove language-dependent dirs; still show language as supported.
10237 disabled_target_libs="$disabled_target_libs $target_libs"
10238 noconfigdirs="$noconfigdirs $lang_dirs"
10239 potential_languages="${potential_languages}${language},"
10240 ;;
10241 all|yes)
10242 new_enable_languages="${new_enable_languages}${language},"
10243 potential_languages="${potential_languages}${language},"
10244 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10245 enabled_target_libs="$enabled_target_libs $target_libs"
10246 case "${boot_language}:,$enable_stage1_languages," in
10247 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10248 # Add to (comma-separated) list of stage 1 languages.
10249 case ",$stage1_languages," in
10250 *,$language,* | ,yes, | ,all,) ;;
10251 *) stage1_languages="${stage1_languages}${language}," ;;
10252 esac
10253 # We need to bootstrap any supporting libraries.
10254 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10255 ;;
10256 esac
10257 ;;
10258 esac
10259 ;;
10260 esac
10261 done
10262
10263 # Add target libraries which are only needed for disabled languages
10264 # to noconfigdirs.
10265 if test -n "$disabled_target_libs"; then
10266 for dir in $disabled_target_libs; do
10267 case " $enabled_target_libs " in
10268 *" ${dir} "*) ;;
10269 *) noconfigdirs="$noconfigdirs $dir" ;;
10270 esac
10271 done
10272 fi
10273
10274 # Check whether --enable-stage1-languages was given.
10275if test "${enable_stage1_languages+set}" = set; then :
10276 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10277 ,no,|,,)
10278 # Set it to something that will have no effect in the loop below
10279 enable_stage1_languages=c ;;
10280 ,yes,)
10281 enable_stage1_languages=`echo $new_enable_languages | \
10282 sed -e "s/^,//" -e "s/,$//" ` ;;
10283 *,all,*)
10284 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10285 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10286 esac
10287
10288 # Add "good" languages from enable_stage1_languages to stage1_languages,
10289 # while "bad" languages go in missing_languages. Leave no duplicates.
10290 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10291 case $potential_languages in
10292 *,$i,*)
10293 case $stage1_languages in
10294 *,$i,*) ;;
10295 *) stage1_languages="$stage1_languages$i," ;;
10296 esac ;;
10297 *)
10298 case $missing_languages in
10299 *,$i,*) ;;
10300 *) missing_languages="$missing_languages$i," ;;
10301 esac ;;
10302 esac
10303 done
10304fi
10305
10306
10307 # Remove leading/trailing commas that were added for simplicity
10308 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10309 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10310 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10311 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10312
10313 if test "x$missing_languages" != x; then
10314 as_fn_error $? "
10315The following requested languages could not be built: ${missing_languages}
10316Supported languages are: ${potential_languages}" "$LINENO" 5
10317 fi
10318 if test "x$new_enable_languages" != "x$enable_languages"; then
10319 echo The following languages will be built: ${new_enable_languages}
10320 enable_languages="$new_enable_languages"
10321 fi
10322
10323
10324 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10325fi
10326
10327# Handle --disable-<component> generically.
10328for dir in $configdirs $build_configdirs $target_configdirs ; do
10329 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10330 varname=`echo $dirname | sed -e s/+/_/g`
10331 if eval test x\${enable_${varname}} "=" xno ; then
10332 noconfigdirs="$noconfigdirs $dir"
10333 fi
10334done
10335
10336# Check for Boehm's garbage collector
10337# Check whether --enable-objc-gc was given.
10338if test "${enable_objc_gc+set}" = set; then :
10339 enableval=$enable_objc_gc;
10340fi
10341
10342
10343# Check whether --with-target-bdw-gc was given.
10344if test "${with_target_bdw_gc+set}" = set; then :
10345 withval=$with_target_bdw_gc;
10346fi
10347
10348
10349# Check whether --with-target-bdw-gc-include was given.
10350if test "${with_target_bdw_gc_include+set}" = set; then :
10351 withval=$with_target_bdw_gc_include;
10352fi
10353
10354
10355# Check whether --with-target-bdw-gc-lib was given.
10356if test "${with_target_bdw_gc_lib+set}" = set; then :
10357 withval=$with_target_bdw_gc_lib;
10358fi
10359
10360
10361case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10363$as_echo_n "checking for bdw garbage collector... " >&6; }
10364 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10366$as_echo "using bdw-gc in default locations" >&6; }
10367 else
10368 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10369 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10370 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10371 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10372 else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10374$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10375 fi
10376 fi
10377esac
10378
10379# Disable libitm, libsanitizer, libvtv if we're not building C++
10380case ,${enable_languages}, in
10381 *,c++,*)
10382 # Disable libitm, libsanitizer if we're not building libstdc++
10383 case "${noconfigdirs}" in
10384 *target-libstdc++-v3*)
10385 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10386 ;;
10387 *) ;;
10388 esac
10389 ;;
10390 *)
10391 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10392 ;;
10393esac
10394
10395case ,${enable_languages}, in
10396 *,rust,*)
10397 case " ${noconfigdirs} " in
10398 *\ target-libstdc++-v3\ *)
10399 # Disable target libgrust if we're not building target libstdc++.
10400 noconfigdirs="$noconfigdirs target-libgrust"
10401 ;;
10402 *)
10403 case "${target}" in
10404 amdgcn*-*-* \
10405 | nvptx*-*-* )
10406 # Build fails in 'libgrust/libproc_macro_internal/':
10407 # sorry, unimplemented: exception handling not supported
10408 noconfigdirs="$noconfigdirs target-libgrust"
10409 ;;
10410 esac
10411 ;;
10412 esac
10413 ;;
10414esac
10415
10416# If gcc/ is not in the source tree then we'll not be building a
10417# target compiler, assume in that case we don't want to build any
10418# target libraries or tools.
10419#
10420# This was added primarily for the benefit for binutils-gdb who reuse
10421# this configure script, but don't always have target tools available.
10422if test ! -d ${srcdir}/gcc; then
10423 skipdirs="${skipdirs} ${target_configdirs}"
10424fi
10425
10426# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10427# $build_configdirs and $target_configdirs.
10428# If we have the source for $noconfigdirs entries, add them to $notsupp.
10429
10430notsupp=""
10431for dir in . $skipdirs $noconfigdirs ; do
10432 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10433 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10434 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10435 if test -r $srcdir/$dirname/configure ; then
10436 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10437 true
10438 else
10439 notsupp="$notsupp $dir"
10440 fi
10441 fi
10442 fi
10443 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10444 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10445 if test -r $srcdir/$dirname/configure ; then
10446 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10447 true
10448 else
10449 notsupp="$notsupp $dir"
10450 fi
10451 fi
10452 fi
10453 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10454 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10455 if test -r $srcdir/$dirname/configure ; then
10456 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10457 true
10458 else
10459 notsupp="$notsupp $dir"
10460 fi
10461 fi
10462 fi
10463done
10464
10465# Quietly strip out all directories which aren't configurable in this tree.
10466# This relies on all configurable subdirectories being autoconfiscated, which
10467# is now the case.
10468build_configdirs_all="$build_configdirs"
10469build_configdirs=
10470for i in ${build_configdirs_all} ; do
10471 j=`echo $i | sed -e s/build-//g`
10472 if test -f ${srcdir}/$j/configure ; then
10473 build_configdirs="${build_configdirs} $i"
10474 fi
10475done
10476
10477configdirs_all="$configdirs"
10478configdirs=
10479for i in ${configdirs_all} ; do
10480 if test -f ${srcdir}/$i/configure ; then
10481 configdirs="${configdirs} $i"
10482 fi
10483done
10484
10485target_configdirs_all="$target_configdirs"
10486target_configdirs=
10487for i in ${target_configdirs_all} ; do
10488 j=`echo $i | sed -e s/target-//g`
10489 if test -f ${srcdir}/$j/configure ; then
10490 target_configdirs="${target_configdirs} $i"
10491 fi
10492done
10493
10494# libiberty-linker-plugin is special: it doesn't have its own source directory,
10495# so we have to add it after the preceding checks.
10496if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10497then
10498 case " $configdirs " in
10499 *" libiberty "*)
10500 # If we can build libiberty, we can also build libiberty-linker-plugin.
10501 configdirs="$configdirs libiberty-linker-plugin"
10502 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10503 --with-libiberty=../libiberty-linker-plugin";;
10504 *)
10505 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10506 esac
10507fi
10508
10509# Sometimes we have special requirements for the host libiberty.
10510extra_host_libiberty_configure_flags=
10511case " $configdirs " in
10512 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10513 # When these are to be built as shared libraries, the same applies to
10514 # libiberty.
10515 extra_host_libiberty_configure_flags=--enable-shared
10516 ;;
10517esac
10518
10519
10520# Sometimes we have special requirements for the host zlib.
10521extra_host_zlib_configure_flags=
10522case " $configdirs " in
10523 *" bfd "*)
10524 # When bfd is to be built as a shared library, the same applies to
10525 # zlib.
10526 if test "$enable_shared" = "yes"; then
10527 extra_host_zlib_configure_flags=--enable-host-shared
10528 fi
10529 ;;
10530esac
10531
10532
10533# Produce a warning message for the subdirs we can't configure.
10534# This isn't especially interesting in the Cygnus tree, but in the individual
10535# FSF releases, it's important to let people know when their machine isn't
10536# supported by the one or two programs in a package.
10537
10538if test -n "${notsupp}" && test -z "${norecursion}" ; then
10539 # If $appdirs is non-empty, at least one of those directories must still
10540 # be configured, or we error out. (E.g., if the gas release supports a
10541 # specified target in some subdirs but not the gas subdir, we shouldn't
10542 # pretend that all is well.)
10543 if test -n "$appdirs" ; then
10544 for dir in $appdirs ; do
10545 if test -r $dir/Makefile.in ; then
10546 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10547 appdirs=""
10548 break
10549 fi
10550 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10551 appdirs=""
10552 break
10553 fi
10554 fi
10555 done
10556 if test -n "$appdirs" ; then
10557 echo "*** This configuration is not supported by this package." 1>&2
10558 exit 1
10559 fi
10560 fi
10561 # Okay, some application will build, or we don't care to check. Still
10562 # notify of subdirs not getting built.
10563 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10564 echo " ${notsupp}" 1>&2
10565 echo " (Any other directories should still work fine.)" 1>&2
10566fi
10567
10568case "$host" in
10569 *msdosdjgpp*)
10570 enable_gdbtk=no ;;
10571esac
10572
10573# To find our prefix, in gcc_cv_tool_prefix.
10574
10575# The user is always right.
10576if test "${PATH_SEPARATOR+set}" != set; then
10577 echo "#! /bin/sh" >conf$$.sh
10578 echo "exit 0" >>conf$$.sh
10579 chmod +x conf$$.sh
10580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10581 PATH_SEPARATOR=';'
10582 else
10583 PATH_SEPARATOR=:
10584 fi
10585 rm -f conf$$.sh
10586fi
10587
10588
10589 get_gcc_base_ver="cat"
10590
10591# Check whether --with-gcc-major-version-only was given.
10592if test "${with_gcc_major_version_only+set}" = set; then :
10593 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10594 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10595 fi
10596
10597fi
10598
10599
10600
10601
10602
10603
10604if test "x$exec_prefix" = xNONE; then
10605 if test "x$prefix" = xNONE; then
10606 gcc_cv_tool_prefix=$ac_default_prefix
10607 else
10608 gcc_cv_tool_prefix=$prefix
10609 fi
10610else
10611 gcc_cv_tool_prefix=$exec_prefix
10612fi
10613
10614# If there is no compiler in the tree, use the PATH only. In any
10615# case, if there is no compiler in the tree nobody should use
10616# AS_FOR_TARGET and LD_FOR_TARGET.
10617if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10618 if test x$with_gcc_major_version_only = xyes ; then
10619 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10620 else
10621 gcc_version=`cat $srcdir/gcc/BASE-VER`
10622 fi
10623 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10624 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10626 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10627 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10628 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10629else
10630 gcc_cv_tool_dirs=
10631fi
10632
10633if test x$build = x$target && test -n "$md_exec_prefix"; then
10634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10635fi
10636
10637
10638
10639copy_dirs=
10640
10641
10642# Check whether --with-build-sysroot was given.
10643if test "${with_build_sysroot+set}" = set; then :
10644 withval=$with_build_sysroot; if test x"$withval" != x ; then
10645 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10646 fi
10647else
10648 SYSROOT_CFLAGS_FOR_TARGET=
10649fi
10650
10651
10652
10653
10654# Check whether --with-debug-prefix-map was given.
10655if test "${with_debug_prefix_map+set}" = set; then :
10656 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10657 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10658 for debug_map in $withval; do
10659 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10660 done
10661 fi
10662else
10663 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10664fi
10665
10666
10667
10668# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10669# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10670# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10671# We want to ensure that TARGET libraries (which we know are built with
10672# gcc) are built with "-O2 -g", so include those options when setting
10673# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10674if test "x$CFLAGS_FOR_TARGET" = x; then
10675 if test "x${is_cross_compiler}" = xyes; then
10676 CFLAGS_FOR_TARGET="-g -O2"
10677 else
10678 CFLAGS_FOR_TARGET=$CFLAGS
10679 case " $CFLAGS " in
10680 *" -O2 "*) ;;
10681 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10682 esac
10683 case " $CFLAGS " in
10684 *" -g "* | *" -g3 "*) ;;
10685 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10686 esac
10687 fi
10688fi
10689
10690
10691if test "x$CXXFLAGS_FOR_TARGET" = x; then
10692 if test "x${is_cross_compiler}" = xyes; then
10693 CXXFLAGS_FOR_TARGET="-g -O2"
10694 else
10695 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10696 case " $CXXFLAGS " in
10697 *" -O2 "*) ;;
10698 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10699 esac
10700 case " $CXXFLAGS " in
10701 *" -g "* | *" -g3 "*) ;;
10702 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10703 esac
10704 fi
10705fi
10706
10707
10708
10709
10710# Handle --with-headers=XXX. If the value is not "yes", the contents of
10711# the named directory are copied to $(tooldir)/sys-include.
10712if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10713 if test x${is_cross_compiler} = xno ; then
10714 echo 1>&2 '***' --with-headers is only supported when cross compiling
10715 exit 1
10716 fi
10717 if test x"${with_headers}" != xyes ; then
10718 x=${gcc_cv_tool_prefix}
10719 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10720 fi
10721fi
10722
10723# Handle --with-libs=XXX. If the value is not "yes", the contents of
10724# the name directories are copied to $(tooldir)/lib. Multiple directories
10725# are permitted.
10726if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10727 if test x${is_cross_compiler} = xno ; then
10728 echo 1>&2 '***' --with-libs is only supported when cross compiling
10729 exit 1
10730 fi
10731 if test x"${with_libs}" != xyes ; then
10732 # Copy the libraries in reverse order, so that files in the first named
10733 # library override files in subsequent libraries.
10734 x=${gcc_cv_tool_prefix}
10735 for l in ${with_libs}; do
10736 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10737 done
10738 fi
10739fi
10740
10741# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10742#
10743# This is done by determining whether or not the appropriate directory
10744# is available, and by checking whether or not specific configurations
10745# have requested that this magic not happen.
10746#
10747# The command line options always override the explicit settings in
10748# configure.ac, and the settings in configure.ac override this magic.
10749#
10750# If the default for a toolchain is to use GNU as and ld, and you don't
10751# want to do that, then you should use the --without-gnu-as and
10752# --without-gnu-ld options for the configure script. Similarly, if
10753# the default is to use the included zlib and you don't want to do that,
10754# you should use the --with-system-zlib option for the configure script.
10755
10756if test x${use_gnu_as} = x &&
10757 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10758 with_gnu_as=yes
10759 extra_host_args="$extra_host_args --with-gnu-as"
10760fi
10761
10762if test x${use_gnu_ld} = x &&
10763 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10764 with_gnu_ld=yes
10765 extra_host_args="$extra_host_args --with-gnu-ld"
10766fi
10767
10768if test x${use_included_zlib} = x &&
10769 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10770 :
10771else
10772 with_system_zlib=yes
10773 extra_host_args="$extra_host_args --with-system-zlib"
10774fi
10775
10776# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10777# can detect this case.
10778
10779if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10780 with_newlib=yes
10781 extra_host_args="$extra_host_args --with-newlib"
10782fi
10783
10784# Handle ${copy_dirs}
10785set fnord ${copy_dirs}
10786shift
10787while test $# != 0 ; do
10788 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10789 :
10790 else
10791 echo Copying $1 to $2
10792
10793 # Use the install script to create the directory and all required
10794 # parent directories.
10795 if test -d $2 ; then
10796 :
10797 else
10798 echo >config.temp
10799 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10800 fi
10801
10802 # Copy the directory, assuming we have tar.
10803 # FIXME: Should we use B in the second tar? Not all systems support it.
10804 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10805
10806 # It is the responsibility of the user to correctly adjust all
10807 # symlinks. If somebody can figure out how to handle them correctly
10808 # here, feel free to add the code.
10809
10810 echo $1 > $2/COPIED
10811 fi
10812 shift; shift
10813done
10814
10815# Determine a target-dependent exec_prefix that the installed
10816# gcc will search in. Keep this list sorted by triplet, with
10817# the *-*-osname triplets last.
10818md_exec_prefix=
10819case "${target}" in
10820 i[34567]86-pc-msdosdjgpp*)
10821 md_exec_prefix=/dev/env/DJDIR/bin
10822 ;;
10823 *-*-hpux* | \
10824 *-*-nto-qnx* | \
10825 *-*-solaris2*)
10826 md_exec_prefix=/usr/ccs/bin
10827 ;;
10828esac
10829
10830extra_arflags_for_target=
10831extra_nmflags_for_target=
10832extra_ranlibflags_for_target=
10833target_makefile_frag=/dev/null
10834case "${target}" in
10835 spu-*-*)
10836 target_makefile_frag="config/mt-spu"
10837 ;;
10838 loongarch*-*linux* | loongarch*-*gnu*)
10839 target_makefile_frag="config/mt-loongarch-gnu"
10840 ;;
10841 loongarch*-*elf*)
10842 target_makefile_frag="config/mt-loongarch-elf"
10843 ;;
10844 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10845 target_makefile_frag="config/mt-sde"
10846 ;;
10847 mipsisa*-*-elfoabi*)
10848 target_makefile_frag="config/mt-mips-elfoabi"
10849 ;;
10850 mips*-*-*linux* | mips*-*-gnu*)
10851 target_makefile_frag="config/mt-mips-gnu"
10852 ;;
10853 *-*-linux-android*)
10854 target_makefile_frag="config/mt-android"
10855 ;;
10856 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10857 target_makefile_frag="config/mt-gnu"
10858 ;;
10859 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10860 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10861 # commands to handle both 32-bit and 64-bit objects. These flags are
10862 # harmless if we're using GNU nm or ar.
10863 extra_arflags_for_target=" -X32_64"
10864 extra_nmflags_for_target=" -B -X32_64"
10865 ;;
10866esac
10867
10868alphaieee_frag=/dev/null
10869case $target in
10870 alpha*-*-*)
10871 # This just makes sure to use the -mieee option to build target libs.
10872 # This should probably be set individually by each library.
10873 alphaieee_frag="config/mt-alphaieee"
10874 ;;
10875esac
10876
10877# If --enable-target-optspace always use -Os instead of -O2 to build
10878# the target libraries, similarly if it is not specified, use -Os
10879# on selected platforms.
10880ospace_frag=/dev/null
10881case "${enable_target_optspace}:${target}" in
10882 yes:*)
10883 ospace_frag="config/mt-ospace"
10884 ;;
10885 :d30v-*)
10886 ospace_frag="config/mt-d30v"
10887 ;;
10888 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10889 ospace_frag="config/mt-ospace"
10890 ;;
10891 no:* | :*)
10892 ;;
10893 *)
10894 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10895 ;;
10896esac
10897
10898# Some systems (e.g., one of the i386-aix systems the gas testers are
10899# using) don't handle "\$" correctly, so don't use it here.
10900tooldir='${exec_prefix}'/${target_noncanonical}
10901build_tooldir=${tooldir}
10902
10903# Create a .gdbinit file which runs the one in srcdir
10904# and tells GDB to look there for source files.
10905
10906if test -r ${srcdir}/.gdbinit ; then
10907 case ${srcdir} in
10908 .) ;;
10909 *) cat > ./.gdbinit <<EOF
10910# ${NO_EDIT}
10911dir ${srcdir}
10912dir .
10913source ${srcdir}/.gdbinit
10914EOF
10915 ;;
10916 esac
10917fi
10918
10919# Make sure that the compiler is able to generate an executable. If it
10920# can't, we are probably in trouble. We don't care whether we can run the
10921# executable--we might be using a cross compiler--we only care whether it
10922# can be created. At this point the main configure script has set CC.
10923we_are_ok=no
10924echo "int main () { return 0; }" > conftest.c
10925${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10926if test $? = 0 ; then
10927 if test -s conftest || test -s conftest.exe ; then
10928 we_are_ok=yes
10929 fi
10930fi
10931case $we_are_ok in
10932 no)
10933 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10934 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10935 rm -f conftest*
10936 exit 1
10937 ;;
10938esac
10939rm -f conftest*
10940
10941# Decide which environment variable is used to find dynamic libraries.
10942case "${host}" in
10943 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10944 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10945 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10946 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10947esac
10948
10949# On systems where the dynamic library environment variable is PATH,
10950# gcc/ will put dynamic libraries into a subdirectory to avoid adding
10951# built executables to PATH.
10952if test "$RPATH_ENVVAR" = PATH; then
10953 GCC_SHLIB_SUBDIR=/shlib
10954else
10955 GCC_SHLIB_SUBDIR=
10956fi
10957
10958# Adjust the toplevel makefile according to whether bootstrap was selected.
10959case $enable_bootstrap in
10960 yes)
10961 bootstrap_suffix=bootstrap
10962 BUILD_CONFIG=bootstrap-debug
10963 ;;
10964 no)
10965 bootstrap_suffix=no-bootstrap
10966 BUILD_CONFIG=
10967 ;;
10968esac
10969
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10971$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10972
10973
10974# Check whether --with-build-config was given.
10975if test "${with_build_config+set}" = set; then :
10976 withval=$with_build_config; case $with_build_config in
10977 yes) with_build_config= ;;
10978 no) with_build_config= BUILD_CONFIG= ;;
10979 esac
10980fi
10981
10982
10983if test "x${with_build_config}" != x; then
10984 BUILD_CONFIG=$with_build_config
10985else
10986 case $BUILD_CONFIG in
10987 bootstrap-debug)
10988 if echo "int f (void) { return 0; }" > conftest.c &&
10989 ${CC} -c conftest.c &&
10990 mv conftest.o conftest.o.g0 &&
10991 ${CC} -c -g conftest.c &&
10992 mv conftest.o conftest.o.g &&
10993 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10994 :
10995 else
10996 BUILD_CONFIG=
10997 fi
10998 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10999 ;;
11000 esac
11001fi
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
11003$as_echo "$BUILD_CONFIG" >&6; }
11004
11005
11006# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
11008$as_echo_n "checking for --enable-vtable-verify... " >&6; }
11009# Check whether --enable-vtable-verify was given.
11010if test "${enable_vtable_verify+set}" = set; then :
11011 enableval=$enable_vtable_verify; case "$enableval" in
11012 yes) enable_vtable_verify=yes ;;
11013 no) enable_vtable_verify=no ;;
11014 *) enable_vtable_verify=no;;
11015 esac
11016else
11017 enable_vtable_verify=no
11018fi
11019
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
11021$as_echo "$enable_vtable_verify" >&6; }
11022
11023# Record target_configdirs and the configure arguments for target and
11024# build configuration in Makefile.
11025target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
11026build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
11027bootstrap_fixincludes=no
11028
11029# If we are building libgomp, bootstrap it.
11030if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
11031 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
11032fi
11033
11034# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
11035# or bootstrap-ubsan, bootstrap it.
11036if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
11037 case "$BUILD_CONFIG" in
11038 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
11039 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
11040 bootstrap_fixincludes=yes
11041 ;;
11042 esac
11043fi
11044
11045# If we are building libvtv and --enable-vtable-verify, bootstrap it.
11046if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
11047 test "$enable_vtable_verify" != no; then
11048 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
11049fi
11050
11051# If we are building libatomic and the list of enabled languages includes the
11052# D frontend, bootstrap it.
11053if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
11054 case ,${enable_languages}, in
11055 *,d,*)
11056 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
11057 ;;
11058 esac
11059fi
11060
11061# Determine whether gdb needs tk/tcl or not.
11062# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
11063# and in that case we want gdb to be built without tk. Ugh!
11064# In fact I believe gdb is the *only* package directly dependent on tk,
11065# so we should be able to put the 'maybe's in unconditionally and
11066# leave out the maybe dependencies when enable_gdbtk is false. I'm not
11067# 100% sure that that's safe though.
11068
11069gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
11070case "$enable_gdbtk" in
11071 no)
11072 GDB_TK="" ;;
11073 yes)
11074 GDB_TK="${gdb_tk}" ;;
11075 *)
11076 # Only add the dependency on gdbtk when GDBtk is part of the gdb
11077 # distro. Eventually someone will fix this and move Insight, nee
11078 # gdbtk to a separate directory.
11079 if test -d ${srcdir}/gdb/gdbtk ; then
11080 GDB_TK="${gdb_tk}"
11081 else
11082 GDB_TK=""
11083 fi
11084 ;;
11085esac
11086CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
11087INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
11088
11089# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
11090# else does, only include them if one of these is built. The Makefile
11091# provides the ordering, so it's enough here to add to the list.
11092case " ${configdirs} " in
11093 *\ gdb\ *)
11094 configdirs="${configdirs} gnulib gdbsupport"
11095 ;;
11096 *\ gdbserver\ *)
11097 configdirs="${configdirs} gnulib gdbsupport"
11098 ;;
11099 *\ sim\ *)
11100 configdirs="${configdirs} gnulib"
11101 ;;
11102esac
11103
11104# Strip out unwanted targets.
11105
11106# While at that, we remove Makefiles if we were started for recursive
11107# configuration, so that the top-level Makefile reconfigures them,
11108# like we used to do when configure itself was recursive.
11109
11110# Loop over modules. We used to use the "$extrasub" feature from Autoconf
11111# but now we're fixing up the Makefile ourselves with the additional
11112# commands passed to AC_CONFIG_FILES. Use separate variables
11113# extrasub-{build,host,target} not because there is any reason to split
11114# the substitutions up that way, but only to remain below the limit of
11115# 99 commands in a script, for HP-UX sed.
11116
11117# Do not nest @if/@endif or @unless/@endunless pairs, because
11118# configure will not warn you at all.
11119
11120case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11121 yes:yes:*\ gold\ *:*,c++,*) ;;
11122 yes:yes:*\ gold\ *:*)
11123 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11124 ;;
11125esac
11126
11127# Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11128# Note C++ is always enabled for stage1 now.
11129case "$enable_bootstrap:${noconfigdirs}" in
11130 yes:*target-libstdc++-v3*)
11131 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11132 ;;
11133esac
11134
11135
11136extrasub_build=
11137for module in ${build_configdirs} ; do
11138 if test -z "${no_recursion}" \
11139 && test -f ${build_subdir}/${module}/Makefile; then
11140 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11141 rm -f ${build_subdir}/${module}/Makefile
11142 fi
11143 extrasub_build="$extrasub_build
11144/^@if build-$module\$/d
11145/^@endif build-$module\$/d
11146/^@unless build-$module\$/,/^@endunless build-$module\$/d
11147/^@if build-$module-$bootstrap_suffix\$/d
11148/^@endif build-$module-$bootstrap_suffix\$/d
11149/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11150done
11151extrasub_host=
11152for module in ${configdirs} ; do
11153 if test -z "${no_recursion}"; then
11154 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
11155 if test -f ${file}; then
11156 echo 1>&2 "*** removing ${file} to force reconfigure"
11157 rm -f ${file}
11158 fi
11159 done
11160 fi
11161 case ${module},${bootstrap_fixincludes} in
11162 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
11163 *) host_bootstrap_suffix=$bootstrap_suffix ;;
11164 esac
11165 extrasub_host="$extrasub_host
11166/^@if $module\$/d
11167/^@endif $module\$/d
11168/^@unless $module\$/,/^@endunless $module\$/d
11169/^@if $module-$host_bootstrap_suffix\$/d
11170/^@endif $module-$host_bootstrap_suffix\$/d
11171/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11172done
11173extrasub_target=
11174for module in ${target_configdirs} ; do
11175 if test -z "${no_recursion}" \
11176 && test -f ${target_subdir}/${module}/Makefile; then
11177 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11178 rm -f ${target_subdir}/${module}/Makefile
11179 fi
11180
11181 # We only bootstrap target libraries listed in bootstrap_target_libs.
11182 case $bootstrap_target_libs in
11183 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11184 *) target_bootstrap_suffix=no-bootstrap ;;
11185 esac
11186
11187 extrasub_target="$extrasub_target
11188/^@if target-$module\$/d
11189/^@endif target-$module\$/d
11190/^@unless target-$module\$/,/^@endunless target-$module\$/d
11191/^@if target-$module-$target_bootstrap_suffix\$/d
11192/^@endif target-$module-$target_bootstrap_suffix\$/d
11193/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11194done
11195
11196# Do the final fixup along with target modules.
11197extrasub_target="$extrasub_target
11198/^@if /,/^@endif /d
11199/^@unless /d
11200/^@endunless /d"
11201
11202if test "$enable_pgo_build" != "no"; then
11203 extrasub_build="$extrasub_build
11204/^@if pgo-build\$/d
11205/^@endif pgo-build\$/d"
11206fi
11207
11208# Create the serialization dependencies. This uses a temporary file.
11209
11210# Check whether --enable-serial-configure was given.
11211if test "${enable_serial_configure+set}" = set; then :
11212 enableval=$enable_serial_configure;
11213fi
11214
11215
11216case ${enable_serial_configure} in
11217 yes)
11218 enable_serial_build_configure=yes
11219 enable_serial_host_configure=yes
11220 enable_serial_target_configure=yes
11221 ;;
11222esac
11223
11224# These force 'configure's to be done one at a time, to avoid problems
11225# with contention over a shared config.cache.
11226rm -f serdep.tmp
11227if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11228echo '# serdep.tmp' > serdep.tmp
11229fi
11230olditem=
11231test "x${enable_serial_build_configure}" = xyes &&
11232for item in ${build_configdirs} ; do
11233 case ${olditem} in
11234 "") ;;
11235 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11236 esac
11237 olditem=${item}
11238done
11239olditem=
11240test "x${enable_serial_host_configure}" = xyes &&
11241for item in ${configdirs} ; do
11242 case ${olditem} in
11243 "") ;;
11244 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11245 esac
11246 olditem=${item}
11247done
11248olditem=
11249test "x${enable_serial_target_configure}" = xyes &&
11250for item in ${target_configdirs} ; do
11251 case ${olditem} in
11252 "") ;;
11253 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11254 esac
11255 olditem=${item}
11256done
11257serialization_dependencies=serdep.tmp
11258
11259
11260# Base args. Strip norecursion, cache-file, srcdir, host, build,
11261# target, nonopt, and variable assignments. These are the ones we
11262# might not want to pass down to subconfigures. The exception being
11263# --cache-file=/dev/null, which is used to turn off the use of cache
11264# files altogether, and which should be passed on to subconfigures.
11265# Also strip program-prefix, program-suffix, and program-transform-name,
11266# so that we can pass down a consistent program-transform-name.
11267hbaseargs=
11268bbaseargs=
11269tbaseargs=
11270keep_next=no
11271skip_next=no
11272eval "set -- $ac_configure_args"
11273for ac_arg
11274do
11275 if test X"$skip_next" = X"yes"; then
11276 skip_next=no
11277 continue
11278 fi
11279 if test X"$keep_next" = X"yes"; then
11280 case $ac_arg in
11281 *\'*)
11282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11283 esac
11284 hbaseargs="$hbaseargs '$ac_arg'"
11285 bbaseargs="$bbaseargs '$ac_arg'"
11286 tbaseargs="$tbaseargs '$ac_arg'"
11287 keep_next=no
11288 continue
11289 fi
11290
11291 # Handle separated arguments. Based on the logic generated by
11292 # autoconf 2.59.
11293 case $ac_arg in
11294 *=* | --config-cache | -C | -disable-* | --disable-* \
11295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11297 | -with-* | --with-* | -without-* | --without-* | --x)
11298 separate_arg=no
11299 ;;
11300 -*)
11301 separate_arg=yes
11302 ;;
11303 *)
11304 separate_arg=no
11305 ;;
11306 esac
11307
11308 skip_targ=no
11309 skip_barg=no
11310 case $ac_arg in
11311
11312 --with-* | --without-*)
11313 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11314
11315 case $libopt in
11316 *[-_]include)
11317 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11318 ;;
11319 *[-_]lib)
11320 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11321 ;;
11322 *[-_]prefix)
11323 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11324 ;;
11325 *[-_]type)
11326 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11327 ;;
11328 *)
11329 lib=$libopt
11330 ;;
11331 esac
11332
11333
11334 case $lib in
11335 mpc | mpfr | gmp | isl)
11336 # If we're processing --with-$lib, --with-$lib-include or
11337 # --with-$lib-lib, for one of the libs above, and target is
11338 # different from host, don't pass the current argument to any
11339 # target library's configure.
11340 if test x$is_cross_compiler = xyes; then
11341 skip_targ=yes
11342 fi
11343 ;;
11344 libintl | libiconv)
11345 # We don't want libintl (and co.) in anything but the host arguments.
11346 skip_targ=yes
11347 skip_barg=yes
11348 ;;
11349 esac
11350 ;;
11351 esac
11352
11353 case "$ac_arg" in
11354 --cache-file=/dev/null | \
11355 -cache-file=/dev/null )
11356 # Handled here to avoid the test to skip args below.
11357 hbaseargs="$hbaseargs '$ac_arg'"
11358 bbaseargs="$bbaseargs '$ac_arg'"
11359 tbaseargs="$tbaseargs '$ac_arg'"
11360 # Assert: $separate_arg should always be no.
11361 keep_next=$separate_arg
11362 ;;
11363 --no*)
11364 continue
11365 ;;
11366 --c* | \
11367 --sr* | \
11368 --ho* | \
11369 --bu* | \
11370 --t* | \
11371 --program-* | \
11372 -cache_file* | \
11373 -srcdir* | \
11374 -host* | \
11375 -build* | \
11376 -target* | \
11377 -program-prefix* | \
11378 -program-suffix* | \
11379 -program-transform-name* )
11380 skip_next=$separate_arg
11381 continue
11382 ;;
11383 -*)
11384 # An option. Add it.
11385 case $ac_arg in
11386 *\'*)
11387 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11388 esac
11389 hbaseargs="$hbaseargs '$ac_arg'"
11390 if test X"$skip_barg" = Xno; then
11391 bbaseargs="$bbaseargs '$ac_arg'"
11392 fi
11393 if test X"$skip_targ" = Xno; then
11394 tbaseargs="$tbaseargs '$ac_arg'"
11395 fi
11396 keep_next=$separate_arg
11397 ;;
11398 *)
11399 # Either a variable assignment, or a nonopt (triplet). Don't
11400 # pass it down; let the Makefile handle this.
11401 continue
11402 ;;
11403 esac
11404done
11405# Remove the initial space we just introduced and, as these will be
11406# expanded by make, quote '$'.
11407hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11408bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11409
11410# Add in --program-transform-name, after --program-prefix and
11411# --program-suffix have been applied to it. Autoconf has already
11412# doubled dollar signs and backslashes in program_transform_name; we want
11413# the backslashes un-doubled, and then the entire thing wrapped in single
11414# quotes, because this will be expanded first by make and then by the shell.
11415# Also, because we want to override the logic in subdir configure scripts to
11416# choose program_transform_name, replace any s,x,x, with s,y,y,.
11417sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11418${program_transform_name}
11419EOF_SED
11420gcc_transform_name=`cat conftestsed.out`
11421rm -f conftestsed.out
11422hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11423bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11424tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11425if test "$silent" = yes; then
11426 bbaseargs="$bbaseargs --silent"
11427 hbaseargs="$hbaseargs --silent"
11428 tbaseargs="$tbaseargs --silent"
11429fi
11430
11431bbaseargs="$bbaseargs --disable-option-checking"
11432hbaseargs="$hbaseargs --disable-option-checking"
11433tbaseargs="$tbaseargs --disable-option-checking"
11434
11435if test "$enable_year2038" = no; then
11436 bbaseargs="$bbaseargs --disable-year2038"
11437 hbaseargs="$hbaseargs --disable-year2038"
11438 tbaseargs="$tbaseargs --disable-year2038"
11439fi
11440
11441# Record and document user additions to sub configure arguments.
11442
11443
11444
11445
11446# For the build-side libraries, we just need to pretend we're native,
11447# and not use the same cache file. Multilibs are neither needed nor
11448# desired. We can't even use the same cache file for all build-side
11449# libraries, as they're compiled differently; some with C, some with
11450# C++ or with different feature-enabling options.
11451build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11452
11453# For host modules, accept cache file option, or specification as blank.
11454case "${cache_file}" in
11455"") # empty
11456 cache_file_option="" ;;
11457/* | [A-Za-z]:[\\/]* ) # absolute path
11458 cache_file_option="--cache-file=${cache_file}" ;;
11459*) # relative path
11460 cache_file_option="--cache-file=../${cache_file}" ;;
11461esac
11462
11463# Host dirs don't like to share a cache file either, horribly enough.
11464# This seems to be due to autoconf 2.5x stupidity.
11465host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11466
11467target_configargs="$target_configargs ${tbaseargs}"
11468
11469# Passing a --with-cross-host argument lets the target libraries know
11470# whether they are being built with a cross-compiler or being built
11471# native. However, it would be better to use other mechanisms to make the
11472# sorts of decisions they want to make on this basis. Please consider
11473# this option to be deprecated. FIXME.
11474if test x${is_cross_compiler} = xyes ; then
11475 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11476fi
11477
11478# Special user-friendly check for native x86_64-linux build, if
11479# multilib is not explicitly enabled.
11480case "$target:$have_compiler:$host:$target:$enable_multilib" in
11481 x86_64-*linux*:yes:$build:$build:)
11482 # Make sure we have a development environment that handles 32-bit
11483 dev64=no
11484 echo "int main () { return 0; }" > conftest.c
11485 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11486 if test $? = 0 ; then
11487 if test -s conftest || test -s conftest.exe ; then
11488 dev64=yes
11489 fi
11490 fi
11491 rm -f conftest*
11492 if test x${dev64} != xyes ; then
11493 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
11494 fi
11495 ;;
11496esac
11497
11498# Default to --enable-multilib.
11499if test x${enable_multilib} = x ; then
11500 target_configargs="--enable-multilib ${target_configargs}"
11501fi
11502
11503# Pass --with-newlib if appropriate. Note that target_configdirs has
11504# changed from the earlier setting of with_newlib.
11505if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11506 target_configargs="--with-newlib ${target_configargs}"
11507fi
11508
11509# Different target subdirs use different values of certain variables
11510# (notably CXX). Worse, multilibs use *lots* of different values.
11511# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11512# it doesn't automatically accept command-line overrides of them.
11513# This means it's not safe for target subdirs to share a cache file,
11514# which is disgusting, but there you have it. Hopefully this can be
11515# fixed in future. It's still worthwhile to use a cache file for each
11516# directory. I think.
11517
11518# Pass the appropriate --build, --host, --target and --cache-file arguments.
11519# We need to pass --target, as newer autoconf's requires consistency
11520# for target_alias and gcc doesn't manage it consistently.
11521target_configargs="--cache-file=./config.cache ${target_configargs}"
11522
11523FLAGS_FOR_TARGET=
11524case " $target_configdirs " in
11525 *" newlib "*)
11526 case " $target_configargs " in
11527 *" --with-newlib "*)
11528 case "$target" in
11529 *-cygwin*)
11530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11531 ;;
11532 esac
11533
11534 # If we're not building GCC, don't discard standard headers.
11535 if test -d ${srcdir}/gcc; then
11536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11537
11538 if test "${build}" != "${host}"; then
11539 # On Canadian crosses, CC_FOR_TARGET will have already been set
11540 # by `configure', so we won't have an opportunity to add -Bgcc/
11541 # to it. This is right: we don't want to search that directory
11542 # for binaries, but we want the header files in there, so add
11543 # them explicitly.
11544 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11545
11546 # Someone might think of using the pre-installed headers on
11547 # Canadian crosses, in case the installed compiler is not fully
11548 # compatible with the compiler being built. In this case, it
11549 # would be better to flag an error than risking having
11550 # incompatible object files being constructed. We can't
11551 # guarantee that an error will be flagged, but let's hope the
11552 # compiler will do it, when presented with incompatible header
11553 # files.
11554 fi
11555 fi
11556
11557 case "${target}-${is_cross_compiler}" in
11558 i[3456789]86-*-linux*-no)
11559 # Here host == target, so we don't need to build gcc,
11560 # so we don't want to discard standard headers.
11561 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11562 ;;
11563 *)
11564 # If we're building newlib, use its generic headers last, but search
11565 # for any libc-related directories first (so make it the last -B
11566 # switch).
11567 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11568
11569 # If we're building libgloss, find the startup file, simulator library
11570 # and linker script.
11571 case " $target_configdirs " in
11572 *" libgloss "*)
11573 # Look for startup file, simulator library and maybe linker script.
11574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11575 # Look for libnosys.a in case the target needs it.
11576 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11577 # Most targets have the linker script in the source directory.
11578 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11579 ;;
11580 esac
11581 ;;
11582 esac
11583 ;;
11584 esac
11585 ;;
11586esac
11587
11588case "$target" in
11589 x86_64-*mingw* | *-w64-mingw*)
11590 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11591 # however, use a symlink named 'mingw' in ${prefix} .
11592 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11593 ;;
11594 *-mingw*)
11595 # MinGW can't be handled as Cygwin above since it does not use newlib.
11596 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'
11597 ;;
11598esac
11599
11600# Allow the user to override the flags for
11601# our build compiler if desired.
11602if test x"${build}" = x"${host}" ; then
11603 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11604 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11605 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11606 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11607fi
11608
11609if test -d ${srcdir}/gcc; then
11610 # On Canadian crosses, we'll be searching the right directories for the
11611 # previously-installed cross compiler, so don't bother to add flags for
11612 # executable directories within the install tree of the compiler being built;
11613 # programs in there won't even run.
11614 if test "${build}" = "${host}"; then
11615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/'
11616 fi
11617
11618 # Search for pre-installed headers if nothing else fits.
11619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11620fi
11621
11622if test "x${use_gnu_ld}" = x &&
11623 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11624 # Arrange for us to find uninstalled linker scripts.
11625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11626fi
11627
11628# Search for other target-specific linker scripts and such.
11629case "${target}" in
11630 mep*)
11631 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11632 ;;
11633 # The VxWorks support for shared libraries is getting in
11634 # incrementally. Make sure it doesn't get activated implicitly:
11635 *vxworks*)
11636 if test "${enable_shared-unset}" = unset ; then
11637 enable_shared=no
11638 # So the build of libraries knows ...
11639 target_configargs="${target_configargs} --disable-shared"
11640 # So gcc knows ...
11641 host_configargs="${host_configargs} --disable-shared"
11642 fi
11643 ;;
11644esac
11645
11646# Makefile fragments.
11647for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11648do
11649 eval fragval=\$$frag
11650 if test $fragval != /dev/null; then
11651 eval $frag=${srcdir}/$fragval
11652 fi
11653done
11654
11655
11656
11657
11658
11659# Miscellanea: directories, flags, etc.
11660
11661
11662
11663
11664
11665
11666
11667
11668# Build module lists & subconfigure args.
11669
11670
11671
11672# Host module lists & subconfigure args.
11673
11674
11675
11676
11677# Target module lists & subconfigure args.
11678
11679
11680
11681# Build tools.
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703# Generate default definitions for YACC, M4, LEX and other programs that run
11704# on the build machine. These are used if the Makefile can't locate these
11705# programs in objdir.
11706MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11707
11708for ac_prog in 'bison -y' byacc yacc
11709do
11710 # Extract the first word of "$ac_prog", so it can be a program name with args.
11711set dummy $ac_prog; ac_word=$2
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713$as_echo_n "checking for $ac_word... " >&6; }
11714if ${ac_cv_prog_YACC+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716else
11717 if test -n "$YACC"; then
11718 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11719else
11720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721for as_dir in $PATH
11722do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_prog_YACC="$ac_prog"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11730 fi
11731done
11732 done
11733IFS=$as_save_IFS
11734
11735fi
11736fi
11737YACC=$ac_cv_prog_YACC
11738if test -n "$YACC"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11740$as_echo "$YACC" >&6; }
11741else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
11744fi
11745
11746
11747 test -n "$YACC" && break
11748done
11749test -n "$YACC" || YACC="$MISSING bison -y"
11750
11751case " $build_configdirs " in
11752 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11753esac
11754
11755for ac_prog in bison
11756do
11757 # Extract the first word of "$ac_prog", so it can be a program name with args.
11758set dummy $ac_prog; ac_word=$2
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760$as_echo_n "checking for $ac_word... " >&6; }
11761if ${ac_cv_prog_BISON+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763else
11764 if test -n "$BISON"; then
11765 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11774 ac_cv_prog_BISON="$ac_prog"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 break 2
11777 fi
11778done
11779 done
11780IFS=$as_save_IFS
11781
11782fi
11783fi
11784BISON=$ac_cv_prog_BISON
11785if test -n "$BISON"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11787$as_echo "$BISON" >&6; }
11788else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791fi
11792
11793
11794 test -n "$BISON" && break
11795done
11796test -n "$BISON" || BISON="$MISSING bison"
11797
11798case " $build_configdirs " in
11799 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11800esac
11801
11802for ac_prog in gm4 gnum4 m4
11803do
11804 # Extract the first word of "$ac_prog", so it can be a program name with args.
11805set dummy $ac_prog; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if ${ac_cv_prog_M4+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 if test -n "$M4"; then
11812 ac_cv_prog_M4="$M4" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_prog_M4="$ac_prog"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825done
11826 done
11827IFS=$as_save_IFS
11828
11829fi
11830fi
11831M4=$ac_cv_prog_M4
11832if test -n "$M4"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11834$as_echo "$M4" >&6; }
11835else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838fi
11839
11840
11841 test -n "$M4" && break
11842done
11843test -n "$M4" || M4="$MISSING m4"
11844
11845case " $build_configdirs " in
11846 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11847esac
11848
11849for ac_prog in flex lex
11850do
11851 # Extract the first word of "$ac_prog", so it can be a program name with args.
11852set dummy $ac_prog; ac_word=$2
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if ${ac_cv_prog_LEX+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857else
11858 if test -n "$LEX"; then
11859 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_LEX="$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873 done
11874IFS=$as_save_IFS
11875
11876fi
11877fi
11878LEX=$ac_cv_prog_LEX
11879if test -n "$LEX"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11881$as_echo "$LEX" >&6; }
11882else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885fi
11886
11887
11888 test -n "$LEX" && break
11889done
11890test -n "$LEX" || LEX="$MISSING flex"
11891
11892case " $build_configdirs " in
11893 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11894 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11895esac
11896
11897for ac_prog in flex
11898do
11899 # Extract the first word of "$ac_prog", so it can be a program name with args.
11900set dummy $ac_prog; ac_word=$2
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902$as_echo_n "checking for $ac_word... " >&6; }
11903if ${ac_cv_prog_FLEX+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905else
11906 if test -n "$FLEX"; then
11907 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_FLEX="$ac_prog"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920done
11921 done
11922IFS=$as_save_IFS
11923
11924fi
11925fi
11926FLEX=$ac_cv_prog_FLEX
11927if test -n "$FLEX"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11929$as_echo "$FLEX" >&6; }
11930else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
11933fi
11934
11935
11936 test -n "$FLEX" && break
11937done
11938test -n "$FLEX" || FLEX="$MISSING flex"
11939
11940case " $build_configdirs " in
11941 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11942esac
11943
11944for ac_prog in makeinfo
11945do
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947set dummy $ac_prog; ac_word=$2
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
11950if ${ac_cv_prog_MAKEINFO+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952else
11953 if test -n "$MAKEINFO"; then
11954 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_MAKEINFO="$ac_prog"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967done
11968 done
11969IFS=$as_save_IFS
11970
11971fi
11972fi
11973MAKEINFO=$ac_cv_prog_MAKEINFO
11974if test -n "$MAKEINFO"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11976$as_echo "$MAKEINFO" >&6; }
11977else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980fi
11981
11982
11983 test -n "$MAKEINFO" && break
11984done
11985test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11986
11987case " $build_configdirs " in
11988 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11989 *)
11990
11991 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11992 # higher, else we use the "missing" dummy.
11993 if ${MAKEINFO} --version \
11994 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11995 :
11996 else
11997 MAKEINFO="$MISSING makeinfo"
11998 fi
11999 ;;
12000
12001esac
12002
12003# FIXME: expect and dejagnu may become build tools?
12004
12005for ac_prog in expect
12006do
12007 # Extract the first word of "$ac_prog", so it can be a program name with args.
12008set dummy $ac_prog; ac_word=$2
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010$as_echo_n "checking for $ac_word... " >&6; }
12011if ${ac_cv_prog_EXPECT+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013else
12014 if test -n "$EXPECT"; then
12015 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
12016else
12017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018for as_dir in $PATH
12019do
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_prog_EXPECT="$ac_prog"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12027 fi
12028done
12029 done
12030IFS=$as_save_IFS
12031
12032fi
12033fi
12034EXPECT=$ac_cv_prog_EXPECT
12035if test -n "$EXPECT"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
12037$as_echo "$EXPECT" >&6; }
12038else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
12041fi
12042
12043
12044 test -n "$EXPECT" && break
12045done
12046test -n "$EXPECT" || EXPECT="expect"
12047
12048case " $configdirs " in
12049 *" expect "*)
12050 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
12051 ;;
12052esac
12053
12054for ac_prog in runtest
12055do
12056 # Extract the first word of "$ac_prog", so it can be a program name with args.
12057set dummy $ac_prog; ac_word=$2
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059$as_echo_n "checking for $ac_word... " >&6; }
12060if ${ac_cv_prog_RUNTEST+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062else
12063 if test -n "$RUNTEST"; then
12064 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
12065else
12066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067for as_dir in $PATH
12068do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_RUNTEST="$ac_prog"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12076 fi
12077done
12078 done
12079IFS=$as_save_IFS
12080
12081fi
12082fi
12083RUNTEST=$ac_cv_prog_RUNTEST
12084if test -n "$RUNTEST"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
12086$as_echo "$RUNTEST" >&6; }
12087else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089$as_echo "no" >&6; }
12090fi
12091
12092
12093 test -n "$RUNTEST" && break
12094done
12095test -n "$RUNTEST" || RUNTEST="runtest"
12096
12097case " $configdirs " in
12098 *" dejagnu "*)
12099 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
12100 ;;
12101esac
12102
12103
12104# Host tools.
12105ncn_tool_prefix=
12106test -n "$host_alias" && ncn_tool_prefix=$host_alias-
12107ncn_target_tool_prefix=
12108test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12109
12110
12111
12112if test -n "$AR"; then
12113 ac_cv_prog_AR=$AR
12114elif test -n "$ac_cv_prog_AR"; then
12115 AR=$ac_cv_prog_AR
12116fi
12117
12118if test -n "$ac_cv_prog_AR"; then
12119 for ncn_progname in ar; do
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12121set dummy ${ncn_progname}; ac_word=$2
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
12124if ${ac_cv_prog_AR+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126else
12127 if test -n "$AR"; then
12128 ac_cv_prog_AR="$AR" # Let the user override the test.
12129else
12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_AR="${ncn_progname}"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12140 fi
12141done
12142 done
12143IFS=$as_save_IFS
12144
12145fi
12146fi
12147AR=$ac_cv_prog_AR
12148if test -n "$AR"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12150$as_echo "$AR" >&6; }
12151else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
12154fi
12155
12156
12157 done
12158fi
12159
12160for ncn_progname in ar; do
12161 if test -n "$ncn_tool_prefix"; then
12162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12163set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165$as_echo_n "checking for $ac_word... " >&6; }
12166if ${ac_cv_prog_AR+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168else
12169 if test -n "$AR"; then
12170 ac_cv_prog_AR="$AR" # Let the user override the test.
12171else
12172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173for as_dir in $PATH
12174do
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12182 fi
12183done
12184 done
12185IFS=$as_save_IFS
12186
12187fi
12188fi
12189AR=$ac_cv_prog_AR
12190if test -n "$AR"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12192$as_echo "$AR" >&6; }
12193else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
12196fi
12197
12198
12199 fi
12200 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12202set dummy ${ncn_progname}; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if ${ac_cv_prog_AR+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$AR"; then
12209 ac_cv_prog_AR="$AR" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_AR="${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222done
12223 done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228AR=$ac_cv_prog_AR
12229if test -n "$AR"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12231$as_echo "$AR" >&6; }
12232else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238 fi
12239 test -n "$ac_cv_prog_AR" && break
12240done
12241
12242if test -z "$ac_cv_prog_AR" ; then
12243 set dummy ar
12244 if test $build = $host ; then
12245 AR="$2"
12246 else
12247 AR="${ncn_tool_prefix}$2"
12248 fi
12249fi
12250
12251
12252
12253if test -n "$AS"; then
12254 ac_cv_prog_AS=$AS
12255elif test -n "$ac_cv_prog_AS"; then
12256 AS=$ac_cv_prog_AS
12257fi
12258
12259if test -n "$ac_cv_prog_AS"; then
12260 for ncn_progname in as; do
12261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12262set dummy ${ncn_progname}; ac_word=$2
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264$as_echo_n "checking for $ac_word... " >&6; }
12265if ${ac_cv_prog_AS+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267else
12268 if test -n "$AS"; then
12269 ac_cv_prog_AS="$AS" # Let the user override the test.
12270else
12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $PATH
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_AS="${ncn_progname}"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282done
12283 done
12284IFS=$as_save_IFS
12285
12286fi
12287fi
12288AS=$ac_cv_prog_AS
12289if test -n "$AS"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12291$as_echo "$AS" >&6; }
12292else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294$as_echo "no" >&6; }
12295fi
12296
12297
12298 done
12299fi
12300
12301for ncn_progname in as; do
12302 if test -n "$ncn_tool_prefix"; then
12303 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12304set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
12307if ${ac_cv_prog_AS+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309else
12310 if test -n "$AS"; then
12311 ac_cv_prog_AS="$AS" # Let the user override the test.
12312else
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12320 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324done
12325 done
12326IFS=$as_save_IFS
12327
12328fi
12329fi
12330AS=$ac_cv_prog_AS
12331if test -n "$AS"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12333$as_echo "$AS" >&6; }
12334else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338
12339
12340 fi
12341 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343set dummy ${ncn_progname}; ac_word=$2
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if ${ac_cv_prog_AS+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348else
12349 if test -n "$AS"; then
12350 ac_cv_prog_AS="$AS" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359 ac_cv_prog_AS="${ncn_progname}"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363done
12364 done
12365IFS=$as_save_IFS
12366
12367fi
12368fi
12369AS=$ac_cv_prog_AS
12370if test -n "$AS"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12372$as_echo "$AS" >&6; }
12373else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376fi
12377
12378
12379 fi
12380 test -n "$ac_cv_prog_AS" && break
12381done
12382
12383if test -z "$ac_cv_prog_AS" ; then
12384 set dummy as
12385 if test $build = $host ; then
12386 AS="$2"
12387 else
12388 AS="${ncn_tool_prefix}$2"
12389 fi
12390fi
12391
12392
12393
12394if test -n "$DLLTOOL"; then
12395 ac_cv_prog_DLLTOOL=$DLLTOOL
12396elif test -n "$ac_cv_prog_DLLTOOL"; then
12397 DLLTOOL=$ac_cv_prog_DLLTOOL
12398fi
12399
12400if test -n "$ac_cv_prog_DLLTOOL"; then
12401 for ncn_progname in dlltool; do
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403set dummy ${ncn_progname}; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
12406if ${ac_cv_prog_DLLTOOL+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408else
12409 if test -n "$DLLTOOL"; then
12410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_prog_DLLTOOL="${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423done
12424 done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429DLLTOOL=$ac_cv_prog_DLLTOOL
12430if test -n "$DLLTOOL"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12432$as_echo "$DLLTOOL" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438
12439 done
12440fi
12441
12442for ncn_progname in dlltool; do
12443 if test -n "$ncn_tool_prefix"; then
12444 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12445set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447$as_echo_n "checking for $ac_word... " >&6; }
12448if ${ac_cv_prog_DLLTOOL+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450else
12451 if test -n "$DLLTOOL"; then
12452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12453else
12454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455for as_dir in $PATH
12456do
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12464 fi
12465done
12466 done
12467IFS=$as_save_IFS
12468
12469fi
12470fi
12471DLLTOOL=$ac_cv_prog_DLLTOOL
12472if test -n "$DLLTOOL"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12474$as_echo "$DLLTOOL" >&6; }
12475else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477$as_echo "no" >&6; }
12478fi
12479
12480
12481 fi
12482 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12484set dummy ${ncn_progname}; ac_word=$2
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486$as_echo_n "checking for $ac_word... " >&6; }
12487if ${ac_cv_prog_DLLTOOL+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489else
12490 if test -n "$DLLTOOL"; then
12491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12492else
12493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494for as_dir in $PATH
12495do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500 ac_cv_prog_DLLTOOL="${ncn_progname}"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504done
12505 done
12506IFS=$as_save_IFS
12507
12508fi
12509fi
12510DLLTOOL=$ac_cv_prog_DLLTOOL
12511if test -n "$DLLTOOL"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12513$as_echo "$DLLTOOL" >&6; }
12514else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
12517fi
12518
12519
12520 fi
12521 test -n "$ac_cv_prog_DLLTOOL" && break
12522done
12523
12524if test -z "$ac_cv_prog_DLLTOOL" ; then
12525 set dummy dlltool
12526 if test $build = $host ; then
12527 DLLTOOL="$2"
12528 else
12529 DLLTOOL="${ncn_tool_prefix}$2"
12530 fi
12531fi
12532
12533
12534
12535if test -n "$DSYMUTIL"; then
12536 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12537elif test -n "$ac_cv_prog_DSYMUTIL"; then
12538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12539fi
12540
12541if test -n "$ac_cv_prog_DSYMUTIL"; then
12542 for ncn_progname in dsymutil; do
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544set dummy ${ncn_progname}; ac_word=$2
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
12547if ${ac_cv_prog_DSYMUTIL+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549else
12550 if test -n "$DSYMUTIL"; then
12551 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12552else
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12560 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564done
12565 done
12566IFS=$as_save_IFS
12567
12568fi
12569fi
12570DSYMUTIL=$ac_cv_prog_DSYMUTIL
12571if test -n "$DSYMUTIL"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12573$as_echo "$DSYMUTIL" >&6; }
12574else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
12577fi
12578
12579
12580 done
12581fi
12582
12583for ncn_progname in dsymutil; do
12584 if test -n "$ncn_tool_prefix"; then
12585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12586set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588$as_echo_n "checking for $ac_word... " >&6; }
12589if ${ac_cv_prog_DSYMUTIL+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591else
12592 if test -n "$DSYMUTIL"; then
12593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12594else
12595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596for as_dir in $PATH
12597do
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12605 fi
12606done
12607 done
12608IFS=$as_save_IFS
12609
12610fi
12611fi
12612DSYMUTIL=$ac_cv_prog_DSYMUTIL
12613if test -n "$DSYMUTIL"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12615$as_echo "$DSYMUTIL" >&6; }
12616else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619fi
12620
12621
12622 fi
12623 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625set dummy ${ncn_progname}; ac_word=$2
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627$as_echo_n "checking for $ac_word... " >&6; }
12628if ${ac_cv_prog_DSYMUTIL+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630else
12631 if test -n "$DSYMUTIL"; then
12632 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12633else
12634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635for as_dir in $PATH
12636do
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12644 fi
12645done
12646 done
12647IFS=$as_save_IFS
12648
12649fi
12650fi
12651DSYMUTIL=$ac_cv_prog_DSYMUTIL
12652if test -n "$DSYMUTIL"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12654$as_echo "$DSYMUTIL" >&6; }
12655else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657$as_echo "no" >&6; }
12658fi
12659
12660
12661 fi
12662 test -n "$ac_cv_prog_DSYMUTIL" && break
12663done
12664
12665if test -z "$ac_cv_prog_DSYMUTIL" ; then
12666 set dummy dsymutil
12667 if test $build = $host ; then
12668 DSYMUTIL="$2"
12669 else
12670 DSYMUTIL="${ncn_tool_prefix}$2"
12671 fi
12672fi
12673
12674
12675
12676if test -n "$LD"; then
12677 ac_cv_prog_LD=$LD
12678elif test -n "$ac_cv_prog_LD"; then
12679 LD=$ac_cv_prog_LD
12680fi
12681
12682if test -n "$ac_cv_prog_LD"; then
12683 for ncn_progname in ld; do
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685set dummy ${ncn_progname}; ac_word=$2
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687$as_echo_n "checking for $ac_word... " >&6; }
12688if ${ac_cv_prog_LD+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690else
12691 if test -n "$LD"; then
12692 ac_cv_prog_LD="$LD" # Let the user override the test.
12693else
12694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695for as_dir in $PATH
12696do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_LD="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705done
12706 done
12707IFS=$as_save_IFS
12708
12709fi
12710fi
12711LD=$ac_cv_prog_LD
12712if test -n "$LD"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12714$as_echo "$LD" >&6; }
12715else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
12718fi
12719
12720
12721 done
12722fi
12723
12724for ncn_progname in ld; do
12725 if test -n "$ncn_tool_prefix"; then
12726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
12730if ${ac_cv_prog_LD+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732else
12733 if test -n "$LD"; then
12734 ac_cv_prog_LD="$LD" # Let the user override the test.
12735else
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747done
12748 done
12749IFS=$as_save_IFS
12750
12751fi
12752fi
12753LD=$ac_cv_prog_LD
12754if test -n "$LD"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12756$as_echo "$LD" >&6; }
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762
12763 fi
12764 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12766set dummy ${ncn_progname}; ac_word=$2
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
12769if ${ac_cv_prog_LD+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771else
12772 if test -n "$LD"; then
12773 ac_cv_prog_LD="$LD" # Let the user override the test.
12774else
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12782 ac_cv_prog_LD="${ncn_progname}"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12785 fi
12786done
12787 done
12788IFS=$as_save_IFS
12789
12790fi
12791fi
12792LD=$ac_cv_prog_LD
12793if test -n "$LD"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12795$as_echo "$LD" >&6; }
12796else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
12799fi
12800
12801
12802 fi
12803 test -n "$ac_cv_prog_LD" && break
12804done
12805
12806if test -z "$ac_cv_prog_LD" ; then
12807 set dummy ld
12808 if test $build = $host ; then
12809 LD="$2"
12810 else
12811 LD="${ncn_tool_prefix}$2"
12812 fi
12813fi
12814
12815
12816
12817if test -n "$LIPO"; then
12818 ac_cv_prog_LIPO=$LIPO
12819elif test -n "$ac_cv_prog_LIPO"; then
12820 LIPO=$ac_cv_prog_LIPO
12821fi
12822
12823if test -n "$ac_cv_prog_LIPO"; then
12824 for ncn_progname in lipo; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826set dummy ${ncn_progname}; ac_word=$2
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828$as_echo_n "checking for $ac_word... " >&6; }
12829if ${ac_cv_prog_LIPO+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831else
12832 if test -n "$LIPO"; then
12833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12834else
12835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $PATH
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_LIPO="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846done
12847 done
12848IFS=$as_save_IFS
12849
12850fi
12851fi
12852LIPO=$ac_cv_prog_LIPO
12853if test -n "$LIPO"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12855$as_echo "$LIPO" >&6; }
12856else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
12859fi
12860
12861
12862 done
12863fi
12864
12865for ncn_progname in lipo; do
12866 if test -n "$ncn_tool_prefix"; then
12867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12868set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870$as_echo_n "checking for $ac_word... " >&6; }
12871if ${ac_cv_prog_LIPO+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873else
12874 if test -n "$LIPO"; then
12875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12876else
12877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878for as_dir in $PATH
12879do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
12883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12884 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 break 2
12887 fi
12888done
12889 done
12890IFS=$as_save_IFS
12891
12892fi
12893fi
12894LIPO=$ac_cv_prog_LIPO
12895if test -n "$LIPO"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12897$as_echo "$LIPO" >&6; }
12898else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
12901fi
12902
12903
12904 fi
12905 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12907set dummy ${ncn_progname}; ac_word=$2
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909$as_echo_n "checking for $ac_word... " >&6; }
12910if ${ac_cv_prog_LIPO+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912else
12913 if test -n "$LIPO"; then
12914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12915else
12916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $PATH
12918do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_LIPO="${ncn_progname}"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927done
12928 done
12929IFS=$as_save_IFS
12930
12931fi
12932fi
12933LIPO=$ac_cv_prog_LIPO
12934if test -n "$LIPO"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12936$as_echo "$LIPO" >&6; }
12937else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939$as_echo "no" >&6; }
12940fi
12941
12942
12943 fi
12944 test -n "$ac_cv_prog_LIPO" && break
12945done
12946
12947if test -z "$ac_cv_prog_LIPO" ; then
12948 set dummy lipo
12949 if test $build = $host ; then
12950 LIPO="$2"
12951 else
12952 LIPO="${ncn_tool_prefix}$2"
12953 fi
12954fi
12955
12956
12957
12958if test -n "$NM"; then
12959 ac_cv_prog_NM=$NM
12960elif test -n "$ac_cv_prog_NM"; then
12961 NM=$ac_cv_prog_NM
12962fi
12963
12964if test -n "$ac_cv_prog_NM"; then
12965 for ncn_progname in nm; do
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967set dummy ${ncn_progname}; ac_word=$2
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969$as_echo_n "checking for $ac_word... " >&6; }
12970if ${ac_cv_prog_NM+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972else
12973 if test -n "$NM"; then
12974 ac_cv_prog_NM="$NM" # Let the user override the test.
12975else
12976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977for as_dir in $PATH
12978do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983 ac_cv_prog_NM="${ncn_progname}"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12986 fi
12987done
12988 done
12989IFS=$as_save_IFS
12990
12991fi
12992fi
12993NM=$ac_cv_prog_NM
12994if test -n "$NM"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12996$as_echo "$NM" >&6; }
12997else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999$as_echo "no" >&6; }
13000fi
13001
13002
13003 done
13004fi
13005
13006for ncn_progname in nm; do
13007 if test -n "$ncn_tool_prefix"; then
13008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13009set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011$as_echo_n "checking for $ac_word... " >&6; }
13012if ${ac_cv_prog_NM+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014else
13015 if test -n "$NM"; then
13016 ac_cv_prog_NM="$NM" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029done
13030 done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035NM=$ac_cv_prog_NM
13036if test -n "$NM"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13038$as_echo "$NM" >&6; }
13039else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044
13045 fi
13046 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
13047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13048set dummy ${ncn_progname}; ac_word=$2
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050$as_echo_n "checking for $ac_word... " >&6; }
13051if ${ac_cv_prog_NM+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053else
13054 if test -n "$NM"; then
13055 ac_cv_prog_NM="$NM" # Let the user override the test.
13056else
13057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058for as_dir in $PATH
13059do
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13064 ac_cv_prog_NM="${ncn_progname}"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13067 fi
13068done
13069 done
13070IFS=$as_save_IFS
13071
13072fi
13073fi
13074NM=$ac_cv_prog_NM
13075if test -n "$NM"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13077$as_echo "$NM" >&6; }
13078else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080$as_echo "no" >&6; }
13081fi
13082
13083
13084 fi
13085 test -n "$ac_cv_prog_NM" && break
13086done
13087
13088if test -z "$ac_cv_prog_NM" ; then
13089 set dummy nm
13090 if test $build = $host ; then
13091 NM="$2"
13092 else
13093 NM="${ncn_tool_prefix}$2"
13094 fi
13095fi
13096
13097
13098
13099if test -n "$RANLIB"; then
13100 ac_cv_prog_RANLIB=$RANLIB
13101elif test -n "$ac_cv_prog_RANLIB"; then
13102 RANLIB=$ac_cv_prog_RANLIB
13103fi
13104
13105if test -n "$ac_cv_prog_RANLIB"; then
13106 for ncn_progname in ranlib; do
13107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13108set dummy ${ncn_progname}; ac_word=$2
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110$as_echo_n "checking for $ac_word... " >&6; }
13111if ${ac_cv_prog_RANLIB+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113else
13114 if test -n "$RANLIB"; then
13115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13116else
13117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118for as_dir in $PATH
13119do
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_prog_RANLIB="${ncn_progname}"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13127 fi
13128done
13129 done
13130IFS=$as_save_IFS
13131
13132fi
13133fi
13134RANLIB=$ac_cv_prog_RANLIB
13135if test -n "$RANLIB"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13137$as_echo "$RANLIB" >&6; }
13138else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140$as_echo "no" >&6; }
13141fi
13142
13143
13144 done
13145fi
13146
13147for ncn_progname in ranlib; do
13148 if test -n "$ncn_tool_prefix"; then
13149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13150set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152$as_echo_n "checking for $ac_word... " >&6; }
13153if ${ac_cv_prog_RANLIB+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155else
13156 if test -n "$RANLIB"; then
13157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13158else
13159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160for as_dir in $PATH
13161do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13166 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 break 2
13169 fi
13170done
13171 done
13172IFS=$as_save_IFS
13173
13174fi
13175fi
13176RANLIB=$ac_cv_prog_RANLIB
13177if test -n "$RANLIB"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13179$as_echo "$RANLIB" >&6; }
13180else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182$as_echo "no" >&6; }
13183fi
13184
13185
13186 fi
13187 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13189set dummy ${ncn_progname}; ac_word=$2
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191$as_echo_n "checking for $ac_word... " >&6; }
13192if ${ac_cv_prog_RANLIB+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194else
13195 if test -n "$RANLIB"; then
13196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13197else
13198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199for as_dir in $PATH
13200do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_prog_RANLIB="${ncn_progname}"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209done
13210 done
13211IFS=$as_save_IFS
13212
13213fi
13214fi
13215RANLIB=$ac_cv_prog_RANLIB
13216if test -n "$RANLIB"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13218$as_echo "$RANLIB" >&6; }
13219else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221$as_echo "no" >&6; }
13222fi
13223
13224
13225 fi
13226 test -n "$ac_cv_prog_RANLIB" && break
13227done
13228
13229if test -z "$ac_cv_prog_RANLIB" ; then
13230 RANLIB="true"
13231fi
13232
13233
13234
13235if test -n "$STRIP"; then
13236 ac_cv_prog_STRIP=$STRIP
13237elif test -n "$ac_cv_prog_STRIP"; then
13238 STRIP=$ac_cv_prog_STRIP
13239fi
13240
13241if test -n "$ac_cv_prog_STRIP"; then
13242 for ncn_progname in strip; do
13243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13244set dummy ${ncn_progname}; ac_word=$2
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246$as_echo_n "checking for $ac_word... " >&6; }
13247if ${ac_cv_prog_STRIP+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249else
13250 if test -n "$STRIP"; then
13251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13252else
13253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254for as_dir in $PATH
13255do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_prog_STRIP="${ncn_progname}"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264done
13265 done
13266IFS=$as_save_IFS
13267
13268fi
13269fi
13270STRIP=$ac_cv_prog_STRIP
13271if test -n "$STRIP"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13273$as_echo "$STRIP" >&6; }
13274else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
13277fi
13278
13279
13280 done
13281fi
13282
13283for ncn_progname in strip; do
13284 if test -n "$ncn_tool_prefix"; then
13285 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13286set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288$as_echo_n "checking for $ac_word... " >&6; }
13289if ${ac_cv_prog_STRIP+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291else
13292 if test -n "$STRIP"; then
13293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13294else
13295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH
13297do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306done
13307 done
13308IFS=$as_save_IFS
13309
13310fi
13311fi
13312STRIP=$ac_cv_prog_STRIP
13313if test -n "$STRIP"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13315$as_echo "$STRIP" >&6; }
13316else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318$as_echo "no" >&6; }
13319fi
13320
13321
13322 fi
13323 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13325set dummy ${ncn_progname}; ac_word=$2
13326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327$as_echo_n "checking for $ac_word... " >&6; }
13328if ${ac_cv_prog_STRIP+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330else
13331 if test -n "$STRIP"; then
13332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13333else
13334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335for as_dir in $PATH
13336do
13337 IFS=$as_save_IFS
13338 test -z "$as_dir" && as_dir=.
13339 for ac_exec_ext in '' $ac_executable_extensions; do
13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13341 ac_cv_prog_STRIP="${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 break 2
13344 fi
13345done
13346 done
13347IFS=$as_save_IFS
13348
13349fi
13350fi
13351STRIP=$ac_cv_prog_STRIP
13352if test -n "$STRIP"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13354$as_echo "$STRIP" >&6; }
13355else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357$as_echo "no" >&6; }
13358fi
13359
13360
13361 fi
13362 test -n "$ac_cv_prog_STRIP" && break
13363done
13364
13365if test -z "$ac_cv_prog_STRIP" ; then
13366 STRIP="true"
13367fi
13368
13369
13370
13371if test -n "$WINDRES"; then
13372 ac_cv_prog_WINDRES=$WINDRES
13373elif test -n "$ac_cv_prog_WINDRES"; then
13374 WINDRES=$ac_cv_prog_WINDRES
13375fi
13376
13377if test -n "$ac_cv_prog_WINDRES"; then
13378 for ncn_progname in windres; do
13379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13380set dummy ${ncn_progname}; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
13383if ${ac_cv_prog_WINDRES+:} false; then :
13384 $as_echo_n "(cached) " >&6
13385else
13386 if test -n "$WINDRES"; then
13387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396 ac_cv_prog_WINDRES="${ncn_progname}"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398 break 2
13399 fi
13400done
13401 done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406WINDRES=$ac_cv_prog_WINDRES
13407if test -n "$WINDRES"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13409$as_echo "$WINDRES" >&6; }
13410else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415
13416 done
13417fi
13418
13419for ncn_progname in windres; do
13420 if test -n "$ncn_tool_prefix"; then
13421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13422set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424$as_echo_n "checking for $ac_word... " >&6; }
13425if ${ac_cv_prog_WINDRES+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427else
13428 if test -n "$WINDRES"; then
13429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13430else
13431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432for as_dir in $PATH
13433do
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13441 fi
13442done
13443 done
13444IFS=$as_save_IFS
13445
13446fi
13447fi
13448WINDRES=$ac_cv_prog_WINDRES
13449if test -n "$WINDRES"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13451$as_echo "$WINDRES" >&6; }
13452else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
13455fi
13456
13457
13458 fi
13459 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13461set dummy ${ncn_progname}; ac_word=$2
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463$as_echo_n "checking for $ac_word... " >&6; }
13464if ${ac_cv_prog_WINDRES+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466else
13467 if test -n "$WINDRES"; then
13468 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13469else
13470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471for as_dir in $PATH
13472do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_prog_WINDRES="${ncn_progname}"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481done
13482 done
13483IFS=$as_save_IFS
13484
13485fi
13486fi
13487WINDRES=$ac_cv_prog_WINDRES
13488if test -n "$WINDRES"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13490$as_echo "$WINDRES" >&6; }
13491else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493$as_echo "no" >&6; }
13494fi
13495
13496
13497 fi
13498 test -n "$ac_cv_prog_WINDRES" && break
13499done
13500
13501if test -z "$ac_cv_prog_WINDRES" ; then
13502 set dummy windres
13503 if test $build = $host ; then
13504 WINDRES="$2"
13505 else
13506 WINDRES="${ncn_tool_prefix}$2"
13507 fi
13508fi
13509
13510
13511
13512if test -n "$WINDMC"; then
13513 ac_cv_prog_WINDMC=$WINDMC
13514elif test -n "$ac_cv_prog_WINDMC"; then
13515 WINDMC=$ac_cv_prog_WINDMC
13516fi
13517
13518if test -n "$ac_cv_prog_WINDMC"; then
13519 for ncn_progname in windmc; do
13520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13521set dummy ${ncn_progname}; ac_word=$2
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523$as_echo_n "checking for $ac_word... " >&6; }
13524if ${ac_cv_prog_WINDMC+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526else
13527 if test -n "$WINDMC"; then
13528 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13529else
13530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533 IFS=$as_save_IFS
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_prog_WINDMC="${ncn_progname}"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 break 2
13540 fi
13541done
13542 done
13543IFS=$as_save_IFS
13544
13545fi
13546fi
13547WINDMC=$ac_cv_prog_WINDMC
13548if test -n "$WINDMC"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13550$as_echo "$WINDMC" >&6; }
13551else
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553$as_echo "no" >&6; }
13554fi
13555
13556
13557 done
13558fi
13559
13560for ncn_progname in windmc; do
13561 if test -n "$ncn_tool_prefix"; then
13562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565$as_echo_n "checking for $ac_word... " >&6; }
13566if ${ac_cv_prog_WINDMC+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568else
13569 if test -n "$WINDMC"; then
13570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13571else
13572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573for as_dir in $PATH
13574do
13575 IFS=$as_save_IFS
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13579 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 break 2
13582 fi
13583done
13584 done
13585IFS=$as_save_IFS
13586
13587fi
13588fi
13589WINDMC=$ac_cv_prog_WINDMC
13590if test -n "$WINDMC"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13592$as_echo "$WINDMC" >&6; }
13593else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595$as_echo "no" >&6; }
13596fi
13597
13598
13599 fi
13600 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13602set dummy ${ncn_progname}; ac_word=$2
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604$as_echo_n "checking for $ac_word... " >&6; }
13605if ${ac_cv_prog_WINDMC+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607else
13608 if test -n "$WINDMC"; then
13609 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13610else
13611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612for as_dir in $PATH
13613do
13614 IFS=$as_save_IFS
13615 test -z "$as_dir" && as_dir=.
13616 for ac_exec_ext in '' $ac_executable_extensions; do
13617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13618 ac_cv_prog_WINDMC="${ncn_progname}"
13619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13620 break 2
13621 fi
13622done
13623 done
13624IFS=$as_save_IFS
13625
13626fi
13627fi
13628WINDMC=$ac_cv_prog_WINDMC
13629if test -n "$WINDMC"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13631$as_echo "$WINDMC" >&6; }
13632else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
13635fi
13636
13637
13638 fi
13639 test -n "$ac_cv_prog_WINDMC" && break
13640done
13641
13642if test -z "$ac_cv_prog_WINDMC" ; then
13643 set dummy windmc
13644 if test $build = $host ; then
13645 WINDMC="$2"
13646 else
13647 WINDMC="${ncn_tool_prefix}$2"
13648 fi
13649fi
13650
13651
13652
13653if test -n "$OBJCOPY"; then
13654 ac_cv_prog_OBJCOPY=$OBJCOPY
13655elif test -n "$ac_cv_prog_OBJCOPY"; then
13656 OBJCOPY=$ac_cv_prog_OBJCOPY
13657fi
13658
13659if test -n "$ac_cv_prog_OBJCOPY"; then
13660 for ncn_progname in objcopy; do
13661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13662set dummy ${ncn_progname}; ac_word=$2
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664$as_echo_n "checking for $ac_word... " >&6; }
13665if ${ac_cv_prog_OBJCOPY+:} false; then :
13666 $as_echo_n "(cached) " >&6
13667else
13668 if test -n "$OBJCOPY"; then
13669 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13670else
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_OBJCOPY="${ncn_progname}"
13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682done
13683 done
13684IFS=$as_save_IFS
13685
13686fi
13687fi
13688OBJCOPY=$ac_cv_prog_OBJCOPY
13689if test -n "$OBJCOPY"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13691$as_echo "$OBJCOPY" >&6; }
13692else
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
13695fi
13696
13697
13698 done
13699fi
13700
13701for ncn_progname in objcopy; do
13702 if test -n "$ncn_tool_prefix"; then
13703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13704set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706$as_echo_n "checking for $ac_word... " >&6; }
13707if ${ac_cv_prog_OBJCOPY+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709else
13710 if test -n "$OBJCOPY"; then
13711 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13712else
13713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714for as_dir in $PATH
13715do
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13720 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
13723 fi
13724done
13725 done
13726IFS=$as_save_IFS
13727
13728fi
13729fi
13730OBJCOPY=$ac_cv_prog_OBJCOPY
13731if test -n "$OBJCOPY"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13733$as_echo "$OBJCOPY" >&6; }
13734else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736$as_echo "no" >&6; }
13737fi
13738
13739
13740 fi
13741 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13743set dummy ${ncn_progname}; ac_word=$2
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745$as_echo_n "checking for $ac_word... " >&6; }
13746if ${ac_cv_prog_OBJCOPY+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748else
13749 if test -n "$OBJCOPY"; then
13750 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13751else
13752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753for as_dir in $PATH
13754do
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 for ac_exec_ext in '' $ac_executable_extensions; do
13758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13759 ac_cv_prog_OBJCOPY="${ncn_progname}"
13760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 break 2
13762 fi
13763done
13764 done
13765IFS=$as_save_IFS
13766
13767fi
13768fi
13769OBJCOPY=$ac_cv_prog_OBJCOPY
13770if test -n "$OBJCOPY"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13772$as_echo "$OBJCOPY" >&6; }
13773else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775$as_echo "no" >&6; }
13776fi
13777
13778
13779 fi
13780 test -n "$ac_cv_prog_OBJCOPY" && break
13781done
13782
13783if test -z "$ac_cv_prog_OBJCOPY" ; then
13784 set dummy objcopy
13785 if test $build = $host ; then
13786 OBJCOPY="$2"
13787 else
13788 OBJCOPY="${ncn_tool_prefix}$2"
13789 fi
13790fi
13791
13792
13793
13794if test -n "$OBJDUMP"; then
13795 ac_cv_prog_OBJDUMP=$OBJDUMP
13796elif test -n "$ac_cv_prog_OBJDUMP"; then
13797 OBJDUMP=$ac_cv_prog_OBJDUMP
13798fi
13799
13800if test -n "$ac_cv_prog_OBJDUMP"; then
13801 for ncn_progname in objdump; do
13802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13803set dummy ${ncn_progname}; ac_word=$2
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805$as_echo_n "checking for $ac_word... " >&6; }
13806if ${ac_cv_prog_OBJDUMP+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808else
13809 if test -n "$OBJDUMP"; then
13810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13811else
13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $PATH
13814do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_OBJDUMP="${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823done
13824 done
13825IFS=$as_save_IFS
13826
13827fi
13828fi
13829OBJDUMP=$ac_cv_prog_OBJDUMP
13830if test -n "$OBJDUMP"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13832$as_echo "$OBJDUMP" >&6; }
13833else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835$as_echo "no" >&6; }
13836fi
13837
13838
13839 done
13840fi
13841
13842for ncn_progname in objdump; do
13843 if test -n "$ncn_tool_prefix"; then
13844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13845set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847$as_echo_n "checking for $ac_word... " >&6; }
13848if ${ac_cv_prog_OBJDUMP+:} false; then :
13849 $as_echo_n "(cached) " >&6
13850else
13851 if test -n "$OBJDUMP"; then
13852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13853else
13854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855for as_dir in $PATH
13856do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865done
13866 done
13867IFS=$as_save_IFS
13868
13869fi
13870fi
13871OBJDUMP=$ac_cv_prog_OBJDUMP
13872if test -n "$OBJDUMP"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13874$as_echo "$OBJDUMP" >&6; }
13875else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877$as_echo "no" >&6; }
13878fi
13879
13880
13881 fi
13882 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13884set dummy ${ncn_progname}; ac_word=$2
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886$as_echo_n "checking for $ac_word... " >&6; }
13887if ${ac_cv_prog_OBJDUMP+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889else
13890 if test -n "$OBJDUMP"; then
13891 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13892else
13893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894for as_dir in $PATH
13895do
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_prog_OBJDUMP="${ncn_progname}"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13903 fi
13904done
13905 done
13906IFS=$as_save_IFS
13907
13908fi
13909fi
13910OBJDUMP=$ac_cv_prog_OBJDUMP
13911if test -n "$OBJDUMP"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13913$as_echo "$OBJDUMP" >&6; }
13914else
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916$as_echo "no" >&6; }
13917fi
13918
13919
13920 fi
13921 test -n "$ac_cv_prog_OBJDUMP" && break
13922done
13923
13924if test -z "$ac_cv_prog_OBJDUMP" ; then
13925 set dummy objdump
13926 if test $build = $host ; then
13927 OBJDUMP="$2"
13928 else
13929 OBJDUMP="${ncn_tool_prefix}$2"
13930 fi
13931fi
13932
13933
13934
13935if test -n "$OTOOL"; then
13936 ac_cv_prog_OTOOL=$OTOOL
13937elif test -n "$ac_cv_prog_OTOOL"; then
13938 OTOOL=$ac_cv_prog_OTOOL
13939fi
13940
13941if test -n "$ac_cv_prog_OTOOL"; then
13942 for ncn_progname in otool; do
13943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13944set dummy ${ncn_progname}; ac_word=$2
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946$as_echo_n "checking for $ac_word... " >&6; }
13947if ${ac_cv_prog_OTOOL+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949else
13950 if test -n "$OTOOL"; then
13951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13952else
13953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954for as_dir in $PATH
13955do
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13960 ac_cv_prog_OTOOL="${ncn_progname}"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13963 fi
13964done
13965 done
13966IFS=$as_save_IFS
13967
13968fi
13969fi
13970OTOOL=$ac_cv_prog_OTOOL
13971if test -n "$OTOOL"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13973$as_echo "$OTOOL" >&6; }
13974else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976$as_echo "no" >&6; }
13977fi
13978
13979
13980 done
13981fi
13982
13983for ncn_progname in otool; do
13984 if test -n "$ncn_tool_prefix"; then
13985 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13986set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988$as_echo_n "checking for $ac_word... " >&6; }
13989if ${ac_cv_prog_OTOOL+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991else
13992 if test -n "$OTOOL"; then
13993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13994else
13995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996for as_dir in $PATH
13997do
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
14000 for ac_exec_ext in '' $ac_executable_extensions; do
14001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
14003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004 break 2
14005 fi
14006done
14007 done
14008IFS=$as_save_IFS
14009
14010fi
14011fi
14012OTOOL=$ac_cv_prog_OTOOL
14013if test -n "$OTOOL"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14015$as_echo "$OTOOL" >&6; }
14016else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
14019fi
14020
14021
14022 fi
14023 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
14024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14025set dummy ${ncn_progname}; ac_word=$2
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027$as_echo_n "checking for $ac_word... " >&6; }
14028if ${ac_cv_prog_OTOOL+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030else
14031 if test -n "$OTOOL"; then
14032 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14033else
14034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035for as_dir in $PATH
14036do
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_prog_OTOOL="${ncn_progname}"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045done
14046 done
14047IFS=$as_save_IFS
14048
14049fi
14050fi
14051OTOOL=$ac_cv_prog_OTOOL
14052if test -n "$OTOOL"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14054$as_echo "$OTOOL" >&6; }
14055else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057$as_echo "no" >&6; }
14058fi
14059
14060
14061 fi
14062 test -n "$ac_cv_prog_OTOOL" && break
14063done
14064
14065if test -z "$ac_cv_prog_OTOOL" ; then
14066 set dummy otool
14067 if test $build = $host ; then
14068 OTOOL="$2"
14069 else
14070 OTOOL="${ncn_tool_prefix}$2"
14071 fi
14072fi
14073
14074
14075
14076if test -n "$READELF"; then
14077 ac_cv_prog_READELF=$READELF
14078elif test -n "$ac_cv_prog_READELF"; then
14079 READELF=$ac_cv_prog_READELF
14080fi
14081
14082if test -n "$ac_cv_prog_READELF"; then
14083 for ncn_progname in readelf; do
14084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14085set dummy ${ncn_progname}; ac_word=$2
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087$as_echo_n "checking for $ac_word... " >&6; }
14088if ${ac_cv_prog_READELF+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090else
14091 if test -n "$READELF"; then
14092 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14093else
14094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_READELF="${ncn_progname}"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105done
14106 done
14107IFS=$as_save_IFS
14108
14109fi
14110fi
14111READELF=$ac_cv_prog_READELF
14112if test -n "$READELF"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14114$as_echo "$READELF" >&6; }
14115else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117$as_echo "no" >&6; }
14118fi
14119
14120
14121 done
14122fi
14123
14124for ncn_progname in readelf; do
14125 if test -n "$ncn_tool_prefix"; then
14126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14127set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129$as_echo_n "checking for $ac_word... " >&6; }
14130if ${ac_cv_prog_READELF+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132else
14133 if test -n "$READELF"; then
14134 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14135else
14136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137for as_dir in $PATH
14138do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14146 fi
14147done
14148 done
14149IFS=$as_save_IFS
14150
14151fi
14152fi
14153READELF=$ac_cv_prog_READELF
14154if test -n "$READELF"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14156$as_echo "$READELF" >&6; }
14157else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159$as_echo "no" >&6; }
14160fi
14161
14162
14163 fi
14164 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14166set dummy ${ncn_progname}; ac_word=$2
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168$as_echo_n "checking for $ac_word... " >&6; }
14169if ${ac_cv_prog_READELF+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171else
14172 if test -n "$READELF"; then
14173 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14174else
14175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176for as_dir in $PATH
14177do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_READELF="${ncn_progname}"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186done
14187 done
14188IFS=$as_save_IFS
14189
14190fi
14191fi
14192READELF=$ac_cv_prog_READELF
14193if test -n "$READELF"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14195$as_echo "$READELF" >&6; }
14196else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198$as_echo "no" >&6; }
14199fi
14200
14201
14202 fi
14203 test -n "$ac_cv_prog_READELF" && break
14204done
14205
14206if test -z "$ac_cv_prog_READELF" ; then
14207 set dummy readelf
14208 if test $build = $host ; then
14209 READELF="$2"
14210 else
14211 READELF="${ncn_tool_prefix}$2"
14212 fi
14213fi
14214
14215
14216
14217
14218
14219
14220
14221GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14222
14223
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14225$as_echo_n "checking for -plugin option... " >&6; }
14226
14227plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14228plugin_option=
14229for plugin in $plugin_names; do
14230 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14231 if test x$plugin_so = x$plugin; then
14232 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14233 fi
14234 if test x$plugin_so != x$plugin; then
14235 plugin_option="--plugin $plugin_so"
14236 break
14237 fi
14238done
14239if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14241set dummy ${ac_tool_prefix}ar; ac_word=$2
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243$as_echo_n "checking for $ac_word... " >&6; }
14244if ${ac_cv_prog_AR+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246else
14247 if test -n "$AR"; then
14248 ac_cv_prog_AR="$AR" # Let the user override the test.
14249else
14250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251for as_dir in $PATH
14252do
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AR="${ac_tool_prefix}ar"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261done
14262 done
14263IFS=$as_save_IFS
14264
14265fi
14266fi
14267AR=$ac_cv_prog_AR
14268if test -n "$AR"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14270$as_echo "$AR" >&6; }
14271else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273$as_echo "no" >&6; }
14274fi
14275
14276
14277fi
14278if test -z "$ac_cv_prog_AR"; then
14279 ac_ct_AR=$AR
14280 # Extract the first word of "ar", so it can be a program name with args.
14281set dummy ar; ac_word=$2
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283$as_echo_n "checking for $ac_word... " >&6; }
14284if ${ac_cv_prog_ac_ct_AR+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286else
14287 if test -n "$ac_ct_AR"; then
14288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14289else
14290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291for as_dir in $PATH
14292do
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14297 ac_cv_prog_ac_ct_AR="ar"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14300 fi
14301done
14302 done
14303IFS=$as_save_IFS
14304
14305fi
14306fi
14307ac_ct_AR=$ac_cv_prog_ac_ct_AR
14308if test -n "$ac_ct_AR"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14310$as_echo "$ac_ct_AR" >&6; }
14311else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314fi
14315
14316 if test "x$ac_ct_AR" = x; then
14317 AR=""
14318 else
14319 case $cross_compiling:$ac_tool_warned in
14320yes:)
14321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14323ac_tool_warned=yes ;;
14324esac
14325 AR=$ac_ct_AR
14326 fi
14327else
14328 AR="$ac_cv_prog_AR"
14329fi
14330
14331if test "${AR}" = "" ; then
14332 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14333fi
14334touch conftest.c
14335${AR} $plugin_option rc conftest.a conftest.c
14336if test "$?" != 0; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14338$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14339 plugin_option=
14340fi
14341rm -f conftest.*
14342if test -n "$plugin_option"; then
14343 PLUGIN_OPTION="$plugin_option"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14345$as_echo "$plugin_option" >&6; }
14346else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348$as_echo "no" >&6; }
14349fi
14350
14351AR_PLUGIN_OPTION=
14352RANLIB_PLUGIN_OPTION=
14353if test -n "$PLUGIN_OPTION"; then
14354 if $AR --help 2>&1 | grep -q "\--plugin"; then
14355 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14356 fi
14357 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14358 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14359 fi
14360fi
14361
14362
14363
14364# Target tools.
14365
14366# Check whether --with-build-time-tools was given.
14367if test "${with_build_time_tools+set}" = set; then :
14368 withval=$with_build_time_tools; case x"$withval" in
14369 x/*) ;;
14370 *)
14371 with_build_time_tools=
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14373$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14374 ;;
14375 esac
14376else
14377 with_build_time_tools=
14378fi
14379
14380
14381
14382
14383if test -n "$CC_FOR_TARGET"; then
14384 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14385elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14386 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14387fi
14388
14389if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14390 for ncn_progname in cc gcc; do
14391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14392set dummy ${ncn_progname}; ac_word=$2
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394$as_echo_n "checking for $ac_word... " >&6; }
14395if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397else
14398 if test -n "$CC_FOR_TARGET"; then
14399 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14400else
14401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402for as_dir in $PATH
14403do
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14408 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410 break 2
14411 fi
14412done
14413 done
14414IFS=$as_save_IFS
14415
14416fi
14417fi
14418CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14419if test -n "$CC_FOR_TARGET"; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14421$as_echo "$CC_FOR_TARGET" >&6; }
14422else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
14425fi
14426
14427
14428 done
14429fi
14430
14431if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14432 for ncn_progname in cc gcc; do
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14435 if test -x $with_build_time_tools/${ncn_progname}; then
14436 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438$as_echo "yes" >&6; }
14439 break
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442$as_echo "no" >&6; }
14443 fi
14444 done
14445fi
14446
14447if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14448 for ncn_progname in cc gcc; do
14449 if test -n "$ncn_target_tool_prefix"; then
14450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453$as_echo_n "checking for $ac_word... " >&6; }
14454if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456else
14457 if test -n "$CC_FOR_TARGET"; then
14458 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14459else
14460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461for as_dir in $PATH
14462do
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14470 fi
14471done
14472 done
14473IFS=$as_save_IFS
14474
14475fi
14476fi
14477CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14478if test -n "$CC_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14480$as_echo "$CC_FOR_TARGET" >&6; }
14481else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483$as_echo "no" >&6; }
14484fi
14485
14486
14487 fi
14488 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14490set dummy ${ncn_progname}; ac_word=$2
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492$as_echo_n "checking for $ac_word... " >&6; }
14493if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495else
14496 if test -n "$CC_FOR_TARGET"; then
14497 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14498else
14499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500for as_dir in $PATH
14501do
14502 IFS=$as_save_IFS
14503 test -z "$as_dir" && as_dir=.
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14506 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 break 2
14509 fi
14510done
14511 done
14512IFS=$as_save_IFS
14513
14514fi
14515fi
14516CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14517if test -n "$CC_FOR_TARGET"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14519$as_echo "$CC_FOR_TARGET" >&6; }
14520else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522$as_echo "no" >&6; }
14523fi
14524
14525
14526 fi
14527 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14528 done
14529fi
14530
14531if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14532 set dummy cc gcc
14533 if test $build = $target ; then
14534 CC_FOR_TARGET="$2"
14535 else
14536 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14537 fi
14538else
14539 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14540fi
14541
14542
14543
14544if test -n "$CXX_FOR_TARGET"; then
14545 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14546elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14547 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14548fi
14549
14550if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14551 for ncn_progname in c++ g++ cxx gxx; do
14552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14553set dummy ${ncn_progname}; ac_word=$2
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14555$as_echo_n "checking for $ac_word... " >&6; }
14556if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558else
14559 if test -n "$CXX_FOR_TARGET"; then
14560 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14561else
14562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563for as_dir in $PATH
14564do
14565 IFS=$as_save_IFS
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14571 break 2
14572 fi
14573done
14574 done
14575IFS=$as_save_IFS
14576
14577fi
14578fi
14579CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14580if test -n "$CXX_FOR_TARGET"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14582$as_echo "$CXX_FOR_TARGET" >&6; }
14583else
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585$as_echo "no" >&6; }
14586fi
14587
14588
14589 done
14590fi
14591
14592if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14593 for ncn_progname in c++ g++ cxx gxx; do
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14595$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14596 if test -x $with_build_time_tools/${ncn_progname}; then
14597 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14599$as_echo "yes" >&6; }
14600 break
14601 else
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603$as_echo "no" >&6; }
14604 fi
14605 done
14606fi
14607
14608if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14609 for ncn_progname in c++ g++ cxx gxx; do
14610 if test -n "$ncn_target_tool_prefix"; then
14611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14612set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614$as_echo_n "checking for $ac_word... " >&6; }
14615if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617else
14618 if test -n "$CXX_FOR_TARGET"; then
14619 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14620else
14621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622for as_dir in $PATH
14623do
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14628 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14630 break 2
14631 fi
14632done
14633 done
14634IFS=$as_save_IFS
14635
14636fi
14637fi
14638CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14639if test -n "$CXX_FOR_TARGET"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14641$as_echo "$CXX_FOR_TARGET" >&6; }
14642else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644$as_echo "no" >&6; }
14645fi
14646
14647
14648 fi
14649 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14651set dummy ${ncn_progname}; ac_word=$2
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653$as_echo_n "checking for $ac_word... " >&6; }
14654if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656else
14657 if test -n "$CXX_FOR_TARGET"; then
14658 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14659else
14660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661for as_dir in $PATH
14662do
14663 IFS=$as_save_IFS
14664 test -z "$as_dir" && as_dir=.
14665 for ac_exec_ext in '' $ac_executable_extensions; do
14666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14669 break 2
14670 fi
14671done
14672 done
14673IFS=$as_save_IFS
14674
14675fi
14676fi
14677CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14678if test -n "$CXX_FOR_TARGET"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14680$as_echo "$CXX_FOR_TARGET" >&6; }
14681else
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683$as_echo "no" >&6; }
14684fi
14685
14686
14687 fi
14688 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14689 done
14690fi
14691
14692if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14693 set dummy c++ g++ cxx gxx
14694 if test $build = $target ; then
14695 CXX_FOR_TARGET="$2"
14696 else
14697 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14698 fi
14699else
14700 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14701fi
14702
14703
14704
14705if test -n "$GCC_FOR_TARGET"; then
14706 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14707elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14708 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14709fi
14710
14711if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14712 for ncn_progname in gcc; do
14713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14714set dummy ${ncn_progname}; ac_word=$2
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716$as_echo_n "checking for $ac_word... " >&6; }
14717if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719else
14720 if test -n "$GCC_FOR_TARGET"; then
14721 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14722else
14723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724for as_dir in $PATH
14725do
14726 IFS=$as_save_IFS
14727 test -z "$as_dir" && as_dir=.
14728 for ac_exec_ext in '' $ac_executable_extensions; do
14729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14730 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14732 break 2
14733 fi
14734done
14735 done
14736IFS=$as_save_IFS
14737
14738fi
14739fi
14740GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14741if test -n "$GCC_FOR_TARGET"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14743$as_echo "$GCC_FOR_TARGET" >&6; }
14744else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746$as_echo "no" >&6; }
14747fi
14748
14749
14750 done
14751fi
14752
14753if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14754 for ncn_progname in gcc; do
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14756$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14757 if test -x $with_build_time_tools/${ncn_progname}; then
14758 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14760$as_echo "yes" >&6; }
14761 break
14762 else
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764$as_echo "no" >&6; }
14765 fi
14766 done
14767fi
14768
14769if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14770 for ncn_progname in gcc; do
14771 if test -n "$ncn_target_tool_prefix"; then
14772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14773set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775$as_echo_n "checking for $ac_word... " >&6; }
14776if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778else
14779 if test -n "$GCC_FOR_TARGET"; then
14780 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14781else
14782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783for as_dir in $PATH
14784do
14785 IFS=$as_save_IFS
14786 test -z "$as_dir" && as_dir=.
14787 for ac_exec_ext in '' $ac_executable_extensions; do
14788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791 break 2
14792 fi
14793done
14794 done
14795IFS=$as_save_IFS
14796
14797fi
14798fi
14799GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14800if test -n "$GCC_FOR_TARGET"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14802$as_echo "$GCC_FOR_TARGET" >&6; }
14803else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805$as_echo "no" >&6; }
14806fi
14807
14808
14809 fi
14810 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14812set dummy ${ncn_progname}; ac_word=$2
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814$as_echo_n "checking for $ac_word... " >&6; }
14815if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817else
14818 if test -n "$GCC_FOR_TARGET"; then
14819 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14820else
14821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822for as_dir in $PATH
14823do
14824 IFS=$as_save_IFS
14825 test -z "$as_dir" && as_dir=.
14826 for ac_exec_ext in '' $ac_executable_extensions; do
14827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14828 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14830 break 2
14831 fi
14832done
14833 done
14834IFS=$as_save_IFS
14835
14836fi
14837fi
14838GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14839if test -n "$GCC_FOR_TARGET"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14841$as_echo "$GCC_FOR_TARGET" >&6; }
14842else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844$as_echo "no" >&6; }
14845fi
14846
14847
14848 fi
14849 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14850 done
14851fi
14852
14853if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14854 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14855else
14856 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14857fi
14858
14859
14860
14861if test -n "$GFORTRAN_FOR_TARGET"; then
14862 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14863elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14864 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14865fi
14866
14867if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14868 for ncn_progname in gfortran; do
14869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14870set dummy ${ncn_progname}; ac_word=$2
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872$as_echo_n "checking for $ac_word... " >&6; }
14873if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875else
14876 if test -n "$GFORTRAN_FOR_TARGET"; then
14877 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14878else
14879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880for as_dir in $PATH
14881do
14882 IFS=$as_save_IFS
14883 test -z "$as_dir" && as_dir=.
14884 for ac_exec_ext in '' $ac_executable_extensions; do
14885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14886 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888 break 2
14889 fi
14890done
14891 done
14892IFS=$as_save_IFS
14893
14894fi
14895fi
14896GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14897if test -n "$GFORTRAN_FOR_TARGET"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14899$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14900else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902$as_echo "no" >&6; }
14903fi
14904
14905
14906 done
14907fi
14908
14909if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14910 for ncn_progname in gfortran; do
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14912$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14913 if test -x $with_build_time_tools/${ncn_progname}; then
14914 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14916$as_echo "yes" >&6; }
14917 break
14918 else
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920$as_echo "no" >&6; }
14921 fi
14922 done
14923fi
14924
14925if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14926 for ncn_progname in gfortran; do
14927 if test -n "$ncn_target_tool_prefix"; then
14928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14929set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14931$as_echo_n "checking for $ac_word... " >&6; }
14932if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14933 $as_echo_n "(cached) " >&6
14934else
14935 if test -n "$GFORTRAN_FOR_TARGET"; then
14936 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14937else
14938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939for as_dir in $PATH
14940do
14941 IFS=$as_save_IFS
14942 test -z "$as_dir" && as_dir=.
14943 for ac_exec_ext in '' $ac_executable_extensions; do
14944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14945 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14947 break 2
14948 fi
14949done
14950 done
14951IFS=$as_save_IFS
14952
14953fi
14954fi
14955GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14956if test -n "$GFORTRAN_FOR_TARGET"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14958$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14959else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961$as_echo "no" >&6; }
14962fi
14963
14964
14965 fi
14966 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14968set dummy ${ncn_progname}; ac_word=$2
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970$as_echo_n "checking for $ac_word... " >&6; }
14971if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973else
14974 if test -n "$GFORTRAN_FOR_TARGET"; then
14975 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14976else
14977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978for as_dir in $PATH
14979do
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14987 fi
14988done
14989 done
14990IFS=$as_save_IFS
14991
14992fi
14993fi
14994GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14995if test -n "$GFORTRAN_FOR_TARGET"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14997$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14998else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000$as_echo "no" >&6; }
15001fi
15002
15003
15004 fi
15005 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
15006 done
15007fi
15008
15009if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
15010 set dummy gfortran
15011 if test $build = $target ; then
15012 GFORTRAN_FOR_TARGET="$2"
15013 else
15014 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
15015 fi
15016else
15017 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
15018fi
15019
15020
15021
15022if test -n "$GOC_FOR_TARGET"; then
15023 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
15024elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15025 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15026fi
15027
15028if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15029 for ncn_progname in gccgo; do
15030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15031set dummy ${ncn_progname}; ac_word=$2
15032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15033$as_echo_n "checking for $ac_word... " >&6; }
15034if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15035 $as_echo_n "(cached) " >&6
15036else
15037 if test -n "$GOC_FOR_TARGET"; then
15038 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15039else
15040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15041for as_dir in $PATH
15042do
15043 IFS=$as_save_IFS
15044 test -z "$as_dir" && as_dir=.
15045 for ac_exec_ext in '' $ac_executable_extensions; do
15046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15047 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15049 break 2
15050 fi
15051done
15052 done
15053IFS=$as_save_IFS
15054
15055fi
15056fi
15057GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15058if test -n "$GOC_FOR_TARGET"; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15060$as_echo "$GOC_FOR_TARGET" >&6; }
15061else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063$as_echo "no" >&6; }
15064fi
15065
15066
15067 done
15068fi
15069
15070if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15071 for ncn_progname in gccgo; do
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15073$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15074 if test -x $with_build_time_tools/${ncn_progname}; then
15075 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077$as_echo "yes" >&6; }
15078 break
15079 else
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081$as_echo "no" >&6; }
15082 fi
15083 done
15084fi
15085
15086if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
15087 for ncn_progname in gccgo; do
15088 if test -n "$ncn_target_tool_prefix"; then
15089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15090set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15092$as_echo_n "checking for $ac_word... " >&6; }
15093if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095else
15096 if test -n "$GOC_FOR_TARGET"; then
15097 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15098else
15099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100for as_dir in $PATH
15101do
15102 IFS=$as_save_IFS
15103 test -z "$as_dir" && as_dir=.
15104 for ac_exec_ext in '' $ac_executable_extensions; do
15105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15106 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15108 break 2
15109 fi
15110done
15111 done
15112IFS=$as_save_IFS
15113
15114fi
15115fi
15116GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15117if test -n "$GOC_FOR_TARGET"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15119$as_echo "$GOC_FOR_TARGET" >&6; }
15120else
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122$as_echo "no" >&6; }
15123fi
15124
15125
15126 fi
15127 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15129set dummy ${ncn_progname}; ac_word=$2
15130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15131$as_echo_n "checking for $ac_word... " >&6; }
15132if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134else
15135 if test -n "$GOC_FOR_TARGET"; then
15136 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15137else
15138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15139for as_dir in $PATH
15140do
15141 IFS=$as_save_IFS
15142 test -z "$as_dir" && as_dir=.
15143 for ac_exec_ext in '' $ac_executable_extensions; do
15144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15145 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15147 break 2
15148 fi
15149done
15150 done
15151IFS=$as_save_IFS
15152
15153fi
15154fi
15155GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15156if test -n "$GOC_FOR_TARGET"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15158$as_echo "$GOC_FOR_TARGET" >&6; }
15159else
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161$as_echo "no" >&6; }
15162fi
15163
15164
15165 fi
15166 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15167 done
15168fi
15169
15170if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15171 set dummy gccgo
15172 if test $build = $target ; then
15173 GOC_FOR_TARGET="$2"
15174 else
15175 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15176 fi
15177else
15178 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15179fi
15180
15181
15182
15183if test -n "$GDC_FOR_TARGET"; then
15184 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15185elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15186 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15187fi
15188
15189if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15190 for ncn_progname in gdc; do
15191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15192set dummy ${ncn_progname}; ac_word=$2
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194$as_echo_n "checking for $ac_word... " >&6; }
15195if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15196 $as_echo_n "(cached) " >&6
15197else
15198 if test -n "$GDC_FOR_TARGET"; then
15199 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15200else
15201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202for as_dir in $PATH
15203do
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 break 2
15211 fi
15212done
15213 done
15214IFS=$as_save_IFS
15215
15216fi
15217fi
15218GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15219if test -n "$GDC_FOR_TARGET"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15221$as_echo "$GDC_FOR_TARGET" >&6; }
15222else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224$as_echo "no" >&6; }
15225fi
15226
15227
15228 done
15229fi
15230
15231if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15232 for ncn_progname in gdc; do
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15234$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15235 if test -x $with_build_time_tools/${ncn_progname}; then
15236 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15238$as_echo "yes" >&6; }
15239 break
15240 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242$as_echo "no" >&6; }
15243 fi
15244 done
15245fi
15246
15247if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15248 for ncn_progname in gdc; do
15249 if test -n "$ncn_target_tool_prefix"; then
15250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15251set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15253$as_echo_n "checking for $ac_word... " >&6; }
15254if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15255 $as_echo_n "(cached) " >&6
15256else
15257 if test -n "$GDC_FOR_TARGET"; then
15258 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15259else
15260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261for as_dir in $PATH
15262do
15263 IFS=$as_save_IFS
15264 test -z "$as_dir" && as_dir=.
15265 for ac_exec_ext in '' $ac_executable_extensions; do
15266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15267 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15269 break 2
15270 fi
15271done
15272 done
15273IFS=$as_save_IFS
15274
15275fi
15276fi
15277GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15278if test -n "$GDC_FOR_TARGET"; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15280$as_echo "$GDC_FOR_TARGET" >&6; }
15281else
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15283$as_echo "no" >&6; }
15284fi
15285
15286
15287 fi
15288 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15290set dummy ${ncn_progname}; ac_word=$2
15291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15292$as_echo_n "checking for $ac_word... " >&6; }
15293if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295else
15296 if test -n "$GDC_FOR_TARGET"; then
15297 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15298else
15299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15300for as_dir in $PATH
15301do
15302 IFS=$as_save_IFS
15303 test -z "$as_dir" && as_dir=.
15304 for ac_exec_ext in '' $ac_executable_extensions; do
15305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15306 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15308 break 2
15309 fi
15310done
15311 done
15312IFS=$as_save_IFS
15313
15314fi
15315fi
15316GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15317if test -n "$GDC_FOR_TARGET"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15319$as_echo "$GDC_FOR_TARGET" >&6; }
15320else
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322$as_echo "no" >&6; }
15323fi
15324
15325
15326 fi
15327 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15328 done
15329fi
15330
15331if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15332 set dummy gdc
15333 if test $build = $target ; then
15334 GDC_FOR_TARGET="$2"
15335 else
15336 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15337 fi
15338else
15339 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15340fi
15341
15342
15343
15344if test -n "$GM2_FOR_TARGET"; then
15345 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15346elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15347 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15348fi
15349
15350if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15351 for ncn_progname in gm2; do
15352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15353set dummy ${ncn_progname}; ac_word=$2
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15355$as_echo_n "checking for $ac_word... " >&6; }
15356if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358else
15359 if test -n "$GM2_FOR_TARGET"; then
15360 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15361else
15362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363for as_dir in $PATH
15364do
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15372 fi
15373done
15374 done
15375IFS=$as_save_IFS
15376
15377fi
15378fi
15379GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15380if test -n "$GM2_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15382$as_echo "$GM2_FOR_TARGET" >&6; }
15383else
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385$as_echo "no" >&6; }
15386fi
15387
15388
15389 done
15390fi
15391
15392if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15393 for ncn_progname in gm2; do
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15395$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15396 if test -x $with_build_time_tools/${ncn_progname}; then
15397 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15399$as_echo "yes" >&6; }
15400 break
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403$as_echo "no" >&6; }
15404 fi
15405 done
15406fi
15407
15408if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15409 for ncn_progname in gm2; do
15410 if test -n "$ncn_target_tool_prefix"; then
15411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15412set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15414$as_echo_n "checking for $ac_word... " >&6; }
15415if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15416 $as_echo_n "(cached) " >&6
15417else
15418 if test -n "$GM2_FOR_TARGET"; then
15419 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15420else
15421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422for as_dir in $PATH
15423do
15424 IFS=$as_save_IFS
15425 test -z "$as_dir" && as_dir=.
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15430 break 2
15431 fi
15432done
15433 done
15434IFS=$as_save_IFS
15435
15436fi
15437fi
15438GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15439if test -n "$GM2_FOR_TARGET"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15441$as_echo "$GM2_FOR_TARGET" >&6; }
15442else
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15444$as_echo "no" >&6; }
15445fi
15446
15447
15448 fi
15449 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15451set dummy ${ncn_progname}; ac_word=$2
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15453$as_echo_n "checking for $ac_word... " >&6; }
15454if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15455 $as_echo_n "(cached) " >&6
15456else
15457 if test -n "$GM2_FOR_TARGET"; then
15458 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15459else
15460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15461for as_dir in $PATH
15462do
15463 IFS=$as_save_IFS
15464 test -z "$as_dir" && as_dir=.
15465 for ac_exec_ext in '' $ac_executable_extensions; do
15466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15467 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15469 break 2
15470 fi
15471done
15472 done
15473IFS=$as_save_IFS
15474
15475fi
15476fi
15477GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15478if test -n "$GM2_FOR_TARGET"; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15480$as_echo "$GM2_FOR_TARGET" >&6; }
15481else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483$as_echo "no" >&6; }
15484fi
15485
15486
15487 fi
15488 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15489 done
15490fi
15491
15492if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15493 set dummy gm2
15494 if test $build = $target ; then
15495 GM2_FOR_TARGET="$2"
15496 else
15497 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15498 fi
15499else
15500 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15501fi
15502
15503
15504
15505cat > conftest.c << \EOF
15506#ifdef __GNUC__
15507 gcc_yay;
15508#endif
15509EOF
15510if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15511 have_gcc_for_target=yes
15512else
15513 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15514 have_gcc_for_target=no
15515fi
15516rm conftest.c
15517
15518
15519
15520
15521if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15522 if test -n "$with_build_time_tools"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15524$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15525 if test -x $with_build_time_tools/ar; then
15526 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15527 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15529$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532$as_echo "no" >&6; }
15533 fi
15534 elif test $build != $host && test $have_gcc_for_target = yes; then
15535 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15536 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15537 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15538 fi
15539fi
15540if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15541 # Extract the first word of "ar", so it can be a program name with args.
15542set dummy ar; ac_word=$2
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544$as_echo_n "checking for $ac_word... " >&6; }
15545if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547else
15548 case $AR_FOR_TARGET in
15549 [\\/]* | ?:[\\/]*)
15550 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15551 ;;
15552 *)
15553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15554for as_dir in $gcc_cv_tool_dirs
15555do
15556 IFS=$as_save_IFS
15557 test -z "$as_dir" && as_dir=.
15558 for ac_exec_ext in '' $ac_executable_extensions; do
15559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15560 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15562 break 2
15563 fi
15564done
15565 done
15566IFS=$as_save_IFS
15567
15568 ;;
15569esac
15570fi
15571AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15572if test -n "$AR_FOR_TARGET"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15574$as_echo "$AR_FOR_TARGET" >&6; }
15575else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577$as_echo "no" >&6; }
15578fi
15579
15580
15581fi
15582if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15583
15584
15585if test -n "$AR_FOR_TARGET"; then
15586 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15587elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15588 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15589fi
15590
15591if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15592 for ncn_progname in ar; do
15593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15594set dummy ${ncn_progname}; ac_word=$2
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596$as_echo_n "checking for $ac_word... " >&6; }
15597if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15598 $as_echo_n "(cached) " >&6
15599else
15600 if test -n "$AR_FOR_TARGET"; then
15601 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15602else
15603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604for as_dir in $PATH
15605do
15606 IFS=$as_save_IFS
15607 test -z "$as_dir" && as_dir=.
15608 for ac_exec_ext in '' $ac_executable_extensions; do
15609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15610 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 break 2
15613 fi
15614done
15615 done
15616IFS=$as_save_IFS
15617
15618fi
15619fi
15620AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15621if test -n "$AR_FOR_TARGET"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15623$as_echo "$AR_FOR_TARGET" >&6; }
15624else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626$as_echo "no" >&6; }
15627fi
15628
15629
15630 done
15631fi
15632
15633if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15634 for ncn_progname in ar; do
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15636$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15637 if test -x $with_build_time_tools/${ncn_progname}; then
15638 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15640$as_echo "yes" >&6; }
15641 break
15642 else
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644$as_echo "no" >&6; }
15645 fi
15646 done
15647fi
15648
15649if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15650 for ncn_progname in ar; do
15651 if test -n "$ncn_target_tool_prefix"; then
15652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655$as_echo_n "checking for $ac_word... " >&6; }
15656if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658else
15659 if test -n "$AR_FOR_TARGET"; then
15660 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15661else
15662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663for as_dir in $PATH
15664do
15665 IFS=$as_save_IFS
15666 test -z "$as_dir" && as_dir=.
15667 for ac_exec_ext in '' $ac_executable_extensions; do
15668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15669 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15671 break 2
15672 fi
15673done
15674 done
15675IFS=$as_save_IFS
15676
15677fi
15678fi
15679AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15680if test -n "$AR_FOR_TARGET"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15682$as_echo "$AR_FOR_TARGET" >&6; }
15683else
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685$as_echo "no" >&6; }
15686fi
15687
15688
15689 fi
15690 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15692set dummy ${ncn_progname}; ac_word=$2
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694$as_echo_n "checking for $ac_word... " >&6; }
15695if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697else
15698 if test -n "$AR_FOR_TARGET"; then
15699 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15700else
15701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702for as_dir in $PATH
15703do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712done
15713 done
15714IFS=$as_save_IFS
15715
15716fi
15717fi
15718AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15719if test -n "$AR_FOR_TARGET"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15721$as_echo "$AR_FOR_TARGET" >&6; }
15722else
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724$as_echo "no" >&6; }
15725fi
15726
15727
15728 fi
15729 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15730 done
15731fi
15732
15733if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15734 set dummy ar
15735 if test $build = $target ; then
15736 AR_FOR_TARGET="$2"
15737 else
15738 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15739 fi
15740else
15741 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15742fi
15743
15744else
15745 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15746fi
15747
15748
15749
15750
15751if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15752 if test -n "$with_build_time_tools"; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15754$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15755 if test -x $with_build_time_tools/as; then
15756 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15757 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15759$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762$as_echo "no" >&6; }
15763 fi
15764 elif test $build != $host && test $have_gcc_for_target = yes; then
15765 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15766 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15767 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15768 fi
15769fi
15770if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15771 # Extract the first word of "as", so it can be a program name with args.
15772set dummy as; ac_word=$2
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774$as_echo_n "checking for $ac_word... " >&6; }
15775if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777else
15778 case $AS_FOR_TARGET in
15779 [\\/]* | ?:[\\/]*)
15780 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15781 ;;
15782 *)
15783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15784for as_dir in $gcc_cv_tool_dirs
15785do
15786 IFS=$as_save_IFS
15787 test -z "$as_dir" && as_dir=.
15788 for ac_exec_ext in '' $ac_executable_extensions; do
15789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15790 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15792 break 2
15793 fi
15794done
15795 done
15796IFS=$as_save_IFS
15797
15798 ;;
15799esac
15800fi
15801AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15802if test -n "$AS_FOR_TARGET"; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15804$as_echo "$AS_FOR_TARGET" >&6; }
15805else
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807$as_echo "no" >&6; }
15808fi
15809
15810
15811fi
15812if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15813
15814
15815if test -n "$AS_FOR_TARGET"; then
15816 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15817elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15818 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15819fi
15820
15821if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15822 for ncn_progname in as; do
15823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15824set dummy ${ncn_progname}; ac_word=$2
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826$as_echo_n "checking for $ac_word... " >&6; }
15827if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829else
15830 if test -n "$AS_FOR_TARGET"; then
15831 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15832else
15833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834for as_dir in $PATH
15835do
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15843 fi
15844done
15845 done
15846IFS=$as_save_IFS
15847
15848fi
15849fi
15850AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15851if test -n "$AS_FOR_TARGET"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15853$as_echo "$AS_FOR_TARGET" >&6; }
15854else
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856$as_echo "no" >&6; }
15857fi
15858
15859
15860 done
15861fi
15862
15863if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15864 for ncn_progname in as; do
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15866$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15867 if test -x $with_build_time_tools/${ncn_progname}; then
15868 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870$as_echo "yes" >&6; }
15871 break
15872 else
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874$as_echo "no" >&6; }
15875 fi
15876 done
15877fi
15878
15879if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15880 for ncn_progname in as; do
15881 if test -n "$ncn_target_tool_prefix"; then
15882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15883set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885$as_echo_n "checking for $ac_word... " >&6; }
15886if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888else
15889 if test -n "$AS_FOR_TARGET"; then
15890 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15891else
15892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893for as_dir in $PATH
15894do
15895 IFS=$as_save_IFS
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
15898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15899 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15901 break 2
15902 fi
15903done
15904 done
15905IFS=$as_save_IFS
15906
15907fi
15908fi
15909AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15910if test -n "$AS_FOR_TARGET"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15912$as_echo "$AS_FOR_TARGET" >&6; }
15913else
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915$as_echo "no" >&6; }
15916fi
15917
15918
15919 fi
15920 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15922set dummy ${ncn_progname}; ac_word=$2
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15924$as_echo_n "checking for $ac_word... " >&6; }
15925if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927else
15928 if test -n "$AS_FOR_TARGET"; then
15929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15930else
15931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932for as_dir in $PATH
15933do
15934 IFS=$as_save_IFS
15935 test -z "$as_dir" && as_dir=.
15936 for ac_exec_ext in '' $ac_executable_extensions; do
15937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15938 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15940 break 2
15941 fi
15942done
15943 done
15944IFS=$as_save_IFS
15945
15946fi
15947fi
15948AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15949if test -n "$AS_FOR_TARGET"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15951$as_echo "$AS_FOR_TARGET" >&6; }
15952else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954$as_echo "no" >&6; }
15955fi
15956
15957
15958 fi
15959 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15960 done
15961fi
15962
15963if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15964 set dummy as
15965 if test $build = $target ; then
15966 AS_FOR_TARGET="$2"
15967 else
15968 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15969 fi
15970else
15971 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15972fi
15973
15974else
15975 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15976fi
15977
15978
15979
15980
15981if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15982 if test -n "$with_build_time_tools"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15984$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15985 if test -x $with_build_time_tools/dlltool; then
15986 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15987 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15989$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992$as_echo "no" >&6; }
15993 fi
15994 elif test $build != $host && test $have_gcc_for_target = yes; then
15995 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15996 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15997 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15998 fi
15999fi
16000if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16001 # Extract the first word of "dlltool", so it can be a program name with args.
16002set dummy dlltool; ac_word=$2
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004$as_echo_n "checking for $ac_word... " >&6; }
16005if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007else
16008 case $DLLTOOL_FOR_TARGET in
16009 [\\/]* | ?:[\\/]*)
16010 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
16011 ;;
16012 *)
16013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16014for as_dir in $gcc_cv_tool_dirs
16015do
16016 IFS=$as_save_IFS
16017 test -z "$as_dir" && as_dir=.
16018 for ac_exec_ext in '' $ac_executable_extensions; do
16019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16020 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16022 break 2
16023 fi
16024done
16025 done
16026IFS=$as_save_IFS
16027
16028 ;;
16029esac
16030fi
16031DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16032if test -n "$DLLTOOL_FOR_TARGET"; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16034$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16035else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037$as_echo "no" >&6; }
16038fi
16039
16040
16041fi
16042if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
16043
16044
16045if test -n "$DLLTOOL_FOR_TARGET"; then
16046 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
16047elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16048 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16049fi
16050
16051if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16052 for ncn_progname in dlltool; do
16053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16054set dummy ${ncn_progname}; ac_word=$2
16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16056$as_echo_n "checking for $ac_word... " >&6; }
16057if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059else
16060 if test -n "$DLLTOOL_FOR_TARGET"; then
16061 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16062else
16063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064for as_dir in $PATH
16065do
16066 IFS=$as_save_IFS
16067 test -z "$as_dir" && as_dir=.
16068 for ac_exec_ext in '' $ac_executable_extensions; do
16069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16070 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16072 break 2
16073 fi
16074done
16075 done
16076IFS=$as_save_IFS
16077
16078fi
16079fi
16080DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16081if test -n "$DLLTOOL_FOR_TARGET"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16083$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16084else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086$as_echo "no" >&6; }
16087fi
16088
16089
16090 done
16091fi
16092
16093if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16094 for ncn_progname in dlltool; do
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16096$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16097 if test -x $with_build_time_tools/${ncn_progname}; then
16098 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100$as_echo "yes" >&6; }
16101 break
16102 else
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104$as_echo "no" >&6; }
16105 fi
16106 done
16107fi
16108
16109if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16110 for ncn_progname in dlltool; do
16111 if test -n "$ncn_target_tool_prefix"; then
16112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16113set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115$as_echo_n "checking for $ac_word... " >&6; }
16116if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16117 $as_echo_n "(cached) " >&6
16118else
16119 if test -n "$DLLTOOL_FOR_TARGET"; then
16120 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16121else
16122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123for as_dir in $PATH
16124do
16125 IFS=$as_save_IFS
16126 test -z "$as_dir" && as_dir=.
16127 for ac_exec_ext in '' $ac_executable_extensions; do
16128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16129 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131 break 2
16132 fi
16133done
16134 done
16135IFS=$as_save_IFS
16136
16137fi
16138fi
16139DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16140if test -n "$DLLTOOL_FOR_TARGET"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16142$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16143else
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145$as_echo "no" >&6; }
16146fi
16147
16148
16149 fi
16150 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16152set dummy ${ncn_progname}; ac_word=$2
16153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16154$as_echo_n "checking for $ac_word... " >&6; }
16155if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157else
16158 if test -n "$DLLTOOL_FOR_TARGET"; then
16159 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16160else
16161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16162for as_dir in $PATH
16163do
16164 IFS=$as_save_IFS
16165 test -z "$as_dir" && as_dir=.
16166 for ac_exec_ext in '' $ac_executable_extensions; do
16167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16168 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16170 break 2
16171 fi
16172done
16173 done
16174IFS=$as_save_IFS
16175
16176fi
16177fi
16178DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16179if test -n "$DLLTOOL_FOR_TARGET"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16181$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16182else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185fi
16186
16187
16188 fi
16189 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16190 done
16191fi
16192
16193if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16194 set dummy dlltool
16195 if test $build = $target ; then
16196 DLLTOOL_FOR_TARGET="$2"
16197 else
16198 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16199 fi
16200else
16201 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16202fi
16203
16204else
16205 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16206fi
16207
16208
16209
16210
16211if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16212 if test -n "$with_build_time_tools"; then
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16214$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16215 if test -x $with_build_time_tools/dsymutil; then
16216 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16217 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16219$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16220 else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
16223 fi
16224 elif test $build != $host && test $have_gcc_for_target = yes; then
16225 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16226 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16227 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16228 fi
16229fi
16230if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16231 # Extract the first word of "dsymutil", so it can be a program name with args.
16232set dummy dsymutil; ac_word=$2
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16234$as_echo_n "checking for $ac_word... " >&6; }
16235if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237else
16238 case $DSYMUTIL_FOR_TARGET in
16239 [\\/]* | ?:[\\/]*)
16240 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16241 ;;
16242 *)
16243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16244for as_dir in $gcc_cv_tool_dirs
16245do
16246 IFS=$as_save_IFS
16247 test -z "$as_dir" && as_dir=.
16248 for ac_exec_ext in '' $ac_executable_extensions; do
16249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16250 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16252 break 2
16253 fi
16254done
16255 done
16256IFS=$as_save_IFS
16257
16258 ;;
16259esac
16260fi
16261DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16262if test -n "$DSYMUTIL_FOR_TARGET"; then
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16264$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16265else
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267$as_echo "no" >&6; }
16268fi
16269
16270
16271fi
16272if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16273
16274
16275if test -n "$DSYMUTIL_FOR_TARGET"; then
16276 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16277elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16278 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16279fi
16280
16281if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16282 for ncn_progname in dsymutil; do
16283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16284set dummy ${ncn_progname}; ac_word=$2
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286$as_echo_n "checking for $ac_word... " >&6; }
16287if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289else
16290 if test -n "$DSYMUTIL_FOR_TARGET"; then
16291 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16292else
16293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294for as_dir in $PATH
16295do
16296 IFS=$as_save_IFS
16297 test -z "$as_dir" && as_dir=.
16298 for ac_exec_ext in '' $ac_executable_extensions; do
16299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16300 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16302 break 2
16303 fi
16304done
16305 done
16306IFS=$as_save_IFS
16307
16308fi
16309fi
16310DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16311if test -n "$DSYMUTIL_FOR_TARGET"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16313$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16314else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316$as_echo "no" >&6; }
16317fi
16318
16319
16320 done
16321fi
16322
16323if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16324 for ncn_progname in dsymutil; do
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16326$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16327 if test -x $with_build_time_tools/${ncn_progname}; then
16328 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330$as_echo "yes" >&6; }
16331 break
16332 else
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334$as_echo "no" >&6; }
16335 fi
16336 done
16337fi
16338
16339if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16340 for ncn_progname in dsymutil; do
16341 if test -n "$ncn_target_tool_prefix"; then
16342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345$as_echo_n "checking for $ac_word... " >&6; }
16346if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16347 $as_echo_n "(cached) " >&6
16348else
16349 if test -n "$DSYMUTIL_FOR_TARGET"; then
16350 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16351else
16352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16353for as_dir in $PATH
16354do
16355 IFS=$as_save_IFS
16356 test -z "$as_dir" && as_dir=.
16357 for ac_exec_ext in '' $ac_executable_extensions; do
16358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16359 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16361 break 2
16362 fi
16363done
16364 done
16365IFS=$as_save_IFS
16366
16367fi
16368fi
16369DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16370if test -n "$DSYMUTIL_FOR_TARGET"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16372$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16373else
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375$as_echo "no" >&6; }
16376fi
16377
16378
16379 fi
16380 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16382set dummy ${ncn_progname}; ac_word=$2
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16384$as_echo_n "checking for $ac_word... " >&6; }
16385if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387else
16388 if test -n "$DSYMUTIL_FOR_TARGET"; then
16389 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16390else
16391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392for as_dir in $PATH
16393do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
16396 for ac_exec_ext in '' $ac_executable_extensions; do
16397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16398 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16400 break 2
16401 fi
16402done
16403 done
16404IFS=$as_save_IFS
16405
16406fi
16407fi
16408DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16409if test -n "$DSYMUTIL_FOR_TARGET"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16411$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16412else
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414$as_echo "no" >&6; }
16415fi
16416
16417
16418 fi
16419 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16420 done
16421fi
16422
16423if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16424 set dummy dsymutil
16425 if test $build = $target ; then
16426 DSYMUTIL_FOR_TARGET="$2"
16427 else
16428 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16429 fi
16430else
16431 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16432fi
16433
16434else
16435 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16436fi
16437
16438
16439
16440
16441if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16442 if test -n "$with_build_time_tools"; then
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16444$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16445 if test -x $with_build_time_tools/ld; then
16446 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16447 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16449$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452$as_echo "no" >&6; }
16453 fi
16454 elif test $build != $host && test $have_gcc_for_target = yes; then
16455 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16456 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16457 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16458 fi
16459fi
16460if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16461 # Extract the first word of "ld", so it can be a program name with args.
16462set dummy ld; ac_word=$2
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464$as_echo_n "checking for $ac_word... " >&6; }
16465if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467else
16468 case $LD_FOR_TARGET in
16469 [\\/]* | ?:[\\/]*)
16470 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16471 ;;
16472 *)
16473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16474for as_dir in $gcc_cv_tool_dirs
16475do
16476 IFS=$as_save_IFS
16477 test -z "$as_dir" && as_dir=.
16478 for ac_exec_ext in '' $ac_executable_extensions; do
16479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16480 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16482 break 2
16483 fi
16484done
16485 done
16486IFS=$as_save_IFS
16487
16488 ;;
16489esac
16490fi
16491LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16492if test -n "$LD_FOR_TARGET"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16494$as_echo "$LD_FOR_TARGET" >&6; }
16495else
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497$as_echo "no" >&6; }
16498fi
16499
16500
16501fi
16502if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16503
16504
16505if test -n "$LD_FOR_TARGET"; then
16506 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16507elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16508 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16509fi
16510
16511if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16512 for ncn_progname in ld; do
16513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16514set dummy ${ncn_progname}; ac_word=$2
16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516$as_echo_n "checking for $ac_word... " >&6; }
16517if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519else
16520 if test -n "$LD_FOR_TARGET"; then
16521 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16522else
16523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524for as_dir in $PATH
16525do
16526 IFS=$as_save_IFS
16527 test -z "$as_dir" && as_dir=.
16528 for ac_exec_ext in '' $ac_executable_extensions; do
16529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16530 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532 break 2
16533 fi
16534done
16535 done
16536IFS=$as_save_IFS
16537
16538fi
16539fi
16540LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16541if test -n "$LD_FOR_TARGET"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16543$as_echo "$LD_FOR_TARGET" >&6; }
16544else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546$as_echo "no" >&6; }
16547fi
16548
16549
16550 done
16551fi
16552
16553if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16554 for ncn_progname in ld; do
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16556$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16557 if test -x $with_build_time_tools/${ncn_progname}; then
16558 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16560$as_echo "yes" >&6; }
16561 break
16562 else
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564$as_echo "no" >&6; }
16565 fi
16566 done
16567fi
16568
16569if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16570 for ncn_progname in ld; do
16571 if test -n "$ncn_target_tool_prefix"; then
16572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16573set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16575$as_echo_n "checking for $ac_word... " >&6; }
16576if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16577 $as_echo_n "(cached) " >&6
16578else
16579 if test -n "$LD_FOR_TARGET"; then
16580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16581else
16582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16583for as_dir in $PATH
16584do
16585 IFS=$as_save_IFS
16586 test -z "$as_dir" && as_dir=.
16587 for ac_exec_ext in '' $ac_executable_extensions; do
16588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16589 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16591 break 2
16592 fi
16593done
16594 done
16595IFS=$as_save_IFS
16596
16597fi
16598fi
16599LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16600if test -n "$LD_FOR_TARGET"; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16602$as_echo "$LD_FOR_TARGET" >&6; }
16603else
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605$as_echo "no" >&6; }
16606fi
16607
16608
16609 fi
16610 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16612set dummy ${ncn_progname}; ac_word=$2
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614$as_echo_n "checking for $ac_word... " >&6; }
16615if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617else
16618 if test -n "$LD_FOR_TARGET"; then
16619 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16620else
16621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16622for as_dir in $PATH
16623do
16624 IFS=$as_save_IFS
16625 test -z "$as_dir" && as_dir=.
16626 for ac_exec_ext in '' $ac_executable_extensions; do
16627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16628 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16630 break 2
16631 fi
16632done
16633 done
16634IFS=$as_save_IFS
16635
16636fi
16637fi
16638LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16639if test -n "$LD_FOR_TARGET"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16641$as_echo "$LD_FOR_TARGET" >&6; }
16642else
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644$as_echo "no" >&6; }
16645fi
16646
16647
16648 fi
16649 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16650 done
16651fi
16652
16653if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16654 set dummy ld
16655 if test $build = $target ; then
16656 LD_FOR_TARGET="$2"
16657 else
16658 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16659 fi
16660else
16661 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16662fi
16663
16664else
16665 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16666fi
16667
16668
16669
16670
16671if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16672 if test -n "$with_build_time_tools"; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16674$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16675 if test -x $with_build_time_tools/lipo; then
16676 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16677 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16679$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16680 else
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682$as_echo "no" >&6; }
16683 fi
16684 elif test $build != $host && test $have_gcc_for_target = yes; then
16685 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16686 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16687 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16688 fi
16689fi
16690if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16691 # Extract the first word of "lipo", so it can be a program name with args.
16692set dummy lipo; ac_word=$2
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694$as_echo_n "checking for $ac_word... " >&6; }
16695if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16696 $as_echo_n "(cached) " >&6
16697else
16698 case $LIPO_FOR_TARGET in
16699 [\\/]* | ?:[\\/]*)
16700 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16701 ;;
16702 *)
16703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16704for as_dir in $gcc_cv_tool_dirs
16705do
16706 IFS=$as_save_IFS
16707 test -z "$as_dir" && as_dir=.
16708 for ac_exec_ext in '' $ac_executable_extensions; do
16709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16710 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16712 break 2
16713 fi
16714done
16715 done
16716IFS=$as_save_IFS
16717
16718 ;;
16719esac
16720fi
16721LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16722if test -n "$LIPO_FOR_TARGET"; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16724$as_echo "$LIPO_FOR_TARGET" >&6; }
16725else
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16727$as_echo "no" >&6; }
16728fi
16729
16730
16731fi
16732if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16733
16734
16735if test -n "$LIPO_FOR_TARGET"; then
16736 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16737elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16738 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16739fi
16740
16741if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16742 for ncn_progname in lipo; do
16743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16744set dummy ${ncn_progname}; ac_word=$2
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16746$as_echo_n "checking for $ac_word... " >&6; }
16747if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749else
16750 if test -n "$LIPO_FOR_TARGET"; then
16751 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16752else
16753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754for as_dir in $PATH
16755do
16756 IFS=$as_save_IFS
16757 test -z "$as_dir" && as_dir=.
16758 for ac_exec_ext in '' $ac_executable_extensions; do
16759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16760 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16762 break 2
16763 fi
16764done
16765 done
16766IFS=$as_save_IFS
16767
16768fi
16769fi
16770LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16771if test -n "$LIPO_FOR_TARGET"; then
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16773$as_echo "$LIPO_FOR_TARGET" >&6; }
16774else
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776$as_echo "no" >&6; }
16777fi
16778
16779
16780 done
16781fi
16782
16783if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16784 for ncn_progname in lipo; do
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16786$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16787 if test -x $with_build_time_tools/${ncn_progname}; then
16788 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790$as_echo "yes" >&6; }
16791 break
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794$as_echo "no" >&6; }
16795 fi
16796 done
16797fi
16798
16799if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16800 for ncn_progname in lipo; do
16801 if test -n "$ncn_target_tool_prefix"; then
16802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16803set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805$as_echo_n "checking for $ac_word... " >&6; }
16806if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808else
16809 if test -n "$LIPO_FOR_TARGET"; then
16810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16811else
16812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813for as_dir in $PATH
16814do
16815 IFS=$as_save_IFS
16816 test -z "$as_dir" && as_dir=.
16817 for ac_exec_ext in '' $ac_executable_extensions; do
16818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16821 break 2
16822 fi
16823done
16824 done
16825IFS=$as_save_IFS
16826
16827fi
16828fi
16829LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16830if test -n "$LIPO_FOR_TARGET"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16832$as_echo "$LIPO_FOR_TARGET" >&6; }
16833else
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835$as_echo "no" >&6; }
16836fi
16837
16838
16839 fi
16840 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16842set dummy ${ncn_progname}; ac_word=$2
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16844$as_echo_n "checking for $ac_word... " >&6; }
16845if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16846 $as_echo_n "(cached) " >&6
16847else
16848 if test -n "$LIPO_FOR_TARGET"; then
16849 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16850else
16851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852for as_dir in $PATH
16853do
16854 IFS=$as_save_IFS
16855 test -z "$as_dir" && as_dir=.
16856 for ac_exec_ext in '' $ac_executable_extensions; do
16857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16858 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16860 break 2
16861 fi
16862done
16863 done
16864IFS=$as_save_IFS
16865
16866fi
16867fi
16868LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16869if test -n "$LIPO_FOR_TARGET"; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16871$as_echo "$LIPO_FOR_TARGET" >&6; }
16872else
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16874$as_echo "no" >&6; }
16875fi
16876
16877
16878 fi
16879 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16880 done
16881fi
16882
16883if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16884 set dummy lipo
16885 if test $build = $target ; then
16886 LIPO_FOR_TARGET="$2"
16887 else
16888 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16889 fi
16890else
16891 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16892fi
16893
16894else
16895 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16896fi
16897
16898
16899
16900
16901if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16902 if test -n "$with_build_time_tools"; then
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16904$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16905 if test -x $with_build_time_tools/nm; then
16906 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16907 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16909$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912$as_echo "no" >&6; }
16913 fi
16914 elif test $build != $host && test $have_gcc_for_target = yes; then
16915 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16916 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16917 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16918 fi
16919fi
16920if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16921 # Extract the first word of "nm", so it can be a program name with args.
16922set dummy nm; ac_word=$2
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16924$as_echo_n "checking for $ac_word... " >&6; }
16925if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16926 $as_echo_n "(cached) " >&6
16927else
16928 case $NM_FOR_TARGET in
16929 [\\/]* | ?:[\\/]*)
16930 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16931 ;;
16932 *)
16933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16934for as_dir in $gcc_cv_tool_dirs
16935do
16936 IFS=$as_save_IFS
16937 test -z "$as_dir" && as_dir=.
16938 for ac_exec_ext in '' $ac_executable_extensions; do
16939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16940 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16942 break 2
16943 fi
16944done
16945 done
16946IFS=$as_save_IFS
16947
16948 ;;
16949esac
16950fi
16951NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16952if test -n "$NM_FOR_TARGET"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16954$as_echo "$NM_FOR_TARGET" >&6; }
16955else
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957$as_echo "no" >&6; }
16958fi
16959
16960
16961fi
16962if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16963
16964
16965if test -n "$NM_FOR_TARGET"; then
16966 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16967elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16968 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16969fi
16970
16971if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16972 for ncn_progname in nm; do
16973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16974set dummy ${ncn_progname}; ac_word=$2
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976$as_echo_n "checking for $ac_word... " >&6; }
16977if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16978 $as_echo_n "(cached) " >&6
16979else
16980 if test -n "$NM_FOR_TARGET"; then
16981 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16982else
16983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984for as_dir in $PATH
16985do
16986 IFS=$as_save_IFS
16987 test -z "$as_dir" && as_dir=.
16988 for ac_exec_ext in '' $ac_executable_extensions; do
16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16992 break 2
16993 fi
16994done
16995 done
16996IFS=$as_save_IFS
16997
16998fi
16999fi
17000NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17001if test -n "$NM_FOR_TARGET"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17003$as_echo "$NM_FOR_TARGET" >&6; }
17004else
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006$as_echo "no" >&6; }
17007fi
17008
17009
17010 done
17011fi
17012
17013if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
17014 for ncn_progname in nm; do
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17016$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17017 if test -x $with_build_time_tools/${ncn_progname}; then
17018 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020$as_echo "yes" >&6; }
17021 break
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024$as_echo "no" >&6; }
17025 fi
17026 done
17027fi
17028
17029if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
17030 for ncn_progname in nm; do
17031 if test -n "$ncn_target_tool_prefix"; then
17032 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17033set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17035$as_echo_n "checking for $ac_word... " >&6; }
17036if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
17037 $as_echo_n "(cached) " >&6
17038else
17039 if test -n "$NM_FOR_TARGET"; then
17040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
17041else
17042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17043for as_dir in $PATH
17044do
17045 IFS=$as_save_IFS
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
17048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17049 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 break 2
17052 fi
17053done
17054 done
17055IFS=$as_save_IFS
17056
17057fi
17058fi
17059NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17060if test -n "$NM_FOR_TARGET"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17062$as_echo "$NM_FOR_TARGET" >&6; }
17063else
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17065$as_echo "no" >&6; }
17066fi
17067
17068
17069 fi
17070 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
17071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17072set dummy ${ncn_progname}; ac_word=$2
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17074$as_echo_n "checking for $ac_word... " >&6; }
17075if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
17076 $as_echo_n "(cached) " >&6
17077else
17078 if test -n "$NM_FOR_TARGET"; then
17079 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
17080else
17081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17082for as_dir in $PATH
17083do
17084 IFS=$as_save_IFS
17085 test -z "$as_dir" && as_dir=.
17086 for ac_exec_ext in '' $ac_executable_extensions; do
17087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17088 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
17089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17090 break 2
17091 fi
17092done
17093 done
17094IFS=$as_save_IFS
17095
17096fi
17097fi
17098NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17099if test -n "$NM_FOR_TARGET"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17101$as_echo "$NM_FOR_TARGET" >&6; }
17102else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104$as_echo "no" >&6; }
17105fi
17106
17107
17108 fi
17109 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17110 done
17111fi
17112
17113if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17114 set dummy nm
17115 if test $build = $target ; then
17116 NM_FOR_TARGET="$2"
17117 else
17118 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17119 fi
17120else
17121 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17122fi
17123
17124else
17125 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17126fi
17127
17128
17129
17130
17131if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17132 if test -n "$with_build_time_tools"; then
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17134$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17135 if test -x $with_build_time_tools/objcopy; then
17136 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17137 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17139$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17140 else
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142$as_echo "no" >&6; }
17143 fi
17144 elif test $build != $host && test $have_gcc_for_target = yes; then
17145 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17146 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17147 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17148 fi
17149fi
17150if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17151 # Extract the first word of "objcopy", so it can be a program name with args.
17152set dummy objcopy; ac_word=$2
17153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17154$as_echo_n "checking for $ac_word... " >&6; }
17155if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17156 $as_echo_n "(cached) " >&6
17157else
17158 case $OBJCOPY_FOR_TARGET in
17159 [\\/]* | ?:[\\/]*)
17160 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17161 ;;
17162 *)
17163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17164for as_dir in $gcc_cv_tool_dirs
17165do
17166 IFS=$as_save_IFS
17167 test -z "$as_dir" && as_dir=.
17168 for ac_exec_ext in '' $ac_executable_extensions; do
17169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17170 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17172 break 2
17173 fi
17174done
17175 done
17176IFS=$as_save_IFS
17177
17178 ;;
17179esac
17180fi
17181OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17182if test -n "$OBJCOPY_FOR_TARGET"; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17184$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17185else
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187$as_echo "no" >&6; }
17188fi
17189
17190
17191fi
17192if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17193
17194
17195if test -n "$OBJCOPY_FOR_TARGET"; then
17196 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17197elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17198 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17199fi
17200
17201if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17202 for ncn_progname in objcopy; do
17203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17204set dummy ${ncn_progname}; ac_word=$2
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206$as_echo_n "checking for $ac_word... " >&6; }
17207if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17208 $as_echo_n "(cached) " >&6
17209else
17210 if test -n "$OBJCOPY_FOR_TARGET"; then
17211 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17212else
17213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214for as_dir in $PATH
17215do
17216 IFS=$as_save_IFS
17217 test -z "$as_dir" && as_dir=.
17218 for ac_exec_ext in '' $ac_executable_extensions; do
17219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17222 break 2
17223 fi
17224done
17225 done
17226IFS=$as_save_IFS
17227
17228fi
17229fi
17230OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17231if test -n "$OBJCOPY_FOR_TARGET"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17233$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17234else
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236$as_echo "no" >&6; }
17237fi
17238
17239
17240 done
17241fi
17242
17243if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17244 for ncn_progname in objcopy; do
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17246$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17247 if test -x $with_build_time_tools/${ncn_progname}; then
17248 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250$as_echo "yes" >&6; }
17251 break
17252 else
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254$as_echo "no" >&6; }
17255 fi
17256 done
17257fi
17258
17259if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17260 for ncn_progname in objcopy; do
17261 if test -n "$ncn_target_tool_prefix"; then
17262 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17263set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17265$as_echo_n "checking for $ac_word... " >&6; }
17266if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268else
17269 if test -n "$OBJCOPY_FOR_TARGET"; then
17270 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17271else
17272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273for as_dir in $PATH
17274do
17275 IFS=$as_save_IFS
17276 test -z "$as_dir" && as_dir=.
17277 for ac_exec_ext in '' $ac_executable_extensions; do
17278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17279 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17281 break 2
17282 fi
17283done
17284 done
17285IFS=$as_save_IFS
17286
17287fi
17288fi
17289OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17290if test -n "$OBJCOPY_FOR_TARGET"; then
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17292$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17293else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295$as_echo "no" >&6; }
17296fi
17297
17298
17299 fi
17300 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17302set dummy ${ncn_progname}; ac_word=$2
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17304$as_echo_n "checking for $ac_word... " >&6; }
17305if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307else
17308 if test -n "$OBJCOPY_FOR_TARGET"; then
17309 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17310else
17311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17312for as_dir in $PATH
17313do
17314 IFS=$as_save_IFS
17315 test -z "$as_dir" && as_dir=.
17316 for ac_exec_ext in '' $ac_executable_extensions; do
17317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17318 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17320 break 2
17321 fi
17322done
17323 done
17324IFS=$as_save_IFS
17325
17326fi
17327fi
17328OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17329if test -n "$OBJCOPY_FOR_TARGET"; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17331$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17332else
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334$as_echo "no" >&6; }
17335fi
17336
17337
17338 fi
17339 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17340 done
17341fi
17342
17343if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17344 set dummy objcopy
17345 if test $build = $target ; then
17346 OBJCOPY_FOR_TARGET="$2"
17347 else
17348 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17349 fi
17350else
17351 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17352fi
17353
17354else
17355 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17356fi
17357
17358
17359
17360
17361if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17362 if test -n "$with_build_time_tools"; then
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17364$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17365 if test -x $with_build_time_tools/objdump; then
17366 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17367 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17369$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17370 else
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372$as_echo "no" >&6; }
17373 fi
17374 elif test $build != $host && test $have_gcc_for_target = yes; then
17375 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17376 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17377 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17378 fi
17379fi
17380if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17381 # Extract the first word of "objdump", so it can be a program name with args.
17382set dummy objdump; ac_word=$2
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17384$as_echo_n "checking for $ac_word... " >&6; }
17385if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387else
17388 case $OBJDUMP_FOR_TARGET in
17389 [\\/]* | ?:[\\/]*)
17390 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17391 ;;
17392 *)
17393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394for as_dir in $gcc_cv_tool_dirs
17395do
17396 IFS=$as_save_IFS
17397 test -z "$as_dir" && as_dir=.
17398 for ac_exec_ext in '' $ac_executable_extensions; do
17399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17400 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17402 break 2
17403 fi
17404done
17405 done
17406IFS=$as_save_IFS
17407
17408 ;;
17409esac
17410fi
17411OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17412if test -n "$OBJDUMP_FOR_TARGET"; then
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17414$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17415else
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17417$as_echo "no" >&6; }
17418fi
17419
17420
17421fi
17422if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17423
17424
17425if test -n "$OBJDUMP_FOR_TARGET"; then
17426 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17427elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17428 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17429fi
17430
17431if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17432 for ncn_progname in objdump; do
17433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17434set dummy ${ncn_progname}; ac_word=$2
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436$as_echo_n "checking for $ac_word... " >&6; }
17437if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439else
17440 if test -n "$OBJDUMP_FOR_TARGET"; then
17441 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17442else
17443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444for as_dir in $PATH
17445do
17446 IFS=$as_save_IFS
17447 test -z "$as_dir" && as_dir=.
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17452 break 2
17453 fi
17454done
17455 done
17456IFS=$as_save_IFS
17457
17458fi
17459fi
17460OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17461if test -n "$OBJDUMP_FOR_TARGET"; then
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17463$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17464else
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466$as_echo "no" >&6; }
17467fi
17468
17469
17470 done
17471fi
17472
17473if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17474 for ncn_progname in objdump; do
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17476$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17477 if test -x $with_build_time_tools/${ncn_progname}; then
17478 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17480$as_echo "yes" >&6; }
17481 break
17482 else
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484$as_echo "no" >&6; }
17485 fi
17486 done
17487fi
17488
17489if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17490 for ncn_progname in objdump; do
17491 if test -n "$ncn_target_tool_prefix"; then
17492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17493set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17495$as_echo_n "checking for $ac_word... " >&6; }
17496if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498else
17499 if test -n "$OBJDUMP_FOR_TARGET"; then
17500 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17501else
17502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17503for as_dir in $PATH
17504do
17505 IFS=$as_save_IFS
17506 test -z "$as_dir" && as_dir=.
17507 for ac_exec_ext in '' $ac_executable_extensions; do
17508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17509 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17511 break 2
17512 fi
17513done
17514 done
17515IFS=$as_save_IFS
17516
17517fi
17518fi
17519OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17520if test -n "$OBJDUMP_FOR_TARGET"; then
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17522$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17523else
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525$as_echo "no" >&6; }
17526fi
17527
17528
17529 fi
17530 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17532set dummy ${ncn_progname}; ac_word=$2
17533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17534$as_echo_n "checking for $ac_word... " >&6; }
17535if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17536 $as_echo_n "(cached) " >&6
17537else
17538 if test -n "$OBJDUMP_FOR_TARGET"; then
17539 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17540else
17541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17542for as_dir in $PATH
17543do
17544 IFS=$as_save_IFS
17545 test -z "$as_dir" && as_dir=.
17546 for ac_exec_ext in '' $ac_executable_extensions; do
17547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17548 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17550 break 2
17551 fi
17552done
17553 done
17554IFS=$as_save_IFS
17555
17556fi
17557fi
17558OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17559if test -n "$OBJDUMP_FOR_TARGET"; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17561$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17562else
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564$as_echo "no" >&6; }
17565fi
17566
17567
17568 fi
17569 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17570 done
17571fi
17572
17573if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17574 set dummy objdump
17575 if test $build = $target ; then
17576 OBJDUMP_FOR_TARGET="$2"
17577 else
17578 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17579 fi
17580else
17581 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17582fi
17583
17584else
17585 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17586fi
17587
17588
17589
17590
17591if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17592 if test -n "$with_build_time_tools"; then
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17594$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17595 if test -x $with_build_time_tools/otool; then
17596 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17597 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17599$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17600 else
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602$as_echo "no" >&6; }
17603 fi
17604 elif test $build != $host && test $have_gcc_for_target = yes; then
17605 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17606 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17607 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17608 fi
17609fi
17610if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17611 # Extract the first word of "otool", so it can be a program name with args.
17612set dummy otool; ac_word=$2
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17614$as_echo_n "checking for $ac_word... " >&6; }
17615if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17616 $as_echo_n "(cached) " >&6
17617else
17618 case $OTOOL_FOR_TARGET in
17619 [\\/]* | ?:[\\/]*)
17620 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17621 ;;
17622 *)
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624for as_dir in $gcc_cv_tool_dirs
17625do
17626 IFS=$as_save_IFS
17627 test -z "$as_dir" && as_dir=.
17628 for ac_exec_ext in '' $ac_executable_extensions; do
17629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17630 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632 break 2
17633 fi
17634done
17635 done
17636IFS=$as_save_IFS
17637
17638 ;;
17639esac
17640fi
17641OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17642if test -n "$OTOOL_FOR_TARGET"; then
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17644$as_echo "$OTOOL_FOR_TARGET" >&6; }
17645else
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647$as_echo "no" >&6; }
17648fi
17649
17650
17651fi
17652if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17653
17654
17655if test -n "$OTOOL_FOR_TARGET"; then
17656 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17657elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17658 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17659fi
17660
17661if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17662 for ncn_progname in otool; do
17663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17664set dummy ${ncn_progname}; ac_word=$2
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666$as_echo_n "checking for $ac_word... " >&6; }
17667if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17668 $as_echo_n "(cached) " >&6
17669else
17670 if test -n "$OTOOL_FOR_TARGET"; then
17671 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17672else
17673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17674for as_dir in $PATH
17675do
17676 IFS=$as_save_IFS
17677 test -z "$as_dir" && as_dir=.
17678 for ac_exec_ext in '' $ac_executable_extensions; do
17679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17680 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17682 break 2
17683 fi
17684done
17685 done
17686IFS=$as_save_IFS
17687
17688fi
17689fi
17690OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17691if test -n "$OTOOL_FOR_TARGET"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17693$as_echo "$OTOOL_FOR_TARGET" >&6; }
17694else
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696$as_echo "no" >&6; }
17697fi
17698
17699
17700 done
17701fi
17702
17703if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17704 for ncn_progname in otool; do
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17706$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17707 if test -x $with_build_time_tools/${ncn_progname}; then
17708 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17710$as_echo "yes" >&6; }
17711 break
17712 else
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714$as_echo "no" >&6; }
17715 fi
17716 done
17717fi
17718
17719if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17720 for ncn_progname in otool; do
17721 if test -n "$ncn_target_tool_prefix"; then
17722 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17723set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17725$as_echo_n "checking for $ac_word... " >&6; }
17726if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17727 $as_echo_n "(cached) " >&6
17728else
17729 if test -n "$OTOOL_FOR_TARGET"; then
17730 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17731else
17732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733for as_dir in $PATH
17734do
17735 IFS=$as_save_IFS
17736 test -z "$as_dir" && as_dir=.
17737 for ac_exec_ext in '' $ac_executable_extensions; do
17738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17739 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741 break 2
17742 fi
17743done
17744 done
17745IFS=$as_save_IFS
17746
17747fi
17748fi
17749OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17750if test -n "$OTOOL_FOR_TARGET"; then
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17752$as_echo "$OTOOL_FOR_TARGET" >&6; }
17753else
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755$as_echo "no" >&6; }
17756fi
17757
17758
17759 fi
17760 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17762set dummy ${ncn_progname}; ac_word=$2
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17764$as_echo_n "checking for $ac_word... " >&6; }
17765if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17766 $as_echo_n "(cached) " >&6
17767else
17768 if test -n "$OTOOL_FOR_TARGET"; then
17769 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17770else
17771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772for as_dir in $PATH
17773do
17774 IFS=$as_save_IFS
17775 test -z "$as_dir" && as_dir=.
17776 for ac_exec_ext in '' $ac_executable_extensions; do
17777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17778 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17780 break 2
17781 fi
17782done
17783 done
17784IFS=$as_save_IFS
17785
17786fi
17787fi
17788OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17789if test -n "$OTOOL_FOR_TARGET"; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17791$as_echo "$OTOOL_FOR_TARGET" >&6; }
17792else
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17794$as_echo "no" >&6; }
17795fi
17796
17797
17798 fi
17799 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17800 done
17801fi
17802
17803if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17804 set dummy otool
17805 if test $build = $target ; then
17806 OTOOL_FOR_TARGET="$2"
17807 else
17808 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17809 fi
17810else
17811 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17812fi
17813
17814else
17815 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17816fi
17817
17818
17819
17820
17821if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17822 if test -n "$with_build_time_tools"; then
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17824$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17825 if test -x $with_build_time_tools/ranlib; then
17826 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17827 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17829$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17830 else
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832$as_echo "no" >&6; }
17833 fi
17834 elif test $build != $host && test $have_gcc_for_target = yes; then
17835 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17836 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17837 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17838 fi
17839fi
17840if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17841 # Extract the first word of "ranlib", so it can be a program name with args.
17842set dummy ranlib; ac_word=$2
17843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17844$as_echo_n "checking for $ac_word... " >&6; }
17845if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17846 $as_echo_n "(cached) " >&6
17847else
17848 case $RANLIB_FOR_TARGET in
17849 [\\/]* | ?:[\\/]*)
17850 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17851 ;;
17852 *)
17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17854for as_dir in $gcc_cv_tool_dirs
17855do
17856 IFS=$as_save_IFS
17857 test -z "$as_dir" && as_dir=.
17858 for ac_exec_ext in '' $ac_executable_extensions; do
17859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17860 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17862 break 2
17863 fi
17864done
17865 done
17866IFS=$as_save_IFS
17867
17868 ;;
17869esac
17870fi
17871RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17872if test -n "$RANLIB_FOR_TARGET"; then
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17874$as_echo "$RANLIB_FOR_TARGET" >&6; }
17875else
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17877$as_echo "no" >&6; }
17878fi
17879
17880
17881fi
17882if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17883
17884
17885if test -n "$RANLIB_FOR_TARGET"; then
17886 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17887elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17888 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17889fi
17890
17891if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17892 for ncn_progname in ranlib; do
17893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17894set dummy ${ncn_progname}; ac_word=$2
17895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17896$as_echo_n "checking for $ac_word... " >&6; }
17897if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899else
17900 if test -n "$RANLIB_FOR_TARGET"; then
17901 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17902else
17903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17904for as_dir in $PATH
17905do
17906 IFS=$as_save_IFS
17907 test -z "$as_dir" && as_dir=.
17908 for ac_exec_ext in '' $ac_executable_extensions; do
17909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17910 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17912 break 2
17913 fi
17914done
17915 done
17916IFS=$as_save_IFS
17917
17918fi
17919fi
17920RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17921if test -n "$RANLIB_FOR_TARGET"; then
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17923$as_echo "$RANLIB_FOR_TARGET" >&6; }
17924else
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926$as_echo "no" >&6; }
17927fi
17928
17929
17930 done
17931fi
17932
17933if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17934 for ncn_progname in ranlib; do
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17936$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17937 if test -x $with_build_time_tools/${ncn_progname}; then
17938 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17940$as_echo "yes" >&6; }
17941 break
17942 else
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944$as_echo "no" >&6; }
17945 fi
17946 done
17947fi
17948
17949if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17950 for ncn_progname in ranlib; do
17951 if test -n "$ncn_target_tool_prefix"; then
17952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17953set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17955$as_echo_n "checking for $ac_word... " >&6; }
17956if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958else
17959 if test -n "$RANLIB_FOR_TARGET"; then
17960 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17961else
17962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17963for as_dir in $PATH
17964do
17965 IFS=$as_save_IFS
17966 test -z "$as_dir" && as_dir=.
17967 for ac_exec_ext in '' $ac_executable_extensions; do
17968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17969 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17971 break 2
17972 fi
17973done
17974 done
17975IFS=$as_save_IFS
17976
17977fi
17978fi
17979RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17980if test -n "$RANLIB_FOR_TARGET"; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17982$as_echo "$RANLIB_FOR_TARGET" >&6; }
17983else
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17985$as_echo "no" >&6; }
17986fi
17987
17988
17989 fi
17990 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17992set dummy ${ncn_progname}; ac_word=$2
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17994$as_echo_n "checking for $ac_word... " >&6; }
17995if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17996 $as_echo_n "(cached) " >&6
17997else
17998 if test -n "$RANLIB_FOR_TARGET"; then
17999 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
18000else
18001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002for as_dir in $PATH
18003do
18004 IFS=$as_save_IFS
18005 test -z "$as_dir" && as_dir=.
18006 for ac_exec_ext in '' $ac_executable_extensions; do
18007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18008 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
18009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010 break 2
18011 fi
18012done
18013 done
18014IFS=$as_save_IFS
18015
18016fi
18017fi
18018RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
18019if test -n "$RANLIB_FOR_TARGET"; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
18021$as_echo "$RANLIB_FOR_TARGET" >&6; }
18022else
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024$as_echo "no" >&6; }
18025fi
18026
18027
18028 fi
18029 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
18030 done
18031fi
18032
18033if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
18034 set dummy ranlib
18035 if test $build = $target ; then
18036 RANLIB_FOR_TARGET="$2"
18037 else
18038 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
18039 fi
18040else
18041 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
18042fi
18043
18044else
18045 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
18046fi
18047
18048
18049
18050
18051if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18052 if test -n "$with_build_time_tools"; then
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
18054$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
18055 if test -x $with_build_time_tools/readelf; then
18056 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
18057 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
18059$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
18060 else
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062$as_echo "no" >&6; }
18063 fi
18064 elif test $build != $host && test $have_gcc_for_target = yes; then
18065 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
18066 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
18067 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
18068 fi
18069fi
18070if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18071 # Extract the first word of "readelf", so it can be a program name with args.
18072set dummy readelf; ac_word=$2
18073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18074$as_echo_n "checking for $ac_word... " >&6; }
18075if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
18076 $as_echo_n "(cached) " >&6
18077else
18078 case $READELF_FOR_TARGET in
18079 [\\/]* | ?:[\\/]*)
18080 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
18081 ;;
18082 *)
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084for as_dir in $gcc_cv_tool_dirs
18085do
18086 IFS=$as_save_IFS
18087 test -z "$as_dir" && as_dir=.
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18090 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18092 break 2
18093 fi
18094done
18095 done
18096IFS=$as_save_IFS
18097
18098 ;;
18099esac
18100fi
18101READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18102if test -n "$READELF_FOR_TARGET"; then
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18104$as_echo "$READELF_FOR_TARGET" >&6; }
18105else
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107$as_echo "no" >&6; }
18108fi
18109
18110
18111fi
18112if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18113
18114
18115if test -n "$READELF_FOR_TARGET"; then
18116 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18117elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18118 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18119fi
18120
18121if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18122 for ncn_progname in readelf; do
18123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18124set dummy ${ncn_progname}; ac_word=$2
18125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18126$as_echo_n "checking for $ac_word... " >&6; }
18127if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18128 $as_echo_n "(cached) " >&6
18129else
18130 if test -n "$READELF_FOR_TARGET"; then
18131 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18132else
18133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18134for as_dir in $PATH
18135do
18136 IFS=$as_save_IFS
18137 test -z "$as_dir" && as_dir=.
18138 for ac_exec_ext in '' $ac_executable_extensions; do
18139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18140 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18142 break 2
18143 fi
18144done
18145 done
18146IFS=$as_save_IFS
18147
18148fi
18149fi
18150READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18151if test -n "$READELF_FOR_TARGET"; then
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18153$as_echo "$READELF_FOR_TARGET" >&6; }
18154else
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156$as_echo "no" >&6; }
18157fi
18158
18159
18160 done
18161fi
18162
18163if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18164 for ncn_progname in readelf; do
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18166$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18167 if test -x $with_build_time_tools/${ncn_progname}; then
18168 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18170$as_echo "yes" >&6; }
18171 break
18172 else
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174$as_echo "no" >&6; }
18175 fi
18176 done
18177fi
18178
18179if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18180 for ncn_progname in readelf; do
18181 if test -n "$ncn_target_tool_prefix"; then
18182 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18183set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185$as_echo_n "checking for $ac_word... " >&6; }
18186if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188else
18189 if test -n "$READELF_FOR_TARGET"; then
18190 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18191else
18192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193for as_dir in $PATH
18194do
18195 IFS=$as_save_IFS
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201 break 2
18202 fi
18203done
18204 done
18205IFS=$as_save_IFS
18206
18207fi
18208fi
18209READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18210if test -n "$READELF_FOR_TARGET"; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18212$as_echo "$READELF_FOR_TARGET" >&6; }
18213else
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18215$as_echo "no" >&6; }
18216fi
18217
18218
18219 fi
18220 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18222set dummy ${ncn_progname}; ac_word=$2
18223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18224$as_echo_n "checking for $ac_word... " >&6; }
18225if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227else
18228 if test -n "$READELF_FOR_TARGET"; then
18229 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18230else
18231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18232for as_dir in $PATH
18233do
18234 IFS=$as_save_IFS
18235 test -z "$as_dir" && as_dir=.
18236 for ac_exec_ext in '' $ac_executable_extensions; do
18237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18238 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18240 break 2
18241 fi
18242done
18243 done
18244IFS=$as_save_IFS
18245
18246fi
18247fi
18248READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18249if test -n "$READELF_FOR_TARGET"; then
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18251$as_echo "$READELF_FOR_TARGET" >&6; }
18252else
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254$as_echo "no" >&6; }
18255fi
18256
18257
18258 fi
18259 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18260 done
18261fi
18262
18263if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18264 set dummy readelf
18265 if test $build = $target ; then
18266 READELF_FOR_TARGET="$2"
18267 else
18268 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18269 fi
18270else
18271 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18272fi
18273
18274else
18275 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18276fi
18277
18278
18279
18280
18281if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18282 if test -n "$with_build_time_tools"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18284$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18285 if test -x $with_build_time_tools/strip; then
18286 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18287 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18289$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18290 else
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292$as_echo "no" >&6; }
18293 fi
18294 elif test $build != $host && test $have_gcc_for_target = yes; then
18295 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18296 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18297 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18298 fi
18299fi
18300if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18301 # Extract the first word of "strip", so it can be a program name with args.
18302set dummy strip; ac_word=$2
18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18304$as_echo_n "checking for $ac_word... " >&6; }
18305if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18306 $as_echo_n "(cached) " >&6
18307else
18308 case $STRIP_FOR_TARGET in
18309 [\\/]* | ?:[\\/]*)
18310 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18311 ;;
18312 *)
18313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18314for as_dir in $gcc_cv_tool_dirs
18315do
18316 IFS=$as_save_IFS
18317 test -z "$as_dir" && as_dir=.
18318 for ac_exec_ext in '' $ac_executable_extensions; do
18319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18320 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18322 break 2
18323 fi
18324done
18325 done
18326IFS=$as_save_IFS
18327
18328 ;;
18329esac
18330fi
18331STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18332if test -n "$STRIP_FOR_TARGET"; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18334$as_echo "$STRIP_FOR_TARGET" >&6; }
18335else
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337$as_echo "no" >&6; }
18338fi
18339
18340
18341fi
18342if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18343
18344
18345if test -n "$STRIP_FOR_TARGET"; then
18346 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18347elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18348 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18349fi
18350
18351if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18352 for ncn_progname in strip; do
18353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18354set dummy ${ncn_progname}; ac_word=$2
18355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18356$as_echo_n "checking for $ac_word... " >&6; }
18357if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18358 $as_echo_n "(cached) " >&6
18359else
18360 if test -n "$STRIP_FOR_TARGET"; then
18361 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18362else
18363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18364for as_dir in $PATH
18365do
18366 IFS=$as_save_IFS
18367 test -z "$as_dir" && as_dir=.
18368 for ac_exec_ext in '' $ac_executable_extensions; do
18369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18370 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18372 break 2
18373 fi
18374done
18375 done
18376IFS=$as_save_IFS
18377
18378fi
18379fi
18380STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18381if test -n "$STRIP_FOR_TARGET"; then
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18383$as_echo "$STRIP_FOR_TARGET" >&6; }
18384else
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386$as_echo "no" >&6; }
18387fi
18388
18389
18390 done
18391fi
18392
18393if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18394 for ncn_progname in strip; do
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18396$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18397 if test -x $with_build_time_tools/${ncn_progname}; then
18398 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18400$as_echo "yes" >&6; }
18401 break
18402 else
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404$as_echo "no" >&6; }
18405 fi
18406 done
18407fi
18408
18409if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18410 for ncn_progname in strip; do
18411 if test -n "$ncn_target_tool_prefix"; then
18412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18413set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18415$as_echo_n "checking for $ac_word... " >&6; }
18416if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18417 $as_echo_n "(cached) " >&6
18418else
18419 if test -n "$STRIP_FOR_TARGET"; then
18420 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18421else
18422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18423for as_dir in $PATH
18424do
18425 IFS=$as_save_IFS
18426 test -z "$as_dir" && as_dir=.
18427 for ac_exec_ext in '' $ac_executable_extensions; do
18428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18429 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18431 break 2
18432 fi
18433done
18434 done
18435IFS=$as_save_IFS
18436
18437fi
18438fi
18439STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18440if test -n "$STRIP_FOR_TARGET"; then
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18442$as_echo "$STRIP_FOR_TARGET" >&6; }
18443else
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445$as_echo "no" >&6; }
18446fi
18447
18448
18449 fi
18450 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18452set dummy ${ncn_progname}; ac_word=$2
18453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18454$as_echo_n "checking for $ac_word... " >&6; }
18455if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18456 $as_echo_n "(cached) " >&6
18457else
18458 if test -n "$STRIP_FOR_TARGET"; then
18459 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18460else
18461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18462for as_dir in $PATH
18463do
18464 IFS=$as_save_IFS
18465 test -z "$as_dir" && as_dir=.
18466 for ac_exec_ext in '' $ac_executable_extensions; do
18467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18468 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18470 break 2
18471 fi
18472done
18473 done
18474IFS=$as_save_IFS
18475
18476fi
18477fi
18478STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18479if test -n "$STRIP_FOR_TARGET"; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18481$as_echo "$STRIP_FOR_TARGET" >&6; }
18482else
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484$as_echo "no" >&6; }
18485fi
18486
18487
18488 fi
18489 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18490 done
18491fi
18492
18493if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18494 set dummy strip
18495 if test $build = $target ; then
18496 STRIP_FOR_TARGET="$2"
18497 else
18498 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18499 fi
18500else
18501 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18502fi
18503
18504else
18505 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18506fi
18507
18508
18509
18510
18511if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18512 if test -n "$with_build_time_tools"; then
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18514$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18515 if test -x $with_build_time_tools/windres; then
18516 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18517 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18519$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18520 else
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522$as_echo "no" >&6; }
18523 fi
18524 elif test $build != $host && test $have_gcc_for_target = yes; then
18525 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18526 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18527 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18528 fi
18529fi
18530if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18531 # Extract the first word of "windres", so it can be a program name with args.
18532set dummy windres; ac_word=$2
18533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18534$as_echo_n "checking for $ac_word... " >&6; }
18535if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18536 $as_echo_n "(cached) " >&6
18537else
18538 case $WINDRES_FOR_TARGET in
18539 [\\/]* | ?:[\\/]*)
18540 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18541 ;;
18542 *)
18543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544for as_dir in $gcc_cv_tool_dirs
18545do
18546 IFS=$as_save_IFS
18547 test -z "$as_dir" && as_dir=.
18548 for ac_exec_ext in '' $ac_executable_extensions; do
18549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18550 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18552 break 2
18553 fi
18554done
18555 done
18556IFS=$as_save_IFS
18557
18558 ;;
18559esac
18560fi
18561WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18562if test -n "$WINDRES_FOR_TARGET"; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18564$as_echo "$WINDRES_FOR_TARGET" >&6; }
18565else
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567$as_echo "no" >&6; }
18568fi
18569
18570
18571fi
18572if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18573
18574
18575if test -n "$WINDRES_FOR_TARGET"; then
18576 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18577elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18578 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18579fi
18580
18581if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18582 for ncn_progname in windres; do
18583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18584set dummy ${ncn_progname}; ac_word=$2
18585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18586$as_echo_n "checking for $ac_word... " >&6; }
18587if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18588 $as_echo_n "(cached) " >&6
18589else
18590 if test -n "$WINDRES_FOR_TARGET"; then
18591 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18592else
18593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594for as_dir in $PATH
18595do
18596 IFS=$as_save_IFS
18597 test -z "$as_dir" && as_dir=.
18598 for ac_exec_ext in '' $ac_executable_extensions; do
18599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18600 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18602 break 2
18603 fi
18604done
18605 done
18606IFS=$as_save_IFS
18607
18608fi
18609fi
18610WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18611if test -n "$WINDRES_FOR_TARGET"; then
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18613$as_echo "$WINDRES_FOR_TARGET" >&6; }
18614else
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616$as_echo "no" >&6; }
18617fi
18618
18619
18620 done
18621fi
18622
18623if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18624 for ncn_progname in windres; do
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18626$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18627 if test -x $with_build_time_tools/${ncn_progname}; then
18628 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630$as_echo "yes" >&6; }
18631 break
18632 else
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634$as_echo "no" >&6; }
18635 fi
18636 done
18637fi
18638
18639if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18640 for ncn_progname in windres; do
18641 if test -n "$ncn_target_tool_prefix"; then
18642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18643set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18645$as_echo_n "checking for $ac_word... " >&6; }
18646if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18647 $as_echo_n "(cached) " >&6
18648else
18649 if test -n "$WINDRES_FOR_TARGET"; then
18650 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18651else
18652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653for as_dir in $PATH
18654do
18655 IFS=$as_save_IFS
18656 test -z "$as_dir" && as_dir=.
18657 for ac_exec_ext in '' $ac_executable_extensions; do
18658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18661 break 2
18662 fi
18663done
18664 done
18665IFS=$as_save_IFS
18666
18667fi
18668fi
18669WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18670if test -n "$WINDRES_FOR_TARGET"; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18672$as_echo "$WINDRES_FOR_TARGET" >&6; }
18673else
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675$as_echo "no" >&6; }
18676fi
18677
18678
18679 fi
18680 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18682set dummy ${ncn_progname}; ac_word=$2
18683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18684$as_echo_n "checking for $ac_word... " >&6; }
18685if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18686 $as_echo_n "(cached) " >&6
18687else
18688 if test -n "$WINDRES_FOR_TARGET"; then
18689 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18690else
18691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692for as_dir in $PATH
18693do
18694 IFS=$as_save_IFS
18695 test -z "$as_dir" && as_dir=.
18696 for ac_exec_ext in '' $ac_executable_extensions; do
18697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18698 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18700 break 2
18701 fi
18702done
18703 done
18704IFS=$as_save_IFS
18705
18706fi
18707fi
18708WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18709if test -n "$WINDRES_FOR_TARGET"; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18711$as_echo "$WINDRES_FOR_TARGET" >&6; }
18712else
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714$as_echo "no" >&6; }
18715fi
18716
18717
18718 fi
18719 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18720 done
18721fi
18722
18723if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18724 set dummy windres
18725 if test $build = $target ; then
18726 WINDRES_FOR_TARGET="$2"
18727 else
18728 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18729 fi
18730else
18731 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18732fi
18733
18734else
18735 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18736fi
18737
18738
18739
18740
18741if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18742 if test -n "$with_build_time_tools"; then
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18744$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18745 if test -x $with_build_time_tools/windmc; then
18746 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18747 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18749$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18750 else
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752$as_echo "no" >&6; }
18753 fi
18754 elif test $build != $host && test $have_gcc_for_target = yes; then
18755 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18756 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18757 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18758 fi
18759fi
18760if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18761 # Extract the first word of "windmc", so it can be a program name with args.
18762set dummy windmc; ac_word=$2
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18764$as_echo_n "checking for $ac_word... " >&6; }
18765if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18766 $as_echo_n "(cached) " >&6
18767else
18768 case $WINDMC_FOR_TARGET in
18769 [\\/]* | ?:[\\/]*)
18770 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18771 ;;
18772 *)
18773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774for as_dir in $gcc_cv_tool_dirs
18775do
18776 IFS=$as_save_IFS
18777 test -z "$as_dir" && as_dir=.
18778 for ac_exec_ext in '' $ac_executable_extensions; do
18779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18780 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18782 break 2
18783 fi
18784done
18785 done
18786IFS=$as_save_IFS
18787
18788 ;;
18789esac
18790fi
18791WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18792if test -n "$WINDMC_FOR_TARGET"; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18794$as_echo "$WINDMC_FOR_TARGET" >&6; }
18795else
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797$as_echo "no" >&6; }
18798fi
18799
18800
18801fi
18802if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18803
18804
18805if test -n "$WINDMC_FOR_TARGET"; then
18806 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18807elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18808 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18809fi
18810
18811if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18812 for ncn_progname in windmc; do
18813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18814set dummy ${ncn_progname}; ac_word=$2
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18816$as_echo_n "checking for $ac_word... " >&6; }
18817if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18818 $as_echo_n "(cached) " >&6
18819else
18820 if test -n "$WINDMC_FOR_TARGET"; then
18821 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18822else
18823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18824for as_dir in $PATH
18825do
18826 IFS=$as_save_IFS
18827 test -z "$as_dir" && as_dir=.
18828 for ac_exec_ext in '' $ac_executable_extensions; do
18829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18830 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18832 break 2
18833 fi
18834done
18835 done
18836IFS=$as_save_IFS
18837
18838fi
18839fi
18840WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18841if test -n "$WINDMC_FOR_TARGET"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18843$as_echo "$WINDMC_FOR_TARGET" >&6; }
18844else
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846$as_echo "no" >&6; }
18847fi
18848
18849
18850 done
18851fi
18852
18853if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18854 for ncn_progname in windmc; do
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18856$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18857 if test -x $with_build_time_tools/${ncn_progname}; then
18858 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18860$as_echo "yes" >&6; }
18861 break
18862 else
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864$as_echo "no" >&6; }
18865 fi
18866 done
18867fi
18868
18869if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18870 for ncn_progname in windmc; do
18871 if test -n "$ncn_target_tool_prefix"; then
18872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18875$as_echo_n "checking for $ac_word... " >&6; }
18876if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18877 $as_echo_n "(cached) " >&6
18878else
18879 if test -n "$WINDMC_FOR_TARGET"; then
18880 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18881else
18882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883for as_dir in $PATH
18884do
18885 IFS=$as_save_IFS
18886 test -z "$as_dir" && as_dir=.
18887 for ac_exec_ext in '' $ac_executable_extensions; do
18888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18891 break 2
18892 fi
18893done
18894 done
18895IFS=$as_save_IFS
18896
18897fi
18898fi
18899WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18900if test -n "$WINDMC_FOR_TARGET"; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18902$as_echo "$WINDMC_FOR_TARGET" >&6; }
18903else
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905$as_echo "no" >&6; }
18906fi
18907
18908
18909 fi
18910 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18912set dummy ${ncn_progname}; ac_word=$2
18913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914$as_echo_n "checking for $ac_word... " >&6; }
18915if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18916 $as_echo_n "(cached) " >&6
18917else
18918 if test -n "$WINDMC_FOR_TARGET"; then
18919 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18920else
18921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18922for as_dir in $PATH
18923do
18924 IFS=$as_save_IFS
18925 test -z "$as_dir" && as_dir=.
18926 for ac_exec_ext in '' $ac_executable_extensions; do
18927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18928 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18930 break 2
18931 fi
18932done
18933 done
18934IFS=$as_save_IFS
18935
18936fi
18937fi
18938WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18939if test -n "$WINDMC_FOR_TARGET"; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18941$as_echo "$WINDMC_FOR_TARGET" >&6; }
18942else
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18944$as_echo "no" >&6; }
18945fi
18946
18947
18948 fi
18949 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18950 done
18951fi
18952
18953if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18954 set dummy windmc
18955 if test $build = $target ; then
18956 WINDMC_FOR_TARGET="$2"
18957 else
18958 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18959 fi
18960else
18961 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18962fi
18963
18964else
18965 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18966fi
18967
18968
18969RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18970
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18972$as_echo_n "checking where to find the target ar... " >&6; }
18973if test "x${build}" != "x${host}" ; then
18974 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18975 # We already found the complete path
18976 ac_dir=`dirname $AR_FOR_TARGET`
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18978$as_echo "pre-installed in $ac_dir" >&6; }
18979 else
18980 # Canadian cross, just use what we found
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18982$as_echo "pre-installed" >&6; }
18983 fi
18984else
18985 ok=yes
18986 case " ${configdirs} " in
18987 *" binutils "*) ;;
18988 *) ok=no ;;
18989 esac
18990
18991 if test $ok = yes; then
18992 # An in-tree tool is available and we can use it
18993 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18995$as_echo "just compiled" >&6; }
18996 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18997 # We already found the complete path
18998 ac_dir=`dirname $AR_FOR_TARGET`
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19000$as_echo "pre-installed in $ac_dir" >&6; }
19001 elif test "x$target" = "x$host"; then
19002 # We can use an host tool
19003 AR_FOR_TARGET='$(AR)'
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19005$as_echo "host tool" >&6; }
19006 else
19007 # We need a cross tool
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19009$as_echo "pre-installed" >&6; }
19010 fi
19011fi
19012
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
19014$as_echo_n "checking where to find the target as... " >&6; }
19015if test "x${build}" != "x${host}" ; then
19016 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
19017 # We already found the complete path
19018 ac_dir=`dirname $AS_FOR_TARGET`
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19020$as_echo "pre-installed in $ac_dir" >&6; }
19021 else
19022 # Canadian cross, just use what we found
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19024$as_echo "pre-installed" >&6; }
19025 fi
19026else
19027 ok=yes
19028 case " ${configdirs} " in
19029 *" gas "*) ;;
19030 *) ok=no ;;
19031 esac
19032
19033 if test $ok = yes; then
19034 # An in-tree tool is available and we can use it
19035 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19037$as_echo "just compiled" >&6; }
19038 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
19039 # We already found the complete path
19040 ac_dir=`dirname $AS_FOR_TARGET`
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19042$as_echo "pre-installed in $ac_dir" >&6; }
19043 elif test "x$target" = "x$host"; then
19044 # We can use an host tool
19045 AS_FOR_TARGET='$(AS)'
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19047$as_echo "host tool" >&6; }
19048 else
19049 # We need a cross tool
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19051$as_echo "pre-installed" >&6; }
19052 fi
19053fi
19054
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
19056$as_echo_n "checking where to find the target cc... " >&6; }
19057if test "x${build}" != "x${host}" ; then
19058 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
19059 # We already found the complete path
19060 ac_dir=`dirname $CC_FOR_TARGET`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19062$as_echo "pre-installed in $ac_dir" >&6; }
19063 else
19064 # Canadian cross, just use what we found
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19066$as_echo "pre-installed" >&6; }
19067 fi
19068else
19069 ok=yes
19070 case " ${configdirs} " in
19071 *" gcc "*) ;;
19072 *) ok=no ;;
19073 esac
19074
19075 if test $ok = yes; then
19076 # An in-tree tool is available and we can use it
19077 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19079$as_echo "just compiled" >&6; }
19080 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
19081 # We already found the complete path
19082 ac_dir=`dirname $CC_FOR_TARGET`
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19084$as_echo "pre-installed in $ac_dir" >&6; }
19085 elif test "x$target" = "x$host"; then
19086 # We can use an host tool
19087 CC_FOR_TARGET='$(CC)'
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19089$as_echo "host tool" >&6; }
19090 else
19091 # We need a cross tool
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19093$as_echo "pre-installed" >&6; }
19094 fi
19095fi
19096
19097case $target in
19098 *-*-darwin*)
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19100$as_echo_n "checking where to find the target c++... " >&6; }
19101if test "x${build}" != "x${host}" ; then
19102 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19103 # We already found the complete path
19104 ac_dir=`dirname $CXX_FOR_TARGET`
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19106$as_echo "pre-installed in $ac_dir" >&6; }
19107 else
19108 # Canadian cross, just use what we found
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19110$as_echo "pre-installed" >&6; }
19111 fi
19112else
19113 ok=yes
19114 case " ${configdirs} " in
19115 *" gcc "*) ;;
19116 *) ok=no ;;
19117 esac
19118 case ,${enable_languages}, in
19119 *,c++,*) ;;
19120 *) ok=no ;;
19121 esac
19122 if test $ok = yes; then
19123 # An in-tree tool is available and we can use it
19124 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` -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19126$as_echo "just compiled" >&6; }
19127 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19128 # We already found the complete path
19129 ac_dir=`dirname $CXX_FOR_TARGET`
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19131$as_echo "pre-installed in $ac_dir" >&6; }
19132 elif test "x$target" = "x$host"; then
19133 # We can use an host tool
19134 CXX_FOR_TARGET='$(CXX)'
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19136$as_echo "host tool" >&6; }
19137 else
19138 # We need a cross tool
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19140$as_echo "pre-installed" >&6; }
19141 fi
19142fi
19143
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19145$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19146if test "x${build}" != "x${host}" ; then
19147 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19148 # We already found the complete path
19149 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19151$as_echo "pre-installed in $ac_dir" >&6; }
19152 else
19153 # Canadian cross, just use what we found
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19155$as_echo "pre-installed" >&6; }
19156 fi
19157else
19158 ok=yes
19159 case " ${configdirs} " in
19160 *" gcc "*) ;;
19161 *) ok=no ;;
19162 esac
19163 case ,${enable_languages}, in
19164 *,c++,*) ;;
19165 *) ok=no ;;
19166 esac
19167 if test $ok = yes; then
19168 # An in-tree tool is available and we can use it
19169 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19171$as_echo "just compiled" >&6; }
19172 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19173 # We already found the complete path
19174 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19176$as_echo "pre-installed in $ac_dir" >&6; }
19177 elif test "x$target" = "x$host"; then
19178 # We can use an host tool
19179 RAW_CXX_FOR_TARGET='$(CXX)'
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19181$as_echo "host tool" >&6; }
19182 else
19183 # We need a cross tool
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19185$as_echo "pre-installed" >&6; }
19186 fi
19187fi
19188
19189 ;;
19190 *)
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19192$as_echo_n "checking where to find the target c++... " >&6; }
19193if test "x${build}" != "x${host}" ; then
19194 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19195 # We already found the complete path
19196 ac_dir=`dirname $CXX_FOR_TARGET`
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19198$as_echo "pre-installed in $ac_dir" >&6; }
19199 else
19200 # Canadian cross, just use what we found
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19202$as_echo "pre-installed" >&6; }
19203 fi
19204else
19205 ok=yes
19206 case " ${configdirs} " in
19207 *" gcc "*) ;;
19208 *) ok=no ;;
19209 esac
19210 case ,${enable_languages}, in
19211 *,c++,*) ;;
19212 *) ok=no ;;
19213 esac
19214 if test $ok = yes; then
19215 # An in-tree tool is available and we can use it
19216 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'
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19218$as_echo "just compiled" >&6; }
19219 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19220 # We already found the complete path
19221 ac_dir=`dirname $CXX_FOR_TARGET`
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19223$as_echo "pre-installed in $ac_dir" >&6; }
19224 elif test "x$target" = "x$host"; then
19225 # We can use an host tool
19226 CXX_FOR_TARGET='$(CXX)'
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19228$as_echo "host tool" >&6; }
19229 else
19230 # We need a cross tool
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19232$as_echo "pre-installed" >&6; }
19233 fi
19234fi
19235
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19237$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19238if test "x${build}" != "x${host}" ; then
19239 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19240 # We already found the complete path
19241 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19243$as_echo "pre-installed in $ac_dir" >&6; }
19244 else
19245 # Canadian cross, just use what we found
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19247$as_echo "pre-installed" >&6; }
19248 fi
19249else
19250 ok=yes
19251 case " ${configdirs} " in
19252 *" gcc "*) ;;
19253 *) ok=no ;;
19254 esac
19255 case ,${enable_languages}, in
19256 *,c++,*) ;;
19257 *) ok=no ;;
19258 esac
19259 if test $ok = yes; then
19260 # An in-tree tool is available and we can use it
19261 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'
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19263$as_echo "just compiled" >&6; }
19264 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19265 # We already found the complete path
19266 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19268$as_echo "pre-installed in $ac_dir" >&6; }
19269 elif test "x$target" = "x$host"; then
19270 # We can use an host tool
19271 RAW_CXX_FOR_TARGET='$(CXX)'
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19273$as_echo "host tool" >&6; }
19274 else
19275 # We need a cross tool
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19277$as_echo "pre-installed" >&6; }
19278 fi
19279fi
19280
19281 ;;
19282esac
19283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19284$as_echo_n "checking where to find the target dlltool... " >&6; }
19285if test "x${build}" != "x${host}" ; then
19286 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19287 # We already found the complete path
19288 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19290$as_echo "pre-installed in $ac_dir" >&6; }
19291 else
19292 # Canadian cross, just use what we found
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19294$as_echo "pre-installed" >&6; }
19295 fi
19296else
19297 ok=yes
19298 case " ${configdirs} " in
19299 *" binutils "*) ;;
19300 *) ok=no ;;
19301 esac
19302
19303 if test $ok = yes; then
19304 # An in-tree tool is available and we can use it
19305 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19307$as_echo "just compiled" >&6; }
19308 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19309 # We already found the complete path
19310 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19312$as_echo "pre-installed in $ac_dir" >&6; }
19313 elif test "x$target" = "x$host"; then
19314 # We can use an host tool
19315 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19317$as_echo "host tool" >&6; }
19318 else
19319 # We need a cross tool
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19321$as_echo "pre-installed" >&6; }
19322 fi
19323fi
19324
19325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19326$as_echo_n "checking where to find the target dsymutil... " >&6; }
19327if test "x${build}" != "x${host}" ; then
19328 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19329 # We already found the complete path
19330 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19332$as_echo "pre-installed in $ac_dir" >&6; }
19333 else
19334 # Canadian cross, just use what we found
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19336$as_echo "pre-installed" >&6; }
19337 fi
19338else
19339 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19340 # We already found the complete path
19341 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19343$as_echo "pre-installed in $ac_dir" >&6; }
19344 elif test "x$target" = "x$host"; then
19345 # We can use an host tool
19346 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19348$as_echo "host tool" >&6; }
19349 else
19350 # We need a cross tool
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19352$as_echo "pre-installed" >&6; }
19353 fi
19354fi
19355
19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19357$as_echo_n "checking where to find the target gcc... " >&6; }
19358if test "x${build}" != "x${host}" ; then
19359 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19360 # We already found the complete path
19361 ac_dir=`dirname $GCC_FOR_TARGET`
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19363$as_echo "pre-installed in $ac_dir" >&6; }
19364 else
19365 # Canadian cross, just use what we found
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19367$as_echo "pre-installed" >&6; }
19368 fi
19369else
19370 ok=yes
19371 case " ${configdirs} " in
19372 *" gcc "*) ;;
19373 *) ok=no ;;
19374 esac
19375
19376 if test $ok = yes; then
19377 # An in-tree tool is available and we can use it
19378 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19380$as_echo "just compiled" >&6; }
19381 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19382 # We already found the complete path
19383 ac_dir=`dirname $GCC_FOR_TARGET`
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19385$as_echo "pre-installed in $ac_dir" >&6; }
19386 elif test "x$target" = "x$host"; then
19387 # We can use an host tool
19388 GCC_FOR_TARGET='$()'
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19390$as_echo "host tool" >&6; }
19391 else
19392 # We need a cross tool
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19394$as_echo "pre-installed" >&6; }
19395 fi
19396fi
19397
19398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19399$as_echo_n "checking where to find the target gfortran... " >&6; }
19400if test "x${build}" != "x${host}" ; then
19401 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19402 # We already found the complete path
19403 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19405$as_echo "pre-installed in $ac_dir" >&6; }
19406 else
19407 # Canadian cross, just use what we found
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19409$as_echo "pre-installed" >&6; }
19410 fi
19411else
19412 ok=yes
19413 case " ${configdirs} " in
19414 *" gcc "*) ;;
19415 *) ok=no ;;
19416 esac
19417 case ,${enable_languages}, in
19418 *,fortran,*) ;;
19419 *) ok=no ;;
19420 esac
19421 if test $ok = yes; then
19422 # An in-tree tool is available and we can use it
19423 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19425$as_echo "just compiled" >&6; }
19426 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19427 # We already found the complete path
19428 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19430$as_echo "pre-installed in $ac_dir" >&6; }
19431 elif test "x$target" = "x$host"; then
19432 # We can use an host tool
19433 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19435$as_echo "host tool" >&6; }
19436 else
19437 # We need a cross tool
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19439$as_echo "pre-installed" >&6; }
19440 fi
19441fi
19442
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19444$as_echo_n "checking where to find the target gccgo... " >&6; }
19445if test "x${build}" != "x${host}" ; then
19446 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19447 # We already found the complete path
19448 ac_dir=`dirname $GOC_FOR_TARGET`
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19450$as_echo "pre-installed in $ac_dir" >&6; }
19451 else
19452 # Canadian cross, just use what we found
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19454$as_echo "pre-installed" >&6; }
19455 fi
19456else
19457 ok=yes
19458 case " ${configdirs} " in
19459 *" gcc "*) ;;
19460 *) ok=no ;;
19461 esac
19462 case ,${enable_languages}, in
19463 *,go,*) ;;
19464 *) ok=no ;;
19465 esac
19466 if test $ok = yes; then
19467 # An in-tree tool is available and we can use it
19468 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19470$as_echo "just compiled" >&6; }
19471 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19472 # We already found the complete path
19473 ac_dir=`dirname $GOC_FOR_TARGET`
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19475$as_echo "pre-installed in $ac_dir" >&6; }
19476 elif test "x$target" = "x$host"; then
19477 # We can use an host tool
19478 GOC_FOR_TARGET='$(GOC)'
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19480$as_echo "host tool" >&6; }
19481 else
19482 # We need a cross tool
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19484$as_echo "pre-installed" >&6; }
19485 fi
19486fi
19487
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19489$as_echo_n "checking where to find the target gdc... " >&6; }
19490if test "x${build}" != "x${host}" ; then
19491 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19492 # We already found the complete path
19493 ac_dir=`dirname $GDC_FOR_TARGET`
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19495$as_echo "pre-installed in $ac_dir" >&6; }
19496 else
19497 # Canadian cross, just use what we found
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19499$as_echo "pre-installed" >&6; }
19500 fi
19501else
19502 ok=yes
19503 case " ${configdirs} " in
19504 *" gcc "*) ;;
19505 *) ok=no ;;
19506 esac
19507 case ,${enable_languages}, in
19508 *,d,*) ;;
19509 *) ok=no ;;
19510 esac
19511 if test $ok = yes; then
19512 # An in-tree tool is available and we can use it
19513 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19515$as_echo "just compiled" >&6; }
19516 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19517 # We already found the complete path
19518 ac_dir=`dirname $GDC_FOR_TARGET`
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19520$as_echo "pre-installed in $ac_dir" >&6; }
19521 elif test "x$target" = "x$host"; then
19522 # We can use an host tool
19523 GDC_FOR_TARGET='$(GDC)'
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19525$as_echo "host tool" >&6; }
19526 else
19527 # We need a cross tool
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19529$as_echo "pre-installed" >&6; }
19530 fi
19531fi
19532
19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19534$as_echo_n "checking where to find the target gm2... " >&6; }
19535if test "x${build}" != "x${host}" ; then
19536 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19537 # We already found the complete path
19538 ac_dir=`dirname $GM2_FOR_TARGET`
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19540$as_echo "pre-installed in $ac_dir" >&6; }
19541 else
19542 # Canadian cross, just use what we found
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19544$as_echo "pre-installed" >&6; }
19545 fi
19546else
19547 ok=yes
19548 case " ${configdirs} " in
19549 *" gcc "*) ;;
19550 *) ok=no ;;
19551 esac
19552 case ,${enable_languages}, in
19553 *,m2,*) ;;
19554 *) ok=no ;;
19555 esac
19556 if test $ok = yes; then
19557 # An in-tree tool is available and we can use it
19558 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19560$as_echo "just compiled" >&6; }
19561 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19562 # We already found the complete path
19563 ac_dir=`dirname $GM2_FOR_TARGET`
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19565$as_echo "pre-installed in $ac_dir" >&6; }
19566 elif test "x$target" = "x$host"; then
19567 # We can use an host tool
19568 GM2_FOR_TARGET='$(GM2)'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19570$as_echo "host tool" >&6; }
19571 else
19572 # We need a cross tool
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19574$as_echo "pre-installed" >&6; }
19575 fi
19576fi
19577
19578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19579$as_echo_n "checking where to find the target ld... " >&6; }
19580if test "x${build}" != "x${host}" ; then
19581 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19582 # We already found the complete path
19583 ac_dir=`dirname $LD_FOR_TARGET`
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19585$as_echo "pre-installed in $ac_dir" >&6; }
19586 else
19587 # Canadian cross, just use what we found
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19589$as_echo "pre-installed" >&6; }
19590 fi
19591else
19592 ok=yes
19593 case " ${configdirs} " in
19594 *" ld "*) ;;
19595 *) ok=no ;;
19596 esac
19597
19598 if test $ok = yes; then
19599 # An in-tree tool is available and we can use it
19600 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19602$as_echo "just compiled" >&6; }
19603 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19604 # We already found the complete path
19605 ac_dir=`dirname $LD_FOR_TARGET`
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19607$as_echo "pre-installed in $ac_dir" >&6; }
19608 elif test "x$target" = "x$host"; then
19609 # We can use an host tool
19610 LD_FOR_TARGET='$(LD)'
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19612$as_echo "host tool" >&6; }
19613 else
19614 # We need a cross tool
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19616$as_echo "pre-installed" >&6; }
19617 fi
19618fi
19619
19620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19621$as_echo_n "checking where to find the target lipo... " >&6; }
19622if test "x${build}" != "x${host}" ; then
19623 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19624 # We already found the complete path
19625 ac_dir=`dirname $LIPO_FOR_TARGET`
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19627$as_echo "pre-installed in $ac_dir" >&6; }
19628 else
19629 # Canadian cross, just use what we found
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19631$as_echo "pre-installed" >&6; }
19632 fi
19633else
19634 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19635 # We already found the complete path
19636 ac_dir=`dirname $LIPO_FOR_TARGET`
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19638$as_echo "pre-installed in $ac_dir" >&6; }
19639 elif test "x$target" = "x$host"; then
19640 # We can use an host tool
19641 LIPO_FOR_TARGET='$(LIPO)'
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19643$as_echo "host tool" >&6; }
19644 else
19645 # We need a cross tool
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19647$as_echo "pre-installed" >&6; }
19648 fi
19649fi
19650
19651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19652$as_echo_n "checking where to find the target nm... " >&6; }
19653if test "x${build}" != "x${host}" ; then
19654 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19655 # We already found the complete path
19656 ac_dir=`dirname $NM_FOR_TARGET`
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19658$as_echo "pre-installed in $ac_dir" >&6; }
19659 else
19660 # Canadian cross, just use what we found
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19662$as_echo "pre-installed" >&6; }
19663 fi
19664else
19665 ok=yes
19666 case " ${configdirs} " in
19667 *" binutils "*) ;;
19668 *) ok=no ;;
19669 esac
19670
19671 if test $ok = yes; then
19672 # An in-tree tool is available and we can use it
19673 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19675$as_echo "just compiled" >&6; }
19676 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19677 # We already found the complete path
19678 ac_dir=`dirname $NM_FOR_TARGET`
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19680$as_echo "pre-installed in $ac_dir" >&6; }
19681 elif test "x$target" = "x$host"; then
19682 # We can use an host tool
19683 NM_FOR_TARGET='$(NM)'
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19685$as_echo "host tool" >&6; }
19686 else
19687 # We need a cross tool
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19689$as_echo "pre-installed" >&6; }
19690 fi
19691fi
19692
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19694$as_echo_n "checking where to find the target objcopy... " >&6; }
19695if test "x${build}" != "x${host}" ; then
19696 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19697 # We already found the complete path
19698 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19700$as_echo "pre-installed in $ac_dir" >&6; }
19701 else
19702 # Canadian cross, just use what we found
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19704$as_echo "pre-installed" >&6; }
19705 fi
19706else
19707 ok=yes
19708 case " ${configdirs} " in
19709 *" binutils "*) ;;
19710 *) ok=no ;;
19711 esac
19712
19713 if test $ok = yes; then
19714 # An in-tree tool is available and we can use it
19715 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19717$as_echo "just compiled" >&6; }
19718 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19719 # We already found the complete path
19720 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19722$as_echo "pre-installed in $ac_dir" >&6; }
19723 elif test "x$target" = "x$host"; then
19724 # We can use an host tool
19725 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19727$as_echo "host tool" >&6; }
19728 else
19729 # We need a cross tool
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19731$as_echo "pre-installed" >&6; }
19732 fi
19733fi
19734
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19736$as_echo_n "checking where to find the target objdump... " >&6; }
19737if test "x${build}" != "x${host}" ; then
19738 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19739 # We already found the complete path
19740 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19742$as_echo "pre-installed in $ac_dir" >&6; }
19743 else
19744 # Canadian cross, just use what we found
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19746$as_echo "pre-installed" >&6; }
19747 fi
19748else
19749 ok=yes
19750 case " ${configdirs} " in
19751 *" binutils "*) ;;
19752 *) ok=no ;;
19753 esac
19754
19755 if test $ok = yes; then
19756 # An in-tree tool is available and we can use it
19757 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19759$as_echo "just compiled" >&6; }
19760 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19761 # We already found the complete path
19762 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19764$as_echo "pre-installed in $ac_dir" >&6; }
19765 elif test "x$target" = "x$host"; then
19766 # We can use an host tool
19767 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19769$as_echo "host tool" >&6; }
19770 else
19771 # We need a cross tool
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19773$as_echo "pre-installed" >&6; }
19774 fi
19775fi
19776
19777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19778$as_echo_n "checking where to find the target otool... " >&6; }
19779if test "x${build}" != "x${host}" ; then
19780 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19781 # We already found the complete path
19782 ac_dir=`dirname $OTOOL_FOR_TARGET`
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19784$as_echo "pre-installed in $ac_dir" >&6; }
19785 else
19786 # Canadian cross, just use what we found
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19788$as_echo "pre-installed" >&6; }
19789 fi
19790else
19791 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19792 # We already found the complete path
19793 ac_dir=`dirname $OTOOL_FOR_TARGET`
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19795$as_echo "pre-installed in $ac_dir" >&6; }
19796 elif test "x$target" = "x$host"; then
19797 # We can use an host tool
19798 OTOOL_FOR_TARGET='$(OTOOL)'
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19800$as_echo "host tool" >&6; }
19801 else
19802 # We need a cross tool
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19804$as_echo "pre-installed" >&6; }
19805 fi
19806fi
19807
19808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19809$as_echo_n "checking where to find the target ranlib... " >&6; }
19810if test "x${build}" != "x${host}" ; then
19811 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19812 # We already found the complete path
19813 ac_dir=`dirname $RANLIB_FOR_TARGET`
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19815$as_echo "pre-installed in $ac_dir" >&6; }
19816 else
19817 # Canadian cross, just use what we found
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19819$as_echo "pre-installed" >&6; }
19820 fi
19821else
19822 ok=yes
19823 case " ${configdirs} " in
19824 *" binutils "*) ;;
19825 *) ok=no ;;
19826 esac
19827
19828 if test $ok = yes; then
19829 # An in-tree tool is available and we can use it
19830 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19832$as_echo "just compiled" >&6; }
19833 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19834 # We already found the complete path
19835 ac_dir=`dirname $RANLIB_FOR_TARGET`
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19837$as_echo "pre-installed in $ac_dir" >&6; }
19838 elif test "x$target" = "x$host"; then
19839 # We can use an host tool
19840 RANLIB_FOR_TARGET='$(RANLIB)'
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19842$as_echo "host tool" >&6; }
19843 else
19844 # We need a cross tool
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19846$as_echo "pre-installed" >&6; }
19847 fi
19848fi
19849
19850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19851$as_echo_n "checking where to find the target readelf... " >&6; }
19852if test "x${build}" != "x${host}" ; then
19853 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19854 # We already found the complete path
19855 ac_dir=`dirname $READELF_FOR_TARGET`
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19857$as_echo "pre-installed in $ac_dir" >&6; }
19858 else
19859 # Canadian cross, just use what we found
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19861$as_echo "pre-installed" >&6; }
19862 fi
19863else
19864 ok=yes
19865 case " ${configdirs} " in
19866 *" binutils "*) ;;
19867 *) ok=no ;;
19868 esac
19869
19870 if test $ok = yes; then
19871 # An in-tree tool is available and we can use it
19872 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19874$as_echo "just compiled" >&6; }
19875 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19876 # We already found the complete path
19877 ac_dir=`dirname $READELF_FOR_TARGET`
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19879$as_echo "pre-installed in $ac_dir" >&6; }
19880 elif test "x$target" = "x$host"; then
19881 # We can use an host tool
19882 READELF_FOR_TARGET='$(READELF)'
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19884$as_echo "host tool" >&6; }
19885 else
19886 # We need a cross tool
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19888$as_echo "pre-installed" >&6; }
19889 fi
19890fi
19891
19892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19893$as_echo_n "checking where to find the target strip... " >&6; }
19894if test "x${build}" != "x${host}" ; then
19895 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19896 # We already found the complete path
19897 ac_dir=`dirname $STRIP_FOR_TARGET`
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19899$as_echo "pre-installed in $ac_dir" >&6; }
19900 else
19901 # Canadian cross, just use what we found
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19903$as_echo "pre-installed" >&6; }
19904 fi
19905else
19906 ok=yes
19907 case " ${configdirs} " in
19908 *" binutils "*) ;;
19909 *) ok=no ;;
19910 esac
19911
19912 if test $ok = yes; then
19913 # An in-tree tool is available and we can use it
19914 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19916$as_echo "just compiled" >&6; }
19917 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19918 # We already found the complete path
19919 ac_dir=`dirname $STRIP_FOR_TARGET`
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19921$as_echo "pre-installed in $ac_dir" >&6; }
19922 elif test "x$target" = "x$host"; then
19923 # We can use an host tool
19924 STRIP_FOR_TARGET='$(STRIP)'
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19926$as_echo "host tool" >&6; }
19927 else
19928 # We need a cross tool
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19930$as_echo "pre-installed" >&6; }
19931 fi
19932fi
19933
19934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19935$as_echo_n "checking where to find the target windres... " >&6; }
19936if test "x${build}" != "x${host}" ; then
19937 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19938 # We already found the complete path
19939 ac_dir=`dirname $WINDRES_FOR_TARGET`
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19941$as_echo "pre-installed in $ac_dir" >&6; }
19942 else
19943 # Canadian cross, just use what we found
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19945$as_echo "pre-installed" >&6; }
19946 fi
19947else
19948 ok=yes
19949 case " ${configdirs} " in
19950 *" binutils "*) ;;
19951 *) ok=no ;;
19952 esac
19953
19954 if test $ok = yes; then
19955 # An in-tree tool is available and we can use it
19956 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19958$as_echo "just compiled" >&6; }
19959 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19960 # We already found the complete path
19961 ac_dir=`dirname $WINDRES_FOR_TARGET`
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19963$as_echo "pre-installed in $ac_dir" >&6; }
19964 elif test "x$target" = "x$host"; then
19965 # We can use an host tool
19966 WINDRES_FOR_TARGET='$(WINDRES)'
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19968$as_echo "host tool" >&6; }
19969 else
19970 # We need a cross tool
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19972$as_echo "pre-installed" >&6; }
19973 fi
19974fi
19975
19976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19977$as_echo_n "checking where to find the target windmc... " >&6; }
19978if test "x${build}" != "x${host}" ; then
19979 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19980 # We already found the complete path
19981 ac_dir=`dirname $WINDMC_FOR_TARGET`
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19983$as_echo "pre-installed in $ac_dir" >&6; }
19984 else
19985 # Canadian cross, just use what we found
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19987$as_echo "pre-installed" >&6; }
19988 fi
19989else
19990 ok=yes
19991 case " ${configdirs} " in
19992 *" binutils "*) ;;
19993 *) ok=no ;;
19994 esac
19995
19996 if test $ok = yes; then
19997 # An in-tree tool is available and we can use it
19998 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
20000$as_echo "just compiled" >&6; }
20001 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
20002 # We already found the complete path
20003 ac_dir=`dirname $WINDMC_FOR_TARGET`
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
20005$as_echo "pre-installed in $ac_dir" >&6; }
20006 elif test "x$target" = "x$host"; then
20007 # We can use an host tool
20008 WINDMC_FOR_TARGET='$(WINDMC)'
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
20010$as_echo "host tool" >&6; }
20011 else
20012 # We need a cross tool
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
20014$as_echo "pre-installed" >&6; }
20015 fi
20016fi
20017
20018
20019
20020
20021
20022# Certain tools may need extra flags.
20023AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
20024RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
20025NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
20026
20027# When building target libraries, except in a Canadian cross, we use
20028# the same toolchain as the compiler we just built.
20029COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
20030COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
20031COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
20032if test $host = $build; then
20033 case " $configdirs " in
20034 *" gcc "*)
20035 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
20036 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
20037 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
20038 ;;
20039 esac
20040fi
20041
20042
20043
20044
20045
20046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20047$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20048# Check whether --enable-maintainer-mode was given.
20049if test "${enable_maintainer_mode+set}" = set; then :
20050 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20051else
20052 USE_MAINTAINER_MODE=no
20053fi
20054
20055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20056$as_echo "$USE_MAINTAINER_MODE" >&6; }
20057
20058
20059if test "$USE_MAINTAINER_MODE" = yes; then
20060 MAINTAINER_MODE_TRUE=
20061 MAINTAINER_MODE_FALSE='#'
20062else
20063 MAINTAINER_MODE_TRUE='#'
20064 MAINTAINER_MODE_FALSE=
20065fi
20066MAINT=$MAINTAINER_MODE_TRUE
20067
20068# ---------------------
20069# GCC bootstrap support
20070# ---------------------
20071
20072# Stage specific cflags for build.
20073stage1_cflags="-g"
20074case $build in
20075 vax-*-*)
20076 case ${GCC} in
20077 yes) stage1_cflags="-g -Wa,-J" ;;
20078 *) stage1_cflags="-g -J" ;;
20079 esac ;;
20080esac
20081
20082
20083
20084# Enable --enable-checking in stage1 of the compiler.
20085# Check whether --enable-stage1-checking was given.
20086if test "${enable_stage1_checking+set}" = set; then :
20087 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
20088else
20089 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
20090 # For --disable-checking or implicit --enable-checking=release, avoid
20091 # setting --enable-checking=gc in the default stage1 checking for LTO
20092 # bootstraps. See PR62077.
20093 case $BUILD_CONFIG in
20094 *lto*)
20095 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
20096 *)
20097 stage1_checking=--enable-checking=yes,types;;
20098 esac
20099 if test "x$enable_checking" = x && \
20100 test -d ${srcdir}/gcc && \
20101 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
20102 stage1_checking=--enable-checking=yes,types,extra
20103 fi
20104else
20105 stage1_checking=--enable-checking=$enable_checking,types
20106fi
20107fi
20108
20109
20110
20111# Enable -Werror in bootstrap stage2 and later.
20112# Check whether --enable-werror was given.
20113if test "${enable_werror+set}" = set; then :
20114 enableval=$enable_werror;
20115case ${enable_werror} in
20116 yes) stage2_werror_flag="--enable-werror-always" ;;
20117 *) stage2_werror_flag="" ;;
20118esac
20119
20120else
20121
20122if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
20123 case $BUILD_CONFIG in
20124 bootstrap-debug)
20125 stage2_werror_flag="--enable-werror-always" ;;
20126 "")
20127 stage2_werror_flag="--enable-werror-always" ;;
20128 esac
20129fi
20130
20131fi
20132
20133
20134
20135
20136# Specify what files to not compare during bootstrap.
20137
20138compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
20139compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
20140compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
20141compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
20142compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
20143case "$target" in
20144 hppa*64*-*-hpux*) ;;
20145 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
20146esac
20147
20148
20149ac_config_files="$ac_config_files Makefile"
20150
20151cat >confcache <<\_ACEOF
20152# This file is a shell script that caches the results of configure
20153# tests run on this system so they can be shared between configure
20154# scripts and configure runs, see configure's option --config-cache.
20155# It is not useful on other systems. If it contains results you don't
20156# want to keep, you may remove or edit it.
20157#
20158# config.status only pays attention to the cache file if you give it
20159# the --recheck option to rerun configure.
20160#
20161# `ac_cv_env_foo' variables (set or unset) will be overridden when
20162# loading this file, other *unset* `ac_cv_foo' will be assigned the
20163# following values.
20164
20165_ACEOF
20166
20167# The following way of writing the cache mishandles newlines in values,
20168# but we know of no workaround that is simple, portable, and efficient.
20169# So, we kill variables containing newlines.
20170# Ultrix sh set writes to stderr and can't be redirected directly,
20171# and sets the high bit in the cache file unless we assign to the vars.
20172(
20173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20174 eval ac_val=\$$ac_var
20175 case $ac_val in #(
20176 *${as_nl}*)
20177 case $ac_var in #(
20178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20179$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20180 esac
20181 case $ac_var in #(
20182 _ | IFS | as_nl) ;; #(
20183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20184 *) { eval $ac_var=; unset $ac_var;} ;;
20185 esac ;;
20186 esac
20187 done
20188
20189 (set) 2>&1 |
20190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20191 *${as_nl}ac_space=\ *)
20192 # `set' does not quote correctly, so add quotes: double-quote
20193 # substitution turns \\\\ into \\, and sed turns \\ into \.
20194 sed -n \
20195 "s/'/'\\\\''/g;
20196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20197 ;; #(
20198 *)
20199 # `set' quotes correctly as required by POSIX, so do not add quotes.
20200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20201 ;;
20202 esac |
20203 sort
20204) |
20205 sed '
20206 /^ac_cv_env_/b end
20207 t clear
20208 :clear
20209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20210 t end
20211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20212 :end' >>confcache
20213if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20214 if test -w "$cache_file"; then
20215 if test "x$cache_file" != "x/dev/null"; then
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20217$as_echo "$as_me: updating cache $cache_file" >&6;}
20218 if test ! -f "$cache_file" || test -h "$cache_file"; then
20219 cat confcache >"$cache_file"
20220 else
20221 case $cache_file in #(
20222 */* | ?:*)
20223 mv -f confcache "$cache_file"$$ &&
20224 mv -f "$cache_file"$$ "$cache_file" ;; #(
20225 *)
20226 mv -f confcache "$cache_file" ;;
20227 esac
20228 fi
20229 fi
20230 else
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20232$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20233 fi
20234fi
20235rm -f confcache
20236
20237test "x$prefix" = xNONE && prefix=$ac_default_prefix
20238# Let make expand exec_prefix.
20239test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20240
20241# Transform confdefs.h into DEFS.
20242# Protect against shell expansion while executing Makefile rules.
20243# Protect against Makefile macro expansion.
20244#
20245# If the first sed substitution is executed (which looks for macros that
20246# take arguments), then branch to the quote section. Otherwise,
20247# look for a macro that doesn't take arguments.
20248ac_script='
20249:mline
20250/\\$/{
20251 N
20252 s,\\\n,,
20253 b mline
20254}
20255t clear
20256:clear
20257s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20258t quote
20259s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20260t quote
20261b any
20262:quote
20263s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20264s/\[/\\&/g
20265s/\]/\\&/g
20266s/\$/$$/g
20267H
20268:any
20269${
20270 g
20271 s/^\n//
20272 s/\n/ /g
20273 p
20274}
20275'
20276DEFS=`sed -n "$ac_script" confdefs.h`
20277
20278
20279ac_libobjs=
20280ac_ltlibobjs=
20281U=
20282for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20283 # 1. Remove the extension, and $U if already installed.
20284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20287 # will be set to the directory where LIBOBJS objects are built.
20288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20290done
20291LIBOBJS=$ac_libobjs
20292
20293LTLIBOBJS=$ac_ltlibobjs
20294
20295
20296
20297: "${CONFIG_STATUS=./config.status}"
20298ac_write_fail=0
20299ac_clean_files_save=$ac_clean_files
20300ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20301{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20302$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20303as_write_fail=0
20304cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20305#! $SHELL
20306# Generated by $as_me.
20307# Run this file to recreate the current configuration.
20308# Compiler output produced by configure, useful for debugging
20309# configure, is in config.log if it exists.
20310
20311debug=false
20312ac_cs_recheck=false
20313ac_cs_silent=false
20314
20315SHELL=\${CONFIG_SHELL-$SHELL}
20316export SHELL
20317_ASEOF
20318cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20319## -------------------- ##
20320## M4sh Initialization. ##
20321## -------------------- ##
20322
20323# Be more Bourne compatible
20324DUALCASE=1; export DUALCASE # for MKS sh
20325if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20326 emulate sh
20327 NULLCMD=:
20328 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20329 # is contrary to our usage. Disable this feature.
20330 alias -g '${1+"$@"}'='"$@"'
20331 setopt NO_GLOB_SUBST
20332else
20333 case `(set -o) 2>/dev/null` in #(
20334 *posix*) :
20335 set -o posix ;; #(
20336 *) :
20337 ;;
20338esac
20339fi
20340
20341
20342as_nl='
20343'
20344export as_nl
20345# Printing a long string crashes Solaris 7 /usr/bin/printf.
20346as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20347as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20348as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20349# Prefer a ksh shell builtin over an external printf program on Solaris,
20350# but without wasting forks for bash or zsh.
20351if test -z "$BASH_VERSION$ZSH_VERSION" \
20352 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20353 as_echo='print -r --'
20354 as_echo_n='print -rn --'
20355elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20356 as_echo='printf %s\n'
20357 as_echo_n='printf %s'
20358else
20359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20360 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20361 as_echo_n='/usr/ucb/echo -n'
20362 else
20363 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20364 as_echo_n_body='eval
20365 arg=$1;
20366 case $arg in #(
20367 *"$as_nl"*)
20368 expr "X$arg" : "X\\(.*\\)$as_nl";
20369 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20370 esac;
20371 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20372 '
20373 export as_echo_n_body
20374 as_echo_n='sh -c $as_echo_n_body as_echo'
20375 fi
20376 export as_echo_body
20377 as_echo='sh -c $as_echo_body as_echo'
20378fi
20379
20380# The user is always right.
20381if test "${PATH_SEPARATOR+set}" != set; then
20382 PATH_SEPARATOR=:
20383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20384 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20385 PATH_SEPARATOR=';'
20386 }
20387fi
20388
20389
20390# IFS
20391# We need space, tab and new line, in precisely that order. Quoting is
20392# there to prevent editors from complaining about space-tab.
20393# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20394# splitting by setting IFS to empty value.)
20395IFS=" "" $as_nl"
20396
20397# Find who we are. Look in the path if we contain no directory separator.
20398as_myself=
20399case $0 in #((
20400 *[\\/]* ) as_myself=$0 ;;
20401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20402for as_dir in $PATH
20403do
20404 IFS=$as_save_IFS
20405 test -z "$as_dir" && as_dir=.
20406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20407 done
20408IFS=$as_save_IFS
20409
20410 ;;
20411esac
20412# We did not find ourselves, most probably we were run as `sh COMMAND'
20413# in which case we are not to be found in the path.
20414if test "x$as_myself" = x; then
20415 as_myself=$0
20416fi
20417if test ! -f "$as_myself"; then
20418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20419 exit 1
20420fi
20421
20422# Unset variables that we do not need and which cause bugs (e.g. in
20423# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20424# suppresses any "Segmentation fault" message there. '((' could
20425# trigger a bug in pdksh 5.2.14.
20426for as_var in BASH_ENV ENV MAIL MAILPATH
20427do eval test x\${$as_var+set} = xset \
20428 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20429done
20430PS1='$ '
20431PS2='> '
20432PS4='+ '
20433
20434# NLS nuisances.
20435LC_ALL=C
20436export LC_ALL
20437LANGUAGE=C
20438export LANGUAGE
20439
20440# CDPATH.
20441(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20442
20443
20444# as_fn_error STATUS ERROR [LINENO LOG_FD]
20445# ----------------------------------------
20446# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20447# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20448# script with STATUS, using 1 if that was 0.
20449as_fn_error ()
20450{
20451 as_status=$1; test $as_status -eq 0 && as_status=1
20452 if test "$4"; then
20453 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20455 fi
20456 $as_echo "$as_me: error: $2" >&2
20457 as_fn_exit $as_status
20458} # as_fn_error
20459
20460
20461# as_fn_set_status STATUS
20462# -----------------------
20463# Set $? to STATUS, without forking.
20464as_fn_set_status ()
20465{
20466 return $1
20467} # as_fn_set_status
20468
20469# as_fn_exit STATUS
20470# -----------------
20471# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20472as_fn_exit ()
20473{
20474 set +e
20475 as_fn_set_status $1
20476 exit $1
20477} # as_fn_exit
20478
20479# as_fn_unset VAR
20480# ---------------
20481# Portably unset VAR.
20482as_fn_unset ()
20483{
20484 { eval $1=; unset $1;}
20485}
20486as_unset=as_fn_unset
20487# as_fn_append VAR VALUE
20488# ----------------------
20489# Append the text in VALUE to the end of the definition contained in VAR. Take
20490# advantage of any shell optimizations that allow amortized linear growth over
20491# repeated appends, instead of the typical quadratic growth present in naive
20492# implementations.
20493if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20494 eval 'as_fn_append ()
20495 {
20496 eval $1+=\$2
20497 }'
20498else
20499 as_fn_append ()
20500 {
20501 eval $1=\$$1\$2
20502 }
20503fi # as_fn_append
20504
20505# as_fn_arith ARG...
20506# ------------------
20507# Perform arithmetic evaluation on the ARGs, and store the result in the
20508# global $as_val. Take advantage of shells that can avoid forks. The arguments
20509# must be portable across $(()) and expr.
20510if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20511 eval 'as_fn_arith ()
20512 {
20513 as_val=$(( $* ))
20514 }'
20515else
20516 as_fn_arith ()
20517 {
20518 as_val=`expr "$@" || test $? -eq 1`
20519 }
20520fi # as_fn_arith
20521
20522
20523if expr a : '\(a\)' >/dev/null 2>&1 &&
20524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20525 as_expr=expr
20526else
20527 as_expr=false
20528fi
20529
20530if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20531 as_basename=basename
20532else
20533 as_basename=false
20534fi
20535
20536if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20537 as_dirname=dirname
20538else
20539 as_dirname=false
20540fi
20541
20542as_me=`$as_basename -- "$0" ||
20543$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20544 X"$0" : 'X\(//\)$' \| \
20545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20546$as_echo X/"$0" |
20547 sed '/^.*\/\([^/][^/]*\)\/*$/{
20548 s//\1/
20549 q
20550 }
20551 /^X\/\(\/\/\)$/{
20552 s//\1/
20553 q
20554 }
20555 /^X\/\(\/\).*/{
20556 s//\1/
20557 q
20558 }
20559 s/.*/./; q'`
20560
20561# Avoid depending upon Character Ranges.
20562as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20563as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20564as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20565as_cr_digits='0123456789'
20566as_cr_alnum=$as_cr_Letters$as_cr_digits
20567
20568ECHO_C= ECHO_N= ECHO_T=
20569case `echo -n x` in #(((((
20570-n*)
20571 case `echo 'xy\c'` in
20572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20573 xy) ECHO_C='\c';;
20574 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20575 ECHO_T=' ';;
20576 esac;;
20577*)
20578 ECHO_N='-n';;
20579esac
20580
20581rm -f conf$$ conf$$.exe conf$$.file
20582if test -d conf$$.dir; then
20583 rm -f conf$$.dir/conf$$.file
20584else
20585 rm -f conf$$.dir
20586 mkdir conf$$.dir 2>/dev/null
20587fi
20588if (echo >conf$$.file) 2>/dev/null; then
20589 if ln -s conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s='ln -s'
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -pR'.
20595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20596 as_ln_s='cp -pR'
20597 elif ln conf$$.file conf$$ 2>/dev/null; then
20598 as_ln_s=ln
20599 else
20600 as_ln_s='cp -pR'
20601 fi
20602else
20603 as_ln_s='cp -pR'
20604fi
20605rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20606rmdir conf$$.dir 2>/dev/null
20607
20608
20609# as_fn_mkdir_p
20610# -------------
20611# Create "$as_dir" as a directory, including parents if necessary.
20612as_fn_mkdir_p ()
20613{
20614
20615 case $as_dir in #(
20616 -*) as_dir=./$as_dir;;
20617 esac
20618 test -d "$as_dir" || eval $as_mkdir_p || {
20619 as_dirs=
20620 while :; do
20621 case $as_dir in #(
20622 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20623 *) as_qdir=$as_dir;;
20624 esac
20625 as_dirs="'$as_qdir' $as_dirs"
20626 as_dir=`$as_dirname -- "$as_dir" ||
20627$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20628 X"$as_dir" : 'X\(//\)[^/]' \| \
20629 X"$as_dir" : 'X\(//\)$' \| \
20630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20631$as_echo X"$as_dir" |
20632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20633 s//\1/
20634 q
20635 }
20636 /^X\(\/\/\)[^/].*/{
20637 s//\1/
20638 q
20639 }
20640 /^X\(\/\/\)$/{
20641 s//\1/
20642 q
20643 }
20644 /^X\(\/\).*/{
20645 s//\1/
20646 q
20647 }
20648 s/.*/./; q'`
20649 test -d "$as_dir" && break
20650 done
20651 test -z "$as_dirs" || eval "mkdir $as_dirs"
20652 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20653
20654
20655} # as_fn_mkdir_p
20656if mkdir -p . 2>/dev/null; then
20657 as_mkdir_p='mkdir -p "$as_dir"'
20658else
20659 test -d ./-p && rmdir ./-p
20660 as_mkdir_p=false
20661fi
20662
20663
20664# as_fn_executable_p FILE
20665# -----------------------
20666# Test if FILE is an executable regular file.
20667as_fn_executable_p ()
20668{
20669 test -f "$1" && test -x "$1"
20670} # as_fn_executable_p
20671as_test_x='test -x'
20672as_executable_p=as_fn_executable_p
20673
20674# Sed expression to map a string onto a valid CPP name.
20675as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20676
20677# Sed expression to map a string onto a valid variable name.
20678as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20679
20680
20681exec 6>&1
20682## ----------------------------------- ##
20683## Main body of $CONFIG_STATUS script. ##
20684## ----------------------------------- ##
20685_ASEOF
20686test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20687
20688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20689# Save the log message, to keep $0 and so on meaningful, and to
20690# report actual input values of CONFIG_FILES etc. instead of their
20691# values after options handling.
20692ac_log="
20693This file was extended by $as_me, which was
20694generated by GNU Autoconf 2.69. Invocation command line was
20695
20696 CONFIG_FILES = $CONFIG_FILES
20697 CONFIG_HEADERS = $CONFIG_HEADERS
20698 CONFIG_LINKS = $CONFIG_LINKS
20699 CONFIG_COMMANDS = $CONFIG_COMMANDS
20700 $ $0 $@
20701
20702on `(hostname || uname -n) 2>/dev/null | sed 1q`
20703"
20704
20705_ACEOF
20706
20707case $ac_config_files in *"
20708"*) set x $ac_config_files; shift; ac_config_files=$*;;
20709esac
20710
20711
20712
20713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20714# Files that config.status was made for.
20715config_files="$ac_config_files"
20716
20717_ACEOF
20718
20719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720ac_cs_usage="\
20721\`$as_me' instantiates files and other configuration actions
20722from templates according to the current configuration. Unless the files
20723and actions are specified as TAGs, all are instantiated by default.
20724
20725Usage: $0 [OPTION]... [TAG]...
20726
20727 -h, --help print this help, then exit
20728 -V, --version print version number and configuration settings, then exit
20729 --config print configuration, then exit
20730 -q, --quiet, --silent
20731 do not print progress messages
20732 -d, --debug don't remove temporary files
20733 --recheck update $as_me by reconfiguring in the same conditions
20734 --file=FILE[:TEMPLATE]
20735 instantiate the configuration file FILE
20736
20737Configuration files:
20738$config_files
20739
20740Report bugs to the package provider."
20741
20742_ACEOF
20743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20744ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20745ac_cs_version="\\
20746config.status
20747configured by $0, generated by GNU Autoconf 2.69,
20748 with options \\"\$ac_cs_config\\"
20749
20750Copyright (C) 2012 Free Software Foundation, Inc.
20751This config.status script is free software; the Free Software Foundation
20752gives unlimited permission to copy, distribute and modify it."
20753
20754ac_pwd='$ac_pwd'
20755srcdir='$srcdir'
20756INSTALL='$INSTALL'
20757AWK='$AWK'
20758test -n "\$AWK" || AWK=awk
20759_ACEOF
20760
20761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20762# The default lists apply if the user does not specify any file.
20763ac_need_defaults=:
20764while test $# != 0
20765do
20766 case $1 in
20767 --*=?*)
20768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20770 ac_shift=:
20771 ;;
20772 --*=)
20773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20774 ac_optarg=
20775 ac_shift=:
20776 ;;
20777 *)
20778 ac_option=$1
20779 ac_optarg=$2
20780 ac_shift=shift
20781 ;;
20782 esac
20783
20784 case $ac_option in
20785 # Handling of the options.
20786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20787 ac_cs_recheck=: ;;
20788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20789 $as_echo "$ac_cs_version"; exit ;;
20790 --config | --confi | --conf | --con | --co | --c )
20791 $as_echo "$ac_cs_config"; exit ;;
20792 --debug | --debu | --deb | --de | --d | -d )
20793 debug=: ;;
20794 --file | --fil | --fi | --f )
20795 $ac_shift
20796 case $ac_optarg in
20797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20798 '') as_fn_error $? "missing file argument" ;;
20799 esac
20800 as_fn_append CONFIG_FILES " '$ac_optarg'"
20801 ac_need_defaults=false;;
20802 --he | --h | --help | --hel | -h )
20803 $as_echo "$ac_cs_usage"; exit ;;
20804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20806 ac_cs_silent=: ;;
20807
20808 # This is an error.
20809 -*) as_fn_error $? "unrecognized option: \`$1'
20810Try \`$0 --help' for more information." ;;
20811
20812 *) as_fn_append ac_config_targets " $1"
20813 ac_need_defaults=false ;;
20814
20815 esac
20816 shift
20817done
20818
20819ac_configure_extra_args=
20820
20821if $ac_cs_silent; then
20822 exec 6>/dev/null
20823 ac_configure_extra_args="$ac_configure_extra_args --silent"
20824fi
20825
20826_ACEOF
20827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20828if \$ac_cs_recheck; then
20829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20830 shift
20831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20832 CONFIG_SHELL='$SHELL'
20833 export CONFIG_SHELL
20834 exec "\$@"
20835fi
20836
20837_ACEOF
20838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20839exec 5>>config.log
20840{
20841 echo
20842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20843## Running $as_me. ##
20844_ASBOX
20845 $as_echo "$ac_log"
20846} >&5
20847
20848_ACEOF
20849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20850#
20851# INIT-COMMANDS
20852#
20853extrasub_build="$extrasub_build"
20854 extrasub_host="$extrasub_host"
20855 extrasub_target="$extrasub_target"
20856
20857_ACEOF
20858
20859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20860
20861# Handling of arguments.
20862for ac_config_target in $ac_config_targets
20863do
20864 case $ac_config_target in
20865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20866
20867 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20868 esac
20869done
20870
20871
20872# If the user did not use the arguments to specify the items to instantiate,
20873# then the envvar interface is used. Set only those that are not.
20874# We use the long form for the default assignment because of an extremely
20875# bizarre bug on SunOS 4.1.3.
20876if $ac_need_defaults; then
20877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20878fi
20879
20880# Have a temporary directory for convenience. Make it in the build tree
20881# simply because there is no reason against having it here, and in addition,
20882# creating and moving files from /tmp can sometimes cause problems.
20883# Hook for its removal unless debugging.
20884# Note that there is a small window in which the directory will not be cleaned:
20885# after its creation but before its name has been assigned to `$tmp'.
20886$debug ||
20887{
20888 tmp= ac_tmp=
20889 trap 'exit_status=$?
20890 : "${ac_tmp:=$tmp}"
20891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20892' 0
20893 trap 'as_fn_exit 1' 1 2 13 15
20894}
20895# Create a (secure) tmp directory for tmp files.
20896
20897{
20898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20899 test -d "$tmp"
20900} ||
20901{
20902 tmp=./conf$$-$RANDOM
20903 (umask 077 && mkdir "$tmp")
20904} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20905ac_tmp=$tmp
20906
20907# Set up the scripts for CONFIG_FILES section.
20908# No need to generate them if there are no CONFIG_FILES.
20909# This happens for instance with `./config.status config.h'.
20910if test -n "$CONFIG_FILES"; then
20911
20912if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20913 ac_cs_awk_getline=:
20914 ac_cs_awk_pipe_init=
20915 ac_cs_awk_read_file='
20916 while ((getline aline < (F[key])) > 0)
20917 print(aline)
20918 close(F[key])'
20919 ac_cs_awk_pipe_fini=
20920else
20921 ac_cs_awk_getline=false
20922 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20923 ac_cs_awk_read_file='
20924 print "|#_!!_#|"
20925 print "cat " F[key] " &&"
20926 '$ac_cs_awk_pipe_init
20927 # The final `:' finishes the AND list.
20928 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20929fi
20930ac_cr=`echo X | tr X '\015'`
20931# On cygwin, bash can eat \r inside `` if the user requested igncr.
20932# But we know of no other shell where ac_cr would be empty at this
20933# point, so we can use a bashism as a fallback.
20934if test "x$ac_cr" = x; then
20935 eval ac_cr=\$\'\\r\'
20936fi
20937ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20938if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20939 ac_cs_awk_cr='\\r'
20940else
20941 ac_cs_awk_cr=$ac_cr
20942fi
20943
20944echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20945_ACEOF
20946
20947# Create commands to substitute file output variables.
20948{
20949 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20950 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20951 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20952 echo "_ACAWK" &&
20953 echo "_ACEOF"
20954} >conf$$files.sh &&
20955. ./conf$$files.sh ||
20956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20957rm -f conf$$files.sh
20958
20959{
20960 echo "cat >conf$$subs.awk <<_ACEOF" &&
20961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20962 echo "_ACEOF"
20963} >conf$$subs.sh ||
20964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20965ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20966ac_delim='%!_!# '
20967for ac_last_try in false false false false false :; do
20968 . ./conf$$subs.sh ||
20969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20970
20971 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20972 if test $ac_delim_n = $ac_delim_num; then
20973 break
20974 elif $ac_last_try; then
20975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20976 else
20977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20978 fi
20979done
20980rm -f conf$$subs.sh
20981
20982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20983cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20984_ACEOF
20985sed -n '
20986h
20987s/^/S["/; s/!.*/"]=/
20988p
20989g
20990s/^[^!]*!//
20991:repl
20992t repl
20993s/'"$ac_delim"'$//
20994t delim
20995:nl
20996h
20997s/\(.\{148\}\)..*/\1/
20998t more1
20999s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21000p
21001n
21002b repl
21003:more1
21004s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21005p
21006g
21007s/.\{148\}//
21008t nl
21009:delim
21010h
21011s/\(.\{148\}\)..*/\1/
21012t more2
21013s/["\\]/\\&/g; s/^/"/; s/$/"/
21014p
21015b
21016:more2
21017s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21018p
21019g
21020s/.\{148\}//
21021t delim
21022' <conf$$subs.awk | sed '
21023/^[^""]/{
21024 N
21025 s/\n//
21026}
21027' >>$CONFIG_STATUS || ac_write_fail=1
21028rm -f conf$$subs.awk
21029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21030_ACAWK
21031cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21032 for (key in S) S_is_set[key] = 1
21033 FS = "\a"
21034 \$ac_cs_awk_pipe_init
21035}
21036{
21037 line = $ 0
21038 nfields = split(line, field, "@")
21039 substed = 0
21040 len = length(field[1])
21041 for (i = 2; i < nfields; i++) {
21042 key = field[i]
21043 keylen = length(key)
21044 if (S_is_set[key]) {
21045 value = S[key]
21046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21047 len += length(value) + length(field[++i])
21048 substed = 1
21049 } else
21050 len += 1 + keylen
21051 }
21052 if (nfields == 3 && !substed) {
21053 key = field[2]
21054 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21055 \$ac_cs_awk_read_file
21056 next
21057 }
21058 }
21059 print line
21060}
21061\$ac_cs_awk_pipe_fini
21062_ACAWK
21063_ACEOF
21064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21065if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21067else
21068 cat
21069fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21070 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21071_ACEOF
21072
21073# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21074# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21075# trailing colons and then remove the whole line if VPATH becomes empty
21076# (actually we leave an empty line to preserve line numbers).
21077if test "x$srcdir" = x.; then
21078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21079h
21080s///
21081s/^/:/
21082s/[ ]*$/:/
21083s/:\$(srcdir):/:/g
21084s/:\${srcdir}:/:/g
21085s/:@srcdir@:/:/g
21086s/^:*//
21087s/:*$//
21088x
21089s/\(=[ ]*\).*/\1/
21090G
21091s/\n//
21092s/^[^=]*=[ ]*$//
21093}'
21094fi
21095
21096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21097fi # test -n "$CONFIG_FILES"
21098
21099
21100eval set X " :F $CONFIG_FILES "
21101shift
21102for ac_tag
21103do
21104 case $ac_tag in
21105 :[FHLC]) ac_mode=$ac_tag; continue;;
21106 esac
21107 case $ac_mode$ac_tag in
21108 :[FHL]*:*);;
21109 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21110 :[FH]-) ac_tag=-:-;;
21111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21112 esac
21113 ac_save_IFS=$IFS
21114 IFS=:
21115 set x $ac_tag
21116 IFS=$ac_save_IFS
21117 shift
21118 ac_file=$1
21119 shift
21120
21121 case $ac_mode in
21122 :L) ac_source=$1;;
21123 :[FH])
21124 ac_file_inputs=
21125 for ac_f
21126 do
21127 case $ac_f in
21128 -) ac_f="$ac_tmp/stdin";;
21129 *) # Look for the file first in the build tree, then in the source tree
21130 # (if the path is not absolute). The absolute path cannot be DOS-style,
21131 # because $ac_f cannot contain `:'.
21132 test -f "$ac_f" ||
21133 case $ac_f in
21134 [\\/$]*) false;;
21135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21136 esac ||
21137 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21138 esac
21139 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21140 as_fn_append ac_file_inputs " '$ac_f'"
21141 done
21142
21143 # Let's still pretend it is `configure' which instantiates (i.e., don't
21144 # use $as_me), people would be surprised to read:
21145 # /* config.h. Generated by config.status. */
21146 configure_input='Generated from '`
21147 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21148 `' by configure.'
21149 if test x"$ac_file" != x-; then
21150 configure_input="$ac_file. $configure_input"
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21152$as_echo "$as_me: creating $ac_file" >&6;}
21153 fi
21154 # Neutralize special characters interpreted by sed in replacement strings.
21155 case $configure_input in #(
21156 *\&* | *\|* | *\\* )
21157 ac_sed_conf_input=`$as_echo "$configure_input" |
21158 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21159 *) ac_sed_conf_input=$configure_input;;
21160 esac
21161
21162 case $ac_tag in
21163 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21165 esac
21166 ;;
21167 esac
21168
21169 ac_dir=`$as_dirname -- "$ac_file" ||
21170$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21171 X"$ac_file" : 'X\(//\)[^/]' \| \
21172 X"$ac_file" : 'X\(//\)$' \| \
21173 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21174$as_echo X"$ac_file" |
21175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21176 s//\1/
21177 q
21178 }
21179 /^X\(\/\/\)[^/].*/{
21180 s//\1/
21181 q
21182 }
21183 /^X\(\/\/\)$/{
21184 s//\1/
21185 q
21186 }
21187 /^X\(\/\).*/{
21188 s//\1/
21189 q
21190 }
21191 s/.*/./; q'`
21192 as_dir="$ac_dir"; as_fn_mkdir_p
21193 ac_builddir=.
21194
21195case "$ac_dir" in
21196.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21197*)
21198 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21199 # A ".." for each directory in $ac_dir_suffix.
21200 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21201 case $ac_top_builddir_sub in
21202 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21203 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21204 esac ;;
21205esac
21206ac_abs_top_builddir=$ac_pwd
21207ac_abs_builddir=$ac_pwd$ac_dir_suffix
21208# for backward compatibility:
21209ac_top_builddir=$ac_top_build_prefix
21210
21211case $srcdir in
21212 .) # We are building in place.
21213 ac_srcdir=.
21214 ac_top_srcdir=$ac_top_builddir_sub
21215 ac_abs_top_srcdir=$ac_pwd ;;
21216 [\\/]* | ?:[\\/]* ) # Absolute name.
21217 ac_srcdir=$srcdir$ac_dir_suffix;
21218 ac_top_srcdir=$srcdir
21219 ac_abs_top_srcdir=$srcdir ;;
21220 *) # Relative name.
21221 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21222 ac_top_srcdir=$ac_top_build_prefix$srcdir
21223 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21224esac
21225ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21226
21227
21228 case $ac_mode in
21229 :F)
21230 #
21231 # CONFIG_FILE
21232 #
21233
21234 case $INSTALL in
21235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21236 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21237 esac
21238_ACEOF
21239
21240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21241# If the template does not know about datarootdir, expand it.
21242# FIXME: This hack should be removed a few years after 2.60.
21243ac_datarootdir_hack=; ac_datarootdir_seen=
21244ac_sed_dataroot='
21245/datarootdir/ {
21246 p
21247 q
21248}
21249/@datadir@/p
21250/@docdir@/p
21251/@infodir@/p
21252/@localedir@/p
21253/@mandir@/p'
21254case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21255*datarootdir*) ac_datarootdir_seen=yes;;
21256*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21258$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21259_ACEOF
21260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21261 ac_datarootdir_hack='
21262 s&@datadir@&$datadir&g
21263 s&@docdir@&$docdir&g
21264 s&@infodir@&$infodir&g
21265 s&@localedir@&$localedir&g
21266 s&@mandir@&$mandir&g
21267 s&\\\${datarootdir}&$datarootdir&g' ;;
21268esac
21269_ACEOF
21270
21271# Neutralize VPATH when `$srcdir' = `.'.
21272# Shell code in configure.ac might set extrasub.
21273# FIXME: do we really want to maintain this feature?
21274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21275ac_sed_extra="$ac_vpsub
21276$extrasub
21277_ACEOF
21278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21279:t
21280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21281s|@configure_input@|$ac_sed_conf_input|;t t
21282s&@top_builddir@&$ac_top_builddir_sub&;t t
21283s&@top_build_prefix@&$ac_top_build_prefix&;t t
21284s&@srcdir@&$ac_srcdir&;t t
21285s&@abs_srcdir@&$ac_abs_srcdir&;t t
21286s&@top_srcdir@&$ac_top_srcdir&;t t
21287s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21288s&@builddir@&$ac_builddir&;t t
21289s&@abs_builddir@&$ac_abs_builddir&;t t
21290s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21291s&@INSTALL@&$ac_INSTALL&;t t
21292$ac_datarootdir_hack
21293"
21294eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21295if $ac_cs_awk_getline; then
21296 $AWK -f "$ac_tmp/subs.awk"
21297else
21298 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21299fi \
21300 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21301
21302test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21303 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21305 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21307which seems to be undefined. Please make sure it is defined" >&5
21308$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21309which seems to be undefined. Please make sure it is defined" >&2;}
21310
21311 rm -f "$ac_tmp/stdin"
21312 case $ac_file in
21313 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21314 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21315 esac \
21316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21317 ;;
21318
21319
21320
21321 esac
21322
21323
21324 case $ac_file$ac_mode in
21325 "Makefile":F) sed "$extrasub_build" Makefile |
21326 sed "$extrasub_host" |
21327 sed "$extrasub_target" > mf$$
21328 mv -f mf$$ Makefile ;;
21329
21330 esac
21331done # for ac_tag
21332
21333
21334as_fn_exit 0
21335_ACEOF
21336ac_clean_files=$ac_clean_files_save
21337
21338test $ac_write_fail = 0 ||
21339 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21340
21341
21342# configure is writing to config.log, and then calls config.status.
21343# config.status does its own redirection, appending to config.log.
21344# Unfortunately, on DOS this fails, as config.log is still kept open
21345# by configure, so config.status won't be able to write to it; its
21346# output is simply discarded. So we exec the FD to /dev/null,
21347# effectively closing config.log, so it can be properly (re)opened and
21348# appended to by config.status. When coming back to configure, we
21349# need to make the FD available again.
21350if test "$no_create" != yes; then
21351 ac_cs_success=:
21352 ac_config_status_args=
21353 test "$silent" = yes &&
21354 ac_config_status_args="$ac_config_status_args --quiet"
21355 exec 5>/dev/null
21356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21357 exec 5>>config.log
21358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21359 # would make configure fail if this is the last instruction.
21360 $ac_cs_success || as_fn_exit 1
21361fi
21362if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21364$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21365fi
21366