]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
add --enable-default-compressed-debug-sections-algorithm configure option
[thirdparty/gcc.git] / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
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
100 IFS=$as_save_IFS
101
102 ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export 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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
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
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $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
257 exit 255
258 fi
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
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_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.
305 as_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.
315 as_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.
363 as_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.
373 if (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 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # 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.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # 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.
408 as_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
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_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.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_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
500 ECHO_C= ECHO_N= ECHO_T=
501 case `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';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (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
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_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.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 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.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 GDCFLAGS
626 READELF
627 OTOOL
628 OBJDUMP
629 OBJCOPY
630 WINDMC
631 WINDRES
632 STRIP
633 RANLIB
634 NM
635 LIPO
636 LD
637 DSYMUTIL
638 DLLTOOL
639 AS
640 AR
641 RUNTEST
642 EXPECT
643 MAKEINFO
644 FLEX
645 LEX
646 M4
647 BISON
648 YACC
649 WINDRES_FOR_BUILD
650 WINDMC_FOR_BUILD
651 RANLIB_FOR_BUILD
652 NM_FOR_BUILD
653 LD_FOR_BUILD
654 LDFLAGS_FOR_BUILD
655 GDC_FOR_BUILD
656 GOC_FOR_BUILD
657 GFORTRAN_FOR_BUILD
658 DSYMUTIL_FOR_BUILD
659 DLLTOOL_FOR_BUILD
660 CXX_FOR_BUILD
661 CXXFLAGS_FOR_BUILD
662 CPPFLAGS_FOR_BUILD
663 CPP_FOR_BUILD
664 CFLAGS_FOR_BUILD
665 CC_FOR_BUILD
666 AS_FOR_BUILD
667 AR_FOR_BUILD
668 target_configdirs
669 configdirs
670 build_configdirs
671 INSTALL_GDB_TK
672 GDB_TK
673 CONFIGURE_GDB_TK
674 build_tooldir
675 tooldir
676 GCC_SHLIB_SUBDIR
677 RPATH_ENVVAR
678 target_configargs
679 host_configargs
680 build_configargs
681 BUILD_CONFIG
682 LDFLAGS_FOR_TARGET
683 CXXFLAGS_FOR_TARGET
684 CFLAGS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
687 get_gcc_base_ver
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
690 stage1_languages
691 host_libs_picflag
692 PICFLAG
693 host_shared
694 gcc_host_pie
695 host_pie
696 extra_linker_plugin_flags
697 extra_linker_plugin_configure_flags
698 islinc
699 isllibs
700 poststage1_ldflags
701 poststage1_libs
702 stage1_ldflags
703 stage1_libs
704 extra_isl_gmp_configure_flags
705 extra_mpc_mpfr_configure_flags
706 extra_mpc_gmp_configure_flags
707 extra_mpfr_configure_flags
708 gmpinc
709 gmplibs
710 PGO_BUILD_LTO_CFLAGS
711 PGO_BUILD_USE_CFLAGS
712 PGO_BUILD_GEN_CFLAGS
713 HAVE_CXX11_FOR_BUILD
714 HAVE_CXX11
715 do_compare
716 GDC
717 GNATMAKE
718 GNATBIND
719 ac_ct_CXX
720 CXXFLAGS
721 CXX
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 target_subdir
730 host_subdir
731 build_subdir
732 build_libsubdir
733 AWK
734 SED
735 LN_S
736 LN
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 target_noncanonical
749 host_noncanonical
750 build_noncanonical
751 build_os
752 build_vendor
753 build_cpu
754 build
755 TOPLEVEL_CONFIGURE_ARGUMENTS
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='serialization_dependencies
795 host_makefile_frag
796 target_makefile_frag
797 alphaieee_frag
798 ospace_frag'
799 ac_user_opts='
800 enable_option_checking
801 with_build_libsubdir
802 with_system_zlib
803 with_zstd
804 enable_as_accelerator_for
805 enable_offload_targets
806 enable_offload_defaulted
807 enable_gold
808 enable_ld
809 enable_compressed_debug_sections
810 enable_default_compressed_debug_sections_algorithm
811 enable_libquadmath
812 enable_libquadmath_support
813 enable_libada
814 enable_libgm2
815 enable_libssp
816 enable_libstdcxx
817 enable_bootstrap
818 enable_pgo_build
819 with_mpc
820 with_mpc_include
821 with_mpc_lib
822 with_mpfr
823 with_mpfr_include
824 with_mpfr_lib
825 with_gmp
826 with_gmp_include
827 with_gmp_lib
828 with_stage1_libs
829 with_static_standard_libraries
830 with_stage1_ldflags
831 with_boot_libs
832 with_boot_ldflags
833 with_isl
834 with_isl_include
835 with_isl_lib
836 enable_isl_version_check
837 enable_lto
838 enable_linker_plugin_configure_flags
839 enable_linker_plugin_flags
840 enable_host_pie
841 enable_host_shared
842 enable_stage1_languages
843 enable_objc_gc
844 with_target_bdw_gc
845 with_target_bdw_gc_include
846 with_target_bdw_gc_lib
847 with_gcc_major_version_only
848 with_build_sysroot
849 with_debug_prefix_map
850 with_build_config
851 enable_vtable_verify
852 enable_serial_configure
853 with_build_time_tools
854 enable_maintainer_mode
855 enable_stage1_checking
856 enable_werror
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CXX
867 CXXFLAGS
868 CCC
869 build_configargs
870 host_configargs
871 target_configargs
872 AR
873 AS
874 DLLTOOL
875 DSYMUTIL
876 LD
877 LIPO
878 NM
879 RANLIB
880 STRIP
881 WINDRES
882 WINDMC
883 OBJCOPY
884 OBJDUMP
885 OTOOL
886 READELF
887 CC_FOR_TARGET
888 CXX_FOR_TARGET
889 GCC_FOR_TARGET
890 GFORTRAN_FOR_TARGET
891 GOC_FOR_TARGET
892 GDC_FOR_TARGET
893 GM2_FOR_TARGET
894 AR_FOR_TARGET
895 AS_FOR_TARGET
896 DLLTOOL_FOR_TARGET
897 DSYMUTIL_FOR_TARGET
898 LD_FOR_TARGET
899 LIPO_FOR_TARGET
900 NM_FOR_TARGET
901 OBJCOPY_FOR_TARGET
902 OBJDUMP_FOR_TARGET
903 OTOOL_FOR_TARGET
904 RANLIB_FOR_TARGET
905 READELF_FOR_TARGET
906 STRIP_FOR_TARGET
907 WINDRES_FOR_TARGET
908 WINDMC_FOR_TARGET'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 ac_unrecognized_opts=
915 ac_unrecognized_sep=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *=) ac_optarg= ;;
973 *) ac_optarg=yes ;;
974 esac
975
976 # Accept the important Cygnus configure options, so we can diagnose typos.
977
978 case $ac_dashdash$ac_option in
979 --)
980 ac_dashdash=yes ;;
981
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
986
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
991
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
998
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1001
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1006
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1013
1014 -disable-* | --disable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1039
1040 -enable-* | --enable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=\$ac_optarg ;;
1055
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1064
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1068
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1075
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1080
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1086
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1093
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1098
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1103
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1110
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1115
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1122
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1127
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1131
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1134 no_create=yes ;;
1135
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1139
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1148
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1153
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1160
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1167
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1184
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1189
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1194
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1198
1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 ac_prev=sbindir ;;
1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 | --sbi=* | --sb=*)
1203 sbindir=$ac_optarg ;;
1204
1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207 | --sharedst | --shareds | --shared | --share | --shar \
1208 | --sha | --sh)
1209 ac_prev=sharedstatedir ;;
1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 | --sha=* | --sh=*)
1214 sharedstatedir=$ac_optarg ;;
1215
1216 -site | --site | --sit)
1217 ac_prev=site ;;
1218 -site=* | --site=* | --sit=*)
1219 site=$ac_optarg ;;
1220
1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 ac_prev=srcdir ;;
1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224 srcdir=$ac_optarg ;;
1225
1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227 | --syscon | --sysco | --sysc | --sys | --sy)
1228 ac_prev=sysconfdir ;;
1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231 sysconfdir=$ac_optarg ;;
1232
1233 -target | --target | --targe | --targ | --tar | --ta | --t)
1234 ac_prev=target_alias ;;
1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236 target_alias=$ac_optarg ;;
1237
1238 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 verbose=yes ;;
1240
1241 -version | --version | --versio | --versi | --vers | -V)
1242 ac_init_version=: ;;
1243
1244 -with-* | --with-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=\$ac_optarg ;;
1259
1260 -without-* | --without-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid package name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=no ;;
1275
1276 --x)
1277 # Obsolete; use --with-x.
1278 with_x=yes ;;
1279
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285 x_includes=$ac_optarg ;;
1286
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292 x_libraries=$ac_optarg ;;
1293
1294 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1295 Try \`$0 --help' for more information"
1296 ;;
1297
1298 *=*)
1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' | [0-9]* | *[!_$as_cr_alnum]* )
1303 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1304 esac
1305 eval $ac_envvar=\$ac_optarg
1306 export $ac_envvar ;;
1307
1308 *)
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 ;;
1315
1316 esac
1317 done
1318
1319 if test -n "$ac_prev"; then
1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $? "missing argument to $ac_option"
1322 fi
1323
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1326 no) ;;
1327 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 esac
1330 fi
1331
1332 # Check all directory arguments for consistency.
1333 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1337 do
1338 eval ac_val=\$$ac_var
1339 # Remove trailing slashes.
1340 case $ac_val in
1341 */ )
1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\$ac_val;;
1344 esac
1345 # Be sure to have absolute directory names.
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 done
1352
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1359
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $? "working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $? "pwd does not report name of working directory"
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\).*/{
1406 s//\1/
1407 q
1408 }
1409 s/.*/./; q'`
1410 srcdir=$ac_confdir
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 srcdir=..
1413 fi
1414 else
1415 ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1428 fi
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 case $srcdir in
1436 *" "*)
1437 as_fn_error $? "path to source, $srcdir, contains spaces"
1438 ;;
1439 esac
1440 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1441
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1448
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures this package to adapt to many kinds of systems.
1457
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463 Defaults for the options are specified in brackets.
1464
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1481
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1486
1487 For better control, use the options below.
1488
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1510
1511 cat <<\_ACEOF
1512
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526
1527 cat <<\_ACEOF
1528
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-as-accelerator-for=ARG
1534 build as offload target compiler. Specify offload
1535 host triple by ARG
1536 --enable-offload-targets=LIST
1537 enable offloading to devices from comma-separated
1538 LIST of TARGET[=DIR]. Use optional path to find
1539 offload target compiler during the build
1540 --enable-offload-defaulted
1541 If enabled, configured but not installed offload compilers and
1542 libgomp plugins are silently ignored. Useful for distribution
1543 compilers where those are in separate optional packages.
1544
1545 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1546 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1547 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1548 Enable compressed debug sections for gas, gold or ld
1549 by default
1550 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1551 Default compression algorithm for
1552 --enable-compressed-debug-sections.
1553 --disable-libquadmath do not build libquadmath directory
1554 --disable-libquadmath-support
1555 disable libquadmath support for Fortran
1556 --enable-libada build libada directory
1557 --enable-libgm2 build libgm2 directory
1558 --enable-libssp build libssp directory
1559 --disable-libstdcxx do not build libstdc++-v3 directory
1560 --enable-bootstrap enable bootstrapping [yes if native build]
1561 --enable-pgo-build[=lto]
1562 enable the PGO build
1563 --disable-isl-version-check
1564 disable check for isl version
1565 --enable-lto enable link time optimization support
1566 --enable-linker-plugin-configure-flags=FLAGS
1567 additional flags for configuring linker plugins
1568 [none]
1569 --enable-linker-plugin-flags=FLAGS
1570 additional flags for configuring and building linker
1571 plugins [none]
1572 --enable-host-pie build position independent host executables
1573 --enable-host-shared build host code as shared libraries
1574 --enable-stage1-languages[=all]
1575 choose additional languages to build during stage1.
1576 Mostly useful for compiler development
1577 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1578 Objective-C runtime
1579 --enable-vtable-verify Enable vtable verification feature
1580 --enable-serial-[{host,target,build}-]configure
1581 force sequential configuration of sub-packages for
1582 the host, target or build machine, or all
1583 sub-packages
1584 --enable-maintainer-mode
1585 enable make rules and dependencies not useful (and
1586 sometimes confusing) to the casual installer
1587 --enable-stage1-checking[=all]
1588 choose additional checking for stage1 of the
1589 compiler
1590 --enable-werror enable -Werror in bootstrap stage2 and later
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-build-libsubdir=DIR Directory where to find libraries for build system
1596 --with-system-zlib use installed libz
1597 --with-zstd Support zstd compressed debug sections
1598 (default=auto)
1599 --with-mpc=PATH specify prefix directory for installed MPC package.
1600 Equivalent to --with-mpc-include=PATH/include plus
1601 --with-mpc-lib=PATH/lib
1602 --with-mpc-include=PATH specify directory for installed MPC include files
1603 --with-mpc-lib=PATH specify directory for the installed MPC library
1604 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1605 Equivalent to --with-mpfr-include=PATH/include plus
1606 --with-mpfr-lib=PATH/lib
1607 --with-mpfr-include=PATH
1608 specify directory for installed MPFR include files
1609 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1610 --with-gmp=PATH specify prefix directory for the installed GMP
1611 package. Equivalent to
1612 --with-gmp-include=PATH/include plus
1613 --with-gmp-lib=PATH/lib
1614 --with-gmp-include=PATH specify directory for installed GMP include files
1615 --with-gmp-lib=PATH specify directory for the installed GMP library
1616 --with-stage1-libs=LIBS libraries for stage1
1617 --with-static-standard-libraries
1618 use -static-libstdc++ and -static-libgcc
1619 (default=auto)
1620 --with-stage1-ldflags=FLAGS
1621 linker flags for stage1
1622 --with-boot-libs=LIBS libraries for stage2 and later
1623 --with-boot-ldflags=FLAGS
1624 linker flags for stage2 and later
1625 --with-isl=PATH Specify prefix directory for the installed isl
1626 package. Equivalent to
1627 --with-isl-include=PATH/include plus
1628 --with-isl-lib=PATH/lib
1629 --with-isl-include=PATH Specify directory for installed isl include files
1630 --with-isl-lib=PATH Specify the directory for the installed isl library
1631 --with-target-bdw-gc=PATHLIST
1632 specify prefix directory for installed bdw-gc
1633 package. Equivalent to
1634 --with-target-bdw-gc-include=PATH/include plus
1635 --with-target-bdw-gc-lib=PATH/lib
1636 --with-target-bdw-gc-include=PATHLIST
1637 specify directories for installed bdw-gc include
1638 files
1639 --with-target-bdw-gc-lib=PATHLIST
1640 specify directories for installed bdw-gc library
1641 --with-gcc-major-version-only
1642 use only GCC major number in filesystem paths
1643 --with-build-sysroot=SYSROOT
1644 use sysroot as the system root during the build
1645 --with-debug-prefix-map='A=B C=D ...'
1646 map A to B, C to D ... in debug information
1647 --with-build-config='NAME NAME2...'
1648 use config/NAME.mk build configuration
1649 --with-build-time-tools=PATH
1650 use given path to find target tools during the build
1651
1652 Some influential environment variables:
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1656 nonstandard directory <lib dir>
1657 LIBS libraries to pass to the linker, e.g. -l<library>
1658 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1659 you have headers in a nonstandard directory <include dir>
1660 CXX C++ compiler command
1661 CXXFLAGS C++ compiler flags
1662 build_configargs
1663 additional configure arguments for build directories
1664 host_configargs
1665 additional configure arguments for host directories
1666 target_configargs
1667 additional configure arguments for target directories
1668 AR AR for the host
1669 AS AS for the host
1670 DLLTOOL DLLTOOL for the host
1671 DSYMUTIL DSYMUTIL for the host
1672 LD LD for the host
1673 LIPO LIPO for the host
1674 NM NM for the host
1675 RANLIB RANLIB for the host
1676 STRIP STRIP for the host
1677 WINDRES WINDRES for the host
1678 WINDMC WINDMC for the host
1679 OBJCOPY OBJCOPY for the host
1680 OBJDUMP OBJDUMP for the host
1681 OTOOL OTOOL for the host
1682 READELF READELF for the host
1683 CC_FOR_TARGET
1684 CC for the target
1685 CXX_FOR_TARGET
1686 CXX for the target
1687 GCC_FOR_TARGET
1688 GCC for the target
1689 GFORTRAN_FOR_TARGET
1690 GFORTRAN for the target
1691 GOC_FOR_TARGET
1692 GOC for the target
1693 GDC_FOR_TARGET
1694 GDC for the target
1695 GM2_FOR_TARGET
1696 GM2 for the target
1697 AR_FOR_TARGET
1698 AR for the target
1699 AS_FOR_TARGET
1700 AS for the target
1701 DLLTOOL_FOR_TARGET
1702 DLLTOOL for the target
1703 DSYMUTIL_FOR_TARGET
1704 DSYMUTIL for the target
1705 LD_FOR_TARGET
1706 LD for the target
1707 LIPO_FOR_TARGET
1708 LIPO for the target
1709 NM_FOR_TARGET
1710 NM for the target
1711 OBJCOPY_FOR_TARGET
1712 OBJCOPY for the target
1713 OBJDUMP_FOR_TARGET
1714 OBJDUMP for the target
1715 OTOOL_FOR_TARGET
1716 OTOOL for the target
1717 RANLIB_FOR_TARGET
1718 RANLIB for the target
1719 READELF_FOR_TARGET
1720 READELF for the target
1721 STRIP_FOR_TARGET
1722 STRIP for the target
1723 WINDRES_FOR_TARGET
1724 WINDRES for the target
1725 WINDMC_FOR_TARGET
1726 WINDMC for the target
1727
1728 Use these variables to override the choices made by `configure' or to help
1729 it to find libraries and programs with nonstandard names/locations.
1730
1731 Report bugs to the package provider.
1732 _ACEOF
1733 ac_status=$?
1734 fi
1735
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 continue
1742 ac_builddir=.
1743
1744 case "$ac_dir" in
1745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *)
1747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 esac ;;
1754 esac
1755 ac_abs_top_builddir=$ac_pwd
1756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir=$ac_top_build_prefix
1759
1760 case $srcdir in
1761 .) # We are building in place.
1762 ac_srcdir=.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1769 *) # Relative name.
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773 esac
1774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1775
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1784 else
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786 fi || ac_status=$?
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1788 done
1789 fi
1790
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1793 cat <<\_ACEOF
1794 configure
1795 generated by GNU Autoconf 2.69
1796
1797 Copyright (C) 2012 Free Software Foundation, Inc.
1798 This configure script is free software; the Free Software Foundation
1799 gives unlimited permission to copy, distribute and modify it.
1800 _ACEOF
1801 exit
1802 fi
1803
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1807
1808 # ac_fn_c_try_compile LINENO
1809 # --------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_compile ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840 fi
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_compile
1845
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878 fi
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1881
1882 } # ac_fn_cxx_try_compile
1883
1884 # ac_fn_cxx_try_link LINENO
1885 # -------------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_link ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919 fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_cxx_try_link
1929
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_c_try_link ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1
1965 fi
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_c_try_link
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1978
1979 It was created by $as_me, which was
1980 generated by GNU Autoconf 2.69. Invocation command line was
1981
1982 $ $0 $@
1983
1984 _ACEOF
1985 exec 5>>config.log
1986 {
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1991
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008
2009 _ASUNAME
2010
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2019
2020 } >&5
2021
2022 cat >&5 <<_ACEOF
2023
2024
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2028
2029 _ACEOF
2030
2031
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2042 do
2043 for ac_arg
2044 do
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 2)
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2068 ;;
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2071 fi
2072 as_fn_append ac_configure_args " '$ac_arg'"
2073 ;;
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2079
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2087 {
2088 echo
2089
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2095 (
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2118 *)
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 ;;
2121 esac |
2122 sort
2123 )
2124 echo
2125
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2129 echo
2130 for ac_var in $ac_subst_vars
2131 do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
2137 done | sort
2138 echo
2139
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2144 echo
2145 for ac_var in $ac_subst_files
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154 fi
2155
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2158 ## confdefs.h. ##
2159 ## ----------- ##"
2160 echo
2161 cat confdefs.h
2162 echo
2163 fi
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2171 ' 0
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2176
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2179
2180 $as_echo "/* confdefs.h */" > confdefs.h
2181
2182 # Predefined preprocessor variables.
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2206 _ACEOF
2207
2208
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2211 ac_site_file1=NONE
2212 ac_site_file2=NONE
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1=./$CONFIG_SITE;;
2217 */*) ac_site_file1=$CONFIG_SITE;;
2218 *) ac_site_file1=./$CONFIG_SITE;;
2219 esac
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2226 fi
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 do
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file" \
2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $? "failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2239 fi
2240 done
2241
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 case $cache_file in
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2251 esac
2252 fi
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 >$cache_file
2257 fi
2258
2259 # Check that the precious variables saved in the cache have kept the same
2260 # value.
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2268 set,)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,set)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,);;
2277 *)
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 esac
2307 fi
2308 done
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 fi
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2319
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328
2329
2330
2331
2332
2333 progname=$0
2334 # if PWD already has a value, it is probably wrong.
2335 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2336
2337 # Export original configure arguments for use by sub-configures.
2338 # Quote arguments with shell meta charatcers.
2339 TOPLEVEL_CONFIGURE_ARGUMENTS=
2340 set -- "$progname" "$@"
2341 for ac_arg
2342 do
2343 case "$ac_arg" in
2344 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2345 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2346 # if the argument is of the form -foo=baz, quote the baz part only
2347 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2348 *) ;;
2349 esac
2350 # Add the quoted argument to the list.
2351 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2352 done
2353 if test "$silent" = yes; then
2354 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2355 fi
2356 # Remove the initial space we just introduced and, as these will be
2357 # expanded by make, quote '$'.
2358 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2359
2360
2361 # Find the build, host, and target systems.
2362 ac_aux_dir=
2363 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2364 if test -f "$ac_dir/install-sh"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/install-sh -c"
2367 break
2368 elif test -f "$ac_dir/install.sh"; then
2369 ac_aux_dir=$ac_dir
2370 ac_install_sh="$ac_aux_dir/install.sh -c"
2371 break
2372 elif test -f "$ac_dir/shtool"; then
2373 ac_aux_dir=$ac_dir
2374 ac_install_sh="$ac_aux_dir/shtool install -c"
2375 break
2376 fi
2377 done
2378 if test -z "$ac_aux_dir"; then
2379 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2380 fi
2381
2382 # These three variables are undocumented and unsupported,
2383 # and are intended to be withdrawn in a future Autoconf release.
2384 # They can cause serious problems if a builder's source tree is in a directory
2385 # whose full name contains unusual characters.
2386 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2387 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2388 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2389
2390
2391 # Make sure we can run config.sub.
2392 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2393 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2394
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2396 $as_echo_n "checking build system type... " >&6; }
2397 if ${ac_cv_build+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 ac_build_alias=$build_alias
2401 test "x$ac_build_alias" = x &&
2402 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2403 test "x$ac_build_alias" = x &&
2404 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2405 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2407
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2410 $as_echo "$ac_cv_build" >&6; }
2411 case $ac_cv_build in
2412 *-*-*) ;;
2413 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2414 esac
2415 build=$ac_cv_build
2416 ac_save_IFS=$IFS; IFS='-'
2417 set x $ac_cv_build
2418 shift
2419 build_cpu=$1
2420 build_vendor=$2
2421 shift; shift
2422 # Remember, the first character of IFS is used to create $*,
2423 # except with old shells:
2424 build_os=$*
2425 IFS=$ac_save_IFS
2426 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2427
2428
2429 case ${build_alias} in
2430 "") build_noncanonical=${build} ;;
2431 *) build_noncanonical=${build_alias} ;;
2432 esac
2433
2434
2435
2436 case ${host_alias} in
2437 "") host_noncanonical=${build_noncanonical} ;;
2438 *) host_noncanonical=${host_alias} ;;
2439 esac
2440
2441
2442
2443 case ${target_alias} in
2444 "") target_noncanonical=${host_noncanonical} ;;
2445 *) target_noncanonical=${target_alias} ;;
2446 esac
2447
2448
2449
2450
2451 test "$host_noncanonical" = "$target_noncanonical" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_transform_name=s,y,y,
2455
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if ${ac_cv_host+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2463 else
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2466 fi
2467
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2470 $as_echo "$ac_cv_host" >&6; }
2471 case $ac_cv_host in
2472 *-*-*) ;;
2473 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2474 esac
2475 host=$ac_cv_host
2476 ac_save_IFS=$IFS; IFS='-'
2477 set x $ac_cv_host
2478 shift
2479 host_cpu=$1
2480 host_vendor=$2
2481 shift; shift
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2484 host_os=$*
2485 IFS=$ac_save_IFS
2486 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2487
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2490 $as_echo_n "checking target system type... " >&6; }
2491 if ${ac_cv_target+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test "x$target_alias" = x; then
2495 ac_cv_target=$ac_cv_host
2496 else
2497 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2499 fi
2500
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2503 $as_echo "$ac_cv_target" >&6; }
2504 case $ac_cv_target in
2505 *-*-*) ;;
2506 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2507 esac
2508 target=$ac_cv_target
2509 ac_save_IFS=$IFS; IFS='-'
2510 set x $ac_cv_target
2511 shift
2512 target_cpu=$1
2513 target_vendor=$2
2514 shift; shift
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2517 target_os=$*
2518 IFS=$ac_save_IFS
2519 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2520
2521
2522 # The aliases save the names the user supplied, while $host etc.
2523 # will get canonicalized.
2524 test -n "$target_alias" &&
2525 test "$program_prefix$program_suffix$program_transform_name" = \
2526 NONENONEs,x,x, &&
2527 program_prefix=${target_alias}-
2528
2529 test "$program_prefix" != NONE &&
2530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2531 # Use a double $ so make ignores it.
2532 test "$program_suffix" != NONE &&
2533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2534 # Double any \ or $.
2535 # By default was `s,x,x', remove it if useless.
2536 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2537 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538
2539
2540
2541 # Get 'install' or 'install-sh' and its variants.
2542 # Find a good install program. We prefer a C program (faster),
2543 # so one script is as good as another. But avoid the broken or
2544 # incompatible versions:
2545 # SysV /etc/install, /usr/sbin/install
2546 # SunOS /usr/etc/install
2547 # IRIX /sbin/install
2548 # AIX /bin/install
2549 # AmigaOS /C/install, which installs bootblocks on floppy discs
2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553 # OS/2's system install, which has a completely different semantic
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 # Reject install programs that cannot install multiple files.
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2558 if test -z "$INSTALL"; then
2559 if ${ac_cv_path_install+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 # Account for people who put trailing slashes in PATH elements.
2568 case $as_dir/ in #((
2569 ./ | .// | /[cC]/* | \
2570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2571 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2572 /usr/ucb/* ) ;;
2573 *)
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2576 # by default.
2577 for ac_prog in ginstall scoinst install; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2580 if test $ac_prog = install &&
2581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2583 :
2584 elif test $ac_prog = install &&
2585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2587 :
2588 else
2589 rm -rf conftest.one conftest.two conftest.dir
2590 echo one > conftest.one
2591 echo two > conftest.two
2592 mkdir conftest.dir
2593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2594 test -s conftest.one && test -s conftest.two &&
2595 test -s conftest.dir/conftest.one &&
2596 test -s conftest.dir/conftest.two
2597 then
2598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2599 break 3
2600 fi
2601 fi
2602 fi
2603 done
2604 done
2605 ;;
2606 esac
2607
2608 done
2609 IFS=$as_save_IFS
2610
2611 rm -rf conftest.one conftest.two conftest.dir
2612
2613 fi
2614 if test "${ac_cv_path_install+set}" = set; then
2615 INSTALL=$ac_cv_path_install
2616 else
2617 # As a last resort, use the slow shell script. Don't cache a
2618 # value for INSTALL within a source directory, because that will
2619 # break other packages using the cache if that directory is
2620 # removed, or if the value is a relative name.
2621 INSTALL=$ac_install_sh
2622 fi
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625 $as_echo "$INSTALL" >&6; }
2626
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632
2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2636 $as_echo_n "checking whether ln works... " >&6; }
2637 if ${acx_cv_prog_LN+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 rm -f conftestdata_t
2641 echo >conftestdata_f
2642 if ln conftestdata_f conftestdata_t 2>/dev/null
2643 then
2644 acx_cv_prog_LN=ln
2645 else
2646 acx_cv_prog_LN=no
2647 fi
2648 rm -f conftestdata_f conftestdata_t
2649
2650 fi
2651 if test $acx_cv_prog_LN = no; then
2652 LN="cp"
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2654 $as_echo "no, using $LN" >&6; }
2655 else
2656 LN="$acx_cv_prog_LN"
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658 $as_echo "yes" >&6; }
2659 fi
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2662 $as_echo_n "checking whether ln -s works... " >&6; }
2663 LN_S=$as_ln_s
2664 if test "$LN_S" = "ln -s"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 $as_echo "yes" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2669 $as_echo "no, using $LN_S" >&6; }
2670 fi
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2673 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2674 if ${ac_cv_path_SED+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2678 for ac_i in 1 2 3 4 5 6 7; do
2679 ac_script="$ac_script$as_nl$ac_script"
2680 done
2681 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2682 { ac_script=; unset ac_script;}
2683 if test -z "$SED"; then
2684 ac_path_SED_found=false
2685 # Loop through the user's path and test for each of PROGNAME-LIST
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_prog in sed gsed; do
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2694 as_fn_executable_p "$ac_path_SED" || continue
2695 # Check for GNU ac_path_SED and select it if it is found.
2696 # Check for GNU $ac_path_SED
2697 case `"$ac_path_SED" --version 2>&1` in
2698 *GNU*)
2699 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2700 *)
2701 ac_count=0
2702 $as_echo_n 0123456789 >"conftest.in"
2703 while :
2704 do
2705 cat "conftest.in" "conftest.in" >"conftest.tmp"
2706 mv "conftest.tmp" "conftest.in"
2707 cp "conftest.in" "conftest.nl"
2708 $as_echo '' >> "conftest.nl"
2709 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2711 as_fn_arith $ac_count + 1 && ac_count=$as_val
2712 if test $ac_count -gt ${ac_path_SED_max-0}; then
2713 # Best one so far, save it but keep looking for a better one
2714 ac_cv_path_SED="$ac_path_SED"
2715 ac_path_SED_max=$ac_count
2716 fi
2717 # 10*(2^10) chars as input seems more than enough
2718 test $ac_count -gt 10 && break
2719 done
2720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2721 esac
2722
2723 $ac_path_SED_found && break 3
2724 done
2725 done
2726 done
2727 IFS=$as_save_IFS
2728 if test -z "$ac_cv_path_SED"; then
2729 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2730 fi
2731 else
2732 ac_cv_path_SED=$SED
2733 fi
2734
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2737 $as_echo "$ac_cv_path_SED" >&6; }
2738 SED="$ac_cv_path_SED"
2739 rm -f conftest.sed
2740
2741 for ac_prog in gawk mawk nawk awk
2742 do
2743 # Extract the first word of "$ac_prog", so it can be a program name with args.
2744 set dummy $ac_prog; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if ${ac_cv_prog_AWK+:} false; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$AWK"; then
2751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760 ac_cv_prog_AWK="$ac_prog"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 AWK=$ac_cv_prog_AWK
2771 if test -n "$AWK"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2773 $as_echo "$AWK" >&6; }
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2778
2779
2780 test -n "$AWK" && break
2781 done
2782
2783
2784 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2785
2786 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2787 # a relative path.
2788 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2789 INSTALL="${srcpwd}/install-sh -c"
2790 fi
2791
2792 # Set srcdir to "." if that's what it is.
2793 # This is important for multilib support.
2794 pwd=`${PWDCMD-pwd}`
2795 if test "${pwd}" = "${srcpwd}" ; then
2796 srcdir=.
2797 fi
2798
2799 topsrcdir=$srcpwd
2800
2801 extra_host_args=
2802
2803 ### To add a new directory to the tree, first choose whether it is a target
2804 ### or a host dependent tool. Then put it into the appropriate list
2805 ### (library or tools, host or target), doing a dependency sort.
2806
2807 # Subdirs will be configured in the order listed in build_configdirs,
2808 # configdirs, or target_configdirs; see the serialization section below.
2809
2810 # Dependency sorting is only needed when *configuration* must be done in
2811 # a particular order. In all cases a dependency should be specified in
2812 # the Makefile, whether or not it's implicitly specified here.
2813
2814 # Double entries in build_configdirs, configdirs, or target_configdirs may
2815 # cause circular dependencies and break everything horribly.
2816
2817 # these library is used by various programs built for the build
2818 # environment
2819 #
2820 build_libs="build-libiberty build-libcpp"
2821
2822 # these tools are built for the build environment
2823 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2824
2825 # these libraries are used by various programs built for the host environment
2826 #f
2827 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2828
2829 # these tools are built for the host environment
2830 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2831 # know that we are building the simulator.
2832 # binutils, gas and ld appear in that order because it makes sense to run
2833 # "make check" in that particular order.
2834 # If --enable-gold is used, "gold" may replace "ld".
2835 host_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"
2836
2837 # these libraries are built for the target environment, and are built after
2838 # the host libraries and the host tools (which may be a cross compiler)
2839 # Note that libiberty is not a target library.
2840 target_libraries="target-libgcc \
2841 target-libbacktrace \
2842 target-libgloss \
2843 target-newlib \
2844 target-libgomp \
2845 target-libatomic \
2846 target-libitm \
2847 target-libstdc++-v3 \
2848 target-libsanitizer \
2849 target-libvtv \
2850 target-libssp \
2851 target-libquadmath \
2852 target-libgfortran \
2853 target-libffi \
2854 target-libobjc \
2855 target-libada \
2856 target-libgm2 \
2857 target-libgo \
2858 target-libphobos \
2859 target-zlib"
2860
2861 # these tools are built using the target libraries, and are intended to
2862 # run only in the target environment
2863 #
2864 # note: any program that *uses* libraries that are in the "target_libraries"
2865 # list belongs in this list.
2866 #
2867 target_tools="target-rda"
2868
2869 ################################################################################
2870
2871 ## All tools belong in one of the four categories, and are assigned above
2872 ## We assign ${configdirs} this way to remove all embedded newlines. This
2873 ## is important because configure will choke if they ever get through.
2874 ## ${configdirs} is directories we build using the host tools.
2875 ## ${target_configdirs} is directories we build using the target tools.
2876 configdirs=`echo ${host_libs} ${host_tools}`
2877 target_configdirs=`echo ${target_libraries} ${target_tools}`
2878 build_configdirs=`echo ${build_libs} ${build_tools}`
2879
2880
2881
2882 ################################################################################
2883
2884 srcname="gnu development package"
2885
2886 # This gets set non-empty for some net releases of packages.
2887 appdirs=""
2888
2889 # Define is_cross_compiler to save on calls to 'test'.
2890 is_cross_compiler=
2891 if test x"${host}" = x"${target}" ; then
2892 is_cross_compiler=no
2893 else
2894 is_cross_compiler=yes
2895 fi
2896
2897 # Find the build and target subdir names.
2898
2899 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2900 # have matching libraries, they should use host libraries: Makefile.tpl
2901 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2902 # However, they still use the build modules, because the corresponding
2903 # host modules (e.g. bison) are only built for the host when bootstrap
2904 # finishes. So:
2905 # - build_subdir is where we find build modules, and never changes.
2906 # - build_libsubdir is where we find build libraries, and can be overridden.
2907
2908 # Prefix 'build-' so this never conflicts with target_subdir.
2909 build_subdir="build-${build_noncanonical}"
2910
2911 # Check whether --with-build-libsubdir was given.
2912 if test "${with_build_libsubdir+set}" = set; then :
2913 withval=$with_build_libsubdir; build_libsubdir="$withval"
2914 else
2915 build_libsubdir="$build_subdir"
2916 fi
2917
2918 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2919 if ( test $srcdir = . && test -d gcc ) \
2920 || test -d $srcdir/../host-${host_noncanonical}; then
2921 host_subdir="host-${host_noncanonical}"
2922 else
2923 host_subdir=.
2924 fi
2925 # No prefix.
2926 target_subdir=${target_noncanonical}
2927
2928 # Be sure to cover against remnants of an in-tree build.
2929 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2930 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2931 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2932 fi
2933
2934 # Skipdirs are removed silently.
2935 skipdirs=
2936 # Noconfigdirs are removed loudly.
2937 noconfigdirs=""
2938
2939 use_gnu_ld=
2940 # Make sure we don't let GNU ld be added if we didn't want it.
2941 if test x$with_gnu_ld = xno ; then
2942 use_gnu_ld=no
2943 noconfigdirs="$noconfigdirs ld gold"
2944 fi
2945
2946 use_gnu_as=
2947 # Make sure we don't let GNU as be added if we didn't want it.
2948 if test x$with_gnu_as = xno ; then
2949 use_gnu_as=no
2950 noconfigdirs="$noconfigdirs gas"
2951 fi
2952
2953 use_included_zlib=
2954
2955 # Check whether --with-system-zlib was given.
2956 if test "${with_system_zlib+set}" = set; then :
2957 withval=$with_system_zlib;
2958 fi
2959
2960 # Make sure we don't let ZLIB be added if we didn't want it.
2961 if test x$with_system_zlib = xyes ; then
2962 use_included_zlib=no
2963 noconfigdirs="$noconfigdirs zlib"
2964 fi
2965
2966 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2967 # is provided.
2968 if test x$with_system_readline = xyes ; then
2969 noconfigdirs="$noconfigdirs readline"
2970 fi
2971
2972
2973 # Check whether --with-zstd was given.
2974 if test "${with_zstd+set}" = set; then :
2975 withval=$with_zstd;
2976 fi
2977
2978
2979 # some tools are so dependent upon X11 that if we're not building with X,
2980 # it's not even worth trying to configure, much less build, that tool.
2981
2982 case ${with_x} in
2983 yes | "") ;; # the default value for this tree is that X11 is available
2984 no)
2985 skipdirs="${skipdirs} tk itcl libgui"
2986 # We won't be able to build gdbtk without X.
2987 enable_gdbtk=no
2988 ;;
2989 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2990 esac
2991
2992 # Some are only suitable for cross toolchains.
2993 # Remove these if host=target.
2994 cross_only="target-libgloss target-newlib target-opcodes"
2995
2996 case $is_cross_compiler in
2997 no) skipdirs="${skipdirs} ${cross_only}" ;;
2998 esac
2999
3000 # If both --with-headers and --with-libs are specified, default to
3001 # --without-newlib.
3002 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3003 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3004 if test x"${with_newlib}" = x ; then
3005 with_newlib=no
3006 fi
3007 fi
3008
3009 # Recognize --with-newlib/--without-newlib.
3010 case ${with_newlib} in
3011 no) skipdirs="${skipdirs} target-newlib" ;;
3012 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3013 esac
3014
3015 # Check whether --enable-as-accelerator-for was given.
3016 if test "${enable_as_accelerator_for+set}" = set; then :
3017 enableval=$enable_as_accelerator_for;
3018 fi
3019
3020
3021 # Check whether --enable-offload-targets was given.
3022 if test "${enable_offload_targets+set}" = set; then :
3023 enableval=$enable_offload_targets;
3024 if test x"$enable_offload_targets" = x; then
3025 as_fn_error $? "no offload targets specified" "$LINENO" 5
3026 fi
3027
3028 else
3029 enable_offload_targets=
3030 fi
3031
3032
3033 # Check whether --enable-offload-defaulted was given.
3034 if test "${enable_offload_defaulted+set}" = set; then :
3035 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3036 else
3037 enable_offload_defaulted=
3038 fi
3039
3040
3041 # Handle --enable-gold, --enable-ld.
3042 # --disable-gold [--enable-ld]
3043 # Build only ld. Default option.
3044 # --enable-gold [--enable-ld]
3045 # Build both gold and ld. Install gold as "ld.gold", install ld
3046 # as "ld.bfd" and "ld".
3047 # --enable-gold=default [--enable-ld]
3048 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3049 # install ld as "ld.bfd".
3050 # --enable-gold[=default] --disable-ld
3051 # Build only gold, which is then installed as both "ld.gold" and "ld".
3052 # --enable-gold --enable-ld=default
3053 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3054 # and ld.bfd).
3055 # In other words, ld is default
3056 # --enable-gold=default --enable-ld=default
3057 # Error.
3058
3059 default_ld=
3060 # Check whether --enable-gold was given.
3061 if test "${enable_gold+set}" = set; then :
3062 enableval=$enable_gold; ENABLE_GOLD=$enableval
3063 else
3064 ENABLE_GOLD=no
3065 fi
3066
3067 case "${ENABLE_GOLD}" in
3068 yes|default)
3069 # Check for ELF target.
3070 is_elf=no
3071 case "${target}" in
3072 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3073 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3074 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3075 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3076 case "${target}" in
3077 *-*-linux*aout* | *-*-linux*oldld*)
3078 ;;
3079 *)
3080 is_elf=yes
3081 ;;
3082 esac
3083 esac
3084
3085 if test "$is_elf" = "yes"; then
3086 # Check for target supported by gold.
3087 case "${target}" in
3088 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3089 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3090 configdirs="$configdirs gold"
3091 if test x${ENABLE_GOLD} = xdefault; then
3092 default_ld=gold
3093 fi
3094 ENABLE_GOLD=yes
3095 ;;
3096 esac
3097 fi
3098 ;;
3099 no)
3100 ;;
3101 *)
3102 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3103 ;;
3104 esac
3105
3106 # Check whether --enable-ld was given.
3107 if test "${enable_ld+set}" = set; then :
3108 enableval=$enable_ld; ENABLE_LD=$enableval
3109 else
3110 ENABLE_LD=yes
3111 fi
3112
3113
3114 case "${ENABLE_LD}" in
3115 default)
3116 if test x${default_ld} != x; then
3117 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3118 fi
3119 ;;
3120 yes)
3121 ;;
3122 no)
3123 if test x${ENABLE_GOLD} != xyes; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3125 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3126 fi
3127 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3128 ;;
3129 *)
3130 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3131 ;;
3132 esac
3133
3134 # PR gas/19109
3135 # Decide the default method for compressing debug sections.
3136 # Provide a configure time option to override our default.
3137 # Check whether --enable-compressed_debug_sections was given.
3138 if test "${enable_compressed_debug_sections+set}" = set; then :
3139 enableval=$enable_compressed_debug_sections;
3140 if test x"$enable_compressed_debug_sections" = xyes; then
3141 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3142 fi
3143
3144 else
3145 enable_compressed_debug_sections=
3146 fi
3147
3148
3149 # Select default compression algorithm.
3150 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3151 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3152 enableval=$enable_default_compressed_debug_sections_algorithm;
3153 else
3154 default_compressed_debug_sections_algorithm=
3155 fi
3156
3157
3158 # Configure extra directories which are host specific
3159
3160 case "${host}" in
3161 *-cygwin*)
3162 configdirs="$configdirs libtermcap" ;;
3163 esac
3164
3165 # A target can indicate whether a language isn't supported for some reason.
3166 # Only spaces may be used in this macro; not newlines or tabs.
3167 unsupported_languages=
3168
3169 # Remove more programs from consideration, based on the host or
3170 # target this usually means that a port of the program doesn't
3171 # exist yet.
3172
3173 case "${host}" in
3174 i[3456789]86-*-msdosdjgpp*)
3175 noconfigdirs="$noconfigdirs tcl tk itcl"
3176 ;;
3177 esac
3178
3179
3180 # Check whether --enable-libquadmath was given.
3181 if test "${enable_libquadmath+set}" = set; then :
3182 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3183 else
3184 ENABLE_LIBQUADMATH=yes
3185 fi
3186
3187 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3188 noconfigdirs="$noconfigdirs target-libquadmath"
3189 fi
3190
3191
3192 # Check whether --enable-libquadmath-support was given.
3193 if test "${enable_libquadmath_support+set}" = set; then :
3194 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3195 else
3196 ENABLE_LIBQUADMATH_SUPPORT=yes
3197 fi
3198
3199 enable_libquadmath_support=
3200 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3201 enable_libquadmath_support=no
3202 fi
3203
3204
3205 # Check whether --enable-libada was given.
3206 if test "${enable_libada+set}" = set; then :
3207 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3208 else
3209 ENABLE_LIBADA=yes
3210 fi
3211
3212 if test "${ENABLE_LIBADA}" != "yes" ; then
3213 noconfigdirs="$noconfigdirs gnattools"
3214 fi
3215
3216 # Check whether --enable-libgm2 was given.
3217 if test "${enable_libgm2+set}" = set; then :
3218 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3219 else
3220 ENABLE_LIBGM2=no
3221 fi
3222
3223 if test "${ENABLE_LIBGM2}" != "yes" ; then
3224 noconfigdirs="$noconfigdirs gm2tools"
3225 fi
3226
3227 # Check whether --enable-libssp was given.
3228 if test "${enable_libssp+set}" = set; then :
3229 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3230 else
3231 ENABLE_LIBSSP=yes
3232 fi
3233
3234
3235 # Check whether --enable-libstdcxx was given.
3236 if test "${enable_libstdcxx+set}" = set; then :
3237 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3238 else
3239 ENABLE_LIBSTDCXX=default
3240 fi
3241
3242 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3243 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3244 fi
3245
3246 # Enable libgomp by default on hosted POSIX systems, and a few others.
3247 if test x$enable_libgomp = x ; then
3248 case "${target}" in
3249 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3250 ;;
3251 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3252 ;;
3253 *-*-solaris2* | *-*-hpux11*)
3254 ;;
3255 *-*-darwin* | *-*-aix*)
3256 ;;
3257 nvptx*-*-* | amdgcn*-*-*)
3258 ;;
3259 *)
3260 noconfigdirs="$noconfigdirs target-libgomp"
3261 ;;
3262 esac
3263 fi
3264
3265 # Disable libatomic on unsupported systems.
3266 if test -d ${srcdir}/libatomic; then
3267 if test x$enable_libatomic = x; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3269 $as_echo_n "checking for libatomic support... " >&6; }
3270 if (srcdir=${srcdir}/libatomic; \
3271 . ${srcdir}/configure.tgt; \
3272 test -n "$UNSUPPORTED")
3273 then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 noconfigdirs="$noconfigdirs target-libatomic"
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280 fi
3281 fi
3282 fi
3283
3284 # Disable libitm on unsupported systems.
3285 if test -d ${srcdir}/libitm; then
3286 if test x$enable_libitm = x; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3288 $as_echo_n "checking for libitm support... " >&6; }
3289 if (srcdir=${srcdir}/libitm; \
3290 . ${srcdir}/configure.tgt; \
3291 test -n "$UNSUPPORTED")
3292 then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 noconfigdirs="$noconfigdirs target-libitm"
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299 fi
3300 fi
3301 fi
3302
3303 # Disable libsanitizer on unsupported systems.
3304 if test -d ${srcdir}/libsanitizer; then
3305 if test x$enable_libsanitizer = x; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3307 $as_echo_n "checking for libsanitizer support... " >&6; }
3308 if (srcdir=${srcdir}/libsanitizer; \
3309 . ${srcdir}/configure.tgt; \
3310 test -n "$UNSUPPORTED")
3311 then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 noconfigdirs="$noconfigdirs target-libsanitizer"
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3318 fi
3319 fi
3320 fi
3321
3322 # Disable libvtv on unsupported systems.
3323 if test -d ${srcdir}/libvtv; then
3324 if test x$enable_libvtv = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3326 $as_echo_n "checking for libvtv support... " >&6; }
3327 if (srcdir=${srcdir}/libvtv; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$VTV_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libvtv"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 fi
3339 fi
3340
3341 # Disable libquadmath for some systems.
3342 case "${target}" in
3343 avr-*-*)
3344 noconfigdirs="$noconfigdirs target-libquadmath"
3345 ;;
3346 # libquadmath is unused on AIX and libquadmath build process use of
3347 # LD_LIBRARY_PATH can break AIX bootstrap.
3348 powerpc-*-aix* | rs6000-*-aix*)
3349 noconfigdirs="$noconfigdirs target-libquadmath"
3350 ;;
3351 esac
3352
3353 # Disable libssp for some systems.
3354 case "${target}" in
3355 avr-*-*)
3356 # No hosted I/O support.
3357 noconfigdirs="$noconfigdirs target-libssp"
3358 ;;
3359 bpf-*-*)
3360 noconfigdirs="$noconfigdirs target-libssp"
3361 ;;
3362 powerpc-*-aix* | rs6000-*-aix*)
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
3365 pru-*-*)
3366 # No hosted I/O support.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 rl78-*-*)
3370 # libssp uses a misaligned load to trigger a fault, but the RL78
3371 # doesn't fault for those - instead, it gives a build-time error
3372 # for explicit misaligned loads.
3373 noconfigdirs="$noconfigdirs target-libssp"
3374 ;;
3375 visium-*-*)
3376 # No hosted I/O support.
3377 noconfigdirs="$noconfigdirs target-libssp"
3378 ;;
3379 esac
3380
3381 # Disable libstdc++-v3 for some systems.
3382 # Allow user to override this if they pass --enable-libstdcxx
3383 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3384 case "${target}" in
3385 *-*-vxworks*)
3386 # VxWorks uses the Dinkumware C++ library.
3387 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3388 ;;
3389 amdgcn*-*-*)
3390 # Not ported/fails to build when using newlib.
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
3393 arm*-wince-pe*)
3394 # the C++ libraries don't build on top of CE's C libraries
3395 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3396 ;;
3397 avr-*-*)
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
3400 bpf-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 ;;
3403 ft32-*-*)
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
3406 esac
3407 fi
3408
3409 # Disable C++ on systems where it is known to not work.
3410 # For testing, you can override this with --enable-languages=c++.
3411 case ,${enable_languages}, in
3412 *,c++,*)
3413 ;;
3414 *)
3415 case "${target}" in
3416 bpf-*-*)
3417 unsupported_languages="$unsupported_languages c++"
3418 ;;
3419 esac
3420 ;;
3421 esac
3422
3423 # Disable Objc on systems where it is known to not work.
3424 # For testing, you can override this with --enable-languages=objc.
3425 case ,${enable_languages}, in
3426 *,objc,*)
3427 ;;
3428 *)
3429 case "${target}" in
3430 bpf-*-*)
3431 unsupported_languages="$unsupported_languages objc"
3432 ;;
3433 esac
3434 ;;
3435 esac
3436
3437 # Disable D on systems where it is known to not work.
3438 # For testing, you can override this with --enable-languages=d.
3439 case ,${enable_languages}, in
3440 *,d,*)
3441 ;;
3442 *)
3443 case "${target}" in
3444 bpf-*-*)
3445 unsupported_languages="$unsupported_languages d"
3446 ;;
3447 esac
3448 ;;
3449 esac
3450
3451 # Disable libphobos on unsupported systems.
3452 # For testing, you can override this with --enable-libphobos.
3453 if test -d ${srcdir}/libphobos; then
3454 if test x$enable_libphobos = x; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3456 $as_echo_n "checking for libphobos support... " >&6; }
3457 if (srcdir=${srcdir}/libphobos; \
3458 . ${srcdir}/configure.tgt; \
3459 test "$LIBPHOBOS_SUPPORTED" != "yes")
3460 then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 noconfigdirs="$noconfigdirs target-libphobos"
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466 $as_echo "yes" >&6; }
3467 fi
3468 fi
3469 fi
3470
3471 # Disable Fortran for some systems.
3472 case "${target}" in
3473 mmix-*-*)
3474 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3475 unsupported_languages="$unsupported_languages fortran"
3476 ;;
3477 bpf-*-*)
3478 unsupported_languages="$unsupported_languages fortran"
3479 ;;
3480 esac
3481
3482 # Disable libffi for some systems.
3483 case "${target}" in
3484 powerpc-*-darwin*)
3485 ;;
3486 i[3456789]86-*-darwin*)
3487 ;;
3488 x86_64-*-darwin[912]*)
3489 ;;
3490 *-*-darwin*)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 *-*-netware*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
3496 *-*-phoenix*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 *-*-rtems*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 *-*-tpf*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-uclinux*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-vxworks*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 aarch64*-*-freebsd*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 alpha*-*-*vms*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 arm*-*-freebsd*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 arm-wince-pe)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 arm*-*-symbianelf*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 bpf-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 cris-*-* | crisv32-*-*)
3530 case "${target}" in
3531 *-*-linux*)
3532 ;;
3533 *) # See PR46792 regarding target-libffi.
3534 noconfigdirs="$noconfigdirs target-libffi";;
3535 esac
3536 ;;
3537 hppa*64*-*-hpux*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 ia64*-*-*vms*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3542 ;;
3543 i[3456789]86-w64-mingw*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
3546 i[3456789]86-*-mingw*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3548 ;;
3549 x86_64-*-mingw*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 mmix-*-*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 powerpc-*-aix*)
3556 ;;
3557 rs6000-*-aix*)
3558 ;;
3559 ft32-*-*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 *-*-lynxos*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 esac
3566
3567 # Disable the go frontend on systems where it is known to not work. Please keep
3568 # this in sync with contrib/config-list.mk.
3569 case "${target}" in
3570 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3571 unsupported_languages="$unsupported_languages go"
3572 ;;
3573 esac
3574
3575 # Only allow gdbserver on some systems.
3576 if test -d ${srcdir}/gdbserver; then
3577 if test x$enable_gdbserver = x; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3579 $as_echo_n "checking for gdbserver support... " >&6; }
3580 if (srcdir=${srcdir}/gdbserver; \
3581 . ${srcdir}/configure.srv; \
3582 test -n "$UNSUPPORTED")
3583 then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 noconfigdirs="$noconfigdirs gdbserver"
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3590 fi
3591 fi
3592 fi
3593
3594 # Disable libgo for some systems where it is known to not work.
3595 # For testing, you can easily override this with --enable-libgo.
3596 if test x$enable_libgo = x; then
3597 case "${target}" in
3598 *-*-darwin*)
3599 # PR 46986
3600 noconfigdirs="$noconfigdirs target-libgo"
3601 ;;
3602 *-*-cygwin* | *-*-mingw*)
3603 noconfigdirs="$noconfigdirs target-libgo"
3604 ;;
3605 bpf-*-*)
3606 noconfigdirs="$noconfigdirs target-libgo"
3607 ;;
3608 esac
3609 fi
3610
3611 # Default libgloss CPU subdirectory.
3612 libgloss_dir="$target_cpu"
3613
3614 case "${target}" in
3615 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3616 libgloss_dir=wince
3617 ;;
3618 aarch64*-*-* )
3619 libgloss_dir=aarch64
3620 ;;
3621 arm*-*-*)
3622 libgloss_dir=arm
3623 ;;
3624 cris-*-* | crisv32-*-*)
3625 libgloss_dir=cris
3626 ;;
3627 hppa*-*-*)
3628 libgloss_dir=pa
3629 ;;
3630 i[3456789]86-*-*)
3631 libgloss_dir=i386
3632 ;;
3633 loongarch*-*-*)
3634 libgloss_dir=loongarch
3635 ;;
3636 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3637 libgloss_dir=m68hc11
3638 ;;
3639 m68*-*-* | fido-*-*)
3640 libgloss_dir=m68k
3641 ;;
3642 mips*-*-*)
3643 libgloss_dir=mips
3644 ;;
3645 powerpc*-*-*)
3646 libgloss_dir=rs6000
3647 ;;
3648 pru-*-*)
3649 libgloss_dir=pru
3650 ;;
3651 sparc*-*-*)
3652 libgloss_dir=sparc
3653 ;;
3654 esac
3655
3656 # Disable newlib and libgloss for various target OSes.
3657 case "${target}" in
3658 alpha*-dec-osf*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 i[3456789]86-*-linux*)
3662 # This section makes it possible to build newlib natively on linux.
3663 # If we are using a cross compiler then don't configure newlib.
3664 if test x${is_cross_compiler} != xno ; then
3665 noconfigdirs="$noconfigdirs target-newlib"
3666 fi
3667 noconfigdirs="$noconfigdirs target-libgloss"
3668 # If we are not using a cross compiler, do configure newlib.
3669 # Note however, that newlib will only be configured in this situation
3670 # if the --with-newlib option has been given, because otherwise
3671 # 'target-newlib' will appear in skipdirs.
3672 ;;
3673 i[3456789]86-*-rdos*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 sparc-*-sunos4*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 bpf-*-*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 *-*-aix*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 *-*-beos*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 *-*-chorusos)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 *-*-dragonfly*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
3697 *-*-freebsd*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 *-*-lynxos*)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 *-*-mingw*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 *-*-netbsd*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 *-*-netware*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-tpf*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-uclinux*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-vxworks*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 esac
3725
3726 case "${target}" in
3727 *-*-chorusos)
3728 ;;
3729 aarch64-*-darwin*)
3730 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3731 noconfigdirs="$noconfigdirs sim target-rda"
3732 ;;
3733 amdgcn*-*-*)
3734 ;;
3735 arm-*-darwin*)
3736 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3737 noconfigdirs="$noconfigdirs sim target-rda"
3738 ;;
3739 powerpc-*-darwin*)
3740 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3741 noconfigdirs="$noconfigdirs sim target-rda"
3742 ;;
3743 i[3456789]86-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3746 ;;
3747 x86_64-*-darwin[912]*)
3748 noconfigdirs="$noconfigdirs ld gas gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3750 ;;
3751 *-*-darwin*)
3752 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3753 noconfigdirs="$noconfigdirs sim target-rda"
3754 ;;
3755 *-*-dragonfly*)
3756 ;;
3757 *-*-freebsd*)
3758 if test "x$with_gmp" = x \
3759 && ! test -d ${srcdir}/gmp \
3760 && test -f /usr/local/include/gmp.h; then
3761 with_gmp=/usr/local
3762 fi
3763 ;;
3764 *-*-kaos*)
3765 # Remove unsupported stuff on all kaOS configurations.
3766 noconfigdirs="$noconfigdirs target-libgloss"
3767 ;;
3768 *-*-netbsd*)
3769 ;;
3770 *-*-netware*)
3771 ;;
3772 *-*-phoenix*)
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 ;;
3775 *-*-rtems*)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3777 ;;
3778 # The tpf target doesn't support gdb yet.
3779 *-*-tpf*)
3780 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3781 ;;
3782 *-*-uclinux*)
3783 noconfigdirs="$noconfigdirs target-rda"
3784 ;;
3785 *-*-vxworks*)
3786 ;;
3787 alpha*-dec-osf*)
3788 # ld works, but does not support shared libraries.
3789 # gas doesn't generate exception information.
3790 noconfigdirs="$noconfigdirs gas ld"
3791 ;;
3792 alpha*-*-*vms*)
3793 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3794 ;;
3795 alpha*-*-*)
3796 # newlib is not 64 bit ready
3797 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3798 ;;
3799 bpf-*-*)
3800 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3801 ;;
3802 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3803 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3804 ;;
3805 arc*-*-*)
3806 noconfigdirs="$noconfigdirs sim"
3807 ;;
3808 arm-*-pe*)
3809 noconfigdirs="$noconfigdirs target-libgloss"
3810 ;;
3811 arm-*-riscix*)
3812 noconfigdirs="$noconfigdirs ld target-libgloss"
3813 ;;
3814 avr-*-*)
3815 if test x${with_avrlibc} != xno; then
3816 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3817 fi
3818 ;;
3819 c4x-*-* | tic4x-*-*)
3820 noconfigdirs="$noconfigdirs target-libgloss"
3821 ;;
3822 tic54x-*-*)
3823 noconfigdirs="$noconfigdirs target-libgloss gdb"
3824 ;;
3825 d10v-*-*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3827 ;;
3828 d30v-*-*)
3829 noconfigdirs="$noconfigdirs gdb"
3830 ;;
3831 fr30-*-elf*)
3832 noconfigdirs="$noconfigdirs gdb"
3833 ;;
3834 ft32-*-*)
3835 noconfigdirs="$noconfigdirs target-rda gprof"
3836 ;;
3837 moxie-*-*)
3838 noconfigdirs="$noconfigdirs"
3839 ;;
3840 h8300*-*-*)
3841 noconfigdirs="$noconfigdirs target-libgloss"
3842 ;;
3843 h8500-*-*)
3844 noconfigdirs="$noconfigdirs target-libgloss"
3845 ;;
3846 hppa*64*-*-hpux*)
3847 noconfigdirs="$noconfigdirs gdb"
3848 ;;
3849 hppa*64*-*-linux*)
3850 ;;
3851 hppa*-*-linux*)
3852 ;;
3853 hppa*-*-*elf* | \
3854 hppa*-*-lites* | \
3855 hppa*-*-openbsd* | \
3856 hppa*64*-*-*)
3857 ;;
3858 hppa*-*-pro*)
3859 ;;
3860 hppa*-*-*)
3861 noconfigdirs="$noconfigdirs ld"
3862 ;;
3863 i960-*-*)
3864 noconfigdirs="$noconfigdirs gdb"
3865 ;;
3866 ia64*-*-elf*)
3867 # No gdb support yet.
3868 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3869 ;;
3870 ia64*-**-hpux*)
3871 # No ld support yet.
3872 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3873 ;;
3874 ia64*-*-*vms*)
3875 # No ld support yet.
3876 noconfigdirs="$noconfigdirs libgui itcl ld"
3877 ;;
3878 i[3456789]86-w64-mingw*)
3879 ;;
3880 i[3456789]86-*-mingw*)
3881 target_configdirs="$target_configdirs target-winsup"
3882 ;;
3883 *-*-cygwin*)
3884 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3885 noconfigdirs="$noconfigdirs target-libgloss"
3886 # always build newlib if winsup directory is present.
3887 if test -d "$srcdir/winsup/cygwin"; then
3888 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3889 elif test -d "$srcdir/newlib"; then
3890 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3891 fi
3892 ;;
3893 i[3456789]86-*-pe)
3894 noconfigdirs="$noconfigdirs target-libgloss"
3895 ;;
3896 i[3456789]86-*-sco3.2v5*)
3897 # The linker does not yet know about weak symbols in COFF,
3898 # and is not configured to handle mixed ELF and COFF.
3899 noconfigdirs="$noconfigdirs ld target-libgloss"
3900 ;;
3901 i[3456789]86-*-sco*)
3902 noconfigdirs="$noconfigdirs gprof target-libgloss"
3903 ;;
3904 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3905 noconfigdirs="$noconfigdirs target-libgloss"
3906 ;;
3907 i[3456789]86-*-sysv4*)
3908 noconfigdirs="$noconfigdirs target-libgloss"
3909 ;;
3910 i[3456789]86-*-beos*)
3911 noconfigdirs="$noconfigdirs gdb"
3912 ;;
3913 i[3456789]86-*-rdos*)
3914 noconfigdirs="$noconfigdirs gdb"
3915 ;;
3916 mmix-*-*)
3917 noconfigdirs="$noconfigdirs gdb"
3918 ;;
3919 mt-*-*)
3920 noconfigdirs="$noconfigdirs sim"
3921 ;;
3922 nfp-*-*)
3923 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3924 noconfigdirs="$noconfigdirs $target_libraries"
3925 ;;
3926 pdp11-*-*)
3927 noconfigdirs="$noconfigdirs gdb gprof"
3928 ;;
3929 powerpc-*-aix*)
3930 # copied from rs6000-*-* entry
3931 noconfigdirs="$noconfigdirs gprof"
3932 ;;
3933 powerpc*-*-winnt* | powerpc*-*-pe*)
3934 target_configdirs="$target_configdirs target-winsup"
3935 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3936 # always build newlib.
3937 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3938 ;;
3939 # This is temporary until we can link against shared libraries
3940 powerpcle-*-solaris*)
3941 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3942 ;;
3943 powerpc-*-beos*)
3944 noconfigdirs="$noconfigdirs gdb"
3945 ;;
3946 rs6000-*-lynxos*)
3947 noconfigdirs="$noconfigdirs gprof"
3948 ;;
3949 rs6000-*-aix*)
3950 noconfigdirs="$noconfigdirs gprof"
3951 ;;
3952 rs6000-*-*)
3953 noconfigdirs="$noconfigdirs gprof"
3954 ;;
3955 m68k-apollo-*)
3956 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3957 ;;
3958 microblaze*)
3959 noconfigdirs="$noconfigdirs gprof"
3960 ;;
3961 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3962 if test x$with_newlib = xyes; then
3963 noconfigdirs="$noconfigdirs gprof"
3964 fi
3965 ;;
3966 mips*-*-irix5*)
3967 noconfigdirs="$noconfigdirs gprof target-libgloss"
3968 ;;
3969 mips*-*-irix6*)
3970 noconfigdirs="$noconfigdirs gprof target-libgloss"
3971 ;;
3972 mips*-*-bsd*)
3973 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3974 ;;
3975 mips*-*-linux*)
3976 ;;
3977 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3978 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3979 noconfigdirs="$noconfigdirs ld gas gprof"
3980 ;;
3981 mips*-*-*)
3982 noconfigdirs="$noconfigdirs gprof"
3983 ;;
3984 nvptx*-*-*)
3985 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3986 ;;
3987 sh-*-*)
3988 case "${target}" in
3989 sh*-*-elf)
3990 ;;
3991 *)
3992 noconfigdirs="$noconfigdirs target-libgloss" ;;
3993 esac
3994 ;;
3995 sparc-*-sunos4*)
3996 if test x${is_cross_compiler} = xno ; then
3997 use_gnu_ld=no
3998 fi
3999 ;;
4000 tic6x-*-*)
4001 noconfigdirs="$noconfigdirs sim"
4002 ;;
4003 tilepro*-*-* | tilegx*-*-*)
4004 noconfigdirs="$noconfigdirs sim"
4005 ;;
4006 v810-*-*)
4007 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4008 ;;
4009 vax-*-*)
4010 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4011 ;;
4012 wasm32-*-*)
4013 noconfigdirs="$noconfigdirs ld"
4014 ;;
4015 loongarch*-*-linux*)
4016 ;;
4017 loongarch*-*-*)
4018 noconfigdirs="$noconfigdirs gprof"
4019 ;;
4020 esac
4021
4022 # If we aren't building newlib, then don't build libgloss, since libgloss
4023 # depends upon some newlib header files.
4024 case "${noconfigdirs}" in
4025 *target-libgloss*) ;;
4026 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4027 esac
4028
4029 # Work in distributions that contain no compiler tools, like Autoconf.
4030 host_makefile_frag=/dev/null
4031 if test -d ${srcdir}/config ; then
4032 case "${host}" in
4033 i[3456789]86-*-msdosdjgpp*)
4034 host_makefile_frag="config/mh-djgpp"
4035 ;;
4036 *-cygwin*)
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4039 $as_echo_n "checking to see if cat works as expected... " >&6; }
4040 echo a >cygwin-cat-check
4041 if test `cat cygwin-cat-check` = a ; then
4042 rm cygwin-cat-check
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 $as_echo "yes" >&6; }
4045 else
4046 rm cygwin-cat-check
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 as_fn_error $? "The cat command does not ignore carriage return characters.
4050 Please either mount the build directory in binary mode or run the following
4051 commands before running any configure script:
4052 set -o igncr
4053 export SHELLOPTS
4054 " "$LINENO" 5
4055 fi
4056
4057 host_makefile_frag="config/mh-cygwin"
4058 ;;
4059 *-mingw*)
4060 host_makefile_frag="config/mh-mingw"
4061 ;;
4062 alpha*-linux*)
4063 host_makefile_frag="config/mh-alpha-linux"
4064 ;;
4065 hppa*-hp-hpux*)
4066 host_makefile_frag="config/mh-pa"
4067 ;;
4068 hppa*-*)
4069 host_makefile_frag="config/mh-pa"
4070 ;;
4071 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4072 host_makefile_frag="config/mh-darwin"
4073 ;;
4074 powerpc-*-aix*)
4075 host_makefile_frag="config/mh-ppc-aix"
4076 ;;
4077 rs6000-*-aix*)
4078 host_makefile_frag="config/mh-ppc-aix"
4079 ;;
4080 esac
4081 fi
4082
4083 if test "${build}" != "${host}" ; then
4084 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4085 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4086 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4087 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4088 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4089 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4090 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4091 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4092 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4093 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4094 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4095 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4096 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4097 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4098 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4099 else
4100 AR_FOR_BUILD="\$(AR)"
4101 AS_FOR_BUILD="\$(AS)"
4102 CC_FOR_BUILD="\$(CC)"
4103 CXX_FOR_BUILD="\$(CXX)"
4104 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4105 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4106 GOC_FOR_BUILD="\$(GOC)"
4107 GDC_FOR_BUILD="\$(GDC)"
4108 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4109 LD_FOR_BUILD="\$(LD)"
4110 NM_FOR_BUILD="\$(NM)"
4111 RANLIB_FOR_BUILD="\$(RANLIB)"
4112 WINDRES_FOR_BUILD="\$(WINDRES)"
4113 WINDMC_FOR_BUILD="\$(WINDMC)"
4114 fi
4115
4116 ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_CC+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4142 fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147 fi
4148 fi
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152 $as_echo "$CC" >&6; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 fi
4157
4158
4159 fi
4160 if test -z "$ac_cv_prog_CC"; then
4161 ac_ct_CC=$CC
4162 # Extract the first word of "gcc", so it can be a program name with args.
4163 set dummy gcc; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$ac_ct_CC"; then
4170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_CC="gcc"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4190 if test -n "$ac_ct_CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4192 $as_echo "$ac_ct_CC" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198 if test "x$ac_ct_CC" = x; then
4199 CC=""
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207 CC=$ac_ct_CC
4208 fi
4209 else
4210 CC="$ac_cv_prog_CC"
4211 fi
4212
4213 if test -z "$CC"; then
4214 if test -n "$ac_tool_prefix"; then
4215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4216 set dummy ${ac_tool_prefix}cc; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CC="${ac_tool_prefix}cc"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 CC=$ac_cv_prog_CC
4243 if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245 $as_echo "$CC" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252 fi
4253 fi
4254 if test -z "$CC"; then
4255 # Extract the first word of "cc", so it can be a program name with args.
4256 set dummy cc; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_CC+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$CC"; then
4263 ac_cv_prog_CC="$CC" # Let the user override the test.
4264 else
4265 ac_prog_rejected=no
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4274 ac_prog_rejected=yes
4275 continue
4276 fi
4277 ac_cv_prog_CC="cc"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285 if test $ac_prog_rejected = yes; then
4286 # We found a bogon in the path, so make sure we never use it.
4287 set dummy $ac_cv_prog_CC
4288 shift
4289 if test $# != 0; then
4290 # We chose a different compiler from the bogus one.
4291 # However, it has the same basename, so the bogon will be chosen
4292 # first if we set CC to just the basename; use the full file name.
4293 shift
4294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4295 fi
4296 fi
4297 fi
4298 fi
4299 CC=$ac_cv_prog_CC
4300 if test -n "$CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 $as_echo "$CC" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309 fi
4310 if test -z "$CC"; then
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in cl.exe
4313 do
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_CC+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$CC"; then
4322 ac_cv_prog_CC="$CC" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 CC=$ac_cv_prog_CC
4342 if test -n "$CC"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4344 $as_echo "$CC" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 test -n "$CC" && break
4352 done
4353 fi
4354 if test -z "$CC"; then
4355 ac_ct_CC=$CC
4356 for ac_prog in cl.exe
4357 do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$ac_ct_CC"; then
4366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_CC="$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4386 if test -n "$ac_ct_CC"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4388 $as_echo "$ac_ct_CC" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 test -n "$ac_ct_CC" && break
4396 done
4397
4398 if test "x$ac_ct_CC" = x; then
4399 CC=""
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 CC=$ac_ct_CC
4408 fi
4409 fi
4410
4411 fi
4412
4413
4414 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "no acceptable C compiler found in \$PATH
4417 See \`config.log' for more details" "$LINENO" 5; }
4418
4419 # Provide some information about the compiler.
4420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4421 set X $ac_compile
4422 ac_compiler=$2
4423 for ac_option in --version -v -V -qversion; do
4424 { { ac_try="$ac_compiler $ac_option >&5"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4432 ac_status=$?
4433 if test -s conftest.err; then
4434 sed '10a\
4435 ... rest of stderr output deleted ...
4436 10q' conftest.err >conftest.er1
4437 cat conftest.er1 >&5
4438 fi
4439 rm -f conftest.er1 conftest.err
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }
4442 done
4443
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446
4447 int
4448 main ()
4449 {
4450
4451 ;
4452 return 0;
4453 }
4454 _ACEOF
4455 ac_clean_files_save=$ac_clean_files
4456 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4457 # Try to create an executable without -o first, disregard a.out.
4458 # It will help us diagnose broken compilers, and finding out an intuition
4459 # of exeext.
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4461 $as_echo_n "checking whether the C compiler works... " >&6; }
4462 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4463
4464 # The possible output files:
4465 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4466
4467 ac_rmfiles=
4468 for ac_file in $ac_files
4469 do
4470 case $ac_file in
4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4472 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4473 esac
4474 done
4475 rm -f $ac_rmfiles
4476
4477 if { { ac_try="$ac_link_default"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_link_default") 2>&5
4485 ac_status=$?
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }; then :
4488 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4489 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4490 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4491 # so that the user can short-circuit this test for compilers unknown to
4492 # Autoconf.
4493 for ac_file in $ac_files ''
4494 do
4495 test -f "$ac_file" || continue
4496 case $ac_file in
4497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4498 ;;
4499 [ab].out )
4500 # We found the default executable, but exeext='' is most
4501 # certainly right.
4502 break;;
4503 *.* )
4504 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4505 then :; else
4506 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4507 fi
4508 # We set ac_cv_exeext here because the later test for it is not
4509 # safe: cross compilers may not add the suffix if given an `-o'
4510 # argument, so we may need to know it at that point already.
4511 # Even if this section looks crufty: it has the advantage of
4512 # actually working.
4513 break;;
4514 * )
4515 break;;
4516 esac
4517 done
4518 test "$ac_cv_exeext" = no && ac_cv_exeext=
4519
4520 else
4521 ac_file=''
4522 fi
4523 if test -z "$ac_file"; then :
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 $as_echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error 77 "C compiler cannot create executables
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4538 $as_echo_n "checking for C compiler default output file name... " >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4540 $as_echo "$ac_file" >&6; }
4541 ac_exeext=$ac_cv_exeext
4542
4543 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4544 ac_clean_files=$ac_clean_files_save
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4546 $as_echo_n "checking for suffix of executables... " >&6; }
4547 if { { ac_try="$ac_link"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 $as_echo "$ac_try_echo"; } >&5
4554 (eval "$ac_link") 2>&5
4555 ac_status=$?
4556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }; then :
4558 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4559 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4560 # work properly (i.e., refer to `conftest.exe'), while it won't with
4561 # `rm'.
4562 for ac_file in conftest.exe conftest conftest.*; do
4563 test -f "$ac_file" || continue
4564 case $ac_file in
4565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4566 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4567 break;;
4568 * ) break;;
4569 esac
4570 done
4571 else
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4575 See \`config.log' for more details" "$LINENO" 5; }
4576 fi
4577 rm -f conftest conftest$ac_cv_exeext
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4579 $as_echo "$ac_cv_exeext" >&6; }
4580
4581 rm -f conftest.$ac_ext
4582 EXEEXT=$ac_cv_exeext
4583 ac_exeext=$EXEEXT
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <stdio.h>
4587 int
4588 main ()
4589 {
4590 FILE *f = fopen ("conftest.out", "w");
4591 return ferror (f) || fclose (f) != 0;
4592
4593 ;
4594 return 0;
4595 }
4596 _ACEOF
4597 ac_clean_files="$ac_clean_files conftest.out"
4598 # Check that the compiler produces executables we can run. If not, either
4599 # the compiler is broken, or we cross compile.
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4601 $as_echo_n "checking whether we are cross compiling... " >&6; }
4602 if test "$cross_compiling" != yes; then
4603 { { ac_try="$ac_link"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_link") 2>&5
4611 ac_status=$?
4612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; }
4614 if { ac_try='./conftest$ac_cv_exeext'
4615 { { case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
4621 (eval "$ac_try") 2>&5
4622 ac_status=$?
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }; }; then
4625 cross_compiling=no
4626 else
4627 if test "$cross_compiling" = maybe; then
4628 cross_compiling=yes
4629 else
4630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $? "cannot run C compiled programs.
4633 If you meant to cross compile, use \`--host'.
4634 See \`config.log' for more details" "$LINENO" 5; }
4635 fi
4636 fi
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4639 $as_echo "$cross_compiling" >&6; }
4640
4641 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4642 ac_clean_files=$ac_clean_files_save
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4644 $as_echo_n "checking for suffix of object files... " >&6; }
4645 if ${ac_cv_objext+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650
4651 int
4652 main ()
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.o conftest.obj
4660 if { { ac_try="$ac_compile"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_compile") 2>&5
4668 ac_status=$?
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }; then :
4671 for ac_file in conftest.o conftest.obj conftest.*; do
4672 test -f "$ac_file" || continue;
4673 case $ac_file in
4674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4676 break;;
4677 esac
4678 done
4679 else
4680 $as_echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4685 as_fn_error $? "cannot compute suffix of object files: cannot compile
4686 See \`config.log' for more details" "$LINENO" 5; }
4687 fi
4688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4691 $as_echo "$ac_cv_objext" >&6; }
4692 OBJEXT=$ac_cv_objext
4693 ac_objext=$OBJEXT
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4696 if ${ac_cv_c_compiler_gnu+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main ()
4704 {
4705 #ifndef __GNUC__
4706 choke me
4707 #endif
4708
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_compiler_gnu=yes
4715 else
4716 ac_compiler_gnu=no
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4720
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4723 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4724 if test $ac_compiler_gnu = yes; then
4725 GCC=yes
4726 else
4727 GCC=
4728 fi
4729 ac_test_CFLAGS=${CFLAGS+set}
4730 ac_save_CFLAGS=$CFLAGS
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4732 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4733 if ${ac_cv_prog_cc_g+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 ac_save_c_werror_flag=$ac_c_werror_flag
4737 ac_c_werror_flag=yes
4738 ac_cv_prog_cc_g=no
4739 CFLAGS="-g"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742
4743 int
4744 main ()
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_prog_cc_g=yes
4753 else
4754 CFLAGS=""
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757
4758 int
4759 main ()
4760 {
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767
4768 else
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770 CFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 int
4775 main ()
4776 {
4777
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 ac_cv_prog_cc_g=yes
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 fi
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 ac_c_werror_flag=$ac_save_c_werror_flag
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4793 $as_echo "$ac_cv_prog_cc_g" >&6; }
4794 if test "$ac_test_CFLAGS" = set; then
4795 CFLAGS=$ac_save_CFLAGS
4796 elif test $ac_cv_prog_cc_g = yes; then
4797 if test "$GCC" = yes; then
4798 CFLAGS="-g -O2"
4799 else
4800 CFLAGS="-g"
4801 fi
4802 else
4803 if test "$GCC" = yes; then
4804 CFLAGS="-O2"
4805 else
4806 CFLAGS=
4807 fi
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4811 if ${ac_cv_prog_cc_c89+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_cv_prog_cc_c89=no
4815 ac_save_CC=$CC
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <stdarg.h>
4819 #include <stdio.h>
4820 struct stat;
4821 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4822 struct buf { int x; };
4823 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4824 static char *e (p, i)
4825 char **p;
4826 int i;
4827 {
4828 return p[i];
4829 }
4830 static char *f (char * (*g) (char **, int), char **p, ...)
4831 {
4832 char *s;
4833 va_list v;
4834 va_start (v,p);
4835 s = g (p, va_arg (v,int));
4836 va_end (v);
4837 return s;
4838 }
4839
4840 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4841 function prototypes and stuff, but not '\xHH' hex character constants.
4842 These don't provoke an error unfortunately, instead are silently treated
4843 as 'x'. The following induces an error, until -std is added to get
4844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4845 array size at least. It's necessary to write '\x00'==0 to get something
4846 that's true only with -std. */
4847 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4848
4849 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4850 inside strings and character constants. */
4851 #define FOO(x) 'x'
4852 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4853
4854 int test (int i, double x);
4855 struct s1 {int (*f) (int a);};
4856 struct s2 {int (*f) (double a);};
4857 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4858 int argc;
4859 char **argv;
4860 int
4861 main ()
4862 {
4863 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4864 ;
4865 return 0;
4866 }
4867 _ACEOF
4868 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4869 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4870 do
4871 CC="$ac_save_CC $ac_arg"
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_cv_prog_cc_c89=$ac_arg
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext
4876 test "x$ac_cv_prog_cc_c89" != "xno" && break
4877 done
4878 rm -f conftest.$ac_ext
4879 CC=$ac_save_CC
4880
4881 fi
4882 # AC_CACHE_VAL
4883 case "x$ac_cv_prog_cc_c89" in
4884 x)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4886 $as_echo "none needed" >&6; } ;;
4887 xno)
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4889 $as_echo "unsupported" >&6; } ;;
4890 *)
4891 CC="$CC $ac_cv_prog_cc_c89"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4893 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4894 esac
4895 if test "x$ac_cv_prog_cc_c89" != xno; then :
4896
4897 fi
4898
4899 ac_ext=c
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4906 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4907 if ${ac_cv_prog_cc_c99+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 ac_cv_prog_cc_c99=no
4911 ac_save_CC=$CC
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 #include <stdarg.h>
4915 #include <stdbool.h>
4916 #include <stdlib.h>
4917 #include <wchar.h>
4918 #include <stdio.h>
4919
4920 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4921 #define debug(...) fprintf (stderr, __VA_ARGS__)
4922 #define showlist(...) puts (#__VA_ARGS__)
4923 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4924 static void
4925 test_varargs_macros (void)
4926 {
4927 int x = 1234;
4928 int y = 5678;
4929 debug ("Flag");
4930 debug ("X = %d\n", x);
4931 showlist (The first, second, and third items.);
4932 report (x>y, "x is %d but y is %d", x, y);
4933 }
4934
4935 // Check long long types.
4936 #define BIG64 18446744073709551615ull
4937 #define BIG32 4294967295ul
4938 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4939 #if !BIG_OK
4940 your preprocessor is broken;
4941 #endif
4942 #if BIG_OK
4943 #else
4944 your preprocessor is broken;
4945 #endif
4946 static long long int bignum = -9223372036854775807LL;
4947 static unsigned long long int ubignum = BIG64;
4948
4949 struct incomplete_array
4950 {
4951 int datasize;
4952 double data[];
4953 };
4954
4955 struct named_init {
4956 int number;
4957 const wchar_t *name;
4958 double average;
4959 };
4960
4961 typedef const char *ccp;
4962
4963 static inline int
4964 test_restrict (ccp restrict text)
4965 {
4966 // See if C++-style comments work.
4967 // Iterate through items via the restricted pointer.
4968 // Also check for declarations in for loops.
4969 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4970 continue;
4971 return 0;
4972 }
4973
4974 // Check varargs and va_copy.
4975 static void
4976 test_varargs (const char *format, ...)
4977 {
4978 va_list args;
4979 va_start (args, format);
4980 va_list args_copy;
4981 va_copy (args_copy, args);
4982
4983 const char *str;
4984 int number;
4985 float fnumber;
4986
4987 while (*format)
4988 {
4989 switch (*format++)
4990 {
4991 case 's': // string
4992 str = va_arg (args_copy, const char *);
4993 break;
4994 case 'd': // int
4995 number = va_arg (args_copy, int);
4996 break;
4997 case 'f': // float
4998 fnumber = va_arg (args_copy, double);
4999 break;
5000 default:
5001 break;
5002 }
5003 }
5004 va_end (args_copy);
5005 va_end (args);
5006 }
5007
5008 int
5009 main ()
5010 {
5011
5012 // Check bool.
5013 _Bool success = false;
5014
5015 // Check restrict.
5016 if (test_restrict ("String literal") == 0)
5017 success = true;
5018 char *restrict newvar = "Another string";
5019
5020 // Check varargs.
5021 test_varargs ("s, d' f .", "string", 65, 34.234);
5022 test_varargs_macros ();
5023
5024 // Check flexible array members.
5025 struct incomplete_array *ia =
5026 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5027 ia->datasize = 10;
5028 for (int i = 0; i < ia->datasize; ++i)
5029 ia->data[i] = i * 1.234;
5030
5031 // Check named initializers.
5032 struct named_init ni = {
5033 .number = 34,
5034 .name = L"Test wide string",
5035 .average = 543.34343,
5036 };
5037
5038 ni.number = 58;
5039
5040 int dynamic_array[ni.number];
5041 dynamic_array[ni.number - 1] = 543;
5042
5043 // work around unused variable warnings
5044 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5045 || dynamic_array[ni.number - 1] != 543);
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5052 do
5053 CC="$ac_save_CC $ac_arg"
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 ac_cv_prog_cc_c99=$ac_arg
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext
5058 test "x$ac_cv_prog_cc_c99" != "xno" && break
5059 done
5060 rm -f conftest.$ac_ext
5061 CC=$ac_save_CC
5062
5063 fi
5064 # AC_CACHE_VAL
5065 case "x$ac_cv_prog_cc_c99" in
5066 x)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5068 $as_echo "none needed" >&6; } ;;
5069 xno)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5071 $as_echo "unsupported" >&6; } ;;
5072 *)
5073 CC="$CC $ac_cv_prog_cc_c99"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5075 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5076 esac
5077 if test "x$ac_cv_prog_cc_c99" != xno; then :
5078
5079 fi
5080
5081
5082 ac_ext=cpp
5083 ac_cpp='$CXXCPP $CPPFLAGS'
5084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087 if test -z "$CXX"; then
5088 if test -n "$CCC"; then
5089 CXX=$CCC
5090 else
5091 if test -n "$ac_tool_prefix"; then
5092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5093 do
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_CXX+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$CXX"; then
5102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 CXX=$ac_cv_prog_CXX
5122 if test -n "$CXX"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5124 $as_echo "$CXX" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130
5131 test -n "$CXX" && break
5132 done
5133 fi
5134 if test -z "$CXX"; then
5135 ac_ct_CXX=$CXX
5136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5137 do
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$ac_ct_CXX"; then
5146 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_CXX="$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5166 if test -n "$ac_ct_CXX"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5168 $as_echo "$ac_ct_CXX" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174
5175 test -n "$ac_ct_CXX" && break
5176 done
5177
5178 if test "x$ac_ct_CXX" = x; then
5179 CXX="g++"
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182 yes:)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187 CXX=$ac_ct_CXX
5188 fi
5189 fi
5190
5191 fi
5192 fi
5193 # Provide some information about the compiler.
5194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5195 set X $ac_compile
5196 ac_compiler=$2
5197 for ac_option in --version -v -V -qversion; do
5198 { { ac_try="$ac_compiler $ac_option >&5"
5199 case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5204 $as_echo "$ac_try_echo"; } >&5
5205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5206 ac_status=$?
5207 if test -s conftest.err; then
5208 sed '10a\
5209 ... rest of stderr output deleted ...
5210 10q' conftest.err >conftest.er1
5211 cat conftest.er1 >&5
5212 fi
5213 rm -f conftest.er1 conftest.err
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }
5216 done
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5219 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5220 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225
5226 int
5227 main ()
5228 {
5229 #ifndef __GNUC__
5230 choke me
5231 #endif
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_cxx_try_compile "$LINENO"; then :
5238 ac_compiler_gnu=yes
5239 else
5240 ac_compiler_gnu=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5244
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5247 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5248 if test $ac_compiler_gnu = yes; then
5249 GXX=yes
5250 else
5251 GXX=
5252 fi
5253 ac_test_CXXFLAGS=${CXXFLAGS+set}
5254 ac_save_CXXFLAGS=$CXXFLAGS
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5256 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5257 if ${ac_cv_prog_cxx_g+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5261 ac_cxx_werror_flag=yes
5262 ac_cv_prog_cxx_g=no
5263 CXXFLAGS="-g"
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266
5267 int
5268 main ()
5269 {
5270
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_cxx_try_compile "$LINENO"; then :
5276 ac_cv_prog_cxx_g=yes
5277 else
5278 CXXFLAGS=""
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281
5282 int
5283 main ()
5284 {
5285
5286 ;
5287 return 0;
5288 }
5289 _ACEOF
5290 if ac_fn_cxx_try_compile "$LINENO"; then :
5291
5292 else
5293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5294 CXXFLAGS="-g"
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297
5298 int
5299 main ()
5300 {
5301
5302 ;
5303 return 0;
5304 }
5305 _ACEOF
5306 if ac_fn_cxx_try_compile "$LINENO"; then :
5307 ac_cv_prog_cxx_g=yes
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5317 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5318 if test "$ac_test_CXXFLAGS" = set; then
5319 CXXFLAGS=$ac_save_CXXFLAGS
5320 elif test $ac_cv_prog_cxx_g = yes; then
5321 if test "$GXX" = yes; then
5322 CXXFLAGS="-g -O2"
5323 else
5324 CXXFLAGS="-g"
5325 fi
5326 else
5327 if test "$GXX" = yes; then
5328 CXXFLAGS="-O2"
5329 else
5330 CXXFLAGS=
5331 fi
5332 fi
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338
5339
5340 # We must set the default linker to the linker used by gcc for the correct
5341 # operation of libtool. If LD is not defined and we are using gcc, try to
5342 # set the LD default to the ld used by gcc.
5343 if test -z "$LD"; then
5344 if test "$GCC" = yes; then
5345 case $build in
5346 *-*-mingw*)
5347 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5348 *)
5349 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5350 esac
5351 case $gcc_prog_ld in
5352 # Accept absolute paths.
5353 [\\/]* | [A-Za-z]:[\\/]*)
5354 LD="$gcc_prog_ld" ;;
5355 esac
5356 fi
5357 fi
5358
5359 # Check whether -static-libstdc++ -static-libgcc is supported.
5360 have_static_libs=no
5361 if test "$GCC" = yes; then
5362 saved_LDFLAGS="$LDFLAGS"
5363
5364 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5366 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5367 ac_ext=cpp
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372
5373
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5378 #error -static-libstdc++ not implemented
5379 #endif
5380 int main() {}
5381 _ACEOF
5382 if ac_fn_cxx_try_link "$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }; have_static_libs=yes
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext \
5390 conftest$ac_exeext conftest.$ac_ext
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398 LDFLAGS="$saved_LDFLAGS"
5399 fi
5400
5401
5402
5403
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_GNATBIND+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$GNATBIND"; then
5413 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 GNATBIND=$ac_cv_prog_GNATBIND
5433 if test -n "$GNATBIND"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5435 $as_echo "$GNATBIND" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 fi
5443 if test -z "$ac_cv_prog_GNATBIND"; then
5444 ac_ct_GNATBIND=$GNATBIND
5445 # Extract the first word of "gnatbind", so it can be a program name with args.
5446 set dummy gnatbind; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$ac_ct_GNATBIND"; then
5453 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466 done
5467 done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5473 if test -n "$ac_ct_GNATBIND"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5475 $as_echo "$ac_ct_GNATBIND" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481 if test "x$ac_ct_GNATBIND" = x; then
5482 GNATBIND="no"
5483 else
5484 case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490 GNATBIND=$ac_ct_GNATBIND
5491 fi
5492 else
5493 GNATBIND="$ac_cv_prog_GNATBIND"
5494 fi
5495
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_GNATMAKE+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$GNATMAKE"; then
5505 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 GNATMAKE=$ac_cv_prog_GNATMAKE
5525 if test -n "$GNATMAKE"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5527 $as_echo "$GNATMAKE" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 fi
5535 if test -z "$ac_cv_prog_GNATMAKE"; then
5536 ac_ct_GNATMAKE=$GNATMAKE
5537 # Extract the first word of "gnatmake", so it can be a program name with args.
5538 set dummy gnatmake; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$ac_ct_GNATMAKE"; then
5545 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5565 if test -n "$ac_ct_GNATMAKE"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5567 $as_echo "$ac_ct_GNATMAKE" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573 if test "x$ac_ct_GNATMAKE" = x; then
5574 GNATMAKE="no"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 GNATMAKE=$ac_ct_GNATMAKE
5583 fi
5584 else
5585 GNATMAKE="$ac_cv_prog_GNATMAKE"
5586 fi
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5589 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5590 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat >conftest.adb <<EOF
5594 pragma Warnings (Off);
5595 with System.CRTL;
5596 pragma Warnings (On);
5597 use type System.CRTL.int64;
5598 procedure conftest is begin null; end conftest;
5599 EOF
5600 acx_cv_cc_gcc_supports_ada=no
5601 # There is a bug in old released versions of GCC which causes the
5602 # driver to exit successfully when the appropriate language module
5603 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5604 # Therefore we must check for the error message as well as an
5605 # unsuccessful exit.
5606 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5607 # given a .adb file, but produce no object file. So we must check
5608 # if an object file was really produced to guard against this.
5609 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5610 if test x"$errors" = x && test -f conftest.$ac_objext; then
5611 acx_cv_cc_gcc_supports_ada=yes
5612 fi
5613 rm -f conftest.*
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5616 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5617
5618 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5619 have_gnat=yes
5620 else
5621 have_gnat=no
5622 fi
5623
5624
5625
5626 if test -n "$ac_tool_prefix"; then
5627 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5628 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_GDC+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 if test -n "$GDC"; then
5635 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5647 fi
5648 done
5649 done
5650 IFS=$as_save_IFS
5651
5652 fi
5653 fi
5654 GDC=$ac_cv_prog_GDC
5655 if test -n "$GDC"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5657 $as_echo "$GDC" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5662
5663
5664 fi
5665 if test -z "$ac_cv_prog_GDC"; then
5666 ac_ct_GDC=$GDC
5667 # Extract the first word of "gdc", so it can be a program name with args.
5668 set dummy gdc; 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; }
5671 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if test -n "$ac_ct_GDC"; then
5675 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
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_ac_ct_GDC="gdc"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5695 if test -n "$ac_ct_GDC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5697 $as_echo "$ac_ct_GDC" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703 if test "x$ac_ct_GDC" = x; then
5704 GDC="no"
5705 else
5706 case $cross_compiling:$ac_tool_warned in
5707 yes:)
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned=yes ;;
5711 esac
5712 GDC=$ac_ct_GDC
5713 fi
5714 else
5715 GDC="$ac_cv_prog_GDC"
5716 fi
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5719 $as_echo_n "checking whether the D compiler works... " >&6; }
5720 if ${acx_cv_d_compiler_works+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 cat >conftest.d <<EOF
5724 module conftest; int main() { return 0; }
5725 EOF
5726 acx_cv_d_compiler_works=no
5727 if test "x$GDC" != xno; then
5728 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5729 if test x"$errors" = x && test -f conftest.$ac_objext; then
5730 acx_cv_d_compiler_works=yes
5731 fi
5732 rm -f conftest.*
5733 fi
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5736 $as_echo "$acx_cv_d_compiler_works" >&6; }
5737 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5738 have_gdc=yes
5739 else
5740 have_gdc=no
5741 fi
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5744 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5745 if ${gcc_cv_prog_cmp_skip+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 echo abfoo >t1
5749 echo cdfoo >t2
5750 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5751 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5752 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5753 :
5754 else
5755 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5756 fi
5757 fi
5758 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5759 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5760 :
5761 else
5762 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5763 fi
5764 fi
5765 rm t1 t2
5766
5767 fi
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5769 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5770 do_compare="$gcc_cv_prog_cmp_skip"
5771
5772
5773
5774 # Check whether --enable-bootstrap was given.
5775 if test "${enable_bootstrap+set}" = set; then :
5776 enableval=$enable_bootstrap;
5777 else
5778 enable_bootstrap=default
5779 fi
5780
5781
5782 # Issue errors and warnings for invalid/strange bootstrap combinations.
5783 if test -r $srcdir/gcc/configure; then
5784 have_compiler=yes
5785 else
5786 have_compiler=no
5787 fi
5788
5789 case "$have_compiler:$host:$target:$enable_bootstrap" in
5790 *:*:*:no) ;;
5791
5792 # Default behavior. Enable bootstrap if we have a compiler
5793 # and we are in a native configuration.
5794 yes:$build:$build:default)
5795 enable_bootstrap=yes ;;
5796
5797 *:*:*:default)
5798 enable_bootstrap=no ;;
5799
5800 # We have a compiler and we are in a native configuration, bootstrap is ok
5801 yes:$build:$build:yes)
5802 ;;
5803
5804 # Other configurations, but we have a compiler. Assume the user knows
5805 # what he's doing.
5806 yes:*:*:yes)
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5808 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5809 ;;
5810
5811 # No compiler: if they passed --enable-bootstrap explicitly, fail
5812 no:*:*:yes)
5813 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5814
5815 # Fail if wrong command line
5816 *)
5817 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5818 ;;
5819 esac
5820
5821 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5822 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5823 # require C++11 (or higher).
5824 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5825 CXX="$CXX -std=c++11"
5826 elif test "$have_compiler" = yes; then
5827 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5828 ac_ext=cpp
5829 ac_cpp='$CXXCPP $CPPFLAGS'
5830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5833 ac_success=no
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5836 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5837 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842
5843
5844 // If the compiler admits that it is not ready for C++11, why torture it?
5845 // Hopefully, this will speed up the test.
5846
5847 #ifndef __cplusplus
5848
5849 #error "This is not a C++ compiler"
5850
5851 #elif __cplusplus < 201103L
5852
5853 #error "This is not a C++11 compiler"
5854
5855 #else
5856
5857 namespace cxx11
5858 {
5859
5860 namespace test_static_assert
5861 {
5862
5863 template <typename T>
5864 struct check
5865 {
5866 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5867 };
5868
5869 }
5870
5871 namespace test_final_override
5872 {
5873
5874 struct Base
5875 {
5876 virtual ~Base() {}
5877 virtual void f() {}
5878 };
5879
5880 struct Derived : public Base
5881 {
5882 virtual ~Derived() override {}
5883 virtual void f() override {}
5884 };
5885
5886 }
5887
5888 namespace test_double_right_angle_brackets
5889 {
5890
5891 template < typename T >
5892 struct check {};
5893
5894 typedef check<void> single_type;
5895 typedef check<check<void>> double_type;
5896 typedef check<check<check<void>>> triple_type;
5897 typedef check<check<check<check<void>>>> quadruple_type;
5898
5899 }
5900
5901 namespace test_decltype
5902 {
5903
5904 int
5905 f()
5906 {
5907 int a = 1;
5908 decltype(a) b = 2;
5909 return a + b;
5910 }
5911
5912 }
5913
5914 namespace test_type_deduction
5915 {
5916
5917 template < typename T1, typename T2 >
5918 struct is_same
5919 {
5920 static const bool value = false;
5921 };
5922
5923 template < typename T >
5924 struct is_same<T, T>
5925 {
5926 static const bool value = true;
5927 };
5928
5929 template < typename T1, typename T2 >
5930 auto
5931 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5932 {
5933 return a1 + a2;
5934 }
5935
5936 int
5937 test(const int c, volatile int v)
5938 {
5939 static_assert(is_same<int, decltype(0)>::value == true, "");
5940 static_assert(is_same<int, decltype(c)>::value == false, "");
5941 static_assert(is_same<int, decltype(v)>::value == false, "");
5942 auto ac = c;
5943 auto av = v;
5944 auto sumi = ac + av + 'x';
5945 auto sumf = ac + av + 1.0;
5946 static_assert(is_same<int, decltype(ac)>::value == true, "");
5947 static_assert(is_same<int, decltype(av)>::value == true, "");
5948 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5949 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5950 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5951 return (sumf > 0.0) ? sumi : add(c, v);
5952 }
5953
5954 }
5955
5956 namespace test_noexcept
5957 {
5958
5959 int f() { return 0; }
5960 int g() noexcept { return 0; }
5961
5962 static_assert(noexcept(f()) == false, "");
5963 static_assert(noexcept(g()) == true, "");
5964
5965 }
5966
5967 namespace test_constexpr
5968 {
5969
5970 template < typename CharT >
5971 unsigned long constexpr
5972 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5973 {
5974 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5975 }
5976
5977 template < typename CharT >
5978 unsigned long constexpr
5979 strlen_c(const CharT *const s) noexcept
5980 {
5981 return strlen_c_r(s, 0UL);
5982 }
5983
5984 static_assert(strlen_c("") == 0UL, "");
5985 static_assert(strlen_c("1") == 1UL, "");
5986 static_assert(strlen_c("example") == 7UL, "");
5987 static_assert(strlen_c("another\0example") == 7UL, "");
5988
5989 }
5990
5991 namespace test_rvalue_references
5992 {
5993
5994 template < int N >
5995 struct answer
5996 {
5997 static constexpr int value = N;
5998 };
5999
6000 answer<1> f(int&) { return answer<1>(); }
6001 answer<2> f(const int&) { return answer<2>(); }
6002 answer<3> f(int&&) { return answer<3>(); }
6003
6004 void
6005 test()
6006 {
6007 int i = 0;
6008 const int c = 0;
6009 static_assert(decltype(f(i))::value == 1, "");
6010 static_assert(decltype(f(c))::value == 2, "");
6011 static_assert(decltype(f(0))::value == 3, "");
6012 }
6013
6014 }
6015
6016 namespace test_uniform_initialization
6017 {
6018
6019 struct test
6020 {
6021 static const int zero {};
6022 static const int one {1};
6023 };
6024
6025 static_assert(test::zero == 0, "");
6026 static_assert(test::one == 1, "");
6027
6028 }
6029
6030 namespace test_lambdas
6031 {
6032
6033 void
6034 test1()
6035 {
6036 auto lambda1 = [](){};
6037 auto lambda2 = lambda1;
6038 lambda1();
6039 lambda2();
6040 }
6041
6042 int
6043 test2()
6044 {
6045 auto a = [](int i, int j){ return i + j; }(1, 2);
6046 auto b = []() -> int { return '0'; }();
6047 auto c = [=](){ return a + b; }();
6048 auto d = [&](){ return c; }();
6049 auto e = [a, &b](int x) mutable {
6050 const auto identity = [](int y){ return y; };
6051 for (auto i = 0; i < a; ++i)
6052 a += b--;
6053 return x + identity(a + b);
6054 }(0);
6055 return a + b + c + d + e;
6056 }
6057
6058 int
6059 test3()
6060 {
6061 const auto nullary = [](){ return 0; };
6062 const auto unary = [](int x){ return x; };
6063 using nullary_t = decltype(nullary);
6064 using unary_t = decltype(unary);
6065 const auto higher1st = [](nullary_t f){ return f(); };
6066 const auto higher2nd = [unary](nullary_t f1){
6067 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6068 };
6069 return higher1st(nullary) + higher2nd(nullary)(unary);
6070 }
6071
6072 }
6073
6074 namespace test_variadic_templates
6075 {
6076
6077 template <int...>
6078 struct sum;
6079
6080 template <int N0, int... N1toN>
6081 struct sum<N0, N1toN...>
6082 {
6083 static constexpr auto value = N0 + sum<N1toN...>::value;
6084 };
6085
6086 template <>
6087 struct sum<>
6088 {
6089 static constexpr auto value = 0;
6090 };
6091
6092 static_assert(sum<>::value == 0, "");
6093 static_assert(sum<1>::value == 1, "");
6094 static_assert(sum<23>::value == 23, "");
6095 static_assert(sum<1, 2>::value == 3, "");
6096 static_assert(sum<5, 5, 11>::value == 21, "");
6097 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6098
6099 }
6100
6101 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6102 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6103 // because of this.
6104 namespace test_template_alias_sfinae
6105 {
6106
6107 struct foo {};
6108
6109 template<typename T>
6110 using member = typename T::member_type;
6111
6112 template<typename T>
6113 void func(...) {}
6114
6115 template<typename T>
6116 void func(member<T>*) {}
6117
6118 void test();
6119
6120 void test() { func<foo>(0); }
6121
6122 }
6123
6124 } // namespace cxx11
6125
6126 #endif // __cplusplus >= 201103L
6127
6128
6129
6130 _ACEOF
6131 if ac_fn_cxx_try_compile "$LINENO"; then :
6132 ax_cv_cxx_compile_cxx11=yes
6133 else
6134 ax_cv_cxx_compile_cxx11=no
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6139 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6140 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6141 ac_success=yes
6142 fi
6143
6144 if test x$ac_success = xno; then
6145 for alternative in ${ax_cxx_compile_alternatives}; do
6146 switch="-std=gnu++${alternative}"
6147 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6149 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6150 if eval \${$cachevar+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 ac_save_CXX="$CXX"
6154 CXX="$CXX $switch"
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157
6158
6159 // If the compiler admits that it is not ready for C++11, why torture it?
6160 // Hopefully, this will speed up the test.
6161
6162 #ifndef __cplusplus
6163
6164 #error "This is not a C++ compiler"
6165
6166 #elif __cplusplus < 201103L
6167
6168 #error "This is not a C++11 compiler"
6169
6170 #else
6171
6172 namespace cxx11
6173 {
6174
6175 namespace test_static_assert
6176 {
6177
6178 template <typename T>
6179 struct check
6180 {
6181 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6182 };
6183
6184 }
6185
6186 namespace test_final_override
6187 {
6188
6189 struct Base
6190 {
6191 virtual ~Base() {}
6192 virtual void f() {}
6193 };
6194
6195 struct Derived : public Base
6196 {
6197 virtual ~Derived() override {}
6198 virtual void f() override {}
6199 };
6200
6201 }
6202
6203 namespace test_double_right_angle_brackets
6204 {
6205
6206 template < typename T >
6207 struct check {};
6208
6209 typedef check<void> single_type;
6210 typedef check<check<void>> double_type;
6211 typedef check<check<check<void>>> triple_type;
6212 typedef check<check<check<check<void>>>> quadruple_type;
6213
6214 }
6215
6216 namespace test_decltype
6217 {
6218
6219 int
6220 f()
6221 {
6222 int a = 1;
6223 decltype(a) b = 2;
6224 return a + b;
6225 }
6226
6227 }
6228
6229 namespace test_type_deduction
6230 {
6231
6232 template < typename T1, typename T2 >
6233 struct is_same
6234 {
6235 static const bool value = false;
6236 };
6237
6238 template < typename T >
6239 struct is_same<T, T>
6240 {
6241 static const bool value = true;
6242 };
6243
6244 template < typename T1, typename T2 >
6245 auto
6246 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6247 {
6248 return a1 + a2;
6249 }
6250
6251 int
6252 test(const int c, volatile int v)
6253 {
6254 static_assert(is_same<int, decltype(0)>::value == true, "");
6255 static_assert(is_same<int, decltype(c)>::value == false, "");
6256 static_assert(is_same<int, decltype(v)>::value == false, "");
6257 auto ac = c;
6258 auto av = v;
6259 auto sumi = ac + av + 'x';
6260 auto sumf = ac + av + 1.0;
6261 static_assert(is_same<int, decltype(ac)>::value == true, "");
6262 static_assert(is_same<int, decltype(av)>::value == true, "");
6263 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6264 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6265 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6266 return (sumf > 0.0) ? sumi : add(c, v);
6267 }
6268
6269 }
6270
6271 namespace test_noexcept
6272 {
6273
6274 int f() { return 0; }
6275 int g() noexcept { return 0; }
6276
6277 static_assert(noexcept(f()) == false, "");
6278 static_assert(noexcept(g()) == true, "");
6279
6280 }
6281
6282 namespace test_constexpr
6283 {
6284
6285 template < typename CharT >
6286 unsigned long constexpr
6287 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6288 {
6289 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6290 }
6291
6292 template < typename CharT >
6293 unsigned long constexpr
6294 strlen_c(const CharT *const s) noexcept
6295 {
6296 return strlen_c_r(s, 0UL);
6297 }
6298
6299 static_assert(strlen_c("") == 0UL, "");
6300 static_assert(strlen_c("1") == 1UL, "");
6301 static_assert(strlen_c("example") == 7UL, "");
6302 static_assert(strlen_c("another\0example") == 7UL, "");
6303
6304 }
6305
6306 namespace test_rvalue_references
6307 {
6308
6309 template < int N >
6310 struct answer
6311 {
6312 static constexpr int value = N;
6313 };
6314
6315 answer<1> f(int&) { return answer<1>(); }
6316 answer<2> f(const int&) { return answer<2>(); }
6317 answer<3> f(int&&) { return answer<3>(); }
6318
6319 void
6320 test()
6321 {
6322 int i = 0;
6323 const int c = 0;
6324 static_assert(decltype(f(i))::value == 1, "");
6325 static_assert(decltype(f(c))::value == 2, "");
6326 static_assert(decltype(f(0))::value == 3, "");
6327 }
6328
6329 }
6330
6331 namespace test_uniform_initialization
6332 {
6333
6334 struct test
6335 {
6336 static const int zero {};
6337 static const int one {1};
6338 };
6339
6340 static_assert(test::zero == 0, "");
6341 static_assert(test::one == 1, "");
6342
6343 }
6344
6345 namespace test_lambdas
6346 {
6347
6348 void
6349 test1()
6350 {
6351 auto lambda1 = [](){};
6352 auto lambda2 = lambda1;
6353 lambda1();
6354 lambda2();
6355 }
6356
6357 int
6358 test2()
6359 {
6360 auto a = [](int i, int j){ return i + j; }(1, 2);
6361 auto b = []() -> int { return '0'; }();
6362 auto c = [=](){ return a + b; }();
6363 auto d = [&](){ return c; }();
6364 auto e = [a, &b](int x) mutable {
6365 const auto identity = [](int y){ return y; };
6366 for (auto i = 0; i < a; ++i)
6367 a += b--;
6368 return x + identity(a + b);
6369 }(0);
6370 return a + b + c + d + e;
6371 }
6372
6373 int
6374 test3()
6375 {
6376 const auto nullary = [](){ return 0; };
6377 const auto unary = [](int x){ return x; };
6378 using nullary_t = decltype(nullary);
6379 using unary_t = decltype(unary);
6380 const auto higher1st = [](nullary_t f){ return f(); };
6381 const auto higher2nd = [unary](nullary_t f1){
6382 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6383 };
6384 return higher1st(nullary) + higher2nd(nullary)(unary);
6385 }
6386
6387 }
6388
6389 namespace test_variadic_templates
6390 {
6391
6392 template <int...>
6393 struct sum;
6394
6395 template <int N0, int... N1toN>
6396 struct sum<N0, N1toN...>
6397 {
6398 static constexpr auto value = N0 + sum<N1toN...>::value;
6399 };
6400
6401 template <>
6402 struct sum<>
6403 {
6404 static constexpr auto value = 0;
6405 };
6406
6407 static_assert(sum<>::value == 0, "");
6408 static_assert(sum<1>::value == 1, "");
6409 static_assert(sum<23>::value == 23, "");
6410 static_assert(sum<1, 2>::value == 3, "");
6411 static_assert(sum<5, 5, 11>::value == 21, "");
6412 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6413
6414 }
6415
6416 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6417 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6418 // because of this.
6419 namespace test_template_alias_sfinae
6420 {
6421
6422 struct foo {};
6423
6424 template<typename T>
6425 using member = typename T::member_type;
6426
6427 template<typename T>
6428 void func(...) {}
6429
6430 template<typename T>
6431 void func(member<T>*) {}
6432
6433 void test();
6434
6435 void test() { func<foo>(0); }
6436
6437 }
6438
6439 } // namespace cxx11
6440
6441 #endif // __cplusplus >= 201103L
6442
6443
6444
6445 _ACEOF
6446 if ac_fn_cxx_try_compile "$LINENO"; then :
6447 eval $cachevar=yes
6448 else
6449 eval $cachevar=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 CXX="$ac_save_CXX"
6453 fi
6454 eval ac_res=\$$cachevar
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6456 $as_echo "$ac_res" >&6; }
6457 if eval test x\$$cachevar = xyes; then
6458 CXX="$CXX $switch"
6459 if test -n "$CXXCPP" ; then
6460 CXXCPP="$CXXCPP $switch"
6461 fi
6462 ac_success=yes
6463 break
6464 fi
6465 done
6466 fi
6467
6468 if test x$ac_success = xno; then
6469 for alternative in ${ax_cxx_compile_alternatives}; do
6470 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6471 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6473 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6474 if eval \${$cachevar+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 ac_save_CXX="$CXX"
6478 CXX="$CXX $switch"
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481
6482
6483 // If the compiler admits that it is not ready for C++11, why torture it?
6484 // Hopefully, this will speed up the test.
6485
6486 #ifndef __cplusplus
6487
6488 #error "This is not a C++ compiler"
6489
6490 #elif __cplusplus < 201103L
6491
6492 #error "This is not a C++11 compiler"
6493
6494 #else
6495
6496 namespace cxx11
6497 {
6498
6499 namespace test_static_assert
6500 {
6501
6502 template <typename T>
6503 struct check
6504 {
6505 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6506 };
6507
6508 }
6509
6510 namespace test_final_override
6511 {
6512
6513 struct Base
6514 {
6515 virtual ~Base() {}
6516 virtual void f() {}
6517 };
6518
6519 struct Derived : public Base
6520 {
6521 virtual ~Derived() override {}
6522 virtual void f() override {}
6523 };
6524
6525 }
6526
6527 namespace test_double_right_angle_brackets
6528 {
6529
6530 template < typename T >
6531 struct check {};
6532
6533 typedef check<void> single_type;
6534 typedef check<check<void>> double_type;
6535 typedef check<check<check<void>>> triple_type;
6536 typedef check<check<check<check<void>>>> quadruple_type;
6537
6538 }
6539
6540 namespace test_decltype
6541 {
6542
6543 int
6544 f()
6545 {
6546 int a = 1;
6547 decltype(a) b = 2;
6548 return a + b;
6549 }
6550
6551 }
6552
6553 namespace test_type_deduction
6554 {
6555
6556 template < typename T1, typename T2 >
6557 struct is_same
6558 {
6559 static const bool value = false;
6560 };
6561
6562 template < typename T >
6563 struct is_same<T, T>
6564 {
6565 static const bool value = true;
6566 };
6567
6568 template < typename T1, typename T2 >
6569 auto
6570 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6571 {
6572 return a1 + a2;
6573 }
6574
6575 int
6576 test(const int c, volatile int v)
6577 {
6578 static_assert(is_same<int, decltype(0)>::value == true, "");
6579 static_assert(is_same<int, decltype(c)>::value == false, "");
6580 static_assert(is_same<int, decltype(v)>::value == false, "");
6581 auto ac = c;
6582 auto av = v;
6583 auto sumi = ac + av + 'x';
6584 auto sumf = ac + av + 1.0;
6585 static_assert(is_same<int, decltype(ac)>::value == true, "");
6586 static_assert(is_same<int, decltype(av)>::value == true, "");
6587 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6588 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6589 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6590 return (sumf > 0.0) ? sumi : add(c, v);
6591 }
6592
6593 }
6594
6595 namespace test_noexcept
6596 {
6597
6598 int f() { return 0; }
6599 int g() noexcept { return 0; }
6600
6601 static_assert(noexcept(f()) == false, "");
6602 static_assert(noexcept(g()) == true, "");
6603
6604 }
6605
6606 namespace test_constexpr
6607 {
6608
6609 template < typename CharT >
6610 unsigned long constexpr
6611 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6612 {
6613 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6614 }
6615
6616 template < typename CharT >
6617 unsigned long constexpr
6618 strlen_c(const CharT *const s) noexcept
6619 {
6620 return strlen_c_r(s, 0UL);
6621 }
6622
6623 static_assert(strlen_c("") == 0UL, "");
6624 static_assert(strlen_c("1") == 1UL, "");
6625 static_assert(strlen_c("example") == 7UL, "");
6626 static_assert(strlen_c("another\0example") == 7UL, "");
6627
6628 }
6629
6630 namespace test_rvalue_references
6631 {
6632
6633 template < int N >
6634 struct answer
6635 {
6636 static constexpr int value = N;
6637 };
6638
6639 answer<1> f(int&) { return answer<1>(); }
6640 answer<2> f(const int&) { return answer<2>(); }
6641 answer<3> f(int&&) { return answer<3>(); }
6642
6643 void
6644 test()
6645 {
6646 int i = 0;
6647 const int c = 0;
6648 static_assert(decltype(f(i))::value == 1, "");
6649 static_assert(decltype(f(c))::value == 2, "");
6650 static_assert(decltype(f(0))::value == 3, "");
6651 }
6652
6653 }
6654
6655 namespace test_uniform_initialization
6656 {
6657
6658 struct test
6659 {
6660 static const int zero {};
6661 static const int one {1};
6662 };
6663
6664 static_assert(test::zero == 0, "");
6665 static_assert(test::one == 1, "");
6666
6667 }
6668
6669 namespace test_lambdas
6670 {
6671
6672 void
6673 test1()
6674 {
6675 auto lambda1 = [](){};
6676 auto lambda2 = lambda1;
6677 lambda1();
6678 lambda2();
6679 }
6680
6681 int
6682 test2()
6683 {
6684 auto a = [](int i, int j){ return i + j; }(1, 2);
6685 auto b = []() -> int { return '0'; }();
6686 auto c = [=](){ return a + b; }();
6687 auto d = [&](){ return c; }();
6688 auto e = [a, &b](int x) mutable {
6689 const auto identity = [](int y){ return y; };
6690 for (auto i = 0; i < a; ++i)
6691 a += b--;
6692 return x + identity(a + b);
6693 }(0);
6694 return a + b + c + d + e;
6695 }
6696
6697 int
6698 test3()
6699 {
6700 const auto nullary = [](){ return 0; };
6701 const auto unary = [](int x){ return x; };
6702 using nullary_t = decltype(nullary);
6703 using unary_t = decltype(unary);
6704 const auto higher1st = [](nullary_t f){ return f(); };
6705 const auto higher2nd = [unary](nullary_t f1){
6706 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6707 };
6708 return higher1st(nullary) + higher2nd(nullary)(unary);
6709 }
6710
6711 }
6712
6713 namespace test_variadic_templates
6714 {
6715
6716 template <int...>
6717 struct sum;
6718
6719 template <int N0, int... N1toN>
6720 struct sum<N0, N1toN...>
6721 {
6722 static constexpr auto value = N0 + sum<N1toN...>::value;
6723 };
6724
6725 template <>
6726 struct sum<>
6727 {
6728 static constexpr auto value = 0;
6729 };
6730
6731 static_assert(sum<>::value == 0, "");
6732 static_assert(sum<1>::value == 1, "");
6733 static_assert(sum<23>::value == 23, "");
6734 static_assert(sum<1, 2>::value == 3, "");
6735 static_assert(sum<5, 5, 11>::value == 21, "");
6736 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6737
6738 }
6739
6740 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6741 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6742 // because of this.
6743 namespace test_template_alias_sfinae
6744 {
6745
6746 struct foo {};
6747
6748 template<typename T>
6749 using member = typename T::member_type;
6750
6751 template<typename T>
6752 void func(...) {}
6753
6754 template<typename T>
6755 void func(member<T>*) {}
6756
6757 void test();
6758
6759 void test() { func<foo>(0); }
6760
6761 }
6762
6763 } // namespace cxx11
6764
6765 #endif // __cplusplus >= 201103L
6766
6767
6768
6769 _ACEOF
6770 if ac_fn_cxx_try_compile "$LINENO"; then :
6771 eval $cachevar=yes
6772 else
6773 eval $cachevar=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 CXX="$ac_save_CXX"
6777 fi
6778 eval ac_res=\$$cachevar
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6780 $as_echo "$ac_res" >&6; }
6781 if eval test x\$$cachevar = xyes; then
6782 CXX="$CXX $switch"
6783 if test -n "$CXXCPP" ; then
6784 CXXCPP="$CXXCPP $switch"
6785 fi
6786 ac_success=yes
6787 break
6788 fi
6789 done
6790 if test x$ac_success = xyes; then
6791 break
6792 fi
6793 done
6794 fi
6795
6796 ac_ext=c
6797 ac_cpp='$CPP $CPPFLAGS'
6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6801
6802 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6803 if test x$ac_success = xno; then
6804 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6805 fi
6806 fi
6807 if test x$ac_success = xno; then
6808 HAVE_CXX11=0
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6810 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6811 else
6812 HAVE_CXX11=1
6813
6814 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6815
6816 fi
6817
6818
6819
6820 if test "${build}" != "${host}"; then
6821 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6822 ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 ac_success=no
6828 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6829 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6830 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6831 CXX="$CXX_FOR_BUILD"
6832 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6833 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6835 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6836 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841
6842
6843 // If the compiler admits that it is not ready for C++11, why torture it?
6844 // Hopefully, this will speed up the test.
6845
6846 #ifndef __cplusplus
6847
6848 #error "This is not a C++ compiler"
6849
6850 #elif __cplusplus < 201103L
6851
6852 #error "This is not a C++11 compiler"
6853
6854 #else
6855
6856 namespace cxx11
6857 {
6858
6859 namespace test_static_assert
6860 {
6861
6862 template <typename T>
6863 struct check
6864 {
6865 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6866 };
6867
6868 }
6869
6870 namespace test_final_override
6871 {
6872
6873 struct Base
6874 {
6875 virtual ~Base() {}
6876 virtual void f() {}
6877 };
6878
6879 struct Derived : public Base
6880 {
6881 virtual ~Derived() override {}
6882 virtual void f() override {}
6883 };
6884
6885 }
6886
6887 namespace test_double_right_angle_brackets
6888 {
6889
6890 template < typename T >
6891 struct check {};
6892
6893 typedef check<void> single_type;
6894 typedef check<check<void>> double_type;
6895 typedef check<check<check<void>>> triple_type;
6896 typedef check<check<check<check<void>>>> quadruple_type;
6897
6898 }
6899
6900 namespace test_decltype
6901 {
6902
6903 int
6904 f()
6905 {
6906 int a = 1;
6907 decltype(a) b = 2;
6908 return a + b;
6909 }
6910
6911 }
6912
6913 namespace test_type_deduction
6914 {
6915
6916 template < typename T1, typename T2 >
6917 struct is_same
6918 {
6919 static const bool value = false;
6920 };
6921
6922 template < typename T >
6923 struct is_same<T, T>
6924 {
6925 static const bool value = true;
6926 };
6927
6928 template < typename T1, typename T2 >
6929 auto
6930 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6931 {
6932 return a1 + a2;
6933 }
6934
6935 int
6936 test(const int c, volatile int v)
6937 {
6938 static_assert(is_same<int, decltype(0)>::value == true, "");
6939 static_assert(is_same<int, decltype(c)>::value == false, "");
6940 static_assert(is_same<int, decltype(v)>::value == false, "");
6941 auto ac = c;
6942 auto av = v;
6943 auto sumi = ac + av + 'x';
6944 auto sumf = ac + av + 1.0;
6945 static_assert(is_same<int, decltype(ac)>::value == true, "");
6946 static_assert(is_same<int, decltype(av)>::value == true, "");
6947 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6949 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6950 return (sumf > 0.0) ? sumi : add(c, v);
6951 }
6952
6953 }
6954
6955 namespace test_noexcept
6956 {
6957
6958 int f() { return 0; }
6959 int g() noexcept { return 0; }
6960
6961 static_assert(noexcept(f()) == false, "");
6962 static_assert(noexcept(g()) == true, "");
6963
6964 }
6965
6966 namespace test_constexpr
6967 {
6968
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6972 {
6973 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6974 }
6975
6976 template < typename CharT >
6977 unsigned long constexpr
6978 strlen_c(const CharT *const s) noexcept
6979 {
6980 return strlen_c_r(s, 0UL);
6981 }
6982
6983 static_assert(strlen_c("") == 0UL, "");
6984 static_assert(strlen_c("1") == 1UL, "");
6985 static_assert(strlen_c("example") == 7UL, "");
6986 static_assert(strlen_c("another\0example") == 7UL, "");
6987
6988 }
6989
6990 namespace test_rvalue_references
6991 {
6992
6993 template < int N >
6994 struct answer
6995 {
6996 static constexpr int value = N;
6997 };
6998
6999 answer<1> f(int&) { return answer<1>(); }
7000 answer<2> f(const int&) { return answer<2>(); }
7001 answer<3> f(int&&) { return answer<3>(); }
7002
7003 void
7004 test()
7005 {
7006 int i = 0;
7007 const int c = 0;
7008 static_assert(decltype(f(i))::value == 1, "");
7009 static_assert(decltype(f(c))::value == 2, "");
7010 static_assert(decltype(f(0))::value == 3, "");
7011 }
7012
7013 }
7014
7015 namespace test_uniform_initialization
7016 {
7017
7018 struct test
7019 {
7020 static const int zero {};
7021 static const int one {1};
7022 };
7023
7024 static_assert(test::zero == 0, "");
7025 static_assert(test::one == 1, "");
7026
7027 }
7028
7029 namespace test_lambdas
7030 {
7031
7032 void
7033 test1()
7034 {
7035 auto lambda1 = [](){};
7036 auto lambda2 = lambda1;
7037 lambda1();
7038 lambda2();
7039 }
7040
7041 int
7042 test2()
7043 {
7044 auto a = [](int i, int j){ return i + j; }(1, 2);
7045 auto b = []() -> int { return '0'; }();
7046 auto c = [=](){ return a + b; }();
7047 auto d = [&](){ return c; }();
7048 auto e = [a, &b](int x) mutable {
7049 const auto identity = [](int y){ return y; };
7050 for (auto i = 0; i < a; ++i)
7051 a += b--;
7052 return x + identity(a + b);
7053 }(0);
7054 return a + b + c + d + e;
7055 }
7056
7057 int
7058 test3()
7059 {
7060 const auto nullary = [](){ return 0; };
7061 const auto unary = [](int x){ return x; };
7062 using nullary_t = decltype(nullary);
7063 using unary_t = decltype(unary);
7064 const auto higher1st = [](nullary_t f){ return f(); };
7065 const auto higher2nd = [unary](nullary_t f1){
7066 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7067 };
7068 return higher1st(nullary) + higher2nd(nullary)(unary);
7069 }
7070
7071 }
7072
7073 namespace test_variadic_templates
7074 {
7075
7076 template <int...>
7077 struct sum;
7078
7079 template <int N0, int... N1toN>
7080 struct sum<N0, N1toN...>
7081 {
7082 static constexpr auto value = N0 + sum<N1toN...>::value;
7083 };
7084
7085 template <>
7086 struct sum<>
7087 {
7088 static constexpr auto value = 0;
7089 };
7090
7091 static_assert(sum<>::value == 0, "");
7092 static_assert(sum<1>::value == 1, "");
7093 static_assert(sum<23>::value == 23, "");
7094 static_assert(sum<1, 2>::value == 3, "");
7095 static_assert(sum<5, 5, 11>::value == 21, "");
7096 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7097
7098 }
7099
7100 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7101 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7102 // because of this.
7103 namespace test_template_alias_sfinae
7104 {
7105
7106 struct foo {};
7107
7108 template<typename T>
7109 using member = typename T::member_type;
7110
7111 template<typename T>
7112 void func(...) {}
7113
7114 template<typename T>
7115 void func(member<T>*) {}
7116
7117 void test();
7118
7119 void test() { func<foo>(0); }
7120
7121 }
7122
7123 } // namespace cxx11
7124
7125 #endif // __cplusplus >= 201103L
7126
7127
7128
7129 _ACEOF
7130 if ac_fn_cxx_try_compile "$LINENO"; then :
7131 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7132 else
7133 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7138 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7139 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7140 ac_success=yes
7141 fi
7142
7143 if test x$ac_success = xno; then
7144 for alternative in ${ax_cxx_compile_alternatives}; do
7145 switch="-std=gnu++${alternative}"
7146 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7148 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7149 if eval \${$cachevar+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 ac_save_CXX="$CXX"
7153 CXX="$CXX $switch"
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156
7157
7158 // If the compiler admits that it is not ready for C++11, why torture it?
7159 // Hopefully, this will speed up the test.
7160
7161 #ifndef __cplusplus
7162
7163 #error "This is not a C++ compiler"
7164
7165 #elif __cplusplus < 201103L
7166
7167 #error "This is not a C++11 compiler"
7168
7169 #else
7170
7171 namespace cxx11
7172 {
7173
7174 namespace test_static_assert
7175 {
7176
7177 template <typename T>
7178 struct check
7179 {
7180 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7181 };
7182
7183 }
7184
7185 namespace test_final_override
7186 {
7187
7188 struct Base
7189 {
7190 virtual ~Base() {}
7191 virtual void f() {}
7192 };
7193
7194 struct Derived : public Base
7195 {
7196 virtual ~Derived() override {}
7197 virtual void f() override {}
7198 };
7199
7200 }
7201
7202 namespace test_double_right_angle_brackets
7203 {
7204
7205 template < typename T >
7206 struct check {};
7207
7208 typedef check<void> single_type;
7209 typedef check<check<void>> double_type;
7210 typedef check<check<check<void>>> triple_type;
7211 typedef check<check<check<check<void>>>> quadruple_type;
7212
7213 }
7214
7215 namespace test_decltype
7216 {
7217
7218 int
7219 f()
7220 {
7221 int a = 1;
7222 decltype(a) b = 2;
7223 return a + b;
7224 }
7225
7226 }
7227
7228 namespace test_type_deduction
7229 {
7230
7231 template < typename T1, typename T2 >
7232 struct is_same
7233 {
7234 static const bool value = false;
7235 };
7236
7237 template < typename T >
7238 struct is_same<T, T>
7239 {
7240 static const bool value = true;
7241 };
7242
7243 template < typename T1, typename T2 >
7244 auto
7245 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7246 {
7247 return a1 + a2;
7248 }
7249
7250 int
7251 test(const int c, volatile int v)
7252 {
7253 static_assert(is_same<int, decltype(0)>::value == true, "");
7254 static_assert(is_same<int, decltype(c)>::value == false, "");
7255 static_assert(is_same<int, decltype(v)>::value == false, "");
7256 auto ac = c;
7257 auto av = v;
7258 auto sumi = ac + av + 'x';
7259 auto sumf = ac + av + 1.0;
7260 static_assert(is_same<int, decltype(ac)>::value == true, "");
7261 static_assert(is_same<int, decltype(av)>::value == true, "");
7262 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7263 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7264 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7265 return (sumf > 0.0) ? sumi : add(c, v);
7266 }
7267
7268 }
7269
7270 namespace test_noexcept
7271 {
7272
7273 int f() { return 0; }
7274 int g() noexcept { return 0; }
7275
7276 static_assert(noexcept(f()) == false, "");
7277 static_assert(noexcept(g()) == true, "");
7278
7279 }
7280
7281 namespace test_constexpr
7282 {
7283
7284 template < typename CharT >
7285 unsigned long constexpr
7286 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7287 {
7288 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7289 }
7290
7291 template < typename CharT >
7292 unsigned long constexpr
7293 strlen_c(const CharT *const s) noexcept
7294 {
7295 return strlen_c_r(s, 0UL);
7296 }
7297
7298 static_assert(strlen_c("") == 0UL, "");
7299 static_assert(strlen_c("1") == 1UL, "");
7300 static_assert(strlen_c("example") == 7UL, "");
7301 static_assert(strlen_c("another\0example") == 7UL, "");
7302
7303 }
7304
7305 namespace test_rvalue_references
7306 {
7307
7308 template < int N >
7309 struct answer
7310 {
7311 static constexpr int value = N;
7312 };
7313
7314 answer<1> f(int&) { return answer<1>(); }
7315 answer<2> f(const int&) { return answer<2>(); }
7316 answer<3> f(int&&) { return answer<3>(); }
7317
7318 void
7319 test()
7320 {
7321 int i = 0;
7322 const int c = 0;
7323 static_assert(decltype(f(i))::value == 1, "");
7324 static_assert(decltype(f(c))::value == 2, "");
7325 static_assert(decltype(f(0))::value == 3, "");
7326 }
7327
7328 }
7329
7330 namespace test_uniform_initialization
7331 {
7332
7333 struct test
7334 {
7335 static const int zero {};
7336 static const int one {1};
7337 };
7338
7339 static_assert(test::zero == 0, "");
7340 static_assert(test::one == 1, "");
7341
7342 }
7343
7344 namespace test_lambdas
7345 {
7346
7347 void
7348 test1()
7349 {
7350 auto lambda1 = [](){};
7351 auto lambda2 = lambda1;
7352 lambda1();
7353 lambda2();
7354 }
7355
7356 int
7357 test2()
7358 {
7359 auto a = [](int i, int j){ return i + j; }(1, 2);
7360 auto b = []() -> int { return '0'; }();
7361 auto c = [=](){ return a + b; }();
7362 auto d = [&](){ return c; }();
7363 auto e = [a, &b](int x) mutable {
7364 const auto identity = [](int y){ return y; };
7365 for (auto i = 0; i < a; ++i)
7366 a += b--;
7367 return x + identity(a + b);
7368 }(0);
7369 return a + b + c + d + e;
7370 }
7371
7372 int
7373 test3()
7374 {
7375 const auto nullary = [](){ return 0; };
7376 const auto unary = [](int x){ return x; };
7377 using nullary_t = decltype(nullary);
7378 using unary_t = decltype(unary);
7379 const auto higher1st = [](nullary_t f){ return f(); };
7380 const auto higher2nd = [unary](nullary_t f1){
7381 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7382 };
7383 return higher1st(nullary) + higher2nd(nullary)(unary);
7384 }
7385
7386 }
7387
7388 namespace test_variadic_templates
7389 {
7390
7391 template <int...>
7392 struct sum;
7393
7394 template <int N0, int... N1toN>
7395 struct sum<N0, N1toN...>
7396 {
7397 static constexpr auto value = N0 + sum<N1toN...>::value;
7398 };
7399
7400 template <>
7401 struct sum<>
7402 {
7403 static constexpr auto value = 0;
7404 };
7405
7406 static_assert(sum<>::value == 0, "");
7407 static_assert(sum<1>::value == 1, "");
7408 static_assert(sum<23>::value == 23, "");
7409 static_assert(sum<1, 2>::value == 3, "");
7410 static_assert(sum<5, 5, 11>::value == 21, "");
7411 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7412
7413 }
7414
7415 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7416 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7417 // because of this.
7418 namespace test_template_alias_sfinae
7419 {
7420
7421 struct foo {};
7422
7423 template<typename T>
7424 using member = typename T::member_type;
7425
7426 template<typename T>
7427 void func(...) {}
7428
7429 template<typename T>
7430 void func(member<T>*) {}
7431
7432 void test();
7433
7434 void test() { func<foo>(0); }
7435
7436 }
7437
7438 } // namespace cxx11
7439
7440 #endif // __cplusplus >= 201103L
7441
7442
7443
7444 _ACEOF
7445 if ac_fn_cxx_try_compile "$LINENO"; then :
7446 eval $cachevar=yes
7447 else
7448 eval $cachevar=no
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 CXX="$ac_save_CXX"
7452 fi
7453 eval ac_res=\$$cachevar
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7455 $as_echo "$ac_res" >&6; }
7456 if eval test x\$$cachevar = xyes; then
7457 CXX="$CXX $switch"
7458 if test -n "$CXXCPP" ; then
7459 CXXCPP="$CXXCPP $switch"
7460 fi
7461 ac_success=yes
7462 break
7463 fi
7464 done
7465 fi
7466
7467 if test x$ac_success = xno; then
7468 for alternative in ${ax_cxx_compile_alternatives}; do
7469 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7470 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7472 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7473 if eval \${$cachevar+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 ac_save_CXX="$CXX"
7477 CXX="$CXX $switch"
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480
7481
7482 // If the compiler admits that it is not ready for C++11, why torture it?
7483 // Hopefully, this will speed up the test.
7484
7485 #ifndef __cplusplus
7486
7487 #error "This is not a C++ compiler"
7488
7489 #elif __cplusplus < 201103L
7490
7491 #error "This is not a C++11 compiler"
7492
7493 #else
7494
7495 namespace cxx11
7496 {
7497
7498 namespace test_static_assert
7499 {
7500
7501 template <typename T>
7502 struct check
7503 {
7504 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7505 };
7506
7507 }
7508
7509 namespace test_final_override
7510 {
7511
7512 struct Base
7513 {
7514 virtual ~Base() {}
7515 virtual void f() {}
7516 };
7517
7518 struct Derived : public Base
7519 {
7520 virtual ~Derived() override {}
7521 virtual void f() override {}
7522 };
7523
7524 }
7525
7526 namespace test_double_right_angle_brackets
7527 {
7528
7529 template < typename T >
7530 struct check {};
7531
7532 typedef check<void> single_type;
7533 typedef check<check<void>> double_type;
7534 typedef check<check<check<void>>> triple_type;
7535 typedef check<check<check<check<void>>>> quadruple_type;
7536
7537 }
7538
7539 namespace test_decltype
7540 {
7541
7542 int
7543 f()
7544 {
7545 int a = 1;
7546 decltype(a) b = 2;
7547 return a + b;
7548 }
7549
7550 }
7551
7552 namespace test_type_deduction
7553 {
7554
7555 template < typename T1, typename T2 >
7556 struct is_same
7557 {
7558 static const bool value = false;
7559 };
7560
7561 template < typename T >
7562 struct is_same<T, T>
7563 {
7564 static const bool value = true;
7565 };
7566
7567 template < typename T1, typename T2 >
7568 auto
7569 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7570 {
7571 return a1 + a2;
7572 }
7573
7574 int
7575 test(const int c, volatile int v)
7576 {
7577 static_assert(is_same<int, decltype(0)>::value == true, "");
7578 static_assert(is_same<int, decltype(c)>::value == false, "");
7579 static_assert(is_same<int, decltype(v)>::value == false, "");
7580 auto ac = c;
7581 auto av = v;
7582 auto sumi = ac + av + 'x';
7583 auto sumf = ac + av + 1.0;
7584 static_assert(is_same<int, decltype(ac)>::value == true, "");
7585 static_assert(is_same<int, decltype(av)>::value == true, "");
7586 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7587 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7588 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7589 return (sumf > 0.0) ? sumi : add(c, v);
7590 }
7591
7592 }
7593
7594 namespace test_noexcept
7595 {
7596
7597 int f() { return 0; }
7598 int g() noexcept { return 0; }
7599
7600 static_assert(noexcept(f()) == false, "");
7601 static_assert(noexcept(g()) == true, "");
7602
7603 }
7604
7605 namespace test_constexpr
7606 {
7607
7608 template < typename CharT >
7609 unsigned long constexpr
7610 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7611 {
7612 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7613 }
7614
7615 template < typename CharT >
7616 unsigned long constexpr
7617 strlen_c(const CharT *const s) noexcept
7618 {
7619 return strlen_c_r(s, 0UL);
7620 }
7621
7622 static_assert(strlen_c("") == 0UL, "");
7623 static_assert(strlen_c("1") == 1UL, "");
7624 static_assert(strlen_c("example") == 7UL, "");
7625 static_assert(strlen_c("another\0example") == 7UL, "");
7626
7627 }
7628
7629 namespace test_rvalue_references
7630 {
7631
7632 template < int N >
7633 struct answer
7634 {
7635 static constexpr int value = N;
7636 };
7637
7638 answer<1> f(int&) { return answer<1>(); }
7639 answer<2> f(const int&) { return answer<2>(); }
7640 answer<3> f(int&&) { return answer<3>(); }
7641
7642 void
7643 test()
7644 {
7645 int i = 0;
7646 const int c = 0;
7647 static_assert(decltype(f(i))::value == 1, "");
7648 static_assert(decltype(f(c))::value == 2, "");
7649 static_assert(decltype(f(0))::value == 3, "");
7650 }
7651
7652 }
7653
7654 namespace test_uniform_initialization
7655 {
7656
7657 struct test
7658 {
7659 static const int zero {};
7660 static const int one {1};
7661 };
7662
7663 static_assert(test::zero == 0, "");
7664 static_assert(test::one == 1, "");
7665
7666 }
7667
7668 namespace test_lambdas
7669 {
7670
7671 void
7672 test1()
7673 {
7674 auto lambda1 = [](){};
7675 auto lambda2 = lambda1;
7676 lambda1();
7677 lambda2();
7678 }
7679
7680 int
7681 test2()
7682 {
7683 auto a = [](int i, int j){ return i + j; }(1, 2);
7684 auto b = []() -> int { return '0'; }();
7685 auto c = [=](){ return a + b; }();
7686 auto d = [&](){ return c; }();
7687 auto e = [a, &b](int x) mutable {
7688 const auto identity = [](int y){ return y; };
7689 for (auto i = 0; i < a; ++i)
7690 a += b--;
7691 return x + identity(a + b);
7692 }(0);
7693 return a + b + c + d + e;
7694 }
7695
7696 int
7697 test3()
7698 {
7699 const auto nullary = [](){ return 0; };
7700 const auto unary = [](int x){ return x; };
7701 using nullary_t = decltype(nullary);
7702 using unary_t = decltype(unary);
7703 const auto higher1st = [](nullary_t f){ return f(); };
7704 const auto higher2nd = [unary](nullary_t f1){
7705 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7706 };
7707 return higher1st(nullary) + higher2nd(nullary)(unary);
7708 }
7709
7710 }
7711
7712 namespace test_variadic_templates
7713 {
7714
7715 template <int...>
7716 struct sum;
7717
7718 template <int N0, int... N1toN>
7719 struct sum<N0, N1toN...>
7720 {
7721 static constexpr auto value = N0 + sum<N1toN...>::value;
7722 };
7723
7724 template <>
7725 struct sum<>
7726 {
7727 static constexpr auto value = 0;
7728 };
7729
7730 static_assert(sum<>::value == 0, "");
7731 static_assert(sum<1>::value == 1, "");
7732 static_assert(sum<23>::value == 23, "");
7733 static_assert(sum<1, 2>::value == 3, "");
7734 static_assert(sum<5, 5, 11>::value == 21, "");
7735 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7736
7737 }
7738
7739 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7740 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7741 // because of this.
7742 namespace test_template_alias_sfinae
7743 {
7744
7745 struct foo {};
7746
7747 template<typename T>
7748 using member = typename T::member_type;
7749
7750 template<typename T>
7751 void func(...) {}
7752
7753 template<typename T>
7754 void func(member<T>*) {}
7755
7756 void test();
7757
7758 void test() { func<foo>(0); }
7759
7760 }
7761
7762 } // namespace cxx11
7763
7764 #endif // __cplusplus >= 201103L
7765
7766
7767
7768 _ACEOF
7769 if ac_fn_cxx_try_compile "$LINENO"; then :
7770 eval $cachevar=yes
7771 else
7772 eval $cachevar=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 CXX="$ac_save_CXX"
7776 fi
7777 eval ac_res=\$$cachevar
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7779 $as_echo "$ac_res" >&6; }
7780 if eval test x\$$cachevar = xyes; then
7781 CXX="$CXX $switch"
7782 if test -n "$CXXCPP" ; then
7783 CXXCPP="$CXXCPP $switch"
7784 fi
7785 ac_success=yes
7786 break
7787 fi
7788 done
7789 if test x$ac_success = xyes; then
7790 break
7791 fi
7792 done
7793 fi
7794 CXX_FOR_BUILD="$CXX"
7795 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7796 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7797 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7798 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7799 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7807 if test x$ac_success = xno; then
7808 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7809 fi
7810 fi
7811 if test x$ac_success = xno; then
7812 HAVE_CXX11_FOR_BUILD=0
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7814 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7815 else
7816 HAVE_CXX11_FOR_BUILD=1
7817
7818 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7819
7820 fi
7821
7822
7823 fi
7824 fi
7825
7826 # Check whether --enable-pgo-build was given.
7827 if test "${enable_pgo_build+set}" = set; then :
7828 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7829 else
7830 enable_pgo_build=no
7831 fi
7832
7833
7834 # Issue errors and warnings for invalid/strange PGO build combinations.
7835 case "$have_compiler:$host:$target:$enable_pgo_build" in
7836 *:*:*:no) ;;
7837
7838 # Allow the PGO build only if we aren't building a compiler and
7839 # we are in a native configuration.
7840 no:$build:$build:yes | no:$build:$build:lto) ;;
7841
7842 # Disallow the PGO bootstrap if we are building a compiler.
7843 yes:*:*:yes | yes:*:*:lto)
7844 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7845
7846 *)
7847 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7848 ;;
7849 esac
7850
7851 if test "$enable_pgo_build" != "no"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7853 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7854 old_CFLAGS="$CFLAGS"
7855 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7856 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7857
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 int foo;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863
7864 else
7865 PGO_BUILD_GEN_CFLAGS=
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 CFLAGS="$old_CFLAGS"
7869 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871 $as_echo "yes" >&6; }
7872 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7877 fi
7878
7879 if test "$enable_pgo_build" = "lto"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7881 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7882 old_CFLAGS="$CFLAGS"
7883 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7884 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 int foo;
7888 _ACEOF
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890
7891 else
7892 PGO_BUILD_LTO_CFLAGS=
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 CFLAGS="$old_CFLAGS"
7896 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898 $as_echo "yes" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7903 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7904 fi
7905 fi
7906 fi
7907
7908
7909
7910
7911 # Used for setting $lt_cv_objdir
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7913 $as_echo_n "checking for objdir... " >&6; }
7914 if ${lt_cv_objdir+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 rm -f .libs 2>/dev/null
7918 mkdir .libs 2>/dev/null
7919 if test -d .libs; then
7920 lt_cv_objdir=.libs
7921 else
7922 # MS-DOS does not allow filenames that begin with a dot.
7923 lt_cv_objdir=_libs
7924 fi
7925 rmdir .libs 2>/dev/null
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7928 $as_echo "$lt_cv_objdir" >&6; }
7929 objdir=$lt_cv_objdir
7930
7931
7932
7933
7934
7935 cat >>confdefs.h <<_ACEOF
7936 #define LT_OBJDIR "$lt_cv_objdir/"
7937 _ACEOF
7938
7939
7940
7941 # Check for GMP, MPFR and MPC
7942 require_gmp=no
7943 require_mpc=no
7944 if test -d ${srcdir}/gcc ; then
7945 require_gmp=yes
7946 require_mpc=yes
7947 fi
7948 if test -d ${srcdir}/gdb ; then
7949 if test "x$enable_gdb" != xno; then
7950 require_gmp=yes
7951 fi
7952 fi
7953
7954 gmplibs="-lmpfr -lgmp"
7955 if test x"$require_mpc" = "xyes" ; then
7956 gmplibs="-lmpc $gmplibs"
7957 fi
7958 gmpinc=
7959 have_gmp=no
7960
7961 # Specify a location for mpc
7962 # check for this first so it ends up on the link line before mpfr.
7963
7964 # Check whether --with-mpc was given.
7965 if test "${with_mpc+set}" = set; then :
7966 withval=$with_mpc;
7967 fi
7968
7969
7970 # Check whether --with-mpc-include was given.
7971 if test "${with_mpc_include+set}" = set; then :
7972 withval=$with_mpc_include;
7973 fi
7974
7975
7976 # Check whether --with-mpc-lib was given.
7977 if test "${with_mpc_lib+set}" = set; then :
7978 withval=$with_mpc_lib;
7979 fi
7980
7981
7982 if test "x$with_mpc" != x; then
7983 gmplibs="-L$with_mpc/lib $gmplibs"
7984 gmpinc="-I$with_mpc/include $gmpinc"
7985 fi
7986 if test "x$with_mpc_include" != x; then
7987 gmpinc="-I$with_mpc_include $gmpinc"
7988 fi
7989 if test "x$with_mpc_lib" != x; then
7990 gmplibs="-L$with_mpc_lib $gmplibs"
7991 fi
7992 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7993 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7994 gmpinc='-I$$s/mpc/src '"$gmpinc"
7995 # Do not test the mpc version. Assume that it is sufficient, since
7996 # it is in the source tree, and the library has not been built yet
7997 # but it would be included on the link line in the version check below
7998 # hence making the test fail.
7999 have_gmp=yes
8000 fi
8001
8002 # Specify a location for mpfr
8003 # check for this first so it ends up on the link line before gmp.
8004
8005 # Check whether --with-mpfr was given.
8006 if test "${with_mpfr+set}" = set; then :
8007 withval=$with_mpfr;
8008 fi
8009
8010
8011 # Check whether --with-mpfr-include was given.
8012 if test "${with_mpfr_include+set}" = set; then :
8013 withval=$with_mpfr_include;
8014 fi
8015
8016
8017 # Check whether --with-mpfr-lib was given.
8018 if test "${with_mpfr_lib+set}" = set; then :
8019 withval=$with_mpfr_lib;
8020 fi
8021
8022
8023 if test "x$with_mpfr" != x; then
8024 gmplibs="-L$with_mpfr/lib $gmplibs"
8025 gmpinc="-I$with_mpfr/include $gmpinc"
8026 fi
8027 if test "x$with_mpfr_include" != x; then
8028 gmpinc="-I$with_mpfr_include $gmpinc"
8029 fi
8030 if test "x$with_mpfr_lib" != x; then
8031 gmplibs="-L$with_mpfr_lib $gmplibs"
8032 fi
8033 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8034 # MPFR v3.1.0 moved the sources into a src sub-directory.
8035 if ! test -d ${srcdir}/mpfr/src; then
8036 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8037 fi
8038 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8039 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8040 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8041 # Do not test the mpfr version. Assume that it is sufficient, since
8042 # it is in the source tree, and the library has not been built yet
8043 # but it would be included on the link line in the version check below
8044 # hence making the test fail.
8045 have_gmp=yes
8046 fi
8047
8048 # Specify a location for gmp
8049
8050 # Check whether --with-gmp was given.
8051 if test "${with_gmp+set}" = set; then :
8052 withval=$with_gmp;
8053 fi
8054
8055
8056 # Check whether --with-gmp-include was given.
8057 if test "${with_gmp_include+set}" = set; then :
8058 withval=$with_gmp_include;
8059 fi
8060
8061
8062 # Check whether --with-gmp-lib was given.
8063 if test "${with_gmp_lib+set}" = set; then :
8064 withval=$with_gmp_lib;
8065 fi
8066
8067
8068
8069 if test "x$with_gmp" != x; then
8070 gmplibs="-L$with_gmp/lib $gmplibs"
8071 gmpinc="-I$with_gmp/include $gmpinc"
8072 fi
8073 if test "x$with_gmp_include" != x; then
8074 gmpinc="-I$with_gmp_include $gmpinc"
8075 fi
8076 if test "x$with_gmp_lib" != x; then
8077 gmplibs="-L$with_gmp_lib $gmplibs"
8078 fi
8079 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8080 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8081 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8082 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8083 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8084 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8085 # Do not test the gmp version. Assume that it is sufficient, since
8086 # it is in the source tree, and the library has not been built yet
8087 # but it would be included on the link line in the version check below
8088 # hence making the test fail.
8089 have_gmp=yes
8090 fi
8091
8092 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8093 have_gmp=yes
8094 saved_CFLAGS="$CFLAGS"
8095 CFLAGS="$CFLAGS $gmpinc"
8096 # Check for the recommended and required versions of GMP.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8098 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8101 #include "gmp.h"
8102 int
8103 main ()
8104 {
8105
8106 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8107 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8108 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8109 choke me
8110 #endif
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <gmp.h>
8120 int
8121 main ()
8122 {
8123
8124 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8125 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8126 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8127 choke me
8128 #endif
8129
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8136 $as_echo "yes" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8139 $as_echo "buggy but acceptable" >&6; }
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }; have_gmp=no
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147
8148 # If we have GMP, check the MPFR version.
8149 if test x"$have_gmp" = xyes; then
8150 # Check for the recommended and required versions of MPFR.
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8152 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155 #include <gmp.h>
8156 #include <mpfr.h>
8157 int
8158 main ()
8159 {
8160
8161 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8162 choke me
8163 #endif
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8172 #include <gmp.h>
8173 #include <mpfr.h>
8174 int
8175 main ()
8176 {
8177
8178 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8179 choke me
8180 #endif
8181
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8191 $as_echo "buggy but acceptable" >&6; }
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }; have_gmp=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200
8201 # Check for the MPC header version.
8202 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8203 # Check for the recommended and required versions of MPC.
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8205 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 #include <mpc.h>
8209 int
8210 main ()
8211 {
8212
8213 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8214 choke me
8215 #endif
8216
8217 ;
8218 return 0;
8219 }
8220 _ACEOF
8221 if ac_fn_c_try_compile "$LINENO"; then :
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <mpc.h>
8225 int
8226 main ()
8227 {
8228
8229 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8230 choke me
8231 #endif
8232
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8239 $as_echo "yes" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8242 $as_echo "buggy but acceptable" >&6; }
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }; have_gmp=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251
8252 # Now check the MPFR library.
8253 if test x"$have_gmp" = xyes; then
8254 saved_LIBS="$LIBS"
8255 LIBS="$LIBS $gmplibs"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8257 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 #include <mpfr.h>
8261 int
8262 main ()
8263 {
8264
8265 mpfr_t n;
8266 mpfr_t x;
8267 int t;
8268 mpfr_init (n);
8269 mpfr_init (x);
8270 mpfr_atan2 (n, n, x, MPFR_RNDN);
8271 mpfr_erfc (n, x, MPFR_RNDN);
8272 mpfr_subnormalize (x, t, MPFR_RNDN);
8273 mpfr_clear(n);
8274 mpfr_clear(x);
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8282 $as_echo "yes" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }; have_gmp=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS="$saved_LIBS"
8290 fi
8291
8292 # Now check the MPC library
8293 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8294 saved_LIBS="$LIBS"
8295 LIBS="$LIBS $gmplibs"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8297 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #include <mpc.h>
8301 int
8302 main ()
8303 {
8304
8305 mpc_t c;
8306 mpc_init2 (c, 53);
8307 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8308 mpc_cosh (c, c, MPC_RNDNN);
8309 mpc_pow (c, c, c, MPC_RNDNN);
8310 mpc_acosh (c, c, MPC_RNDNN);
8311 mpc_clear (c);
8312
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8319 $as_echo "yes" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }; have_gmp=no
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326 LIBS="$saved_LIBS"
8327 fi
8328
8329 CFLAGS="$saved_CFLAGS"
8330
8331 # The library versions listed in the error message below should match
8332 # the HARD-minimums enforced above.
8333 if test x$have_gmp != xyes; then
8334 if test -d ${srcdir}/gcc ; then
8335 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8336 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8337 their locations. Source code for these libraries can be found at
8338 their respective hosting sites as well as at
8339 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8340 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8341 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8342 make sure that you have installed both the libraries and the header
8343 files. They may be located in separate packages." "$LINENO" 5
8344 else
8345 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8346 Try the --with-gmp and/or --with-mpfr options to specify
8347 their locations. If you obtained GMP and/or MPFR from a vendor
8348 distribution package, make sure that you have installed both the libraries
8349 and the header files. They may be located in separate packages." "$LINENO" 5
8350 fi
8351 fi
8352 fi
8353
8354 # Flags needed for both GMP, MPFR and/or MPC.
8355
8356
8357
8358
8359
8360
8361
8362 # Libraries to use for stage1 or when not bootstrapping.
8363
8364 # Check whether --with-stage1-libs was given.
8365 if test "${with_stage1_libs+set}" = set; then :
8366 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8367 stage1_libs=
8368 else
8369 stage1_libs=$withval
8370 fi
8371 else
8372 stage1_libs=
8373 fi
8374
8375
8376
8377 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8378 # default is yes if gcc is being built; no otherwise. The reason for
8379 # this default is that gdb is sometimes linked against GNU Source
8380 # Highlight, which is a shared library that uses C++ exceptions. In
8381 # this case, -static-libstdc++ will cause crashes.
8382
8383 # Check whether --with-static-standard-libraries was given.
8384 if test "${with_static_standard_libraries+set}" = set; then :
8385 withval=$with_static_standard_libraries;
8386 else
8387 with_static_standard_libraries=auto
8388 fi
8389
8390 if test "$with_static_standard_libraries" = auto; then
8391 with_static_standard_libraries=$have_compiler
8392 fi
8393
8394 # Linker flags to use for stage1 or when not bootstrapping.
8395
8396 # Check whether --with-stage1-ldflags was given.
8397 if test "${with_stage1_ldflags+set}" = set; then :
8398 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8399 stage1_ldflags=
8400 else
8401 stage1_ldflags=$withval
8402 fi
8403 else
8404 stage1_ldflags=
8405 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8406 # if supported. But if the user explicitly specified the libraries to use,
8407 # trust that they are doing what they want.
8408 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8409 -a "$have_static_libs" = yes; then
8410 stage1_ldflags="-static-libstdc++ -static-libgcc"
8411 fi
8412 fi
8413
8414
8415
8416 # Libraries to use for stage2 and later builds.
8417
8418 # Check whether --with-boot-libs was given.
8419 if test "${with_boot_libs+set}" = set; then :
8420 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8421 poststage1_libs=
8422 else
8423 poststage1_libs=$withval
8424 fi
8425 else
8426 poststage1_libs=
8427 fi
8428
8429
8430
8431 # Linker flags to use for stage2 and later builds.
8432
8433 # Check whether --with-boot-ldflags was given.
8434 if test "${with_boot_ldflags+set}" = set; then :
8435 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8436 poststage1_ldflags=
8437 else
8438 poststage1_ldflags=$withval
8439 fi
8440 else
8441 poststage1_ldflags=
8442 # In stages 2 and 3, default to linking libstdc++ and libgcc
8443 # statically. But if the user explicitly specified the libraries to
8444 # use, trust that they are doing what they want.
8445 if test "$poststage1_libs" = ""; then
8446 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8447 fi
8448 fi
8449
8450
8451
8452 # GCC GRAPHITE dependency isl.
8453 # Basic setup is inlined here, actual checks are in config/isl.m4
8454
8455
8456 # Check whether --with-isl was given.
8457 if test "${with_isl+set}" = set; then :
8458 withval=$with_isl;
8459 fi
8460
8461
8462 # Treat --without-isl as a request to disable
8463 # GRAPHITE support and skip all following checks.
8464 if test "x$with_isl" != "xno"; then
8465 # Check for isl
8466
8467
8468 # Check whether --with-isl-include was given.
8469 if test "${with_isl_include+set}" = set; then :
8470 withval=$with_isl_include;
8471 fi
8472
8473
8474 # Check whether --with-isl-lib was given.
8475 if test "${with_isl_lib+set}" = set; then :
8476 withval=$with_isl_lib;
8477 fi
8478
8479
8480 # Check whether --enable-isl-version-check was given.
8481 if test "${enable_isl_version_check+set}" = set; then :
8482 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8483 else
8484 ENABLE_ISL_CHECK=yes
8485 fi
8486
8487
8488 # Initialize isllibs and islinc.
8489 case $with_isl in
8490 no)
8491 isllibs=
8492 islinc=
8493 ;;
8494 "" | yes)
8495 ;;
8496 *)
8497 isllibs="-L$with_isl/lib"
8498 islinc="-I$with_isl/include"
8499 ;;
8500 esac
8501 if test "x${with_isl_include}" != x ; then
8502 islinc="-I$with_isl_include"
8503 fi
8504 if test "x${with_isl_lib}" != x; then
8505 isllibs="-L$with_isl_lib"
8506 fi
8507 if test "x${islinc}" = x && test "x${isllibs}" = x \
8508 && test -d ${srcdir}/isl; then
8509 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8510 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8511 ENABLE_ISL_CHECK=no
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8513 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8514 fi
8515
8516 isllibs="${isllibs} -lisl"
8517
8518
8519
8520 if test "${ENABLE_ISL_CHECK}" = yes ; then
8521 _isl_saved_CFLAGS=$CFLAGS
8522 _isl_saved_LDFLAGS=$LDFLAGS
8523 _isl_saved_LIBS=$LIBS
8524
8525 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8526 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8527 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8530 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 #include <isl/schedule.h>
8534 int
8535 main ()
8536 {
8537 isl_options_set_schedule_serialize_sccs (NULL, 0);
8538 ;
8539 return 0;
8540 }
8541 _ACEOF
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 gcc_cv_isl=yes
8544 else
8545 gcc_cv_isl=no
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8550 $as_echo "$gcc_cv_isl" >&6; }
8551
8552 if test "${gcc_cv_isl}" = no ; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8554 $as_echo "required isl version is 0.15 or later" >&6; }
8555 fi
8556
8557 CFLAGS=$_isl_saved_CFLAGS
8558 LDFLAGS=$_isl_saved_LDFLAGS
8559 LIBS=$_isl_saved_LIBS
8560 fi
8561
8562
8563
8564
8565
8566
8567 if test "x${with_isl}" = xno; then
8568 graphite_requested=no
8569 elif test "x${with_isl}" != x \
8570 || test "x${with_isl_include}" != x \
8571 || test "x${with_isl_lib}" != x ; then
8572 graphite_requested=yes
8573 else
8574 graphite_requested=no
8575 fi
8576
8577
8578
8579 if test "${gcc_cv_isl}" = no ; then
8580 isllibs=
8581 islinc=
8582 fi
8583
8584 if test "${graphite_requested}" = yes \
8585 && test "x${isllibs}" = x \
8586 && test "x${islinc}" = x ; then
8587
8588 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8589 fi
8590
8591
8592 fi
8593
8594 # If the isl check failed, disable builds of in-tree variant of isl
8595 if test "x$with_isl" = xno ||
8596 test "x$gcc_cv_isl" = xno; then
8597 noconfigdirs="$noconfigdirs isl"
8598 islinc=
8599 fi
8600
8601
8602
8603
8604 # Check for LTO support.
8605 # Check whether --enable-lto was given.
8606 if test "${enable_lto+set}" = set; then :
8607 enableval=$enable_lto; enable_lto=$enableval
8608 else
8609 enable_lto=yes; default_enable_lto=yes
8610 fi
8611
8612
8613
8614
8615
8616 target_elf=no
8617 case $target in
8618 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8619 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8620 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8621 nvptx-*-none)
8622 target_elf=no
8623 ;;
8624 *)
8625 target_elf=yes
8626 ;;
8627 esac
8628
8629 if test $target_elf = yes; then :
8630 # ELF platforms build the lto-plugin always.
8631 build_lto_plugin=yes
8632
8633 else
8634 if test x"$default_enable_lto" = x"yes" ; then
8635 case $target in
8636 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8637 # On other non-ELF platforms, LTO has yet to be validated.
8638 *) enable_lto=no ;;
8639 esac
8640 else
8641 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8642 # It would also be nice to check the binutils support, but we don't
8643 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8644 # warn during gcc/ subconfigure; unless you're bootstrapping with
8645 # -flto it won't be needed until after installation anyway.
8646 case $target in
8647 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8648 *) if test x"$enable_lto" = x"yes"; then
8649 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8650 fi
8651 ;;
8652 esac
8653 fi
8654 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8655 # Build it unless LTO was explicitly disabled.
8656 case $target in
8657 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8658 *) ;;
8659 esac
8660
8661 fi
8662
8663
8664 # Check whether --enable-linker-plugin-configure-flags was given.
8665 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8666 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8667 else
8668 extra_linker_plugin_configure_flags=
8669 fi
8670
8671
8672 # Check whether --enable-linker-plugin-flags was given.
8673 if test "${enable_linker_plugin_flags+set}" = set; then :
8674 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8675 else
8676 extra_linker_plugin_flags=
8677 fi
8678
8679
8680
8681 # Handle --enable-host-pie
8682 # If host PIE executables are the default (or must be forced on) for some host,
8683 # we must pass that configuration to the gcc directory.
8684 gcc_host_pie=
8685 # Check whether --enable-host-pie was given.
8686 if test "${enable_host_pie+set}" = set; then :
8687 enableval=$enable_host_pie; host_pie=$enableval
8688 case $host in
8689 *-*-darwin2*)
8690 if test x$host_pie != xyes ; then
8691 # for Darwin20+ this is required.
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8693 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8694 host_pie=yes
8695 gcc_host_pie=--enable-host-pie
8696 fi ;;
8697 *) ;;
8698 esac
8699 else
8700 case $host in
8701 *-*-darwin2*)
8702 # Default to PIE (mandatory for aarch64).
8703 host_pie=yes
8704 gcc_host_pie=--enable-host-pie
8705 ;;
8706 *) host_pie=no ;;
8707 esac
8708 fi
8709
8710
8711
8712
8713
8714 # Enable --enable-host-shared.
8715 # Checked early to determine whether jit is an 'all' language
8716 # Check whether --enable-host-shared was given.
8717 if test "${enable_host_shared+set}" = set; then :
8718 enableval=$enable_host_shared; host_shared=$enableval
8719 case $host in
8720 x86_64-*-darwin* | aarch64-*-darwin*)
8721 if test x$host_shared != xyes ; then
8722 # PIC is the default, and actually cannot be switched off.
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8724 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8725 host_shared=yes
8726 fi ;;
8727 *-*-darwin*)
8728 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8730 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8731 host_shared=yes
8732 fi ;;
8733 *) ;;
8734 esac
8735 else
8736 case $host in
8737 # 64B x86_64 and Aarch64 Darwin default to PIC.
8738 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8739 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8740 *-*-darwin*) host_shared=$host_pie ;;
8741 *) host_shared=no;;
8742 esac
8743 fi
8744
8745
8746
8747
8748 if test x$host_shared = xyes; then
8749 case $host in
8750 *-*-darwin*)
8751 # Since host shared is the default for 64b Darwin, and also enabled for
8752 # host_pie, ensure that we present the PIE flag when host_pie is active.
8753 if test x$host_pie = xyes; then
8754 PICFLAG=-fPIE
8755 fi
8756 ;;
8757 *)
8758 PICFLAG=-fPIC
8759 ;;
8760 esac
8761 elif test x$host_pie = xyes; then
8762 PICFLAG=-fPIE
8763 else
8764 PICFLAG=
8765 fi
8766
8767
8768
8769 # If we are building PIC/PIE host executables, and we are building dependent
8770 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8771 # code.
8772 host_libs_picflag=
8773 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8774 host_libs_picflag='--with-pic'
8775 fi
8776
8777
8778 # By default, C and C++ are the only stage 1 languages.
8779 stage1_languages=,c,
8780
8781 # Target libraries that we bootstrap.
8782 bootstrap_target_libs=,target-libgcc,
8783
8784 # Figure out what language subdirectories are present.
8785 # Look if the user specified --enable-languages="..."; if not, use
8786 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8787 # go away some day.
8788 # NB: embedded tabs in this IF block -- do not untabify
8789 if test -d ${srcdir}/gcc; then
8790 if test x"${enable_languages+set}" != xset; then
8791 if test x"${LANGUAGES+set}" = xset; then
8792 enable_languages="${LANGUAGES}"
8793 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8794 else
8795 enable_languages=default
8796 fi
8797 else
8798 if test x"${enable_languages}" = x ||
8799 test x"${enable_languages}" = xyes;
8800 then
8801 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8802 exit 1
8803 fi
8804 fi
8805 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8806
8807 # 'f95' is the old name for the 'fortran' language. We issue a warning
8808 # and make the substitution.
8809 case ,${enable_languages}, in
8810 *,f95,*)
8811 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8812 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8813 ;;
8814 esac
8815
8816 # If bootstrapping, C++ must be enabled.
8817 case ",$enable_languages,:$enable_bootstrap" in
8818 *,c++,*:*) ;;
8819 *:yes)
8820 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8821 enable_languages="${enable_languages},c++"
8822 else
8823 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8824 fi
8825 ;;
8826 esac
8827
8828 # First scan to see if an enabled language requires some other language.
8829 # We assume that a given config-lang.in will list all the language
8830 # front ends it requires, even if some are required indirectly.
8831 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8832 case ${lang_frag} in
8833 ..) ;;
8834 # The odd quoting in the next line works around
8835 # an apparent bug in bash 1.12 on linux.
8836 ${srcdir}/gcc/[*]/config-lang.in) ;;
8837 *)
8838 # From the config-lang.in, get $language, $lang_requires, and
8839 # $lang_requires_boot_languages.
8840 language=
8841 lang_requires=
8842 lang_requires_boot_languages=
8843 # set srcdir during sourcing lang_frag to the gcc dir.
8844 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8845 # polutes this shell
8846 saved_srcdir=${srcdir}
8847 srcdir=${srcdir}/gcc . ${lang_frag}
8848 srcdir=${saved_srcdir}
8849 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8850 case ,${enable_languages}, in
8851 *,$other,*) ;;
8852 *,default,*) ;;
8853 *,all,*) ;;
8854 *,$language,*)
8855 echo " \`$other' language required by \`$language'; enabling" 1>&2
8856 enable_languages="${enable_languages},${other}"
8857 ;;
8858 esac
8859 done
8860 for other in ${lang_requires_boot_languages} ; do
8861 if test "$other" != "c"; then
8862 case ,${enable_stage1_languages}, in
8863 *,$other,*) ;;
8864 *,default,*) ;;
8865 *,all,*) ;;
8866 *)
8867 case ,${enable_languages}, in
8868 *,$language,*)
8869 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8870 enable_stage1_languages="$enable_stage1_languages,${other}"
8871 ;;
8872 esac
8873 ;;
8874 esac
8875 fi
8876 done
8877 ;;
8878 esac
8879 done
8880
8881 new_enable_languages=,c,
8882
8883 # If LTO is enabled, add the LTO front end.
8884 if test "$enable_lto" = "yes" ; then
8885 case ,${enable_languages}, in
8886 *,lto,*) ;;
8887 *) enable_languages="${enable_languages},lto" ;;
8888 esac
8889 if test "${build_lto_plugin}" = "yes" ; then
8890 configdirs="$configdirs lto-plugin"
8891 fi
8892 fi
8893
8894 # If we're building an offloading compiler, add the LTO front end.
8895 if test x"$enable_as_accelerator_for" != x ; then
8896 case ,${enable_languages}, in
8897 *,lto,*) ;;
8898 *) enable_languages="${enable_languages},lto" ;;
8899 esac
8900 fi
8901
8902 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8903 potential_languages=,c,
8904
8905 enabled_target_libs=
8906 disabled_target_libs=
8907
8908 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8909 case ${lang_frag} in
8910 ..) ;;
8911 # The odd quoting in the next line works around
8912 # an apparent bug in bash 1.12 on linux.
8913 ${srcdir}/gcc/[*]/config-lang.in) ;;
8914 *)
8915 # From the config-lang.in, get $language, $target_libs,
8916 # $lang_dirs, $boot_language, and $build_by_default
8917 language=
8918 target_libs=
8919 lang_dirs=
8920 subdir_requires=
8921 boot_language=no
8922 build_by_default=yes
8923 # set srcdir during sourcing. See above about save & restore
8924 saved_srcdir=${srcdir}
8925 srcdir=${srcdir}/gcc . ${lang_frag}
8926 srcdir=${saved_srcdir}
8927 if test x${language} = x; then
8928 echo "${lang_frag} doesn't set \$language." 1>&2
8929 exit 1
8930 fi
8931
8932 if test "$language" = "c++"; then
8933 boot_language=yes
8934 fi
8935
8936 add_this_lang=no
8937 # C is always enabled, so no need to add it again
8938 if test "$language" != "c"; then
8939 case ,${enable_languages}, in
8940 *,${language},*)
8941 # Language was explicitly selected; include it
8942 add_this_lang=yes
8943 ;;
8944 *,all,*)
8945 # All languages are enabled
8946 add_this_lang=all
8947 ;;
8948 *,default,*)
8949 # 'default' was selected, select it if it is a default language
8950 add_this_lang=${build_by_default}
8951 ;;
8952 esac
8953 fi
8954
8955 # Disable languages that need other directories if these aren't available.
8956 for i in $subdir_requires; do
8957 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8958 case ${add_this_lang} in
8959 yes)
8960 # Specifically requested language; tell them.
8961 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8962 ;;
8963 all)
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8965 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8966 add_this_lang=unsupported
8967 ;;
8968 *)
8969 # Silently disable.
8970 add_this_lang=unsupported
8971 ;;
8972 esac
8973 done
8974
8975 # Disable Ada if no preexisting GNAT is available.
8976 case ${add_this_lang}:${language}:${have_gnat} in
8977 yes:ada:no)
8978 # Specifically requested language; tell them.
8979 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8980 ;;
8981 all:ada:no)
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8983 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8984 add_this_lang=unsupported
8985 ;;
8986 *:ada:no)
8987 # Silently disable.
8988 add_this_lang=unsupported
8989 ;;
8990 esac
8991
8992 # Disable D if no preexisting GDC is available.
8993 case ${add_this_lang}:${language}:${have_gdc} in
8994 yes:d:no)
8995 # Specifically requested language; tell them.
8996 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8997 ;;
8998 all:d:no)
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9000 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9001 add_this_lang=unsupported
9002 ;;
9003 *:d:no)
9004 # Silently disable.
9005 add_this_lang=unsupported
9006 ;;
9007 esac
9008
9009 # Disable jit if -enable-host-shared not specified
9010 # but not if building for Mingw. All code in Windows
9011 # is position independent code (PIC).
9012 case $target in
9013 *mingw*) ;;
9014 *)
9015 case ${add_this_lang}:${language}:${host_shared} in
9016 yes:jit:no)
9017 # PR jit/64780: explicitly specify --enable-host-shared
9018 as_fn_error $? "
9019 Enabling language \"jit\" requires --enable-host-shared.
9020
9021 --enable-host-shared typically slows the rest of the compiler down by
9022 a few %, so you must explicitly enable it.
9023
9024 If you want to build both the jit and the regular compiler, it is often
9025 best to do this via two separate configure/builds, in separate
9026 directories, to avoid imposing the performance cost of
9027 --enable-host-shared on the regular compiler." "$LINENO" 5
9028 ;;
9029 all:jit:no)
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9031 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9032 add_this_lang=unsupported
9033 ;;
9034 *:jit:no)
9035 # Silently disable.
9036 add_this_lang=unsupported
9037 ;;
9038 esac
9039 ;;
9040 esac
9041
9042 # Disable a language that is unsupported by the target.
9043 case "${add_this_lang}: $unsupported_languages " in
9044 no:*) ;;
9045 unsupported:*) ;;
9046 *:*" $language "*)
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9048 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9049 add_this_lang=unsupported
9050 ;;
9051 esac
9052
9053 case $add_this_lang in
9054 unsupported)
9055 # Remove language-dependent dirs.
9056 disabled_target_libs="$disabled_target_libs $target_libs"
9057 noconfigdirs="$noconfigdirs $lang_dirs"
9058 ;;
9059 no)
9060 # Remove language-dependent dirs; still show language as supported.
9061 disabled_target_libs="$disabled_target_libs $target_libs"
9062 noconfigdirs="$noconfigdirs $lang_dirs"
9063 potential_languages="${potential_languages}${language},"
9064 ;;
9065 all|yes)
9066 new_enable_languages="${new_enable_languages}${language},"
9067 potential_languages="${potential_languages}${language},"
9068 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9069 enabled_target_libs="$enabled_target_libs $target_libs"
9070 case "${boot_language}:,$enable_stage1_languages," in
9071 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9072 # Add to (comma-separated) list of stage 1 languages.
9073 case ",$stage1_languages," in
9074 *,$language,* | ,yes, | ,all,) ;;
9075 *) stage1_languages="${stage1_languages}${language}," ;;
9076 esac
9077 # We need to bootstrap any supporting libraries.
9078 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9079 ;;
9080 esac
9081 ;;
9082 esac
9083 ;;
9084 esac
9085 done
9086
9087 # Add target libraries which are only needed for disabled languages
9088 # to noconfigdirs.
9089 if test -n "$disabled_target_libs"; then
9090 for dir in $disabled_target_libs; do
9091 case " $enabled_target_libs " in
9092 *" ${dir} "*) ;;
9093 *) noconfigdirs="$noconfigdirs $dir" ;;
9094 esac
9095 done
9096 fi
9097
9098 # Check whether --enable-stage1-languages was given.
9099 if test "${enable_stage1_languages+set}" = set; then :
9100 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9101 ,no,|,,)
9102 # Set it to something that will have no effect in the loop below
9103 enable_stage1_languages=c ;;
9104 ,yes,)
9105 enable_stage1_languages=`echo $new_enable_languages | \
9106 sed -e "s/^,//" -e "s/,$//" ` ;;
9107 *,all,*)
9108 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9109 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9110 esac
9111
9112 # Add "good" languages from enable_stage1_languages to stage1_languages,
9113 # while "bad" languages go in missing_languages. Leave no duplicates.
9114 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9115 case $potential_languages in
9116 *,$i,*)
9117 case $stage1_languages in
9118 *,$i,*) ;;
9119 *) stage1_languages="$stage1_languages$i," ;;
9120 esac ;;
9121 *)
9122 case $missing_languages in
9123 *,$i,*) ;;
9124 *) missing_languages="$missing_languages$i," ;;
9125 esac ;;
9126 esac
9127 done
9128 fi
9129
9130
9131 # Remove leading/trailing commas that were added for simplicity
9132 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9133 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9134 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9135 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9136
9137 if test "x$missing_languages" != x; then
9138 as_fn_error $? "
9139 The following requested languages could not be built: ${missing_languages}
9140 Supported languages are: ${potential_languages}" "$LINENO" 5
9141 fi
9142 if test "x$new_enable_languages" != "x$enable_languages"; then
9143 echo The following languages will be built: ${new_enable_languages}
9144 enable_languages="$new_enable_languages"
9145 fi
9146
9147
9148 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9149 fi
9150
9151 # Handle --disable-<component> generically.
9152 for dir in $configdirs $build_configdirs $target_configdirs ; do
9153 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9154 varname=`echo $dirname | sed -e s/+/_/g`
9155 if eval test x\${enable_${varname}} "=" xno ; then
9156 noconfigdirs="$noconfigdirs $dir"
9157 fi
9158 done
9159
9160 # Check for Boehm's garbage collector
9161 # Check whether --enable-objc-gc was given.
9162 if test "${enable_objc_gc+set}" = set; then :
9163 enableval=$enable_objc_gc;
9164 fi
9165
9166
9167 # Check whether --with-target-bdw-gc was given.
9168 if test "${with_target_bdw_gc+set}" = set; then :
9169 withval=$with_target_bdw_gc;
9170 fi
9171
9172
9173 # Check whether --with-target-bdw-gc-include was given.
9174 if test "${with_target_bdw_gc_include+set}" = set; then :
9175 withval=$with_target_bdw_gc_include;
9176 fi
9177
9178
9179 # Check whether --with-target-bdw-gc-lib was given.
9180 if test "${with_target_bdw_gc_lib+set}" = set; then :
9181 withval=$with_target_bdw_gc_lib;
9182 fi
9183
9184
9185 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9187 $as_echo_n "checking for bdw garbage collector... " >&6; }
9188 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9190 $as_echo "using bdw-gc in default locations" >&6; }
9191 else
9192 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9193 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9194 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9195 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9196 else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9198 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9199 fi
9200 fi
9201 esac
9202
9203 # Disable libitm, libsanitizer, libvtv if we're not building C++
9204 case ,${enable_languages}, in
9205 *,c++,*)
9206 # Disable libitm, libsanitizer if we're not building libstdc++
9207 case "${noconfigdirs}" in
9208 *target-libstdc++-v3*)
9209 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9210 ;;
9211 *) ;;
9212 esac
9213 ;;
9214 *)
9215 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9216 ;;
9217 esac
9218
9219 # If gcc/ is not in the source tree then we'll not be building a
9220 # target compiler, assume in that case we don't want to build any
9221 # target libraries or tools.
9222 #
9223 # This was added primarily for the benefit for binutils-gdb who reuse
9224 # this configure script, but don't always have target tools available.
9225 if test ! -d ${srcdir}/gcc; then
9226 skipdirs="${skipdirs} ${target_configdirs}"
9227 fi
9228
9229 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9230 # $build_configdirs and $target_configdirs.
9231 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9232
9233 notsupp=""
9234 for dir in . $skipdirs $noconfigdirs ; do
9235 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9236 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9237 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9238 if test -r $srcdir/$dirname/configure ; then
9239 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9240 true
9241 else
9242 notsupp="$notsupp $dir"
9243 fi
9244 fi
9245 fi
9246 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9247 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9248 if test -r $srcdir/$dirname/configure ; then
9249 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9250 true
9251 else
9252 notsupp="$notsupp $dir"
9253 fi
9254 fi
9255 fi
9256 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9257 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9258 if test -r $srcdir/$dirname/configure ; then
9259 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9260 true
9261 else
9262 notsupp="$notsupp $dir"
9263 fi
9264 fi
9265 fi
9266 done
9267
9268 # Quietly strip out all directories which aren't configurable in this tree.
9269 # This relies on all configurable subdirectories being autoconfiscated, which
9270 # is now the case.
9271 build_configdirs_all="$build_configdirs"
9272 build_configdirs=
9273 for i in ${build_configdirs_all} ; do
9274 j=`echo $i | sed -e s/build-//g`
9275 if test -f ${srcdir}/$j/configure ; then
9276 build_configdirs="${build_configdirs} $i"
9277 fi
9278 done
9279
9280 configdirs_all="$configdirs"
9281 configdirs=
9282 for i in ${configdirs_all} ; do
9283 if test -f ${srcdir}/$i/configure ; then
9284 configdirs="${configdirs} $i"
9285 fi
9286 done
9287
9288 target_configdirs_all="$target_configdirs"
9289 target_configdirs=
9290 for i in ${target_configdirs_all} ; do
9291 j=`echo $i | sed -e s/target-//g`
9292 if test -f ${srcdir}/$j/configure ; then
9293 target_configdirs="${target_configdirs} $i"
9294 fi
9295 done
9296
9297 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9298 # so we have to add it after the preceding checks.
9299 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9300 then
9301 case " $configdirs " in
9302 *" libiberty "*)
9303 # If we can build libiberty, we can also build libiberty-linker-plugin.
9304 configdirs="$configdirs libiberty-linker-plugin"
9305 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9306 --with-libiberty=../libiberty-linker-plugin";;
9307 *)
9308 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9309 esac
9310 fi
9311
9312 # Sometimes we have special requirements for the host libiberty.
9313 extra_host_libiberty_configure_flags=
9314 case " $configdirs " in
9315 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9316 # When these are to be built as shared libraries, the same applies to
9317 # libiberty.
9318 extra_host_libiberty_configure_flags=--enable-shared
9319 ;;
9320 esac
9321
9322
9323 # Sometimes we have special requirements for the host zlib.
9324 extra_host_zlib_configure_flags=
9325 case " $configdirs " in
9326 *" bfd "*)
9327 # When bfd is to be built as a shared library, the same applies to
9328 # zlib.
9329 if test "$enable_shared" = "yes"; then
9330 extra_host_zlib_configure_flags=--enable-host-shared
9331 fi
9332 ;;
9333 esac
9334
9335
9336 # Produce a warning message for the subdirs we can't configure.
9337 # This isn't especially interesting in the Cygnus tree, but in the individual
9338 # FSF releases, it's important to let people know when their machine isn't
9339 # supported by the one or two programs in a package.
9340
9341 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9342 # If $appdirs is non-empty, at least one of those directories must still
9343 # be configured, or we error out. (E.g., if the gas release supports a
9344 # specified target in some subdirs but not the gas subdir, we shouldn't
9345 # pretend that all is well.)
9346 if test -n "$appdirs" ; then
9347 for dir in $appdirs ; do
9348 if test -r $dir/Makefile.in ; then
9349 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9350 appdirs=""
9351 break
9352 fi
9353 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9354 appdirs=""
9355 break
9356 fi
9357 fi
9358 done
9359 if test -n "$appdirs" ; then
9360 echo "*** This configuration is not supported by this package." 1>&2
9361 exit 1
9362 fi
9363 fi
9364 # Okay, some application will build, or we don't care to check. Still
9365 # notify of subdirs not getting built.
9366 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9367 echo " ${notsupp}" 1>&2
9368 echo " (Any other directories should still work fine.)" 1>&2
9369 fi
9370
9371 case "$host" in
9372 *msdosdjgpp*)
9373 enable_gdbtk=no ;;
9374 esac
9375
9376 # To find our prefix, in gcc_cv_tool_prefix.
9377
9378 # The user is always right.
9379 if test "${PATH_SEPARATOR+set}" != set; then
9380 echo "#! /bin/sh" >conf$$.sh
9381 echo "exit 0" >>conf$$.sh
9382 chmod +x conf$$.sh
9383 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9384 PATH_SEPARATOR=';'
9385 else
9386 PATH_SEPARATOR=:
9387 fi
9388 rm -f conf$$.sh
9389 fi
9390
9391
9392 get_gcc_base_ver="cat"
9393
9394 # Check whether --with-gcc-major-version-only was given.
9395 if test "${with_gcc_major_version_only+set}" = set; then :
9396 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9397 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9398 fi
9399
9400 fi
9401
9402
9403
9404
9405
9406
9407 if test "x$exec_prefix" = xNONE; then
9408 if test "x$prefix" = xNONE; then
9409 gcc_cv_tool_prefix=$ac_default_prefix
9410 else
9411 gcc_cv_tool_prefix=$prefix
9412 fi
9413 else
9414 gcc_cv_tool_prefix=$exec_prefix
9415 fi
9416
9417 # If there is no compiler in the tree, use the PATH only. In any
9418 # case, if there is no compiler in the tree nobody should use
9419 # AS_FOR_TARGET and LD_FOR_TARGET.
9420 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9421 if test x$with_gcc_major_version_only = xyes ; then
9422 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9423 else
9424 gcc_version=`cat $srcdir/gcc/BASE-VER`
9425 fi
9426 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9427 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9428 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9429 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9430 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9431 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9432 else
9433 gcc_cv_tool_dirs=
9434 fi
9435
9436 if test x$build = x$target && test -n "$md_exec_prefix"; then
9437 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9438 fi
9439
9440
9441
9442 copy_dirs=
9443
9444
9445 # Check whether --with-build-sysroot was given.
9446 if test "${with_build_sysroot+set}" = set; then :
9447 withval=$with_build_sysroot; if test x"$withval" != x ; then
9448 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9449 fi
9450 else
9451 SYSROOT_CFLAGS_FOR_TARGET=
9452 fi
9453
9454
9455
9456
9457 # Check whether --with-debug-prefix-map was given.
9458 if test "${with_debug_prefix_map+set}" = set; then :
9459 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9460 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9461 for debug_map in $withval; do
9462 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9463 done
9464 fi
9465 else
9466 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9467 fi
9468
9469
9470
9471 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9472 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9473 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9474 # We want to ensure that TARGET libraries (which we know are built with
9475 # gcc) are built with "-O2 -g", so include those options when setting
9476 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9477 if test "x$CFLAGS_FOR_TARGET" = x; then
9478 if test "x${is_cross_compiler}" = xyes; then
9479 CFLAGS_FOR_TARGET="-g -O2"
9480 else
9481 CFLAGS_FOR_TARGET=$CFLAGS
9482 case " $CFLAGS " in
9483 *" -O2 "*) ;;
9484 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9485 esac
9486 case " $CFLAGS " in
9487 *" -g "* | *" -g3 "*) ;;
9488 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9489 esac
9490 fi
9491 fi
9492
9493
9494 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9495 if test "x${is_cross_compiler}" = xyes; then
9496 CXXFLAGS_FOR_TARGET="-g -O2"
9497 else
9498 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9499 case " $CXXFLAGS " in
9500 *" -O2 "*) ;;
9501 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9502 esac
9503 case " $CXXFLAGS " in
9504 *" -g "* | *" -g3 "*) ;;
9505 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9506 esac
9507 fi
9508 fi
9509
9510
9511
9512
9513 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9514 # the named directory are copied to $(tooldir)/sys-include.
9515 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9516 if test x${is_cross_compiler} = xno ; then
9517 echo 1>&2 '***' --with-headers is only supported when cross compiling
9518 exit 1
9519 fi
9520 if test x"${with_headers}" != xyes ; then
9521 x=${gcc_cv_tool_prefix}
9522 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9523 fi
9524 fi
9525
9526 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9527 # the name directories are copied to $(tooldir)/lib. Multiple directories
9528 # are permitted.
9529 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9530 if test x${is_cross_compiler} = xno ; then
9531 echo 1>&2 '***' --with-libs is only supported when cross compiling
9532 exit 1
9533 fi
9534 if test x"${with_libs}" != xyes ; then
9535 # Copy the libraries in reverse order, so that files in the first named
9536 # library override files in subsequent libraries.
9537 x=${gcc_cv_tool_prefix}
9538 for l in ${with_libs}; do
9539 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9540 done
9541 fi
9542 fi
9543
9544 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9545 #
9546 # This is done by determining whether or not the appropriate directory
9547 # is available, and by checking whether or not specific configurations
9548 # have requested that this magic not happen.
9549 #
9550 # The command line options always override the explicit settings in
9551 # configure.ac, and the settings in configure.ac override this magic.
9552 #
9553 # If the default for a toolchain is to use GNU as and ld, and you don't
9554 # want to do that, then you should use the --without-gnu-as and
9555 # --without-gnu-ld options for the configure script. Similarly, if
9556 # the default is to use the included zlib and you don't want to do that,
9557 # you should use the --with-system-zlib option for the configure script.
9558
9559 if test x${use_gnu_as} = x &&
9560 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9561 with_gnu_as=yes
9562 extra_host_args="$extra_host_args --with-gnu-as"
9563 fi
9564
9565 if test x${use_gnu_ld} = x &&
9566 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9567 with_gnu_ld=yes
9568 extra_host_args="$extra_host_args --with-gnu-ld"
9569 fi
9570
9571 if test x${use_included_zlib} = x &&
9572 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9573 :
9574 else
9575 with_system_zlib=yes
9576 extra_host_args="$extra_host_args --with-system-zlib"
9577 fi
9578
9579 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9580 # can detect this case.
9581
9582 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9583 with_newlib=yes
9584 extra_host_args="$extra_host_args --with-newlib"
9585 fi
9586
9587 # Handle ${copy_dirs}
9588 set fnord ${copy_dirs}
9589 shift
9590 while test $# != 0 ; do
9591 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9592 :
9593 else
9594 echo Copying $1 to $2
9595
9596 # Use the install script to create the directory and all required
9597 # parent directories.
9598 if test -d $2 ; then
9599 :
9600 else
9601 echo >config.temp
9602 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9603 fi
9604
9605 # Copy the directory, assuming we have tar.
9606 # FIXME: Should we use B in the second tar? Not all systems support it.
9607 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9608
9609 # It is the responsibility of the user to correctly adjust all
9610 # symlinks. If somebody can figure out how to handle them correctly
9611 # here, feel free to add the code.
9612
9613 echo $1 > $2/COPIED
9614 fi
9615 shift; shift
9616 done
9617
9618 # Determine a target-dependent exec_prefix that the installed
9619 # gcc will search in. Keep this list sorted by triplet, with
9620 # the *-*-osname triplets last.
9621 md_exec_prefix=
9622 case "${target}" in
9623 i[34567]86-pc-msdosdjgpp*)
9624 md_exec_prefix=/dev/env/DJDIR/bin
9625 ;;
9626 *-*-hpux* | \
9627 *-*-nto-qnx* | \
9628 *-*-solaris2*)
9629 md_exec_prefix=/usr/ccs/bin
9630 ;;
9631 esac
9632
9633 extra_arflags_for_target=
9634 extra_nmflags_for_target=
9635 extra_ranlibflags_for_target=
9636 target_makefile_frag=/dev/null
9637 case "${target}" in
9638 spu-*-*)
9639 target_makefile_frag="config/mt-spu"
9640 ;;
9641 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9642 target_makefile_frag="config/mt-sde"
9643 ;;
9644 mipsisa*-*-elfoabi*)
9645 target_makefile_frag="config/mt-mips-elfoabi"
9646 ;;
9647 mips*-*-*linux* | mips*-*-gnu*)
9648 target_makefile_frag="config/mt-mips-gnu"
9649 ;;
9650 nios2-*-elf*)
9651 target_makefile_frag="config/mt-nios2-elf"
9652 ;;
9653 *-*-linux-android*)
9654 target_makefile_frag="config/mt-android"
9655 ;;
9656 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9657 target_makefile_frag="config/mt-gnu"
9658 ;;
9659 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9660 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9661 # commands to handle both 32-bit and 64-bit objects. These flags are
9662 # harmless if we're using GNU nm or ar.
9663 extra_arflags_for_target=" -X32_64"
9664 extra_nmflags_for_target=" -B -X32_64"
9665 ;;
9666 esac
9667
9668 alphaieee_frag=/dev/null
9669 case $target in
9670 alpha*-*-*)
9671 # This just makes sure to use the -mieee option to build target libs.
9672 # This should probably be set individually by each library.
9673 alphaieee_frag="config/mt-alphaieee"
9674 ;;
9675 esac
9676
9677 # If --enable-target-optspace always use -Os instead of -O2 to build
9678 # the target libraries, similarly if it is not specified, use -Os
9679 # on selected platforms.
9680 ospace_frag=/dev/null
9681 case "${enable_target_optspace}:${target}" in
9682 yes:*)
9683 ospace_frag="config/mt-ospace"
9684 ;;
9685 :d30v-*)
9686 ospace_frag="config/mt-d30v"
9687 ;;
9688 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9689 ospace_frag="config/mt-ospace"
9690 ;;
9691 no:* | :*)
9692 ;;
9693 *)
9694 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9695 ;;
9696 esac
9697
9698 # Some systems (e.g., one of the i386-aix systems the gas testers are
9699 # using) don't handle "\$" correctly, so don't use it here.
9700 tooldir='${exec_prefix}'/${target_noncanonical}
9701 build_tooldir=${tooldir}
9702
9703 # Create a .gdbinit file which runs the one in srcdir
9704 # and tells GDB to look there for source files.
9705
9706 if test -r ${srcdir}/.gdbinit ; then
9707 case ${srcdir} in
9708 .) ;;
9709 *) cat > ./.gdbinit <<EOF
9710 # ${NO_EDIT}
9711 dir ${srcdir}
9712 dir .
9713 source ${srcdir}/.gdbinit
9714 EOF
9715 ;;
9716 esac
9717 fi
9718
9719 # Make sure that the compiler is able to generate an executable. If it
9720 # can't, we are probably in trouble. We don't care whether we can run the
9721 # executable--we might be using a cross compiler--we only care whether it
9722 # can be created. At this point the main configure script has set CC.
9723 we_are_ok=no
9724 echo "int main () { return 0; }" > conftest.c
9725 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9726 if test $? = 0 ; then
9727 if test -s conftest || test -s conftest.exe ; then
9728 we_are_ok=yes
9729 fi
9730 fi
9731 case $we_are_ok in
9732 no)
9733 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9734 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9735 rm -f conftest*
9736 exit 1
9737 ;;
9738 esac
9739 rm -f conftest*
9740
9741 # Decide which environment variable is used to find dynamic libraries.
9742 case "${host}" in
9743 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9744 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9745 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9746 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9747 esac
9748
9749 # On systems where the dynamic library environment variable is PATH,
9750 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9751 # built executables to PATH.
9752 if test "$RPATH_ENVVAR" = PATH; then
9753 GCC_SHLIB_SUBDIR=/shlib
9754 else
9755 GCC_SHLIB_SUBDIR=
9756 fi
9757
9758 # Adjust the toplevel makefile according to whether bootstrap was selected.
9759 case $enable_bootstrap in
9760 yes)
9761 bootstrap_suffix=bootstrap
9762 BUILD_CONFIG=bootstrap-debug
9763 ;;
9764 no)
9765 bootstrap_suffix=no-bootstrap
9766 BUILD_CONFIG=
9767 ;;
9768 esac
9769
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9771 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9772
9773
9774 # Check whether --with-build-config was given.
9775 if test "${with_build_config+set}" = set; then :
9776 withval=$with_build_config; case $with_build_config in
9777 yes) with_build_config= ;;
9778 no) with_build_config= BUILD_CONFIG= ;;
9779 esac
9780 fi
9781
9782
9783 if test "x${with_build_config}" != x; then
9784 BUILD_CONFIG=$with_build_config
9785 else
9786 case $BUILD_CONFIG in
9787 bootstrap-debug)
9788 if echo "int f (void) { return 0; }" > conftest.c &&
9789 ${CC} -c conftest.c &&
9790 mv conftest.o conftest.o.g0 &&
9791 ${CC} -c -g conftest.c &&
9792 mv conftest.o conftest.o.g &&
9793 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9794 :
9795 else
9796 BUILD_CONFIG=
9797 fi
9798 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9799 ;;
9800 esac
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9803 $as_echo "$BUILD_CONFIG" >&6; }
9804
9805
9806 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9808 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9809 # Check whether --enable-vtable-verify was given.
9810 if test "${enable_vtable_verify+set}" = set; then :
9811 enableval=$enable_vtable_verify; case "$enableval" in
9812 yes) enable_vtable_verify=yes ;;
9813 no) enable_vtable_verify=no ;;
9814 *) enable_vtable_verify=no;;
9815 esac
9816 else
9817 enable_vtable_verify=no
9818 fi
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9821 $as_echo "$enable_vtable_verify" >&6; }
9822
9823 # Record target_configdirs and the configure arguments for target and
9824 # build configuration in Makefile.
9825 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9826 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9827 bootstrap_fixincludes=no
9828
9829 # If we are building libgomp, bootstrap it.
9830 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9831 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9832 fi
9833
9834 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9835 # or bootstrap-ubsan, bootstrap it.
9836 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9837 case "$BUILD_CONFIG" in
9838 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9839 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9840 bootstrap_fixincludes=yes
9841 ;;
9842 esac
9843 fi
9844
9845 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9846 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9847 test "$enable_vtable_verify" != no; then
9848 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9849 fi
9850
9851 # If we are building libatomic and the list of enabled languages includes the
9852 # D frontend, bootstrap it.
9853 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9854 case ,${enable_languages}, in
9855 *,d,*)
9856 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9857 ;;
9858 esac
9859 fi
9860
9861 # Determine whether gdb needs tk/tcl or not.
9862 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9863 # and in that case we want gdb to be built without tk. Ugh!
9864 # In fact I believe gdb is the *only* package directly dependent on tk,
9865 # so we should be able to put the 'maybe's in unconditionally and
9866 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9867 # 100% sure that that's safe though.
9868
9869 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9870 case "$enable_gdbtk" in
9871 no)
9872 GDB_TK="" ;;
9873 yes)
9874 GDB_TK="${gdb_tk}" ;;
9875 *)
9876 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9877 # distro. Eventually someone will fix this and move Insight, nee
9878 # gdbtk to a separate directory.
9879 if test -d ${srcdir}/gdb/gdbtk ; then
9880 GDB_TK="${gdb_tk}"
9881 else
9882 GDB_TK=""
9883 fi
9884 ;;
9885 esac
9886 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9887 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9888
9889 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9890 # else does, only include them if one of these is built. The Makefile
9891 # provides the ordering, so it's enough here to add to the list.
9892 case " ${configdirs} " in
9893 *\ gdb\ *)
9894 configdirs="${configdirs} gnulib gdbsupport"
9895 ;;
9896 *\ gdbserver\ *)
9897 configdirs="${configdirs} gnulib gdbsupport"
9898 ;;
9899 *\ sim\ *)
9900 configdirs="${configdirs} gnulib"
9901 ;;
9902 esac
9903
9904 # Strip out unwanted targets.
9905
9906 # While at that, we remove Makefiles if we were started for recursive
9907 # configuration, so that the top-level Makefile reconfigures them,
9908 # like we used to do when configure itself was recursive.
9909
9910 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9911 # but now we're fixing up the Makefile ourselves with the additional
9912 # commands passed to AC_CONFIG_FILES. Use separate variables
9913 # extrasub-{build,host,target} not because there is any reason to split
9914 # the substitutions up that way, but only to remain below the limit of
9915 # 99 commands in a script, for HP-UX sed.
9916
9917 # Do not nest @if/@endif or @unless/@endunless pairs, because
9918 # configure will not warn you at all.
9919
9920 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9921 yes:yes:*\ gold\ *:*,c++,*) ;;
9922 yes:yes:*\ gold\ *:*)
9923 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9924 ;;
9925 esac
9926
9927 extrasub_build=
9928 for module in ${build_configdirs} ; do
9929 if test -z "${no_recursion}" \
9930 && test -f ${build_subdir}/${module}/Makefile; then
9931 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9932 rm -f ${build_subdir}/${module}/Makefile
9933 fi
9934 extrasub_build="$extrasub_build
9935 /^@if build-$module\$/d
9936 /^@endif build-$module\$/d
9937 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9938 /^@if build-$module-$bootstrap_suffix\$/d
9939 /^@endif build-$module-$bootstrap_suffix\$/d
9940 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9941 done
9942 extrasub_host=
9943 for module in ${configdirs} ; do
9944 if test -z "${no_recursion}"; then
9945 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9946 if test -f ${file}; then
9947 echo 1>&2 "*** removing ${file} to force reconfigure"
9948 rm -f ${file}
9949 fi
9950 done
9951 fi
9952 case ${module},${bootstrap_fixincludes} in
9953 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9954 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9955 esac
9956 extrasub_host="$extrasub_host
9957 /^@if $module\$/d
9958 /^@endif $module\$/d
9959 /^@unless $module\$/,/^@endunless $module\$/d
9960 /^@if $module-$host_bootstrap_suffix\$/d
9961 /^@endif $module-$host_bootstrap_suffix\$/d
9962 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9963 done
9964 extrasub_target=
9965 for module in ${target_configdirs} ; do
9966 if test -z "${no_recursion}" \
9967 && test -f ${target_subdir}/${module}/Makefile; then
9968 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9969 rm -f ${target_subdir}/${module}/Makefile
9970 fi
9971
9972 # We only bootstrap target libraries listed in bootstrap_target_libs.
9973 case $bootstrap_target_libs in
9974 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9975 *) target_bootstrap_suffix=no-bootstrap ;;
9976 esac
9977
9978 extrasub_target="$extrasub_target
9979 /^@if target-$module\$/d
9980 /^@endif target-$module\$/d
9981 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9982 /^@if target-$module-$target_bootstrap_suffix\$/d
9983 /^@endif target-$module-$target_bootstrap_suffix\$/d
9984 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9985 done
9986
9987 # Do the final fixup along with target modules.
9988 extrasub_target="$extrasub_target
9989 /^@if /,/^@endif /d
9990 /^@unless /d
9991 /^@endunless /d"
9992
9993 if test "$enable_pgo_build" != "no"; then
9994 extrasub_build="$extrasub_build
9995 /^@if pgo-build\$/d
9996 /^@endif pgo-build\$/d"
9997 fi
9998
9999 # Create the serialization dependencies. This uses a temporary file.
10000
10001 # Check whether --enable-serial-configure was given.
10002 if test "${enable_serial_configure+set}" = set; then :
10003 enableval=$enable_serial_configure;
10004 fi
10005
10006
10007 case ${enable_serial_configure} in
10008 yes)
10009 enable_serial_build_configure=yes
10010 enable_serial_host_configure=yes
10011 enable_serial_target_configure=yes
10012 ;;
10013 esac
10014
10015 # These force 'configure's to be done one at a time, to avoid problems
10016 # with contention over a shared config.cache.
10017 rm -f serdep.tmp
10018 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10019 echo '# serdep.tmp' > serdep.tmp
10020 fi
10021 olditem=
10022 test "x${enable_serial_build_configure}" = xyes &&
10023 for item in ${build_configdirs} ; do
10024 case ${olditem} in
10025 "") ;;
10026 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10027 esac
10028 olditem=${item}
10029 done
10030 olditem=
10031 test "x${enable_serial_host_configure}" = xyes &&
10032 for item in ${configdirs} ; do
10033 case ${olditem} in
10034 "") ;;
10035 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10036 esac
10037 olditem=${item}
10038 done
10039 olditem=
10040 test "x${enable_serial_target_configure}" = xyes &&
10041 for item in ${target_configdirs} ; do
10042 case ${olditem} in
10043 "") ;;
10044 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10045 esac
10046 olditem=${item}
10047 done
10048 serialization_dependencies=serdep.tmp
10049
10050
10051 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10052 # target, nonopt, and variable assignments. These are the ones we
10053 # might not want to pass down to subconfigures. The exception being
10054 # --cache-file=/dev/null, which is used to turn off the use of cache
10055 # files altogether, and which should be passed on to subconfigures.
10056 # Also strip program-prefix, program-suffix, and program-transform-name,
10057 # so that we can pass down a consistent program-transform-name.
10058 baseargs=
10059 tbaseargs=
10060 keep_next=no
10061 skip_next=no
10062 eval "set -- $ac_configure_args"
10063 for ac_arg
10064 do
10065 if test X"$skip_next" = X"yes"; then
10066 skip_next=no
10067 continue
10068 fi
10069 if test X"$keep_next" = X"yes"; then
10070 case $ac_arg in
10071 *\'*)
10072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10073 esac
10074 baseargs="$baseargs '$ac_arg'"
10075 tbaseargs="$tbaseargs '$ac_arg'"
10076 keep_next=no
10077 continue
10078 fi
10079
10080 # Handle separated arguments. Based on the logic generated by
10081 # autoconf 2.59.
10082 case $ac_arg in
10083 *=* | --config-cache | -C | -disable-* | --disable-* \
10084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10086 | -with-* | --with-* | -without-* | --without-* | --x)
10087 separate_arg=no
10088 ;;
10089 -*)
10090 separate_arg=yes
10091 ;;
10092 *)
10093 separate_arg=no
10094 ;;
10095 esac
10096
10097 skip_targ=no
10098 case $ac_arg in
10099
10100 --with-* | --without-*)
10101 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10102
10103 case $libopt in
10104 *[-_]include)
10105 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10106 ;;
10107 *[-_]lib)
10108 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10109 ;;
10110 *)
10111 lib=$libopt
10112 ;;
10113 esac
10114
10115
10116 case $lib in
10117 mpc | mpfr | gmp | isl)
10118 # If we're processing --with-$lib, --with-$lib-include or
10119 # --with-$lib-lib, for one of the libs above, and target is
10120 # different from host, don't pass the current argument to any
10121 # target library's configure.
10122 if test x$is_cross_compiler = xyes; then
10123 skip_targ=yes
10124 fi
10125 ;;
10126 esac
10127 ;;
10128 esac
10129
10130 case "$ac_arg" in
10131 --cache-file=/dev/null | \
10132 -cache-file=/dev/null )
10133 # Handled here to avoid the test to skip args below.
10134 baseargs="$baseargs '$ac_arg'"
10135 tbaseargs="$tbaseargs '$ac_arg'"
10136 # Assert: $separate_arg should always be no.
10137 keep_next=$separate_arg
10138 ;;
10139 --no*)
10140 continue
10141 ;;
10142 --c* | \
10143 --sr* | \
10144 --ho* | \
10145 --bu* | \
10146 --t* | \
10147 --program-* | \
10148 -cache_file* | \
10149 -srcdir* | \
10150 -host* | \
10151 -build* | \
10152 -target* | \
10153 -program-prefix* | \
10154 -program-suffix* | \
10155 -program-transform-name* )
10156 skip_next=$separate_arg
10157 continue
10158 ;;
10159 -*)
10160 # An option. Add it.
10161 case $ac_arg in
10162 *\'*)
10163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10164 esac
10165 baseargs="$baseargs '$ac_arg'"
10166 if test X"$skip_targ" = Xno; then
10167 tbaseargs="$tbaseargs '$ac_arg'"
10168 fi
10169 keep_next=$separate_arg
10170 ;;
10171 *)
10172 # Either a variable assignment, or a nonopt (triplet). Don't
10173 # pass it down; let the Makefile handle this.
10174 continue
10175 ;;
10176 esac
10177 done
10178 # Remove the initial space we just introduced and, as these will be
10179 # expanded by make, quote '$'.
10180 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10181
10182 # Add in --program-transform-name, after --program-prefix and
10183 # --program-suffix have been applied to it. Autoconf has already
10184 # doubled dollar signs and backslashes in program_transform_name; we want
10185 # the backslashes un-doubled, and then the entire thing wrapped in single
10186 # quotes, because this will be expanded first by make and then by the shell.
10187 # Also, because we want to override the logic in subdir configure scripts to
10188 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10189 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10190 ${program_transform_name}
10191 EOF_SED
10192 gcc_transform_name=`cat conftestsed.out`
10193 rm -f conftestsed.out
10194 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10195 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10196 if test "$silent" = yes; then
10197 baseargs="$baseargs --silent"
10198 tbaseargs="$tbaseargs --silent"
10199 fi
10200 baseargs="$baseargs --disable-option-checking"
10201 tbaseargs="$tbaseargs --disable-option-checking"
10202
10203 # Record and document user additions to sub configure arguments.
10204
10205
10206
10207
10208 # For the build-side libraries, we just need to pretend we're native,
10209 # and not use the same cache file. Multilibs are neither needed nor
10210 # desired. We can't even use the same cache file for all build-side
10211 # libraries, as they're compiled differently; some with C, some with
10212 # C++ or with different feature-enabling options.
10213 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10214
10215 # For host modules, accept cache file option, or specification as blank.
10216 case "${cache_file}" in
10217 "") # empty
10218 cache_file_option="" ;;
10219 /* | [A-Za-z]:[\\/]* ) # absolute path
10220 cache_file_option="--cache-file=${cache_file}" ;;
10221 *) # relative path
10222 cache_file_option="--cache-file=../${cache_file}" ;;
10223 esac
10224
10225 # Host dirs don't like to share a cache file either, horribly enough.
10226 # This seems to be due to autoconf 2.5x stupidity.
10227 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10228
10229 target_configargs="$target_configargs ${tbaseargs}"
10230
10231 # Passing a --with-cross-host argument lets the target libraries know
10232 # whether they are being built with a cross-compiler or being built
10233 # native. However, it would be better to use other mechanisms to make the
10234 # sorts of decisions they want to make on this basis. Please consider
10235 # this option to be deprecated. FIXME.
10236 if test x${is_cross_compiler} = xyes ; then
10237 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10238 fi
10239
10240 # Special user-friendly check for native x86_64-linux build, if
10241 # multilib is not explicitly enabled.
10242 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10243 x86_64-*linux*:yes:$build:$build:)
10244 # Make sure we have a development environment that handles 32-bit
10245 dev64=no
10246 echo "int main () { return 0; }" > conftest.c
10247 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10248 if test $? = 0 ; then
10249 if test -s conftest || test -s conftest.exe ; then
10250 dev64=yes
10251 fi
10252 fi
10253 rm -f conftest*
10254 if test x${dev64} != xyes ; then
10255 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
10256 fi
10257 ;;
10258 esac
10259
10260 # Default to --enable-multilib.
10261 if test x${enable_multilib} = x ; then
10262 target_configargs="--enable-multilib ${target_configargs}"
10263 fi
10264
10265 # Pass --with-newlib if appropriate. Note that target_configdirs has
10266 # changed from the earlier setting of with_newlib.
10267 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10268 target_configargs="--with-newlib ${target_configargs}"
10269 fi
10270
10271 # Different target subdirs use different values of certain variables
10272 # (notably CXX). Worse, multilibs use *lots* of different values.
10273 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10274 # it doesn't automatically accept command-line overrides of them.
10275 # This means it's not safe for target subdirs to share a cache file,
10276 # which is disgusting, but there you have it. Hopefully this can be
10277 # fixed in future. It's still worthwhile to use a cache file for each
10278 # directory. I think.
10279
10280 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10281 # We need to pass --target, as newer autoconf's requires consistency
10282 # for target_alias and gcc doesn't manage it consistently.
10283 target_configargs="--cache-file=./config.cache ${target_configargs}"
10284
10285 FLAGS_FOR_TARGET=
10286 case " $target_configdirs " in
10287 *" newlib "*)
10288 case " $target_configargs " in
10289 *" --with-newlib "*)
10290 case "$target" in
10291 *-cygwin*)
10292 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10293 ;;
10294 esac
10295
10296 # If we're not building GCC, don't discard standard headers.
10297 if test -d ${srcdir}/gcc; then
10298 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10299
10300 if test "${build}" != "${host}"; then
10301 # On Canadian crosses, CC_FOR_TARGET will have already been set
10302 # by `configure', so we won't have an opportunity to add -Bgcc/
10303 # to it. This is right: we don't want to search that directory
10304 # for binaries, but we want the header files in there, so add
10305 # them explicitly.
10306 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10307
10308 # Someone might think of using the pre-installed headers on
10309 # Canadian crosses, in case the installed compiler is not fully
10310 # compatible with the compiler being built. In this case, it
10311 # would be better to flag an error than risking having
10312 # incompatible object files being constructed. We can't
10313 # guarantee that an error will be flagged, but let's hope the
10314 # compiler will do it, when presented with incompatible header
10315 # files.
10316 fi
10317 fi
10318
10319 case "${target}-${is_cross_compiler}" in
10320 i[3456789]86-*-linux*-no)
10321 # Here host == target, so we don't need to build gcc,
10322 # so we don't want to discard standard headers.
10323 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10324 ;;
10325 *)
10326 # If we're building newlib, use its generic headers last, but search
10327 # for any libc-related directories first (so make it the last -B
10328 # switch).
10329 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10330
10331 # If we're building libgloss, find the startup file, simulator library
10332 # and linker script.
10333 case " $target_configdirs " in
10334 *" libgloss "*)
10335 # Look for startup file, simulator library and maybe linker script.
10336 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10337 # Look for libnosys.a in case the target needs it.
10338 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10339 # Most targets have the linker script in the source directory.
10340 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10341 ;;
10342 esac
10343 ;;
10344 esac
10345 ;;
10346 esac
10347 ;;
10348 esac
10349
10350 case "$target" in
10351 x86_64-*mingw* | *-w64-mingw*)
10352 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10353 # however, use a symlink named 'mingw' in ${prefix} .
10354 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10355 ;;
10356 *-mingw*)
10357 # MinGW can't be handled as Cygwin above since it does not use newlib.
10358 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'
10359 ;;
10360 esac
10361
10362 # Allow the user to override the flags for
10363 # our build compiler if desired.
10364 if test x"${build}" = x"${host}" ; then
10365 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10366 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10367 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10368 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10369 fi
10370
10371 # On Canadian crosses, we'll be searching the right directories for
10372 # the previously-installed cross compiler, so don't bother to add
10373 # flags for directories within the install tree of the compiler
10374 # being built; programs in there won't even run.
10375 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10376 # Search for pre-installed headers if nothing else fits.
10377 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10378 fi
10379
10380 if test "x${use_gnu_ld}" = x &&
10381 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10382 # Arrange for us to find uninstalled linker scripts.
10383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10384 fi
10385
10386 # Search for other target-specific linker scripts and such.
10387 case "${target}" in
10388 mep*)
10389 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10390 ;;
10391 # The VxWorks support for shared libraries is getting in
10392 # incrementally. Make sure it doesn't get activated implicitly:
10393 *vxworks*)
10394 if test "${enable_shared-unset}" = unset ; then
10395 enable_shared=no
10396 # So the build of libraries knows ...
10397 target_configargs="${target_configargs} --disable-shared"
10398 # So gcc knows ...
10399 host_configargs="${host_configargs} --disable-shared"
10400 fi
10401 ;;
10402 esac
10403
10404 # Makefile fragments.
10405 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10406 do
10407 eval fragval=\$$frag
10408 if test $fragval != /dev/null; then
10409 eval $frag=${srcdir}/$fragval
10410 fi
10411 done
10412
10413
10414
10415
10416
10417 # Miscellanea: directories, flags, etc.
10418
10419
10420
10421
10422
10423
10424
10425
10426 # Build module lists & subconfigure args.
10427
10428
10429
10430 # Host module lists & subconfigure args.
10431
10432
10433
10434
10435 # Target module lists & subconfigure args.
10436
10437
10438
10439 # Build tools.
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460 # Generate default definitions for YACC, M4, LEX and other programs that run
10461 # on the build machine. These are used if the Makefile can't locate these
10462 # programs in objdir.
10463 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10464
10465 for ac_prog in 'bison -y' byacc yacc
10466 do
10467 # Extract the first word of "$ac_prog", so it can be a program name with args.
10468 set dummy $ac_prog; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_prog_YACC+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 if test -n "$YACC"; then
10475 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_YACC="$ac_prog"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10487 fi
10488 done
10489 done
10490 IFS=$as_save_IFS
10491
10492 fi
10493 fi
10494 YACC=$ac_cv_prog_YACC
10495 if test -n "$YACC"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10497 $as_echo "$YACC" >&6; }
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10501 fi
10502
10503
10504 test -n "$YACC" && break
10505 done
10506 test -n "$YACC" || YACC="$MISSING bison -y"
10507
10508 case " $build_configdirs " in
10509 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10510 esac
10511
10512 for ac_prog in bison
10513 do
10514 # Extract the first word of "$ac_prog", so it can be a program name with args.
10515 set dummy $ac_prog; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if ${ac_cv_prog_BISON+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 if test -n "$BISON"; then
10522 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_prog_BISON="$ac_prog"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535 done
10536 done
10537 IFS=$as_save_IFS
10538
10539 fi
10540 fi
10541 BISON=$ac_cv_prog_BISON
10542 if test -n "$BISON"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10544 $as_echo "$BISON" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10548 fi
10549
10550
10551 test -n "$BISON" && break
10552 done
10553 test -n "$BISON" || BISON="$MISSING bison"
10554
10555 case " $build_configdirs " in
10556 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10557 esac
10558
10559 for ac_prog in gm4 gnum4 m4
10560 do
10561 # Extract the first word of "$ac_prog", so it can be a program name with args.
10562 set dummy $ac_prog; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if ${ac_cv_prog_M4+:} false; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 if test -n "$M4"; then
10569 ac_cv_prog_M4="$M4" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_M4="$ac_prog"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582 done
10583 done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 M4=$ac_cv_prog_M4
10589 if test -n "$M4"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10591 $as_echo "$M4" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598 test -n "$M4" && break
10599 done
10600 test -n "$M4" || M4="$MISSING m4"
10601
10602 case " $build_configdirs " in
10603 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10604 esac
10605
10606 for ac_prog in flex lex
10607 do
10608 # Extract the first word of "$ac_prog", so it can be a program name with args.
10609 set dummy $ac_prog; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611 $as_echo_n "checking for $ac_word... " >&6; }
10612 if ${ac_cv_prog_LEX+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 if test -n "$LEX"; then
10616 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10617 else
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_LEX="$ac_prog"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629 done
10630 done
10631 IFS=$as_save_IFS
10632
10633 fi
10634 fi
10635 LEX=$ac_cv_prog_LEX
10636 if test -n "$LEX"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10638 $as_echo "$LEX" >&6; }
10639 else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10642 fi
10643
10644
10645 test -n "$LEX" && break
10646 done
10647 test -n "$LEX" || LEX="$MISSING flex"
10648
10649 case " $build_configdirs " in
10650 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10651 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10652 esac
10653
10654 for ac_prog in flex
10655 do
10656 # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if ${ac_cv_prog_FLEX+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 if test -n "$FLEX"; then
10664 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_FLEX="$ac_prog"
10674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677 done
10678 done
10679 IFS=$as_save_IFS
10680
10681 fi
10682 fi
10683 FLEX=$ac_cv_prog_FLEX
10684 if test -n "$FLEX"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10686 $as_echo "$FLEX" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691
10692
10693 test -n "$FLEX" && break
10694 done
10695 test -n "$FLEX" || FLEX="$MISSING flex"
10696
10697 case " $build_configdirs " in
10698 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10699 esac
10700
10701 for ac_prog in makeinfo
10702 do
10703 # Extract the first word of "$ac_prog", so it can be a program name with args.
10704 set dummy $ac_prog; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if ${ac_cv_prog_MAKEINFO+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test -n "$MAKEINFO"; then
10711 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10715 do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_prog_MAKEINFO="$ac_prog"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724 done
10725 done
10726 IFS=$as_save_IFS
10727
10728 fi
10729 fi
10730 MAKEINFO=$ac_cv_prog_MAKEINFO
10731 if test -n "$MAKEINFO"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10733 $as_echo "$MAKEINFO" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10737 fi
10738
10739
10740 test -n "$MAKEINFO" && break
10741 done
10742 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10743
10744 case " $build_configdirs " in
10745 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10746 *)
10747
10748 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10749 # higher, else we use the "missing" dummy.
10750 if ${MAKEINFO} --version \
10751 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10752 :
10753 else
10754 MAKEINFO="$MISSING makeinfo"
10755 fi
10756 ;;
10757
10758 esac
10759
10760 # FIXME: expect and dejagnu may become build tools?
10761
10762 for ac_prog in expect
10763 do
10764 # Extract the first word of "$ac_prog", so it can be a program name with args.
10765 set dummy $ac_prog; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if ${ac_cv_prog_EXPECT+:} false; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10771 if test -n "$EXPECT"; then
10772 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10773 else
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10776 do
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_prog_EXPECT="$ac_prog"
10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 break 2
10784 fi
10785 done
10786 done
10787 IFS=$as_save_IFS
10788
10789 fi
10790 fi
10791 EXPECT=$ac_cv_prog_EXPECT
10792 if test -n "$EXPECT"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10794 $as_echo "$EXPECT" >&6; }
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10798 fi
10799
10800
10801 test -n "$EXPECT" && break
10802 done
10803 test -n "$EXPECT" || EXPECT="expect"
10804
10805 case " $configdirs " in
10806 *" expect "*)
10807 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10808 ;;
10809 esac
10810
10811 for ac_prog in runtest
10812 do
10813 # Extract the first word of "$ac_prog", so it can be a program name with args.
10814 set dummy $ac_prog; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816 $as_echo_n "checking for $ac_word... " >&6; }
10817 if ${ac_cv_prog_RUNTEST+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 if test -n "$RUNTEST"; then
10821 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10822 else
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_RUNTEST="$ac_prog"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834 done
10835 done
10836 IFS=$as_save_IFS
10837
10838 fi
10839 fi
10840 RUNTEST=$ac_cv_prog_RUNTEST
10841 if test -n "$RUNTEST"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10843 $as_echo "$RUNTEST" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10847 fi
10848
10849
10850 test -n "$RUNTEST" && break
10851 done
10852 test -n "$RUNTEST" || RUNTEST="runtest"
10853
10854 case " $configdirs " in
10855 *" dejagnu "*)
10856 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10857 ;;
10858 esac
10859
10860
10861 # Host tools.
10862 ncn_tool_prefix=
10863 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10864 ncn_target_tool_prefix=
10865 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10866
10867
10868
10869 if test -n "$AR"; then
10870 ac_cv_prog_AR=$AR
10871 elif test -n "$ac_cv_prog_AR"; then
10872 AR=$ac_cv_prog_AR
10873 fi
10874
10875 if test -n "$ac_cv_prog_AR"; then
10876 for ncn_progname in ar; do
10877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10878 set dummy ${ncn_progname}; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880 $as_echo_n "checking for $ac_word... " >&6; }
10881 if ${ac_cv_prog_AR+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 if test -n "$AR"; then
10885 ac_cv_prog_AR="$AR" # Let the user override the test.
10886 else
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10889 do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_prog_AR="${ncn_progname}"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898 done
10899 done
10900 IFS=$as_save_IFS
10901
10902 fi
10903 fi
10904 AR=$ac_cv_prog_AR
10905 if test -n "$AR"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10907 $as_echo "$AR" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912
10913
10914 done
10915 fi
10916
10917 for ncn_progname in ar; do
10918 if test -n "$ncn_tool_prefix"; then
10919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if ${ac_cv_prog_AR+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 if test -n "$AR"; then
10927 ac_cv_prog_AR="$AR" # Let the user override the test.
10928 else
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10931 do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10939 fi
10940 done
10941 done
10942 IFS=$as_save_IFS
10943
10944 fi
10945 fi
10946 AR=$ac_cv_prog_AR
10947 if test -n "$AR"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10949 $as_echo "$AR" >&6; }
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952 $as_echo "no" >&6; }
10953 fi
10954
10955
10956 fi
10957 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10959 set dummy ${ncn_progname}; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_prog_AR+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test -n "$AR"; then
10966 ac_cv_prog_AR="$AR" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_prog_AR="${ncn_progname}"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979 done
10980 done
10981 IFS=$as_save_IFS
10982
10983 fi
10984 fi
10985 AR=$ac_cv_prog_AR
10986 if test -n "$AR"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10988 $as_echo "$AR" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993
10994
10995 fi
10996 test -n "$ac_cv_prog_AR" && break
10997 done
10998
10999 if test -z "$ac_cv_prog_AR" ; then
11000 set dummy ar
11001 if test $build = $host ; then
11002 AR="$2"
11003 else
11004 AR="${ncn_tool_prefix}$2"
11005 fi
11006 fi
11007
11008
11009
11010 if test -n "$AS"; then
11011 ac_cv_prog_AS=$AS
11012 elif test -n "$ac_cv_prog_AS"; then
11013 AS=$ac_cv_prog_AS
11014 fi
11015
11016 if test -n "$ac_cv_prog_AS"; then
11017 for ncn_progname in as; do
11018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11019 set dummy ${ncn_progname}; ac_word=$2
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021 $as_echo_n "checking for $ac_word... " >&6; }
11022 if ${ac_cv_prog_AS+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 if test -n "$AS"; then
11026 ac_cv_prog_AS="$AS" # Let the user override the test.
11027 else
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11030 do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035 ac_cv_prog_AS="${ncn_progname}"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039 done
11040 done
11041 IFS=$as_save_IFS
11042
11043 fi
11044 fi
11045 AS=$ac_cv_prog_AS
11046 if test -n "$AS"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11048 $as_echo "$AS" >&6; }
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11052 fi
11053
11054
11055 done
11056 fi
11057
11058 for ncn_progname in as; do
11059 if test -n "$ncn_tool_prefix"; then
11060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if ${ac_cv_prog_AS+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 if test -n "$AS"; then
11068 ac_cv_prog_AS="$AS" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11080 fi
11081 done
11082 done
11083 IFS=$as_save_IFS
11084
11085 fi
11086 fi
11087 AS=$ac_cv_prog_AS
11088 if test -n "$AS"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11090 $as_echo "$AS" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11094 fi
11095
11096
11097 fi
11098 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11100 set dummy ${ncn_progname}; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if ${ac_cv_prog_AS+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 if test -n "$AS"; then
11107 ac_cv_prog_AS="$AS" # Let the user override the test.
11108 else
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116 ac_cv_prog_AS="${ncn_progname}"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11119 fi
11120 done
11121 done
11122 IFS=$as_save_IFS
11123
11124 fi
11125 fi
11126 AS=$ac_cv_prog_AS
11127 if test -n "$AS"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11129 $as_echo "$AS" >&6; }
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133 fi
11134
11135
11136 fi
11137 test -n "$ac_cv_prog_AS" && break
11138 done
11139
11140 if test -z "$ac_cv_prog_AS" ; then
11141 set dummy as
11142 if test $build = $host ; then
11143 AS="$2"
11144 else
11145 AS="${ncn_tool_prefix}$2"
11146 fi
11147 fi
11148
11149
11150
11151 if test -n "$DLLTOOL"; then
11152 ac_cv_prog_DLLTOOL=$DLLTOOL
11153 elif test -n "$ac_cv_prog_DLLTOOL"; then
11154 DLLTOOL=$ac_cv_prog_DLLTOOL
11155 fi
11156
11157 if test -n "$ac_cv_prog_DLLTOOL"; then
11158 for ncn_progname in dlltool; do
11159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11160 set dummy ${ncn_progname}; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_prog_DLLTOOL+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 if test -n "$DLLTOOL"; then
11167 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11168 else
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11171 do
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11176 ac_cv_prog_DLLTOOL="${ncn_progname}"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11179 fi
11180 done
11181 done
11182 IFS=$as_save_IFS
11183
11184 fi
11185 fi
11186 DLLTOOL=$ac_cv_prog_DLLTOOL
11187 if test -n "$DLLTOOL"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11189 $as_echo "$DLLTOOL" >&6; }
11190 else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11193 fi
11194
11195
11196 done
11197 fi
11198
11199 for ncn_progname in dlltool; do
11200 if test -n "$ncn_tool_prefix"; then
11201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11202 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_prog_DLLTOOL+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 if test -n "$DLLTOOL"; then
11209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11210 else
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11213 do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11221 fi
11222 done
11223 done
11224 IFS=$as_save_IFS
11225
11226 fi
11227 fi
11228 DLLTOOL=$ac_cv_prog_DLLTOOL
11229 if test -n "$DLLTOOL"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11231 $as_echo "$DLLTOOL" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236
11237
11238 fi
11239 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11241 set dummy ${ncn_progname}; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243 $as_echo_n "checking for $ac_word... " >&6; }
11244 if ${ac_cv_prog_DLLTOOL+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 if test -n "$DLLTOOL"; then
11248 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11249 else
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11252 do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257 ac_cv_prog_DLLTOOL="${ncn_progname}"
11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11260 fi
11261 done
11262 done
11263 IFS=$as_save_IFS
11264
11265 fi
11266 fi
11267 DLLTOOL=$ac_cv_prog_DLLTOOL
11268 if test -n "$DLLTOOL"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11270 $as_echo "$DLLTOOL" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275
11276
11277 fi
11278 test -n "$ac_cv_prog_DLLTOOL" && break
11279 done
11280
11281 if test -z "$ac_cv_prog_DLLTOOL" ; then
11282 set dummy dlltool
11283 if test $build = $host ; then
11284 DLLTOOL="$2"
11285 else
11286 DLLTOOL="${ncn_tool_prefix}$2"
11287 fi
11288 fi
11289
11290
11291
11292 if test -n "$DSYMUTIL"; then
11293 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11294 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11295 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11296 fi
11297
11298 if test -n "$ac_cv_prog_DSYMUTIL"; then
11299 for ncn_progname in dsymutil; do
11300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11301 set dummy ${ncn_progname}; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 if test -n "$DSYMUTIL"; then
11308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321 done
11322 done
11323 IFS=$as_save_IFS
11324
11325 fi
11326 fi
11327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11328 if test -n "$DSYMUTIL"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11330 $as_echo "$DSYMUTIL" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335
11336
11337 done
11338 fi
11339
11340 for ncn_progname in dsymutil; do
11341 if test -n "$ncn_tool_prefix"; then
11342 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11343 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 if test -n "$DSYMUTIL"; then
11350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363 done
11364 done
11365 IFS=$as_save_IFS
11366
11367 fi
11368 fi
11369 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11370 if test -n "$DSYMUTIL"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11372 $as_echo "$DSYMUTIL" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377
11378
11379 fi
11380 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11382 set dummy ${ncn_progname}; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -n "$DSYMUTIL"; then
11389 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11409 if test -n "$DSYMUTIL"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11411 $as_echo "$DSYMUTIL" >&6; }
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417
11418 fi
11419 test -n "$ac_cv_prog_DSYMUTIL" && break
11420 done
11421
11422 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11423 set dummy dsymutil
11424 if test $build = $host ; then
11425 DSYMUTIL="$2"
11426 else
11427 DSYMUTIL="${ncn_tool_prefix}$2"
11428 fi
11429 fi
11430
11431
11432
11433 if test -n "$LD"; then
11434 ac_cv_prog_LD=$LD
11435 elif test -n "$ac_cv_prog_LD"; then
11436 LD=$ac_cv_prog_LD
11437 fi
11438
11439 if test -n "$ac_cv_prog_LD"; then
11440 for ncn_progname in ld; do
11441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11442 set dummy ${ncn_progname}; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_prog_LD+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 if test -n "$LD"; then
11449 ac_cv_prog_LD="$LD" # Let the user override the test.
11450 else
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11453 do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458 ac_cv_prog_LD="${ncn_progname}"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 break 2
11461 fi
11462 done
11463 done
11464 IFS=$as_save_IFS
11465
11466 fi
11467 fi
11468 LD=$ac_cv_prog_LD
11469 if test -n "$LD"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11471 $as_echo "$LD" >&6; }
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 fi
11476
11477
11478 done
11479 fi
11480
11481 for ncn_progname in ld; do
11482 if test -n "$ncn_tool_prefix"; then
11483 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11484 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_prog_LD+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 if test -n "$LD"; then
11491 ac_cv_prog_LD="$LD" # Let the user override the test.
11492 else
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11495 do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504 done
11505 done
11506 IFS=$as_save_IFS
11507
11508 fi
11509 fi
11510 LD=$ac_cv_prog_LD
11511 if test -n "$LD"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11513 $as_echo "$LD" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11517 fi
11518
11519
11520 fi
11521 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11523 set dummy ${ncn_progname}; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if ${ac_cv_prog_LD+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 if test -n "$LD"; then
11530 ac_cv_prog_LD="$LD" # Let the user override the test.
11531 else
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11534 do
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539 ac_cv_prog_LD="${ncn_progname}"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11542 fi
11543 done
11544 done
11545 IFS=$as_save_IFS
11546
11547 fi
11548 fi
11549 LD=$ac_cv_prog_LD
11550 if test -n "$LD"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11552 $as_echo "$LD" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 fi
11557
11558
11559 fi
11560 test -n "$ac_cv_prog_LD" && break
11561 done
11562
11563 if test -z "$ac_cv_prog_LD" ; then
11564 set dummy ld
11565 if test $build = $host ; then
11566 LD="$2"
11567 else
11568 LD="${ncn_tool_prefix}$2"
11569 fi
11570 fi
11571
11572
11573
11574 if test -n "$LIPO"; then
11575 ac_cv_prog_LIPO=$LIPO
11576 elif test -n "$ac_cv_prog_LIPO"; then
11577 LIPO=$ac_cv_prog_LIPO
11578 fi
11579
11580 if test -n "$ac_cv_prog_LIPO"; then
11581 for ncn_progname in lipo; do
11582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11583 set dummy ${ncn_progname}; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_prog_LIPO+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 if test -n "$LIPO"; then
11590 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11591 else
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_LIPO="${ncn_progname}"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603 done
11604 done
11605 IFS=$as_save_IFS
11606
11607 fi
11608 fi
11609 LIPO=$ac_cv_prog_LIPO
11610 if test -n "$LIPO"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11612 $as_echo "$LIPO" >&6; }
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11616 fi
11617
11618
11619 done
11620 fi
11621
11622 for ncn_progname in lipo; do
11623 if test -n "$ncn_tool_prefix"; then
11624 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if ${ac_cv_prog_LIPO+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$LIPO"; then
11632 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645 done
11646 done
11647 IFS=$as_save_IFS
11648
11649 fi
11650 fi
11651 LIPO=$ac_cv_prog_LIPO
11652 if test -n "$LIPO"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11654 $as_echo "$LIPO" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661 fi
11662 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664 set dummy ${ncn_progname}; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_prog_LIPO+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 if test -n "$LIPO"; then
11671 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11672 else
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_prog_LIPO="${ncn_progname}"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684 done
11685 done
11686 IFS=$as_save_IFS
11687
11688 fi
11689 fi
11690 LIPO=$ac_cv_prog_LIPO
11691 if test -n "$LIPO"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11693 $as_echo "$LIPO" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 fi
11698
11699
11700 fi
11701 test -n "$ac_cv_prog_LIPO" && break
11702 done
11703
11704 if test -z "$ac_cv_prog_LIPO" ; then
11705 set dummy lipo
11706 if test $build = $host ; then
11707 LIPO="$2"
11708 else
11709 LIPO="${ncn_tool_prefix}$2"
11710 fi
11711 fi
11712
11713
11714
11715 if test -n "$NM"; then
11716 ac_cv_prog_NM=$NM
11717 elif test -n "$ac_cv_prog_NM"; then
11718 NM=$ac_cv_prog_NM
11719 fi
11720
11721 if test -n "$ac_cv_prog_NM"; then
11722 for ncn_progname in nm; do
11723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if ${ac_cv_prog_NM+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 if test -n "$NM"; then
11731 ac_cv_prog_NM="$NM" # Let the user override the test.
11732 else
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_prog_NM="${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 fi
11749 fi
11750 NM=$ac_cv_prog_NM
11751 if test -n "$NM"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11753 $as_echo "$NM" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758
11759
11760 done
11761 fi
11762
11763 for ncn_progname in nm; do
11764 if test -n "$ncn_tool_prefix"; then
11765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if ${ac_cv_prog_NM+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 if test -n "$NM"; then
11773 ac_cv_prog_NM="$NM" # Let the user override the test.
11774 else
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11777 do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11785 fi
11786 done
11787 done
11788 IFS=$as_save_IFS
11789
11790 fi
11791 fi
11792 NM=$ac_cv_prog_NM
11793 if test -n "$NM"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11795 $as_echo "$NM" >&6; }
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11799 fi
11800
11801
11802 fi
11803 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11805 set dummy ${ncn_progname}; 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; }
11808 if ${ac_cv_prog_NM+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 if test -n "$NM"; then
11812 ac_cv_prog_NM="$NM" # Let the user override the test.
11813 else
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11816 do
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_NM="${ncn_progname}"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825 done
11826 done
11827 IFS=$as_save_IFS
11828
11829 fi
11830 fi
11831 NM=$ac_cv_prog_NM
11832 if test -n "$NM"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11834 $as_echo "$NM" >&6; }
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 fi
11839
11840
11841 fi
11842 test -n "$ac_cv_prog_NM" && break
11843 done
11844
11845 if test -z "$ac_cv_prog_NM" ; then
11846 set dummy nm
11847 if test $build = $host ; then
11848 NM="$2"
11849 else
11850 NM="${ncn_tool_prefix}$2"
11851 fi
11852 fi
11853
11854
11855
11856 if test -n "$RANLIB"; then
11857 ac_cv_prog_RANLIB=$RANLIB
11858 elif test -n "$ac_cv_prog_RANLIB"; then
11859 RANLIB=$ac_cv_prog_RANLIB
11860 fi
11861
11862 if test -n "$ac_cv_prog_RANLIB"; then
11863 for ncn_progname in ranlib; do
11864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11865 set dummy ${ncn_progname}; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_prog_RANLIB+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test -n "$RANLIB"; then
11872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11876 do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_prog_RANLIB="${ncn_progname}"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885 done
11886 done
11887 IFS=$as_save_IFS
11888
11889 fi
11890 fi
11891 RANLIB=$ac_cv_prog_RANLIB
11892 if test -n "$RANLIB"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11894 $as_echo "$RANLIB" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 fi
11899
11900
11901 done
11902 fi
11903
11904 for ncn_progname in ranlib; do
11905 if test -n "$ncn_tool_prefix"; then
11906 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11907 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if ${ac_cv_prog_RANLIB+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test -n "$RANLIB"; then
11914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11918 do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11926 fi
11927 done
11928 done
11929 IFS=$as_save_IFS
11930
11931 fi
11932 fi
11933 RANLIB=$ac_cv_prog_RANLIB
11934 if test -n "$RANLIB"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11936 $as_echo "$RANLIB" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11940 fi
11941
11942
11943 fi
11944 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if ${ac_cv_prog_RANLIB+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$RANLIB"; then
11953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11957 do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11962 ac_cv_prog_RANLIB="${ncn_progname}"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11965 fi
11966 done
11967 done
11968 IFS=$as_save_IFS
11969
11970 fi
11971 fi
11972 RANLIB=$ac_cv_prog_RANLIB
11973 if test -n "$RANLIB"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11975 $as_echo "$RANLIB" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 fi
11980
11981
11982 fi
11983 test -n "$ac_cv_prog_RANLIB" && break
11984 done
11985
11986 if test -z "$ac_cv_prog_RANLIB" ; then
11987 RANLIB="true"
11988 fi
11989
11990
11991
11992 if test -n "$STRIP"; then
11993 ac_cv_prog_STRIP=$STRIP
11994 elif test -n "$ac_cv_prog_STRIP"; then
11995 STRIP=$ac_cv_prog_STRIP
11996 fi
11997
11998 if test -n "$ac_cv_prog_STRIP"; then
11999 for ncn_progname in strip; do
12000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12001 set dummy ${ncn_progname}; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if ${ac_cv_prog_STRIP+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test -n "$STRIP"; then
12008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12009 else
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12012 do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_STRIP="${ncn_progname}"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12020 fi
12021 done
12022 done
12023 IFS=$as_save_IFS
12024
12025 fi
12026 fi
12027 STRIP=$ac_cv_prog_STRIP
12028 if test -n "$STRIP"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12030 $as_echo "$STRIP" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034 fi
12035
12036
12037 done
12038 fi
12039
12040 for ncn_progname in strip; do
12041 if test -n "$ncn_tool_prefix"; then
12042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12043 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_prog_STRIP+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 if test -n "$STRIP"; then
12050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12051 else
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12054 do
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 break 2
12062 fi
12063 done
12064 done
12065 IFS=$as_save_IFS
12066
12067 fi
12068 fi
12069 STRIP=$ac_cv_prog_STRIP
12070 if test -n "$STRIP"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12072 $as_echo "$STRIP" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12076 fi
12077
12078
12079 fi
12080 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12082 set dummy ${ncn_progname}; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_prog_STRIP+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 if test -n "$STRIP"; then
12089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_STRIP="${ncn_progname}"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12101 fi
12102 done
12103 done
12104 IFS=$as_save_IFS
12105
12106 fi
12107 fi
12108 STRIP=$ac_cv_prog_STRIP
12109 if test -n "$STRIP"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12111 $as_echo "$STRIP" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116
12117
12118 fi
12119 test -n "$ac_cv_prog_STRIP" && break
12120 done
12121
12122 if test -z "$ac_cv_prog_STRIP" ; then
12123 STRIP="true"
12124 fi
12125
12126
12127
12128 if test -n "$WINDRES"; then
12129 ac_cv_prog_WINDRES=$WINDRES
12130 elif test -n "$ac_cv_prog_WINDRES"; then
12131 WINDRES=$ac_cv_prog_WINDRES
12132 fi
12133
12134 if test -n "$ac_cv_prog_WINDRES"; then
12135 for ncn_progname in windres; do
12136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12137 set dummy ${ncn_progname}; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_prog_WINDRES+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test -n "$WINDRES"; then
12144 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12145 else
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12148 do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153 ac_cv_prog_WINDRES="${ncn_progname}"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12156 fi
12157 done
12158 done
12159 IFS=$as_save_IFS
12160
12161 fi
12162 fi
12163 WINDRES=$ac_cv_prog_WINDRES
12164 if test -n "$WINDRES"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12166 $as_echo "$WINDRES" >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12170 fi
12171
12172
12173 done
12174 fi
12175
12176 for ncn_progname in windres; do
12177 if test -n "$ncn_tool_prefix"; then
12178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12179 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 $as_echo_n "checking for $ac_word... " >&6; }
12182 if ${ac_cv_prog_WINDRES+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if test -n "$WINDRES"; then
12186 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12187 else
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199 done
12200 done
12201 IFS=$as_save_IFS
12202
12203 fi
12204 fi
12205 WINDRES=$ac_cv_prog_WINDRES
12206 if test -n "$WINDRES"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12208 $as_echo "$WINDRES" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214
12215 fi
12216 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12218 set dummy ${ncn_progname}; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if ${ac_cv_prog_WINDRES+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 if test -n "$WINDRES"; then
12225 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12226 else
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $PATH
12229 do
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234 ac_cv_prog_WINDRES="${ncn_progname}"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 break 2
12237 fi
12238 done
12239 done
12240 IFS=$as_save_IFS
12241
12242 fi
12243 fi
12244 WINDRES=$ac_cv_prog_WINDRES
12245 if test -n "$WINDRES"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12247 $as_echo "$WINDRES" >&6; }
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12251 fi
12252
12253
12254 fi
12255 test -n "$ac_cv_prog_WINDRES" && break
12256 done
12257
12258 if test -z "$ac_cv_prog_WINDRES" ; then
12259 set dummy windres
12260 if test $build = $host ; then
12261 WINDRES="$2"
12262 else
12263 WINDRES="${ncn_tool_prefix}$2"
12264 fi
12265 fi
12266
12267
12268
12269 if test -n "$WINDMC"; then
12270 ac_cv_prog_WINDMC=$WINDMC
12271 elif test -n "$ac_cv_prog_WINDMC"; then
12272 WINDMC=$ac_cv_prog_WINDMC
12273 fi
12274
12275 if test -n "$ac_cv_prog_WINDMC"; then
12276 for ncn_progname in windmc; do
12277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12278 set dummy ${ncn_progname}; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_prog_WINDMC+:} false; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 if test -n "$WINDMC"; then
12285 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12286 else
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12289 do
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12294 ac_cv_prog_WINDMC="${ncn_progname}"
12295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 break 2
12297 fi
12298 done
12299 done
12300 IFS=$as_save_IFS
12301
12302 fi
12303 fi
12304 WINDMC=$ac_cv_prog_WINDMC
12305 if test -n "$WINDMC"; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12307 $as_echo "$WINDMC" >&6; }
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311 fi
12312
12313
12314 done
12315 fi
12316
12317 for ncn_progname in windmc; do
12318 if test -n "$ncn_tool_prefix"; then
12319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12320 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_prog_WINDMC+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 if test -n "$WINDMC"; then
12327 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12328 else
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340 done
12341 done
12342 IFS=$as_save_IFS
12343
12344 fi
12345 fi
12346 WINDMC=$ac_cv_prog_WINDMC
12347 if test -n "$WINDMC"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12349 $as_echo "$WINDMC" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354
12355
12356 fi
12357 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12359 set dummy ${ncn_progname}; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_prog_WINDMC+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 if test -n "$WINDMC"; then
12366 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12370 do
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375 ac_cv_prog_WINDMC="${ncn_progname}"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12378 fi
12379 done
12380 done
12381 IFS=$as_save_IFS
12382
12383 fi
12384 fi
12385 WINDMC=$ac_cv_prog_WINDMC
12386 if test -n "$WINDMC"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12388 $as_echo "$WINDMC" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393
12394
12395 fi
12396 test -n "$ac_cv_prog_WINDMC" && break
12397 done
12398
12399 if test -z "$ac_cv_prog_WINDMC" ; then
12400 set dummy windmc
12401 if test $build = $host ; then
12402 WINDMC="$2"
12403 else
12404 WINDMC="${ncn_tool_prefix}$2"
12405 fi
12406 fi
12407
12408
12409
12410 if test -n "$OBJCOPY"; then
12411 ac_cv_prog_OBJCOPY=$OBJCOPY
12412 elif test -n "$ac_cv_prog_OBJCOPY"; then
12413 OBJCOPY=$ac_cv_prog_OBJCOPY
12414 fi
12415
12416 if test -n "$ac_cv_prog_OBJCOPY"; then
12417 for ncn_progname in objcopy; do
12418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12419 set dummy ${ncn_progname}; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 $as_echo_n "checking for $ac_word... " >&6; }
12422 if ${ac_cv_prog_OBJCOPY+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 if test -n "$OBJCOPY"; then
12426 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12427 else
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 ac_cv_prog_OBJCOPY="${ncn_progname}"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439 done
12440 done
12441 IFS=$as_save_IFS
12442
12443 fi
12444 fi
12445 OBJCOPY=$ac_cv_prog_OBJCOPY
12446 if test -n "$OBJCOPY"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12448 $as_echo "$OBJCOPY" >&6; }
12449 else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12452 fi
12453
12454
12455 done
12456 fi
12457
12458 for ncn_progname in objcopy; do
12459 if test -n "$ncn_tool_prefix"; then
12460 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12461 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if ${ac_cv_prog_OBJCOPY+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 if test -n "$OBJCOPY"; then
12468 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12469 else
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12472 do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481 done
12482 done
12483 IFS=$as_save_IFS
12484
12485 fi
12486 fi
12487 OBJCOPY=$ac_cv_prog_OBJCOPY
12488 if test -n "$OBJCOPY"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12490 $as_echo "$OBJCOPY" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494 fi
12495
12496
12497 fi
12498 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12500 set dummy ${ncn_progname}; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_prog_OBJCOPY+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 if test -n "$OBJCOPY"; then
12507 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516 ac_cv_prog_OBJCOPY="${ncn_progname}"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518 break 2
12519 fi
12520 done
12521 done
12522 IFS=$as_save_IFS
12523
12524 fi
12525 fi
12526 OBJCOPY=$ac_cv_prog_OBJCOPY
12527 if test -n "$OBJCOPY"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12529 $as_echo "$OBJCOPY" >&6; }
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12533 fi
12534
12535
12536 fi
12537 test -n "$ac_cv_prog_OBJCOPY" && break
12538 done
12539
12540 if test -z "$ac_cv_prog_OBJCOPY" ; then
12541 set dummy objcopy
12542 if test $build = $host ; then
12543 OBJCOPY="$2"
12544 else
12545 OBJCOPY="${ncn_tool_prefix}$2"
12546 fi
12547 fi
12548
12549
12550
12551 if test -n "$OBJDUMP"; then
12552 ac_cv_prog_OBJDUMP=$OBJDUMP
12553 elif test -n "$ac_cv_prog_OBJDUMP"; then
12554 OBJDUMP=$ac_cv_prog_OBJDUMP
12555 fi
12556
12557 if test -n "$ac_cv_prog_OBJDUMP"; then
12558 for ncn_progname in objdump; do
12559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12560 set dummy ${ncn_progname}; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562 $as_echo_n "checking for $ac_word... " >&6; }
12563 if ${ac_cv_prog_OBJDUMP+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 if test -n "$OBJDUMP"; then
12567 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12568 else
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12571 do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12576 ac_cv_prog_OBJDUMP="${ncn_progname}"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578 break 2
12579 fi
12580 done
12581 done
12582 IFS=$as_save_IFS
12583
12584 fi
12585 fi
12586 OBJDUMP=$ac_cv_prog_OBJDUMP
12587 if test -n "$OBJDUMP"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12589 $as_echo "$OBJDUMP" >&6; }
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12593 fi
12594
12595
12596 done
12597 fi
12598
12599 for ncn_progname in objdump; do
12600 if test -n "$ncn_tool_prefix"; then
12601 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if ${ac_cv_prog_OBJDUMP+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test -n "$OBJDUMP"; then
12609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12618 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12621 fi
12622 done
12623 done
12624 IFS=$as_save_IFS
12625
12626 fi
12627 fi
12628 OBJDUMP=$ac_cv_prog_OBJDUMP
12629 if test -n "$OBJDUMP"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12631 $as_echo "$OBJDUMP" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636
12637
12638 fi
12639 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_prog_OBJDUMP+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$OBJDUMP"; then
12648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12652 do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657 ac_cv_prog_OBJDUMP="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12660 fi
12661 done
12662 done
12663 IFS=$as_save_IFS
12664
12665 fi
12666 fi
12667 OBJDUMP=$ac_cv_prog_OBJDUMP
12668 if test -n "$OBJDUMP"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12670 $as_echo "$OBJDUMP" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12674 fi
12675
12676
12677 fi
12678 test -n "$ac_cv_prog_OBJDUMP" && break
12679 done
12680
12681 if test -z "$ac_cv_prog_OBJDUMP" ; then
12682 set dummy objdump
12683 if test $build = $host ; then
12684 OBJDUMP="$2"
12685 else
12686 OBJDUMP="${ncn_tool_prefix}$2"
12687 fi
12688 fi
12689
12690
12691
12692 if test -n "$OTOOL"; then
12693 ac_cv_prog_OTOOL=$OTOOL
12694 elif test -n "$ac_cv_prog_OTOOL"; then
12695 OTOOL=$ac_cv_prog_OTOOL
12696 fi
12697
12698 if test -n "$ac_cv_prog_OTOOL"; then
12699 for ncn_progname in otool; do
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if ${ac_cv_prog_OTOOL+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -n "$OTOOL"; then
12708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12709 else
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12712 do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717 ac_cv_prog_OTOOL="${ncn_progname}"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12720 fi
12721 done
12722 done
12723 IFS=$as_save_IFS
12724
12725 fi
12726 fi
12727 OTOOL=$ac_cv_prog_OTOOL
12728 if test -n "$OTOOL"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12730 $as_echo "$OTOOL" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12734 fi
12735
12736
12737 done
12738 fi
12739
12740 for ncn_progname in otool; do
12741 if test -n "$ncn_tool_prefix"; then
12742 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12743 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_OTOOL+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 if test -n "$OTOOL"; then
12750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12751 else
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763 done
12764 done
12765 IFS=$as_save_IFS
12766
12767 fi
12768 fi
12769 OTOOL=$ac_cv_prog_OTOOL
12770 if test -n "$OTOOL"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12772 $as_echo "$OTOOL" >&6; }
12773 else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778
12779 fi
12780 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12782 set dummy ${ncn_progname}; ac_word=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784 $as_echo_n "checking for $ac_word... " >&6; }
12785 if ${ac_cv_prog_OTOOL+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test -n "$OTOOL"; then
12789 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12790 else
12791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12792 for as_dir in $PATH
12793 do
12794 IFS=$as_save_IFS
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12798 ac_cv_prog_OTOOL="${ncn_progname}"
12799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12800 break 2
12801 fi
12802 done
12803 done
12804 IFS=$as_save_IFS
12805
12806 fi
12807 fi
12808 OTOOL=$ac_cv_prog_OTOOL
12809 if test -n "$OTOOL"; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12811 $as_echo "$OTOOL" >&6; }
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816
12817
12818 fi
12819 test -n "$ac_cv_prog_OTOOL" && break
12820 done
12821
12822 if test -z "$ac_cv_prog_OTOOL" ; then
12823 set dummy otool
12824 if test $build = $host ; then
12825 OTOOL="$2"
12826 else
12827 OTOOL="${ncn_tool_prefix}$2"
12828 fi
12829 fi
12830
12831
12832
12833 if test -n "$READELF"; then
12834 ac_cv_prog_READELF=$READELF
12835 elif test -n "$ac_cv_prog_READELF"; then
12836 READELF=$ac_cv_prog_READELF
12837 fi
12838
12839 if test -n "$ac_cv_prog_READELF"; then
12840 for ncn_progname in readelf; do
12841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12842 set dummy ${ncn_progname}; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if ${ac_cv_prog_READELF+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 if test -n "$READELF"; then
12849 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12850 else
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12853 do
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12858 ac_cv_prog_READELF="${ncn_progname}"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 break 2
12861 fi
12862 done
12863 done
12864 IFS=$as_save_IFS
12865
12866 fi
12867 fi
12868 READELF=$ac_cv_prog_READELF
12869 if test -n "$READELF"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12871 $as_echo "$READELF" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875 fi
12876
12877
12878 done
12879 fi
12880
12881 for ncn_progname in readelf; do
12882 if test -n "$ncn_tool_prefix"; then
12883 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12884 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_prog_READELF+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 if test -n "$READELF"; then
12891 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12892 else
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12903 fi
12904 done
12905 done
12906 IFS=$as_save_IFS
12907
12908 fi
12909 fi
12910 READELF=$ac_cv_prog_READELF
12911 if test -n "$READELF"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12913 $as_echo "$READELF" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918
12919
12920 fi
12921 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12923 set dummy ${ncn_progname}; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if ${ac_cv_prog_READELF+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 if test -n "$READELF"; then
12930 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12931 else
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12934 do
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939 ac_cv_prog_READELF="${ncn_progname}"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 break 2
12942 fi
12943 done
12944 done
12945 IFS=$as_save_IFS
12946
12947 fi
12948 fi
12949 READELF=$ac_cv_prog_READELF
12950 if test -n "$READELF"; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12952 $as_echo "$READELF" >&6; }
12953 else
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12956 fi
12957
12958
12959 fi
12960 test -n "$ac_cv_prog_READELF" && break
12961 done
12962
12963 if test -z "$ac_cv_prog_READELF" ; then
12964 set dummy readelf
12965 if test $build = $host ; then
12966 READELF="$2"
12967 else
12968 READELF="${ncn_tool_prefix}$2"
12969 fi
12970 fi
12971
12972
12973
12974
12975
12976
12977
12978 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12981 $as_echo_n "checking for -plugin option... " >&6; }
12982
12983 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12984 plugin_option=
12985 for plugin in $plugin_names; do
12986 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12987 if test x$plugin_so = x$plugin; then
12988 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12989 fi
12990 if test x$plugin_so != x$plugin; then
12991 plugin_option="--plugin $plugin_so"
12992 break
12993 fi
12994 done
12995 if test -n "$ac_tool_prefix"; then
12996 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12997 set dummy ${ac_tool_prefix}ar; ac_word=$2
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999 $as_echo_n "checking for $ac_word... " >&6; }
13000 if ${ac_cv_prog_AR+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 if test -n "$AR"; then
13004 ac_cv_prog_AR="$AR" # Let the user override the test.
13005 else
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13008 do
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13013 ac_cv_prog_AR="${ac_tool_prefix}ar"
13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 break 2
13016 fi
13017 done
13018 done
13019 IFS=$as_save_IFS
13020
13021 fi
13022 fi
13023 AR=$ac_cv_prog_AR
13024 if test -n "$AR"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13026 $as_echo "$AR" >&6; }
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030 fi
13031
13032
13033 fi
13034 if test -z "$ac_cv_prog_AR"; then
13035 ac_ct_AR=$AR
13036 # Extract the first word of "ar", so it can be a program name with args.
13037 set dummy ar; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -n "$ac_ct_AR"; then
13044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13048 do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_ac_ct_AR="ar"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057 done
13058 done
13059 IFS=$as_save_IFS
13060
13061 fi
13062 fi
13063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13064 if test -n "$ac_ct_AR"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13066 $as_echo "$ac_ct_AR" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071
13072 if test "x$ac_ct_AR" = x; then
13073 AR=""
13074 else
13075 case $cross_compiling:$ac_tool_warned in
13076 yes:)
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13079 ac_tool_warned=yes ;;
13080 esac
13081 AR=$ac_ct_AR
13082 fi
13083 else
13084 AR="$ac_cv_prog_AR"
13085 fi
13086
13087 if test "${AR}" = "" ; then
13088 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13089 fi
13090 touch conftest.c
13091 ${AR} $plugin_option rc conftest.a conftest.c
13092 if test "$?" != 0; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13094 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13095 plugin_option=
13096 fi
13097 rm -f conftest.*
13098 if test -n "$plugin_option"; then
13099 PLUGIN_OPTION="$plugin_option"
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13101 $as_echo "$plugin_option" >&6; }
13102 else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13105 fi
13106
13107 AR_PLUGIN_OPTION=
13108 RANLIB_PLUGIN_OPTION=
13109 if test -n "$PLUGIN_OPTION"; then
13110 if $AR --help 2>&1 | grep -q "\--plugin"; then
13111 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13112 fi
13113 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13114 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13115 fi
13116 fi
13117
13118
13119
13120 # Target tools.
13121
13122 # Check whether --with-build-time-tools was given.
13123 if test "${with_build_time_tools+set}" = set; then :
13124 withval=$with_build_time_tools; case x"$withval" in
13125 x/*) ;;
13126 *)
13127 with_build_time_tools=
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13129 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13130 ;;
13131 esac
13132 else
13133 with_build_time_tools=
13134 fi
13135
13136
13137
13138
13139 if test -n "$CC_FOR_TARGET"; then
13140 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13141 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13142 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13143 fi
13144
13145 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13146 for ncn_progname in cc gcc; do
13147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13148 set dummy ${ncn_progname}; ac_word=$2
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150 $as_echo_n "checking for $ac_word... " >&6; }
13151 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 if test -n "$CC_FOR_TARGET"; then
13155 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13156 else
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13159 do
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 break 2
13167 fi
13168 done
13169 done
13170 IFS=$as_save_IFS
13171
13172 fi
13173 fi
13174 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13175 if test -n "$CC_FOR_TARGET"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13177 $as_echo "$CC_FOR_TARGET" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182
13183
13184 done
13185 fi
13186
13187 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13188 for ncn_progname in cc gcc; do
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13190 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13191 if test -x $with_build_time_tools/${ncn_progname}; then
13192 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13194 $as_echo "yes" >&6; }
13195 break
13196 else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13199 fi
13200 done
13201 fi
13202
13203 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13204 for ncn_progname in cc gcc; do
13205 if test -n "$ncn_target_tool_prefix"; then
13206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13207 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209 $as_echo_n "checking for $ac_word... " >&6; }
13210 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 if test -n "$CC_FOR_TARGET"; then
13214 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13215 else
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13218 do
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 break 2
13226 fi
13227 done
13228 done
13229 IFS=$as_save_IFS
13230
13231 fi
13232 fi
13233 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13234 if test -n "$CC_FOR_TARGET"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13236 $as_echo "$CC_FOR_TARGET" >&6; }
13237 else
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13240 fi
13241
13242
13243 fi
13244 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13246 set dummy ${ncn_progname}; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 if test -n "$CC_FOR_TARGET"; then
13253 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266 done
13267 done
13268 IFS=$as_save_IFS
13269
13270 fi
13271 fi
13272 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13273 if test -n "$CC_FOR_TARGET"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13275 $as_echo "$CC_FOR_TARGET" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 fi
13280
13281
13282 fi
13283 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13284 done
13285 fi
13286
13287 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13288 set dummy cc gcc
13289 if test $build = $target ; then
13290 CC_FOR_TARGET="$2"
13291 else
13292 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13293 fi
13294 else
13295 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13296 fi
13297
13298
13299
13300 if test -n "$CXX_FOR_TARGET"; then
13301 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13302 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13303 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13304 fi
13305
13306 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13307 for ncn_progname in c++ g++ cxx gxx; do
13308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13309 set dummy ${ncn_progname}; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 if test -n "$CXX_FOR_TARGET"; then
13316 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13317 else
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13320 do
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329 done
13330 done
13331 IFS=$as_save_IFS
13332
13333 fi
13334 fi
13335 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13336 if test -n "$CXX_FOR_TARGET"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13338 $as_echo "$CXX_FOR_TARGET" >&6; }
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342 fi
13343
13344
13345 done
13346 fi
13347
13348 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13349 for ncn_progname in c++ g++ cxx gxx; do
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13351 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13352 if test -x $with_build_time_tools/${ncn_progname}; then
13353 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13355 $as_echo "yes" >&6; }
13356 break
13357 else
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360 fi
13361 done
13362 fi
13363
13364 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13365 for ncn_progname in c++ g++ cxx gxx; do
13366 if test -n "$ncn_target_tool_prefix"; then
13367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13368 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370 $as_echo_n "checking for $ac_word... " >&6; }
13371 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 if test -n "$CXX_FOR_TARGET"; then
13375 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13376 else
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13379 do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13384 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13387 fi
13388 done
13389 done
13390 IFS=$as_save_IFS
13391
13392 fi
13393 fi
13394 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13395 if test -n "$CXX_FOR_TARGET"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13397 $as_echo "$CXX_FOR_TARGET" >&6; }
13398 else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401 fi
13402
13403
13404 fi
13405 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13407 set dummy ${ncn_progname}; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412 else
13413 if test -n "$CXX_FOR_TARGET"; then
13414 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13415 else
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13418 do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13426 fi
13427 done
13428 done
13429 IFS=$as_save_IFS
13430
13431 fi
13432 fi
13433 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13434 if test -n "$CXX_FOR_TARGET"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13436 $as_echo "$CXX_FOR_TARGET" >&6; }
13437 else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440 fi
13441
13442
13443 fi
13444 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13445 done
13446 fi
13447
13448 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13449 set dummy c++ g++ cxx gxx
13450 if test $build = $target ; then
13451 CXX_FOR_TARGET="$2"
13452 else
13453 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13454 fi
13455 else
13456 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13457 fi
13458
13459
13460
13461 if test -n "$GCC_FOR_TARGET"; then
13462 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13463 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13464 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13465 fi
13466
13467 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13468 for ncn_progname in gcc; do
13469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13470 set dummy ${ncn_progname}; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 $as_echo_n "checking for $ac_word... " >&6; }
13473 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 if test -n "$GCC_FOR_TARGET"; then
13477 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13478 else
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13481 do
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488 break 2
13489 fi
13490 done
13491 done
13492 IFS=$as_save_IFS
13493
13494 fi
13495 fi
13496 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13497 if test -n "$GCC_FOR_TARGET"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13499 $as_echo "$GCC_FOR_TARGET" >&6; }
13500 else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13503 fi
13504
13505
13506 done
13507 fi
13508
13509 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13510 for ncn_progname in gcc; do
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13512 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13513 if test -x $with_build_time_tools/${ncn_progname}; then
13514 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13516 $as_echo "yes" >&6; }
13517 break
13518 else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13521 fi
13522 done
13523 fi
13524
13525 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13526 for ncn_progname in gcc; do
13527 if test -n "$ncn_target_tool_prefix"; then
13528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13529 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 if test -n "$GCC_FOR_TARGET"; then
13536 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13540 do
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13545 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13548 fi
13549 done
13550 done
13551 IFS=$as_save_IFS
13552
13553 fi
13554 fi
13555 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13556 if test -n "$GCC_FOR_TARGET"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13558 $as_echo "$GCC_FOR_TARGET" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562 fi
13563
13564
13565 fi
13566 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13568 set dummy ${ncn_progname}; ac_word=$2
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570 $as_echo_n "checking for $ac_word... " >&6; }
13571 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 if test -n "$GCC_FOR_TARGET"; then
13575 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13576 else
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580 IFS=$as_save_IFS
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 break 2
13587 fi
13588 done
13589 done
13590 IFS=$as_save_IFS
13591
13592 fi
13593 fi
13594 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13595 if test -n "$GCC_FOR_TARGET"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13597 $as_echo "$GCC_FOR_TARGET" >&6; }
13598 else
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601 fi
13602
13603
13604 fi
13605 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13606 done
13607 fi
13608
13609 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13610 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13611 else
13612 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13613 fi
13614
13615
13616
13617 if test -n "$GFORTRAN_FOR_TARGET"; then
13618 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13619 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13620 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13621 fi
13622
13623 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13624 for ncn_progname in gfortran; do
13625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13626 set dummy ${ncn_progname}; ac_word=$2
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628 $as_echo_n "checking for $ac_word... " >&6; }
13629 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 if test -n "$GFORTRAN_FOR_TARGET"; then
13633 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13634 else
13635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13637 do
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
13640 for ac_exec_ext in '' $ac_executable_extensions; do
13641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13642 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 break 2
13645 fi
13646 done
13647 done
13648 IFS=$as_save_IFS
13649
13650 fi
13651 fi
13652 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13653 if test -n "$GFORTRAN_FOR_TARGET"; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13655 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13656 else
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 $as_echo "no" >&6; }
13659 fi
13660
13661
13662 done
13663 fi
13664
13665 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13666 for ncn_progname in gfortran; do
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13668 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13669 if test -x $with_build_time_tools/${ncn_progname}; then
13670 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672 $as_echo "yes" >&6; }
13673 break
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13677 fi
13678 done
13679 fi
13680
13681 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13682 for ncn_progname in gfortran; do
13683 if test -n "$ncn_target_tool_prefix"; then
13684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13685 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687 $as_echo_n "checking for $ac_word... " >&6; }
13688 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 if test -n "$GFORTRAN_FOR_TARGET"; then
13692 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13693 else
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $PATH
13696 do
13697 IFS=$as_save_IFS
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
13700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13701 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13703 break 2
13704 fi
13705 done
13706 done
13707 IFS=$as_save_IFS
13708
13709 fi
13710 fi
13711 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13712 if test -n "$GFORTRAN_FOR_TARGET"; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13714 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13718 fi
13719
13720
13721 fi
13722 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13724 set dummy ${ncn_progname}; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726 $as_echo_n "checking for $ac_word... " >&6; }
13727 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 if test -n "$GFORTRAN_FOR_TARGET"; then
13731 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13743 fi
13744 done
13745 done
13746 IFS=$as_save_IFS
13747
13748 fi
13749 fi
13750 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13751 if test -n "$GFORTRAN_FOR_TARGET"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13753 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13754 else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758
13759
13760 fi
13761 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13762 done
13763 fi
13764
13765 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13766 set dummy gfortran
13767 if test $build = $target ; then
13768 GFORTRAN_FOR_TARGET="$2"
13769 else
13770 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13771 fi
13772 else
13773 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13774 fi
13775
13776
13777
13778 if test -n "$GOC_FOR_TARGET"; then
13779 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13780 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13781 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13782 fi
13783
13784 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13785 for ncn_progname in gccgo; do
13786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13787 set dummy ${ncn_progname}; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789 $as_echo_n "checking for $ac_word... " >&6; }
13790 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 if test -n "$GOC_FOR_TARGET"; then
13794 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13795 else
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13798 do
13799 IFS=$as_save_IFS
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 break 2
13806 fi
13807 done
13808 done
13809 IFS=$as_save_IFS
13810
13811 fi
13812 fi
13813 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13814 if test -n "$GOC_FOR_TARGET"; then
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13816 $as_echo "$GOC_FOR_TARGET" >&6; }
13817 else
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819 $as_echo "no" >&6; }
13820 fi
13821
13822
13823 done
13824 fi
13825
13826 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13827 for ncn_progname in gccgo; do
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13829 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13830 if test -x $with_build_time_tools/${ncn_progname}; then
13831 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833 $as_echo "yes" >&6; }
13834 break
13835 else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13838 fi
13839 done
13840 fi
13841
13842 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13843 for ncn_progname in gccgo; do
13844 if test -n "$ncn_target_tool_prefix"; then
13845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848 $as_echo_n "checking for $ac_word... " >&6; }
13849 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 if test -n "$GOC_FOR_TARGET"; then
13853 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13854 else
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13857 do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13865 fi
13866 done
13867 done
13868 IFS=$as_save_IFS
13869
13870 fi
13871 fi
13872 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13873 if test -n "$GOC_FOR_TARGET"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13875 $as_echo "$GOC_FOR_TARGET" >&6; }
13876 else
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878 $as_echo "no" >&6; }
13879 fi
13880
13881
13882 fi
13883 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13885 set dummy ${ncn_progname}; ac_word=$2
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13887 $as_echo_n "checking for $ac_word... " >&6; }
13888 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 if test -n "$GOC_FOR_TARGET"; then
13892 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13893 else
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13896 do
13897 IFS=$as_save_IFS
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13901 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13903 break 2
13904 fi
13905 done
13906 done
13907 IFS=$as_save_IFS
13908
13909 fi
13910 fi
13911 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13912 if test -n "$GOC_FOR_TARGET"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13914 $as_echo "$GOC_FOR_TARGET" >&6; }
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13918 fi
13919
13920
13921 fi
13922 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13923 done
13924 fi
13925
13926 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13927 set dummy gccgo
13928 if test $build = $target ; then
13929 GOC_FOR_TARGET="$2"
13930 else
13931 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13932 fi
13933 else
13934 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13935 fi
13936
13937
13938
13939 if test -n "$GDC_FOR_TARGET"; then
13940 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13941 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13942 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13943 fi
13944
13945 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13946 for ncn_progname in gdc; do
13947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13948 set dummy ${ncn_progname}; ac_word=$2
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13950 $as_echo_n "checking for $ac_word... " >&6; }
13951 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 if test -n "$GDC_FOR_TARGET"; then
13955 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13956 else
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13959 do
13960 IFS=$as_save_IFS
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13964 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13966 break 2
13967 fi
13968 done
13969 done
13970 IFS=$as_save_IFS
13971
13972 fi
13973 fi
13974 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13975 if test -n "$GDC_FOR_TARGET"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13977 $as_echo "$GDC_FOR_TARGET" >&6; }
13978 else
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 $as_echo "no" >&6; }
13981 fi
13982
13983
13984 done
13985 fi
13986
13987 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13988 for ncn_progname in gdc; do
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13991 if test -x $with_build_time_tools/${ncn_progname}; then
13992 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994 $as_echo "yes" >&6; }
13995 break
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
13999 fi
14000 done
14001 fi
14002
14003 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14004 for ncn_progname in gdc; do
14005 if test -n "$ncn_target_tool_prefix"; then
14006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14009 $as_echo_n "checking for $ac_word... " >&6; }
14010 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 if test -n "$GDC_FOR_TARGET"; then
14014 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14023 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 break 2
14026 fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 fi
14032 fi
14033 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14034 if test -n "$GDC_FOR_TARGET"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14036 $as_echo "$GDC_FOR_TARGET" >&6; }
14037 else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040 fi
14041
14042
14043 fi
14044 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14046 set dummy ${ncn_progname}; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 if test -n "$GDC_FOR_TARGET"; then
14053 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14054 else
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14057 do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 fi
14071 fi
14072 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14073 if test -n "$GDC_FOR_TARGET"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14075 $as_echo "$GDC_FOR_TARGET" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14079 fi
14080
14081
14082 fi
14083 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14084 done
14085 fi
14086
14087 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14088 set dummy gdc
14089 if test $build = $target ; then
14090 GDC_FOR_TARGET="$2"
14091 else
14092 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14093 fi
14094 else
14095 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14096 fi
14097
14098
14099
14100 if test -n "$GM2_FOR_TARGET"; then
14101 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14102 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14103 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14104 fi
14105
14106 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14107 for ncn_progname in gm2; do
14108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14109 set dummy ${ncn_progname}; ac_word=$2
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14111 $as_echo_n "checking for $ac_word... " >&6; }
14112 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 if test -n "$GM2_FOR_TARGET"; then
14116 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14117 else
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14120 do
14121 IFS=$as_save_IFS
14122 test -z "$as_dir" && as_dir=.
14123 for ac_exec_ext in '' $ac_executable_extensions; do
14124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14125 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14127 break 2
14128 fi
14129 done
14130 done
14131 IFS=$as_save_IFS
14132
14133 fi
14134 fi
14135 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14136 if test -n "$GM2_FOR_TARGET"; then
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14138 $as_echo "$GM2_FOR_TARGET" >&6; }
14139 else
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141 $as_echo "no" >&6; }
14142 fi
14143
14144
14145 done
14146 fi
14147
14148 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14149 for ncn_progname in gm2; do
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14151 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14152 if test -x $with_build_time_tools/${ncn_progname}; then
14153 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14155 $as_echo "yes" >&6; }
14156 break
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14160 fi
14161 done
14162 fi
14163
14164 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14165 for ncn_progname in gm2; do
14166 if test -n "$ncn_target_tool_prefix"; then
14167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14168 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test -n "$GM2_FOR_TARGET"; then
14175 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14176 else
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14179 do
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14187 fi
14188 done
14189 done
14190 IFS=$as_save_IFS
14191
14192 fi
14193 fi
14194 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14195 if test -n "$GM2_FOR_TARGET"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14197 $as_echo "$GM2_FOR_TARGET" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14201 fi
14202
14203
14204 fi
14205 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14207 set dummy ${ncn_progname}; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 if test -n "$GM2_FOR_TARGET"; then
14214 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14215 else
14216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217 for as_dir in $PATH
14218 do
14219 IFS=$as_save_IFS
14220 test -z "$as_dir" && as_dir=.
14221 for ac_exec_ext in '' $ac_executable_extensions; do
14222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14223 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14225 break 2
14226 fi
14227 done
14228 done
14229 IFS=$as_save_IFS
14230
14231 fi
14232 fi
14233 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14234 if test -n "$GM2_FOR_TARGET"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14236 $as_echo "$GM2_FOR_TARGET" >&6; }
14237 else
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14240 fi
14241
14242
14243 fi
14244 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14245 done
14246 fi
14247
14248 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14249 set dummy gm2
14250 if test $build = $target ; then
14251 GM2_FOR_TARGET="$2"
14252 else
14253 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14254 fi
14255 else
14256 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14257 fi
14258
14259
14260
14261 cat > conftest.c << \EOF
14262 #ifdef __GNUC__
14263 gcc_yay;
14264 #endif
14265 EOF
14266 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14267 have_gcc_for_target=yes
14268 else
14269 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14270 have_gcc_for_target=no
14271 fi
14272 rm conftest.c
14273
14274
14275
14276
14277 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14278 if test -n "$with_build_time_tools"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14280 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14281 if test -x $with_build_time_tools/ar; then
14282 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14283 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14285 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14286 else
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14289 fi
14290 elif test $build != $host && test $have_gcc_for_target = yes; then
14291 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14292 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14293 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14294 fi
14295 fi
14296 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14297 # Extract the first word of "ar", so it can be a program name with args.
14298 set dummy ar; ac_word=$2
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14300 $as_echo_n "checking for $ac_word... " >&6; }
14301 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 case $AR_FOR_TARGET in
14305 [\\/]* | ?:[\\/]*)
14306 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14307 ;;
14308 *)
14309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $gcc_cv_tool_dirs
14311 do
14312 IFS=$as_save_IFS
14313 test -z "$as_dir" && as_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14318 break 2
14319 fi
14320 done
14321 done
14322 IFS=$as_save_IFS
14323
14324 ;;
14325 esac
14326 fi
14327 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14328 if test -n "$AR_FOR_TARGET"; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14330 $as_echo "$AR_FOR_TARGET" >&6; }
14331 else
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; }
14334 fi
14335
14336
14337 fi
14338 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14339
14340
14341 if test -n "$AR_FOR_TARGET"; then
14342 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14343 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14344 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14345 fi
14346
14347 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14348 for ncn_progname in ar; do
14349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14350 set dummy ${ncn_progname}; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 if test -n "$AR_FOR_TARGET"; then
14357 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14358 else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14361 do
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14369 fi
14370 done
14371 done
14372 IFS=$as_save_IFS
14373
14374 fi
14375 fi
14376 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14377 if test -n "$AR_FOR_TARGET"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14379 $as_echo "$AR_FOR_TARGET" >&6; }
14380 else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14383 fi
14384
14385
14386 done
14387 fi
14388
14389 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14390 for ncn_progname in ar; do
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14392 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14393 if test -x $with_build_time_tools/${ncn_progname}; then
14394 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397 break
14398 else
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 $as_echo "no" >&6; }
14401 fi
14402 done
14403 fi
14404
14405 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14406 for ncn_progname in ar; do
14407 if test -n "$ncn_target_tool_prefix"; then
14408 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14409 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14411 $as_echo_n "checking for $ac_word... " >&6; }
14412 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 if test -n "$AR_FOR_TARGET"; then
14416 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14417 else
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14420 do
14421 IFS=$as_save_IFS
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427 break 2
14428 fi
14429 done
14430 done
14431 IFS=$as_save_IFS
14432
14433 fi
14434 fi
14435 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14436 if test -n "$AR_FOR_TARGET"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14438 $as_echo "$AR_FOR_TARGET" >&6; }
14439 else
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442 fi
14443
14444
14445 fi
14446 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14448 set dummy ${ncn_progname}; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14450 $as_echo_n "checking for $ac_word... " >&6; }
14451 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 if test -n "$AR_FOR_TARGET"; then
14455 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14456 else
14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14459 do
14460 IFS=$as_save_IFS
14461 test -z "$as_dir" && as_dir=.
14462 for ac_exec_ext in '' $ac_executable_extensions; do
14463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14464 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14466 break 2
14467 fi
14468 done
14469 done
14470 IFS=$as_save_IFS
14471
14472 fi
14473 fi
14474 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14475 if test -n "$AR_FOR_TARGET"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14477 $as_echo "$AR_FOR_TARGET" >&6; }
14478 else
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14480 $as_echo "no" >&6; }
14481 fi
14482
14483
14484 fi
14485 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14486 done
14487 fi
14488
14489 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14490 set dummy ar
14491 if test $build = $target ; then
14492 AR_FOR_TARGET="$2"
14493 else
14494 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14495 fi
14496 else
14497 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14498 fi
14499
14500 else
14501 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14502 fi
14503
14504
14505
14506
14507 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14508 if test -n "$with_build_time_tools"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14510 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14511 if test -x $with_build_time_tools/as; then
14512 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14513 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14515 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14516 else
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14518 $as_echo "no" >&6; }
14519 fi
14520 elif test $build != $host && test $have_gcc_for_target = yes; then
14521 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14522 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14523 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14524 fi
14525 fi
14526 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14527 # Extract the first word of "as", so it can be a program name with args.
14528 set dummy as; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530 $as_echo_n "checking for $ac_word... " >&6; }
14531 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 case $AS_FOR_TARGET in
14535 [\\/]* | ?:[\\/]*)
14536 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14537 ;;
14538 *)
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $gcc_cv_tool_dirs
14541 do
14542 IFS=$as_save_IFS
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14548 break 2
14549 fi
14550 done
14551 done
14552 IFS=$as_save_IFS
14553
14554 ;;
14555 esac
14556 fi
14557 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14558 if test -n "$AS_FOR_TARGET"; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14560 $as_echo "$AS_FOR_TARGET" >&6; }
14561 else
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563 $as_echo "no" >&6; }
14564 fi
14565
14566
14567 fi
14568 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14569
14570
14571 if test -n "$AS_FOR_TARGET"; then
14572 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14573 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14574 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14575 fi
14576
14577 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14578 for ncn_progname in as; do
14579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14580 set dummy ${ncn_progname}; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14582 $as_echo_n "checking for $ac_word... " >&6; }
14583 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 if test -n "$AS_FOR_TARGET"; then
14587 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14588 else
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14591 do
14592 IFS=$as_save_IFS
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14596 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14598 break 2
14599 fi
14600 done
14601 done
14602 IFS=$as_save_IFS
14603
14604 fi
14605 fi
14606 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14607 if test -n "$AS_FOR_TARGET"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14609 $as_echo "$AS_FOR_TARGET" >&6; }
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612 $as_echo "no" >&6; }
14613 fi
14614
14615
14616 done
14617 fi
14618
14619 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14620 for ncn_progname in as; do
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14622 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14623 if test -x $with_build_time_tools/${ncn_progname}; then
14624 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14626 $as_echo "yes" >&6; }
14627 break
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631 fi
14632 done
14633 fi
14634
14635 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14636 for ncn_progname in as; do
14637 if test -n "$ncn_target_tool_prefix"; then
14638 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14639 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641 $as_echo_n "checking for $ac_word... " >&6; }
14642 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645 if test -n "$AS_FOR_TARGET"; then
14646 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14647 else
14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14650 do
14651 IFS=$as_save_IFS
14652 test -z "$as_dir" && as_dir=.
14653 for ac_exec_ext in '' $ac_executable_extensions; do
14654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14655 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14657 break 2
14658 fi
14659 done
14660 done
14661 IFS=$as_save_IFS
14662
14663 fi
14664 fi
14665 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14666 if test -n "$AS_FOR_TARGET"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14668 $as_echo "$AS_FOR_TARGET" >&6; }
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671 $as_echo "no" >&6; }
14672 fi
14673
14674
14675 fi
14676 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14678 set dummy ${ncn_progname}; ac_word=$2
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14680 $as_echo_n "checking for $ac_word... " >&6; }
14681 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 if test -n "$AS_FOR_TARGET"; then
14685 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14686 else
14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14689 do
14690 IFS=$as_save_IFS
14691 test -z "$as_dir" && as_dir=.
14692 for ac_exec_ext in '' $ac_executable_extensions; do
14693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14694 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14696 break 2
14697 fi
14698 done
14699 done
14700 IFS=$as_save_IFS
14701
14702 fi
14703 fi
14704 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14705 if test -n "$AS_FOR_TARGET"; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14707 $as_echo "$AS_FOR_TARGET" >&6; }
14708 else
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 $as_echo "no" >&6; }
14711 fi
14712
14713
14714 fi
14715 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14716 done
14717 fi
14718
14719 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14720 set dummy as
14721 if test $build = $target ; then
14722 AS_FOR_TARGET="$2"
14723 else
14724 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14725 fi
14726 else
14727 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14728 fi
14729
14730 else
14731 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14732 fi
14733
14734
14735
14736
14737 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14738 if test -n "$with_build_time_tools"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14740 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14741 if test -x $with_build_time_tools/dlltool; then
14742 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14743 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14745 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14746 else
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749 fi
14750 elif test $build != $host && test $have_gcc_for_target = yes; then
14751 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14752 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14753 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14754 fi
14755 fi
14756 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14757 # Extract the first word of "dlltool", so it can be a program name with args.
14758 set dummy dlltool; ac_word=$2
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14760 $as_echo_n "checking for $ac_word... " >&6; }
14761 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 case $DLLTOOL_FOR_TARGET in
14765 [\\/]* | ?:[\\/]*)
14766 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14767 ;;
14768 *)
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $gcc_cv_tool_dirs
14771 do
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14778 break 2
14779 fi
14780 done
14781 done
14782 IFS=$as_save_IFS
14783
14784 ;;
14785 esac
14786 fi
14787 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14788 if test -n "$DLLTOOL_FOR_TARGET"; then
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14790 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14791 else
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14793 $as_echo "no" >&6; }
14794 fi
14795
14796
14797 fi
14798 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14799
14800
14801 if test -n "$DLLTOOL_FOR_TARGET"; then
14802 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14803 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14804 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14805 fi
14806
14807 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14808 for ncn_progname in dlltool; do
14809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14810 set dummy ${ncn_progname}; ac_word=$2
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14812 $as_echo_n "checking for $ac_word... " >&6; }
14813 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 if test -n "$DLLTOOL_FOR_TARGET"; then
14817 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14818 else
14819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14820 for as_dir in $PATH
14821 do
14822 IFS=$as_save_IFS
14823 test -z "$as_dir" && as_dir=.
14824 for ac_exec_ext in '' $ac_executable_extensions; do
14825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14826 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14828 break 2
14829 fi
14830 done
14831 done
14832 IFS=$as_save_IFS
14833
14834 fi
14835 fi
14836 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14837 if test -n "$DLLTOOL_FOR_TARGET"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14839 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14840 else
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842 $as_echo "no" >&6; }
14843 fi
14844
14845
14846 done
14847 fi
14848
14849 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14850 for ncn_progname in dlltool; do
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14852 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14853 if test -x $with_build_time_tools/${ncn_progname}; then
14854 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14856 $as_echo "yes" >&6; }
14857 break
14858 else
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 $as_echo "no" >&6; }
14861 fi
14862 done
14863 fi
14864
14865 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14866 for ncn_progname in dlltool; do
14867 if test -n "$ncn_target_tool_prefix"; then
14868 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14869 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871 $as_echo_n "checking for $ac_word... " >&6; }
14872 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 if test -n "$DLLTOOL_FOR_TARGET"; then
14876 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14877 else
14878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14880 do
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 for ac_exec_ext in '' $ac_executable_extensions; do
14884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14885 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14887 break 2
14888 fi
14889 done
14890 done
14891 IFS=$as_save_IFS
14892
14893 fi
14894 fi
14895 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14896 if test -n "$DLLTOOL_FOR_TARGET"; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14898 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14899 else
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901 $as_echo "no" >&6; }
14902 fi
14903
14904
14905 fi
14906 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14908 set dummy ${ncn_progname}; ac_word=$2
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14910 $as_echo_n "checking for $ac_word... " >&6; }
14911 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 if test -n "$DLLTOOL_FOR_TARGET"; then
14915 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14916 else
14917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14919 do
14920 IFS=$as_save_IFS
14921 test -z "$as_dir" && as_dir=.
14922 for ac_exec_ext in '' $ac_executable_extensions; do
14923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14924 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14926 break 2
14927 fi
14928 done
14929 done
14930 IFS=$as_save_IFS
14931
14932 fi
14933 fi
14934 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14935 if test -n "$DLLTOOL_FOR_TARGET"; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14937 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14938 else
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14940 $as_echo "no" >&6; }
14941 fi
14942
14943
14944 fi
14945 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14946 done
14947 fi
14948
14949 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14950 set dummy dlltool
14951 if test $build = $target ; then
14952 DLLTOOL_FOR_TARGET="$2"
14953 else
14954 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14955 fi
14956 else
14957 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14958 fi
14959
14960 else
14961 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14962 fi
14963
14964
14965
14966
14967 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14968 if test -n "$with_build_time_tools"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14970 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14971 if test -x $with_build_time_tools/dsymutil; then
14972 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14973 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14975 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14976 else
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979 fi
14980 elif test $build != $host && test $have_gcc_for_target = yes; then
14981 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14982 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14983 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14984 fi
14985 fi
14986 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14987 # Extract the first word of "dsymutil", so it can be a program name with args.
14988 set dummy dsymutil; ac_word=$2
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14990 $as_echo_n "checking for $ac_word... " >&6; }
14991 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 case $DSYMUTIL_FOR_TARGET in
14995 [\\/]* | ?:[\\/]*)
14996 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14997 ;;
14998 *)
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $gcc_cv_tool_dirs
15001 do
15002 IFS=$as_save_IFS
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15008 break 2
15009 fi
15010 done
15011 done
15012 IFS=$as_save_IFS
15013
15014 ;;
15015 esac
15016 fi
15017 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15018 if test -n "$DSYMUTIL_FOR_TARGET"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15020 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15021 else
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023 $as_echo "no" >&6; }
15024 fi
15025
15026
15027 fi
15028 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15029
15030
15031 if test -n "$DSYMUTIL_FOR_TARGET"; then
15032 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15033 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15034 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15035 fi
15036
15037 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15038 for ncn_progname in dsymutil; do
15039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15040 set dummy ${ncn_progname}; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15042 $as_echo_n "checking for $ac_word... " >&6; }
15043 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 if test -n "$DSYMUTIL_FOR_TARGET"; then
15047 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15048 else
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15051 do
15052 IFS=$as_save_IFS
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15058 break 2
15059 fi
15060 done
15061 done
15062 IFS=$as_save_IFS
15063
15064 fi
15065 fi
15066 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15067 if test -n "$DSYMUTIL_FOR_TARGET"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15069 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15073 fi
15074
15075
15076 done
15077 fi
15078
15079 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15080 for ncn_progname in dsymutil; do
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15082 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15083 if test -x $with_build_time_tools/${ncn_progname}; then
15084 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15086 $as_echo "yes" >&6; }
15087 break
15088 else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090 $as_echo "no" >&6; }
15091 fi
15092 done
15093 fi
15094
15095 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15096 for ncn_progname in dsymutil; do
15097 if test -n "$ncn_target_tool_prefix"; then
15098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15099 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15101 $as_echo_n "checking for $ac_word... " >&6; }
15102 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15103 $as_echo_n "(cached) " >&6
15104 else
15105 if test -n "$DSYMUTIL_FOR_TARGET"; then
15106 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15107 else
15108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15109 for as_dir in $PATH
15110 do
15111 IFS=$as_save_IFS
15112 test -z "$as_dir" && as_dir=.
15113 for ac_exec_ext in '' $ac_executable_extensions; do
15114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15115 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15117 break 2
15118 fi
15119 done
15120 done
15121 IFS=$as_save_IFS
15122
15123 fi
15124 fi
15125 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15126 if test -n "$DSYMUTIL_FOR_TARGET"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15128 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15129 else
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131 $as_echo "no" >&6; }
15132 fi
15133
15134
15135 fi
15136 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15138 set dummy ${ncn_progname}; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140 $as_echo_n "checking for $ac_word... " >&6; }
15141 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143 else
15144 if test -n "$DSYMUTIL_FOR_TARGET"; then
15145 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15146 else
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15149 do
15150 IFS=$as_save_IFS
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15156 break 2
15157 fi
15158 done
15159 done
15160 IFS=$as_save_IFS
15161
15162 fi
15163 fi
15164 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15165 if test -n "$DSYMUTIL_FOR_TARGET"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15167 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15168 else
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 $as_echo "no" >&6; }
15171 fi
15172
15173
15174 fi
15175 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15176 done
15177 fi
15178
15179 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15180 set dummy dsymutil
15181 if test $build = $target ; then
15182 DSYMUTIL_FOR_TARGET="$2"
15183 else
15184 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15185 fi
15186 else
15187 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15188 fi
15189
15190 else
15191 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15192 fi
15193
15194
15195
15196
15197 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15198 if test -n "$with_build_time_tools"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15200 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15201 if test -x $with_build_time_tools/ld; then
15202 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15203 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15205 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209 fi
15210 elif test $build != $host && test $have_gcc_for_target = yes; then
15211 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15212 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15213 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15214 fi
15215 fi
15216 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15217 # Extract the first word of "ld", so it can be a program name with args.
15218 set dummy ld; ac_word=$2
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15220 $as_echo_n "checking for $ac_word... " >&6; }
15221 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15222 $as_echo_n "(cached) " >&6
15223 else
15224 case $LD_FOR_TARGET in
15225 [\\/]* | ?:[\\/]*)
15226 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15227 ;;
15228 *)
15229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $gcc_cv_tool_dirs
15231 do
15232 IFS=$as_save_IFS
15233 test -z "$as_dir" && as_dir=.
15234 for ac_exec_ext in '' $ac_executable_extensions; do
15235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15236 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15238 break 2
15239 fi
15240 done
15241 done
15242 IFS=$as_save_IFS
15243
15244 ;;
15245 esac
15246 fi
15247 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15248 if test -n "$LD_FOR_TARGET"; then
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15250 $as_echo "$LD_FOR_TARGET" >&6; }
15251 else
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15253 $as_echo "no" >&6; }
15254 fi
15255
15256
15257 fi
15258 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15259
15260
15261 if test -n "$LD_FOR_TARGET"; then
15262 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15263 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15264 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15265 fi
15266
15267 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15268 for ncn_progname in ld; do
15269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15270 set dummy ${ncn_progname}; ac_word=$2
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15272 $as_echo_n "checking for $ac_word... " >&6; }
15273 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15274 $as_echo_n "(cached) " >&6
15275 else
15276 if test -n "$LD_FOR_TARGET"; then
15277 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15278 else
15279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280 for as_dir in $PATH
15281 do
15282 IFS=$as_save_IFS
15283 test -z "$as_dir" && as_dir=.
15284 for ac_exec_ext in '' $ac_executable_extensions; do
15285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15286 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15288 break 2
15289 fi
15290 done
15291 done
15292 IFS=$as_save_IFS
15293
15294 fi
15295 fi
15296 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15297 if test -n "$LD_FOR_TARGET"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15299 $as_echo "$LD_FOR_TARGET" >&6; }
15300 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15303 fi
15304
15305
15306 done
15307 fi
15308
15309 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15310 for ncn_progname in ld; do
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15312 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15313 if test -x $with_build_time_tools/${ncn_progname}; then
15314 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15316 $as_echo "yes" >&6; }
15317 break
15318 else
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320 $as_echo "no" >&6; }
15321 fi
15322 done
15323 fi
15324
15325 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15326 for ncn_progname in ld; do
15327 if test -n "$ncn_target_tool_prefix"; then
15328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15329 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15331 $as_echo_n "checking for $ac_word... " >&6; }
15332 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15333 $as_echo_n "(cached) " >&6
15334 else
15335 if test -n "$LD_FOR_TARGET"; then
15336 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15337 else
15338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339 for as_dir in $PATH
15340 do
15341 IFS=$as_save_IFS
15342 test -z "$as_dir" && as_dir=.
15343 for ac_exec_ext in '' $ac_executable_extensions; do
15344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15345 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15347 break 2
15348 fi
15349 done
15350 done
15351 IFS=$as_save_IFS
15352
15353 fi
15354 fi
15355 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15356 if test -n "$LD_FOR_TARGET"; then
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15358 $as_echo "$LD_FOR_TARGET" >&6; }
15359 else
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15362 fi
15363
15364
15365 fi
15366 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15368 set dummy ${ncn_progname}; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 if test -n "$LD_FOR_TARGET"; then
15375 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15376 else
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15379 do
15380 IFS=$as_save_IFS
15381 test -z "$as_dir" && as_dir=.
15382 for ac_exec_ext in '' $ac_executable_extensions; do
15383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15384 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15386 break 2
15387 fi
15388 done
15389 done
15390 IFS=$as_save_IFS
15391
15392 fi
15393 fi
15394 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15395 if test -n "$LD_FOR_TARGET"; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15397 $as_echo "$LD_FOR_TARGET" >&6; }
15398 else
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15401 fi
15402
15403
15404 fi
15405 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15406 done
15407 fi
15408
15409 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15410 set dummy ld
15411 if test $build = $target ; then
15412 LD_FOR_TARGET="$2"
15413 else
15414 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15415 fi
15416 else
15417 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15418 fi
15419
15420 else
15421 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15422 fi
15423
15424
15425
15426
15427 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15428 if test -n "$with_build_time_tools"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15430 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15431 if test -x $with_build_time_tools/lipo; then
15432 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15433 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15435 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15436 else
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438 $as_echo "no" >&6; }
15439 fi
15440 elif test $build != $host && test $have_gcc_for_target = yes; then
15441 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15442 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15443 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15444 fi
15445 fi
15446 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15447 # Extract the first word of "lipo", so it can be a program name with args.
15448 set dummy lipo; ac_word=$2
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15450 $as_echo_n "checking for $ac_word... " >&6; }
15451 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15452 $as_echo_n "(cached) " >&6
15453 else
15454 case $LIPO_FOR_TARGET in
15455 [\\/]* | ?:[\\/]*)
15456 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15457 ;;
15458 *)
15459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15460 for as_dir in $gcc_cv_tool_dirs
15461 do
15462 IFS=$as_save_IFS
15463 test -z "$as_dir" && as_dir=.
15464 for ac_exec_ext in '' $ac_executable_extensions; do
15465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15466 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15468 break 2
15469 fi
15470 done
15471 done
15472 IFS=$as_save_IFS
15473
15474 ;;
15475 esac
15476 fi
15477 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15478 if test -n "$LIPO_FOR_TARGET"; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15480 $as_echo "$LIPO_FOR_TARGET" >&6; }
15481 else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483 $as_echo "no" >&6; }
15484 fi
15485
15486
15487 fi
15488 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15489
15490
15491 if test -n "$LIPO_FOR_TARGET"; then
15492 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15493 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15494 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15495 fi
15496
15497 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15498 for ncn_progname in lipo; do
15499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15500 set dummy ${ncn_progname}; ac_word=$2
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15502 $as_echo_n "checking for $ac_word... " >&6; }
15503 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506 if test -n "$LIPO_FOR_TARGET"; then
15507 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15508 else
15509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510 for as_dir in $PATH
15511 do
15512 IFS=$as_save_IFS
15513 test -z "$as_dir" && as_dir=.
15514 for ac_exec_ext in '' $ac_executable_extensions; do
15515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15518 break 2
15519 fi
15520 done
15521 done
15522 IFS=$as_save_IFS
15523
15524 fi
15525 fi
15526 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15527 if test -n "$LIPO_FOR_TARGET"; then
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15529 $as_echo "$LIPO_FOR_TARGET" >&6; }
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15533 fi
15534
15535
15536 done
15537 fi
15538
15539 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15540 for ncn_progname in lipo; do
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15542 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15543 if test -x $with_build_time_tools/${ncn_progname}; then
15544 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15546 $as_echo "yes" >&6; }
15547 break
15548 else
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15551 fi
15552 done
15553 fi
15554
15555 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15556 for ncn_progname in lipo; do
15557 if test -n "$ncn_target_tool_prefix"; then
15558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15559 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15561 $as_echo_n "checking for $ac_word... " >&6; }
15562 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 if test -n "$LIPO_FOR_TARGET"; then
15566 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15567 else
15568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15570 do
15571 IFS=$as_save_IFS
15572 test -z "$as_dir" && as_dir=.
15573 for ac_exec_ext in '' $ac_executable_extensions; do
15574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15575 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15577 break 2
15578 fi
15579 done
15580 done
15581 IFS=$as_save_IFS
15582
15583 fi
15584 fi
15585 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15586 if test -n "$LIPO_FOR_TARGET"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15588 $as_echo "$LIPO_FOR_TARGET" >&6; }
15589 else
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15591 $as_echo "no" >&6; }
15592 fi
15593
15594
15595 fi
15596 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15598 set dummy ${ncn_progname}; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 if test -n "$LIPO_FOR_TARGET"; then
15605 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15606 else
15607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15608 for as_dir in $PATH
15609 do
15610 IFS=$as_save_IFS
15611 test -z "$as_dir" && as_dir=.
15612 for ac_exec_ext in '' $ac_executable_extensions; do
15613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15614 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15616 break 2
15617 fi
15618 done
15619 done
15620 IFS=$as_save_IFS
15621
15622 fi
15623 fi
15624 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15625 if test -n "$LIPO_FOR_TARGET"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15627 $as_echo "$LIPO_FOR_TARGET" >&6; }
15628 else
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15630 $as_echo "no" >&6; }
15631 fi
15632
15633
15634 fi
15635 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15636 done
15637 fi
15638
15639 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15640 set dummy lipo
15641 if test $build = $target ; then
15642 LIPO_FOR_TARGET="$2"
15643 else
15644 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15645 fi
15646 else
15647 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15648 fi
15649
15650 else
15651 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15652 fi
15653
15654
15655
15656
15657 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15658 if test -n "$with_build_time_tools"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15660 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15661 if test -x $with_build_time_tools/nm; then
15662 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15663 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15665 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15666 else
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668 $as_echo "no" >&6; }
15669 fi
15670 elif test $build != $host && test $have_gcc_for_target = yes; then
15671 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15672 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15673 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15674 fi
15675 fi
15676 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15677 # Extract the first word of "nm", so it can be a program name with args.
15678 set dummy nm; ac_word=$2
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15680 $as_echo_n "checking for $ac_word... " >&6; }
15681 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15682 $as_echo_n "(cached) " >&6
15683 else
15684 case $NM_FOR_TARGET in
15685 [\\/]* | ?:[\\/]*)
15686 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15687 ;;
15688 *)
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $gcc_cv_tool_dirs
15691 do
15692 IFS=$as_save_IFS
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15696 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15698 break 2
15699 fi
15700 done
15701 done
15702 IFS=$as_save_IFS
15703
15704 ;;
15705 esac
15706 fi
15707 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15708 if test -n "$NM_FOR_TARGET"; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15710 $as_echo "$NM_FOR_TARGET" >&6; }
15711 else
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15713 $as_echo "no" >&6; }
15714 fi
15715
15716
15717 fi
15718 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15719
15720
15721 if test -n "$NM_FOR_TARGET"; then
15722 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15723 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15724 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15725 fi
15726
15727 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15728 for ncn_progname in nm; do
15729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15730 set dummy ${ncn_progname}; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15732 $as_echo_n "checking for $ac_word... " >&6; }
15733 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 if test -n "$NM_FOR_TARGET"; then
15737 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15738 else
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15741 do
15742 IFS=$as_save_IFS
15743 test -z "$as_dir" && as_dir=.
15744 for ac_exec_ext in '' $ac_executable_extensions; do
15745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15746 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15748 break 2
15749 fi
15750 done
15751 done
15752 IFS=$as_save_IFS
15753
15754 fi
15755 fi
15756 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15757 if test -n "$NM_FOR_TARGET"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15759 $as_echo "$NM_FOR_TARGET" >&6; }
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15763 fi
15764
15765
15766 done
15767 fi
15768
15769 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15770 for ncn_progname in nm; do
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15772 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15773 if test -x $with_build_time_tools/${ncn_progname}; then
15774 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15776 $as_echo "yes" >&6; }
15777 break
15778 else
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15781 fi
15782 done
15783 fi
15784
15785 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15786 for ncn_progname in nm; do
15787 if test -n "$ncn_target_tool_prefix"; then
15788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15791 $as_echo_n "checking for $ac_word... " >&6; }
15792 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 if test -n "$NM_FOR_TARGET"; then
15796 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15797 else
15798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799 for as_dir in $PATH
15800 do
15801 IFS=$as_save_IFS
15802 test -z "$as_dir" && as_dir=.
15803 for ac_exec_ext in '' $ac_executable_extensions; do
15804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15805 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15807 break 2
15808 fi
15809 done
15810 done
15811 IFS=$as_save_IFS
15812
15813 fi
15814 fi
15815 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15816 if test -n "$NM_FOR_TARGET"; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15818 $as_echo "$NM_FOR_TARGET" >&6; }
15819 else
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15821 $as_echo "no" >&6; }
15822 fi
15823
15824
15825 fi
15826 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15828 set dummy ${ncn_progname}; ac_word=$2
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15830 $as_echo_n "checking for $ac_word... " >&6; }
15831 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 if test -n "$NM_FOR_TARGET"; then
15835 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15836 else
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15839 do
15840 IFS=$as_save_IFS
15841 test -z "$as_dir" && as_dir=.
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15846 break 2
15847 fi
15848 done
15849 done
15850 IFS=$as_save_IFS
15851
15852 fi
15853 fi
15854 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15855 if test -n "$NM_FOR_TARGET"; then
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15857 $as_echo "$NM_FOR_TARGET" >&6; }
15858 else
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860 $as_echo "no" >&6; }
15861 fi
15862
15863
15864 fi
15865 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15866 done
15867 fi
15868
15869 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15870 set dummy nm
15871 if test $build = $target ; then
15872 NM_FOR_TARGET="$2"
15873 else
15874 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15875 fi
15876 else
15877 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15878 fi
15879
15880 else
15881 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15882 fi
15883
15884
15885
15886
15887 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15888 if test -n "$with_build_time_tools"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15890 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15891 if test -x $with_build_time_tools/objcopy; then
15892 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15893 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15895 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15896 else
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 $as_echo "no" >&6; }
15899 fi
15900 elif test $build != $host && test $have_gcc_for_target = yes; then
15901 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15902 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15903 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15904 fi
15905 fi
15906 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15907 # Extract the first word of "objcopy", so it can be a program name with args.
15908 set dummy objcopy; ac_word=$2
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910 $as_echo_n "checking for $ac_word... " >&6; }
15911 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 case $OBJCOPY_FOR_TARGET in
15915 [\\/]* | ?:[\\/]*)
15916 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15917 ;;
15918 *)
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $gcc_cv_tool_dirs
15921 do
15922 IFS=$as_save_IFS
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15928 break 2
15929 fi
15930 done
15931 done
15932 IFS=$as_save_IFS
15933
15934 ;;
15935 esac
15936 fi
15937 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15938 if test -n "$OBJCOPY_FOR_TARGET"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15940 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15941 else
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 $as_echo "no" >&6; }
15944 fi
15945
15946
15947 fi
15948 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15949
15950
15951 if test -n "$OBJCOPY_FOR_TARGET"; then
15952 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15953 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15954 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15955 fi
15956
15957 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15958 for ncn_progname in objcopy; do
15959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15960 set dummy ${ncn_progname}; ac_word=$2
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15962 $as_echo_n "checking for $ac_word... " >&6; }
15963 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15964 $as_echo_n "(cached) " >&6
15965 else
15966 if test -n "$OBJCOPY_FOR_TARGET"; then
15967 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15968 else
15969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15971 do
15972 IFS=$as_save_IFS
15973 test -z "$as_dir" && as_dir=.
15974 for ac_exec_ext in '' $ac_executable_extensions; do
15975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15976 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15978 break 2
15979 fi
15980 done
15981 done
15982 IFS=$as_save_IFS
15983
15984 fi
15985 fi
15986 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15987 if test -n "$OBJCOPY_FOR_TARGET"; then
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15989 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992 $as_echo "no" >&6; }
15993 fi
15994
15995
15996 done
15997 fi
15998
15999 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16000 for ncn_progname in objcopy; do
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16002 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16003 if test -x $with_build_time_tools/${ncn_progname}; then
16004 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16006 $as_echo "yes" >&6; }
16007 break
16008 else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16011 fi
16012 done
16013 fi
16014
16015 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16016 for ncn_progname in objcopy; do
16017 if test -n "$ncn_target_tool_prefix"; then
16018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16019 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16021 $as_echo_n "checking for $ac_word... " >&6; }
16022 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 if test -n "$OBJCOPY_FOR_TARGET"; then
16026 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16027 else
16028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16029 for as_dir in $PATH
16030 do
16031 IFS=$as_save_IFS
16032 test -z "$as_dir" && as_dir=.
16033 for ac_exec_ext in '' $ac_executable_extensions; do
16034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16035 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16037 break 2
16038 fi
16039 done
16040 done
16041 IFS=$as_save_IFS
16042
16043 fi
16044 fi
16045 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16046 if test -n "$OBJCOPY_FOR_TARGET"; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16048 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16049 else
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 $as_echo "no" >&6; }
16052 fi
16053
16054
16055 fi
16056 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16058 set dummy ${ncn_progname}; ac_word=$2
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16060 $as_echo_n "checking for $ac_word... " >&6; }
16061 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 if test -n "$OBJCOPY_FOR_TARGET"; then
16065 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16066 else
16067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16068 for as_dir in $PATH
16069 do
16070 IFS=$as_save_IFS
16071 test -z "$as_dir" && as_dir=.
16072 for ac_exec_ext in '' $ac_executable_extensions; do
16073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16074 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16076 break 2
16077 fi
16078 done
16079 done
16080 IFS=$as_save_IFS
16081
16082 fi
16083 fi
16084 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16085 if test -n "$OBJCOPY_FOR_TARGET"; then
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16087 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16088 else
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16091 fi
16092
16093
16094 fi
16095 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16096 done
16097 fi
16098
16099 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16100 set dummy objcopy
16101 if test $build = $target ; then
16102 OBJCOPY_FOR_TARGET="$2"
16103 else
16104 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16105 fi
16106 else
16107 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16108 fi
16109
16110 else
16111 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16112 fi
16113
16114
16115
16116
16117 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16118 if test -n "$with_build_time_tools"; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16120 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16121 if test -x $with_build_time_tools/objdump; then
16122 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16123 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16125 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16126 else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16129 fi
16130 elif test $build != $host && test $have_gcc_for_target = yes; then
16131 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16132 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16133 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16134 fi
16135 fi
16136 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16137 # Extract the first word of "objdump", so it can be a program name with args.
16138 set dummy objdump; ac_word=$2
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16140 $as_echo_n "checking for $ac_word... " >&6; }
16141 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16142 $as_echo_n "(cached) " >&6
16143 else
16144 case $OBJDUMP_FOR_TARGET in
16145 [\\/]* | ?:[\\/]*)
16146 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16147 ;;
16148 *)
16149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $gcc_cv_tool_dirs
16151 do
16152 IFS=$as_save_IFS
16153 test -z "$as_dir" && as_dir=.
16154 for ac_exec_ext in '' $ac_executable_extensions; do
16155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16156 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16158 break 2
16159 fi
16160 done
16161 done
16162 IFS=$as_save_IFS
16163
16164 ;;
16165 esac
16166 fi
16167 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16168 if test -n "$OBJDUMP_FOR_TARGET"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16170 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16171 else
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16174 fi
16175
16176
16177 fi
16178 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16179
16180
16181 if test -n "$OBJDUMP_FOR_TARGET"; then
16182 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16183 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16184 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16185 fi
16186
16187 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16188 for ncn_progname in objdump; do
16189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16190 set dummy ${ncn_progname}; ac_word=$2
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16192 $as_echo_n "checking for $ac_word... " >&6; }
16193 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195 else
16196 if test -n "$OBJDUMP_FOR_TARGET"; then
16197 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16198 else
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200 for as_dir in $PATH
16201 do
16202 IFS=$as_save_IFS
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16208 break 2
16209 fi
16210 done
16211 done
16212 IFS=$as_save_IFS
16213
16214 fi
16215 fi
16216 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16217 if test -n "$OBJDUMP_FOR_TARGET"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16219 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16220 else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16223 fi
16224
16225
16226 done
16227 fi
16228
16229 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16230 for ncn_progname in objdump; do
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16232 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16233 if test -x $with_build_time_tools/${ncn_progname}; then
16234 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16236 $as_echo "yes" >&6; }
16237 break
16238 else
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16241 fi
16242 done
16243 fi
16244
16245 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16246 for ncn_progname in objdump; do
16247 if test -n "$ncn_target_tool_prefix"; then
16248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16249 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16251 $as_echo_n "checking for $ac_word... " >&6; }
16252 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16253 $as_echo_n "(cached) " >&6
16254 else
16255 if test -n "$OBJDUMP_FOR_TARGET"; then
16256 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16257 else
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH
16260 do
16261 IFS=$as_save_IFS
16262 test -z "$as_dir" && as_dir=.
16263 for ac_exec_ext in '' $ac_executable_extensions; do
16264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16265 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16267 break 2
16268 fi
16269 done
16270 done
16271 IFS=$as_save_IFS
16272
16273 fi
16274 fi
16275 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16276 if test -n "$OBJDUMP_FOR_TARGET"; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16278 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16279 else
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16282 fi
16283
16284
16285 fi
16286 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16288 set dummy ${ncn_progname}; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16290 $as_echo_n "checking for $ac_word... " >&6; }
16291 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293 else
16294 if test -n "$OBJDUMP_FOR_TARGET"; then
16295 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16296 else
16297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16298 for as_dir in $PATH
16299 do
16300 IFS=$as_save_IFS
16301 test -z "$as_dir" && as_dir=.
16302 for ac_exec_ext in '' $ac_executable_extensions; do
16303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16304 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16306 break 2
16307 fi
16308 done
16309 done
16310 IFS=$as_save_IFS
16311
16312 fi
16313 fi
16314 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16315 if test -n "$OBJDUMP_FOR_TARGET"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16317 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16318 else
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16321 fi
16322
16323
16324 fi
16325 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16326 done
16327 fi
16328
16329 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16330 set dummy objdump
16331 if test $build = $target ; then
16332 OBJDUMP_FOR_TARGET="$2"
16333 else
16334 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16335 fi
16336 else
16337 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16338 fi
16339
16340 else
16341 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16342 fi
16343
16344
16345
16346
16347 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16348 if test -n "$with_build_time_tools"; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16350 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16351 if test -x $with_build_time_tools/otool; then
16352 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16353 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16355 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16356 else
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358 $as_echo "no" >&6; }
16359 fi
16360 elif test $build != $host && test $have_gcc_for_target = yes; then
16361 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16362 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16363 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16364 fi
16365 fi
16366 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16367 # Extract the first word of "otool", so it can be a program name with args.
16368 set dummy otool; ac_word=$2
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16370 $as_echo_n "checking for $ac_word... " >&6; }
16371 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 case $OTOOL_FOR_TARGET in
16375 [\\/]* | ?:[\\/]*)
16376 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16377 ;;
16378 *)
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $gcc_cv_tool_dirs
16381 do
16382 IFS=$as_save_IFS
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16388 break 2
16389 fi
16390 done
16391 done
16392 IFS=$as_save_IFS
16393
16394 ;;
16395 esac
16396 fi
16397 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16398 if test -n "$OTOOL_FOR_TARGET"; then
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16400 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16401 else
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 $as_echo "no" >&6; }
16404 fi
16405
16406
16407 fi
16408 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16409
16410
16411 if test -n "$OTOOL_FOR_TARGET"; then
16412 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16413 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16414 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16415 fi
16416
16417 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16418 for ncn_progname in otool; do
16419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16420 set dummy ${ncn_progname}; ac_word=$2
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16422 $as_echo_n "checking for $ac_word... " >&6; }
16423 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 if test -n "$OTOOL_FOR_TARGET"; then
16427 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16428 else
16429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16430 for as_dir in $PATH
16431 do
16432 IFS=$as_save_IFS
16433 test -z "$as_dir" && as_dir=.
16434 for ac_exec_ext in '' $ac_executable_extensions; do
16435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16436 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16438 break 2
16439 fi
16440 done
16441 done
16442 IFS=$as_save_IFS
16443
16444 fi
16445 fi
16446 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16447 if test -n "$OTOOL_FOR_TARGET"; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16449 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16453 fi
16454
16455
16456 done
16457 fi
16458
16459 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16460 for ncn_progname in otool; do
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16462 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16463 if test -x $with_build_time_tools/${ncn_progname}; then
16464 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16466 $as_echo "yes" >&6; }
16467 break
16468 else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16471 fi
16472 done
16473 fi
16474
16475 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16476 for ncn_progname in otool; do
16477 if test -n "$ncn_target_tool_prefix"; then
16478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16479 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16481 $as_echo_n "checking for $ac_word... " >&6; }
16482 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16483 $as_echo_n "(cached) " >&6
16484 else
16485 if test -n "$OTOOL_FOR_TARGET"; then
16486 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16487 else
16488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489 for as_dir in $PATH
16490 do
16491 IFS=$as_save_IFS
16492 test -z "$as_dir" && as_dir=.
16493 for ac_exec_ext in '' $ac_executable_extensions; do
16494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16497 break 2
16498 fi
16499 done
16500 done
16501 IFS=$as_save_IFS
16502
16503 fi
16504 fi
16505 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16506 if test -n "$OTOOL_FOR_TARGET"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16508 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16509 else
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16512 fi
16513
16514
16515 fi
16516 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16518 set dummy ${ncn_progname}; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520 $as_echo_n "checking for $ac_word... " >&6; }
16521 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 if test -n "$OTOOL_FOR_TARGET"; then
16525 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16529 do
16530 IFS=$as_save_IFS
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 break 2
16537 fi
16538 done
16539 done
16540 IFS=$as_save_IFS
16541
16542 fi
16543 fi
16544 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16545 if test -n "$OTOOL_FOR_TARGET"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16547 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16551 fi
16552
16553
16554 fi
16555 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16556 done
16557 fi
16558
16559 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16560 set dummy otool
16561 if test $build = $target ; then
16562 OTOOL_FOR_TARGET="$2"
16563 else
16564 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16565 fi
16566 else
16567 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16568 fi
16569
16570 else
16571 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16572 fi
16573
16574
16575
16576
16577 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16578 if test -n "$with_build_time_tools"; then
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16580 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16581 if test -x $with_build_time_tools/ranlib; then
16582 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16583 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16585 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16586 else
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16588 $as_echo "no" >&6; }
16589 fi
16590 elif test $build != $host && test $have_gcc_for_target = yes; then
16591 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16592 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16593 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16594 fi
16595 fi
16596 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16597 # Extract the first word of "ranlib", so it can be a program name with args.
16598 set dummy ranlib; ac_word=$2
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16600 $as_echo_n "checking for $ac_word... " >&6; }
16601 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16602 $as_echo_n "(cached) " >&6
16603 else
16604 case $RANLIB_FOR_TARGET in
16605 [\\/]* | ?:[\\/]*)
16606 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16607 ;;
16608 *)
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $gcc_cv_tool_dirs
16611 do
16612 IFS=$as_save_IFS
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16618 break 2
16619 fi
16620 done
16621 done
16622 IFS=$as_save_IFS
16623
16624 ;;
16625 esac
16626 fi
16627 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16628 if test -n "$RANLIB_FOR_TARGET"; then
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16630 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16631 else
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16633 $as_echo "no" >&6; }
16634 fi
16635
16636
16637 fi
16638 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16639
16640
16641 if test -n "$RANLIB_FOR_TARGET"; then
16642 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16643 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16644 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16645 fi
16646
16647 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16648 for ncn_progname in ranlib; do
16649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16650 set dummy ${ncn_progname}; ac_word=$2
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16652 $as_echo_n "checking for $ac_word... " >&6; }
16653 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 if test -n "$RANLIB_FOR_TARGET"; then
16657 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16658 else
16659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660 for as_dir in $PATH
16661 do
16662 IFS=$as_save_IFS
16663 test -z "$as_dir" && as_dir=.
16664 for ac_exec_ext in '' $ac_executable_extensions; do
16665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16666 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16668 break 2
16669 fi
16670 done
16671 done
16672 IFS=$as_save_IFS
16673
16674 fi
16675 fi
16676 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16677 if test -n "$RANLIB_FOR_TARGET"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16679 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16680 else
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16683 fi
16684
16685
16686 done
16687 fi
16688
16689 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16690 for ncn_progname in ranlib; do
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16692 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16693 if test -x $with_build_time_tools/${ncn_progname}; then
16694 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16696 $as_echo "yes" >&6; }
16697 break
16698 else
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700 $as_echo "no" >&6; }
16701 fi
16702 done
16703 fi
16704
16705 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16706 for ncn_progname in ranlib; do
16707 if test -n "$ncn_target_tool_prefix"; then
16708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16711 $as_echo_n "checking for $ac_word... " >&6; }
16712 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16713 $as_echo_n "(cached) " >&6
16714 else
16715 if test -n "$RANLIB_FOR_TARGET"; then
16716 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16717 else
16718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16719 for as_dir in $PATH
16720 do
16721 IFS=$as_save_IFS
16722 test -z "$as_dir" && as_dir=.
16723 for ac_exec_ext in '' $ac_executable_extensions; do
16724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16725 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16727 break 2
16728 fi
16729 done
16730 done
16731 IFS=$as_save_IFS
16732
16733 fi
16734 fi
16735 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16736 if test -n "$RANLIB_FOR_TARGET"; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16738 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16739 else
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16742 fi
16743
16744
16745 fi
16746 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16748 set dummy ${ncn_progname}; ac_word=$2
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16750 $as_echo_n "checking for $ac_word... " >&6; }
16751 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16752 $as_echo_n "(cached) " >&6
16753 else
16754 if test -n "$RANLIB_FOR_TARGET"; then
16755 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16756 else
16757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16758 for as_dir in $PATH
16759 do
16760 IFS=$as_save_IFS
16761 test -z "$as_dir" && as_dir=.
16762 for ac_exec_ext in '' $ac_executable_extensions; do
16763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16764 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16766 break 2
16767 fi
16768 done
16769 done
16770 IFS=$as_save_IFS
16771
16772 fi
16773 fi
16774 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16775 if test -n "$RANLIB_FOR_TARGET"; then
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16777 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16778 else
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16780 $as_echo "no" >&6; }
16781 fi
16782
16783
16784 fi
16785 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16786 done
16787 fi
16788
16789 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16790 set dummy ranlib
16791 if test $build = $target ; then
16792 RANLIB_FOR_TARGET="$2"
16793 else
16794 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16795 fi
16796 else
16797 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16798 fi
16799
16800 else
16801 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16802 fi
16803
16804
16805
16806
16807 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16808 if test -n "$with_build_time_tools"; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16810 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16811 if test -x $with_build_time_tools/readelf; then
16812 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16813 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16815 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16816 else
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16818 $as_echo "no" >&6; }
16819 fi
16820 elif test $build != $host && test $have_gcc_for_target = yes; then
16821 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16822 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16823 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16824 fi
16825 fi
16826 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16827 # Extract the first word of "readelf", so it can be a program name with args.
16828 set dummy readelf; ac_word=$2
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16830 $as_echo_n "checking for $ac_word... " >&6; }
16831 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16832 $as_echo_n "(cached) " >&6
16833 else
16834 case $READELF_FOR_TARGET in
16835 [\\/]* | ?:[\\/]*)
16836 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16837 ;;
16838 *)
16839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16840 for as_dir in $gcc_cv_tool_dirs
16841 do
16842 IFS=$as_save_IFS
16843 test -z "$as_dir" && as_dir=.
16844 for ac_exec_ext in '' $ac_executable_extensions; do
16845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16846 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16848 break 2
16849 fi
16850 done
16851 done
16852 IFS=$as_save_IFS
16853
16854 ;;
16855 esac
16856 fi
16857 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16858 if test -n "$READELF_FOR_TARGET"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16860 $as_echo "$READELF_FOR_TARGET" >&6; }
16861 else
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16863 $as_echo "no" >&6; }
16864 fi
16865
16866
16867 fi
16868 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16869
16870
16871 if test -n "$READELF_FOR_TARGET"; then
16872 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16873 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16874 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16875 fi
16876
16877 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16878 for ncn_progname in readelf; do
16879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16880 set dummy ${ncn_progname}; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16882 $as_echo_n "checking for $ac_word... " >&6; }
16883 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 if test -n "$READELF_FOR_TARGET"; then
16887 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16888 else
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16891 do
16892 IFS=$as_save_IFS
16893 test -z "$as_dir" && as_dir=.
16894 for ac_exec_ext in '' $ac_executable_extensions; do
16895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16896 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16898 break 2
16899 fi
16900 done
16901 done
16902 IFS=$as_save_IFS
16903
16904 fi
16905 fi
16906 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16907 if test -n "$READELF_FOR_TARGET"; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16909 $as_echo "$READELF_FOR_TARGET" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16913 fi
16914
16915
16916 done
16917 fi
16918
16919 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16920 for ncn_progname in readelf; do
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16922 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16923 if test -x $with_build_time_tools/${ncn_progname}; then
16924 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16926 $as_echo "yes" >&6; }
16927 break
16928 else
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16930 $as_echo "no" >&6; }
16931 fi
16932 done
16933 fi
16934
16935 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16936 for ncn_progname in readelf; do
16937 if test -n "$ncn_target_tool_prefix"; then
16938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16941 $as_echo_n "checking for $ac_word... " >&6; }
16942 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16943 $as_echo_n "(cached) " >&6
16944 else
16945 if test -n "$READELF_FOR_TARGET"; then
16946 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16947 else
16948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16949 for as_dir in $PATH
16950 do
16951 IFS=$as_save_IFS
16952 test -z "$as_dir" && as_dir=.
16953 for ac_exec_ext in '' $ac_executable_extensions; do
16954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16955 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16957 break 2
16958 fi
16959 done
16960 done
16961 IFS=$as_save_IFS
16962
16963 fi
16964 fi
16965 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16966 if test -n "$READELF_FOR_TARGET"; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16968 $as_echo "$READELF_FOR_TARGET" >&6; }
16969 else
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971 $as_echo "no" >&6; }
16972 fi
16973
16974
16975 fi
16976 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16978 set dummy ${ncn_progname}; ac_word=$2
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16980 $as_echo_n "checking for $ac_word... " >&6; }
16981 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16982 $as_echo_n "(cached) " >&6
16983 else
16984 if test -n "$READELF_FOR_TARGET"; then
16985 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16986 else
16987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16988 for as_dir in $PATH
16989 do
16990 IFS=$as_save_IFS
16991 test -z "$as_dir" && as_dir=.
16992 for ac_exec_ext in '' $ac_executable_extensions; do
16993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16994 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16996 break 2
16997 fi
16998 done
16999 done
17000 IFS=$as_save_IFS
17001
17002 fi
17003 fi
17004 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17005 if test -n "$READELF_FOR_TARGET"; then
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17007 $as_echo "$READELF_FOR_TARGET" >&6; }
17008 else
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17010 $as_echo "no" >&6; }
17011 fi
17012
17013
17014 fi
17015 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17016 done
17017 fi
17018
17019 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17020 set dummy readelf
17021 if test $build = $target ; then
17022 READELF_FOR_TARGET="$2"
17023 else
17024 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17025 fi
17026 else
17027 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17028 fi
17029
17030 else
17031 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17032 fi
17033
17034
17035
17036
17037 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17038 if test -n "$with_build_time_tools"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17040 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17041 if test -x $with_build_time_tools/strip; then
17042 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17043 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17045 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17046 else
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048 $as_echo "no" >&6; }
17049 fi
17050 elif test $build != $host && test $have_gcc_for_target = yes; then
17051 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17052 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17053 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17054 fi
17055 fi
17056 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17057 # Extract the first word of "strip", so it can be a program name with args.
17058 set dummy strip; ac_word=$2
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060 $as_echo_n "checking for $ac_word... " >&6; }
17061 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17062 $as_echo_n "(cached) " >&6
17063 else
17064 case $STRIP_FOR_TARGET in
17065 [\\/]* | ?:[\\/]*)
17066 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17067 ;;
17068 *)
17069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $gcc_cv_tool_dirs
17071 do
17072 IFS=$as_save_IFS
17073 test -z "$as_dir" && as_dir=.
17074 for ac_exec_ext in '' $ac_executable_extensions; do
17075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17078 break 2
17079 fi
17080 done
17081 done
17082 IFS=$as_save_IFS
17083
17084 ;;
17085 esac
17086 fi
17087 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17088 if test -n "$STRIP_FOR_TARGET"; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17090 $as_echo "$STRIP_FOR_TARGET" >&6; }
17091 else
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 $as_echo "no" >&6; }
17094 fi
17095
17096
17097 fi
17098 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17099
17100
17101 if test -n "$STRIP_FOR_TARGET"; then
17102 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17103 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17104 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17105 fi
17106
17107 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17108 for ncn_progname in strip; do
17109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17110 set dummy ${ncn_progname}; ac_word=$2
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17112 $as_echo_n "checking for $ac_word... " >&6; }
17113 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17114 $as_echo_n "(cached) " >&6
17115 else
17116 if test -n "$STRIP_FOR_TARGET"; then
17117 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17118 else
17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120 for as_dir in $PATH
17121 do
17122 IFS=$as_save_IFS
17123 test -z "$as_dir" && as_dir=.
17124 for ac_exec_ext in '' $ac_executable_extensions; do
17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17128 break 2
17129 fi
17130 done
17131 done
17132 IFS=$as_save_IFS
17133
17134 fi
17135 fi
17136 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17137 if test -n "$STRIP_FOR_TARGET"; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17139 $as_echo "$STRIP_FOR_TARGET" >&6; }
17140 else
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17143 fi
17144
17145
17146 done
17147 fi
17148
17149 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17150 for ncn_progname in strip; do
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17152 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17153 if test -x $with_build_time_tools/${ncn_progname}; then
17154 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17156 $as_echo "yes" >&6; }
17157 break
17158 else
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17160 $as_echo "no" >&6; }
17161 fi
17162 done
17163 fi
17164
17165 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17166 for ncn_progname in strip; do
17167 if test -n "$ncn_target_tool_prefix"; then
17168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17171 $as_echo_n "checking for $ac_word... " >&6; }
17172 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17173 $as_echo_n "(cached) " >&6
17174 else
17175 if test -n "$STRIP_FOR_TARGET"; then
17176 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17177 else
17178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17180 do
17181 IFS=$as_save_IFS
17182 test -z "$as_dir" && as_dir=.
17183 for ac_exec_ext in '' $ac_executable_extensions; do
17184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17185 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17187 break 2
17188 fi
17189 done
17190 done
17191 IFS=$as_save_IFS
17192
17193 fi
17194 fi
17195 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17196 if test -n "$STRIP_FOR_TARGET"; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17198 $as_echo "$STRIP_FOR_TARGET" >&6; }
17199 else
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17201 $as_echo "no" >&6; }
17202 fi
17203
17204
17205 fi
17206 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17208 set dummy ${ncn_progname}; ac_word=$2
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17210 $as_echo_n "checking for $ac_word... " >&6; }
17211 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 if test -n "$STRIP_FOR_TARGET"; then
17215 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17216 else
17217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17218 for as_dir in $PATH
17219 do
17220 IFS=$as_save_IFS
17221 test -z "$as_dir" && as_dir=.
17222 for ac_exec_ext in '' $ac_executable_extensions; do
17223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17224 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17226 break 2
17227 fi
17228 done
17229 done
17230 IFS=$as_save_IFS
17231
17232 fi
17233 fi
17234 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17235 if test -n "$STRIP_FOR_TARGET"; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17237 $as_echo "$STRIP_FOR_TARGET" >&6; }
17238 else
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17240 $as_echo "no" >&6; }
17241 fi
17242
17243
17244 fi
17245 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17246 done
17247 fi
17248
17249 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17250 set dummy strip
17251 if test $build = $target ; then
17252 STRIP_FOR_TARGET="$2"
17253 else
17254 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17255 fi
17256 else
17257 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17258 fi
17259
17260 else
17261 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17262 fi
17263
17264
17265
17266
17267 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17268 if test -n "$with_build_time_tools"; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17270 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17271 if test -x $with_build_time_tools/windres; then
17272 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17273 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17275 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17276 else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17279 fi
17280 elif test $build != $host && test $have_gcc_for_target = yes; then
17281 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17282 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17283 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17284 fi
17285 fi
17286 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17287 # Extract the first word of "windres", so it can be a program name with args.
17288 set dummy windres; ac_word=$2
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17290 $as_echo_n "checking for $ac_word... " >&6; }
17291 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17292 $as_echo_n "(cached) " >&6
17293 else
17294 case $WINDRES_FOR_TARGET in
17295 [\\/]* | ?:[\\/]*)
17296 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17297 ;;
17298 *)
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $gcc_cv_tool_dirs
17301 do
17302 IFS=$as_save_IFS
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17306 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17308 break 2
17309 fi
17310 done
17311 done
17312 IFS=$as_save_IFS
17313
17314 ;;
17315 esac
17316 fi
17317 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17318 if test -n "$WINDRES_FOR_TARGET"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17320 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17321 else
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17323 $as_echo "no" >&6; }
17324 fi
17325
17326
17327 fi
17328 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17329
17330
17331 if test -n "$WINDRES_FOR_TARGET"; then
17332 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17333 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17334 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17335 fi
17336
17337 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17338 for ncn_progname in windres; do
17339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17340 set dummy ${ncn_progname}; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17342 $as_echo_n "checking for $ac_word... " >&6; }
17343 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17344 $as_echo_n "(cached) " >&6
17345 else
17346 if test -n "$WINDRES_FOR_TARGET"; then
17347 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17348 else
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17351 do
17352 IFS=$as_save_IFS
17353 test -z "$as_dir" && as_dir=.
17354 for ac_exec_ext in '' $ac_executable_extensions; do
17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17358 break 2
17359 fi
17360 done
17361 done
17362 IFS=$as_save_IFS
17363
17364 fi
17365 fi
17366 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17367 if test -n "$WINDRES_FOR_TARGET"; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17369 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17370 else
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373 fi
17374
17375
17376 done
17377 fi
17378
17379 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17380 for ncn_progname in windres; do
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17383 if test -x $with_build_time_tools/${ncn_progname}; then
17384 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17386 $as_echo "yes" >&6; }
17387 break
17388 else
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390 $as_echo "no" >&6; }
17391 fi
17392 done
17393 fi
17394
17395 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17396 for ncn_progname in windres; do
17397 if test -n "$ncn_target_tool_prefix"; then
17398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17401 $as_echo_n "checking for $ac_word... " >&6; }
17402 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17403 $as_echo_n "(cached) " >&6
17404 else
17405 if test -n "$WINDRES_FOR_TARGET"; then
17406 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17407 else
17408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17409 for as_dir in $PATH
17410 do
17411 IFS=$as_save_IFS
17412 test -z "$as_dir" && as_dir=.
17413 for ac_exec_ext in '' $ac_executable_extensions; do
17414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17415 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17417 break 2
17418 fi
17419 done
17420 done
17421 IFS=$as_save_IFS
17422
17423 fi
17424 fi
17425 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17426 if test -n "$WINDRES_FOR_TARGET"; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17428 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17429 else
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17431 $as_echo "no" >&6; }
17432 fi
17433
17434
17435 fi
17436 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17438 set dummy ${ncn_progname}; ac_word=$2
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17440 $as_echo_n "checking for $ac_word... " >&6; }
17441 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17442 $as_echo_n "(cached) " >&6
17443 else
17444 if test -n "$WINDRES_FOR_TARGET"; then
17445 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17446 else
17447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17448 for as_dir in $PATH
17449 do
17450 IFS=$as_save_IFS
17451 test -z "$as_dir" && as_dir=.
17452 for ac_exec_ext in '' $ac_executable_extensions; do
17453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17454 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17456 break 2
17457 fi
17458 done
17459 done
17460 IFS=$as_save_IFS
17461
17462 fi
17463 fi
17464 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17465 if test -n "$WINDRES_FOR_TARGET"; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17467 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17468 else
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17470 $as_echo "no" >&6; }
17471 fi
17472
17473
17474 fi
17475 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17476 done
17477 fi
17478
17479 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17480 set dummy windres
17481 if test $build = $target ; then
17482 WINDRES_FOR_TARGET="$2"
17483 else
17484 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17485 fi
17486 else
17487 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17488 fi
17489
17490 else
17491 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17492 fi
17493
17494
17495
17496
17497 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17498 if test -n "$with_build_time_tools"; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17500 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17501 if test -x $with_build_time_tools/windmc; then
17502 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17503 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17505 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17506 else
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17508 $as_echo "no" >&6; }
17509 fi
17510 elif test $build != $host && test $have_gcc_for_target = yes; then
17511 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17512 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17513 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17514 fi
17515 fi
17516 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17517 # Extract the first word of "windmc", so it can be a program name with args.
17518 set dummy windmc; ac_word=$2
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17520 $as_echo_n "checking for $ac_word... " >&6; }
17521 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17522 $as_echo_n "(cached) " >&6
17523 else
17524 case $WINDMC_FOR_TARGET in
17525 [\\/]* | ?:[\\/]*)
17526 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17527 ;;
17528 *)
17529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $gcc_cv_tool_dirs
17531 do
17532 IFS=$as_save_IFS
17533 test -z "$as_dir" && as_dir=.
17534 for ac_exec_ext in '' $ac_executable_extensions; do
17535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17536 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17538 break 2
17539 fi
17540 done
17541 done
17542 IFS=$as_save_IFS
17543
17544 ;;
17545 esac
17546 fi
17547 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17548 if test -n "$WINDMC_FOR_TARGET"; then
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17550 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17551 else
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17554 fi
17555
17556
17557 fi
17558 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17559
17560
17561 if test -n "$WINDMC_FOR_TARGET"; then
17562 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17563 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17564 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17565 fi
17566
17567 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17568 for ncn_progname in windmc; do
17569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17570 set dummy ${ncn_progname}; ac_word=$2
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17572 $as_echo_n "checking for $ac_word... " >&6; }
17573 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17574 $as_echo_n "(cached) " >&6
17575 else
17576 if test -n "$WINDMC_FOR_TARGET"; then
17577 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17578 else
17579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17580 for as_dir in $PATH
17581 do
17582 IFS=$as_save_IFS
17583 test -z "$as_dir" && as_dir=.
17584 for ac_exec_ext in '' $ac_executable_extensions; do
17585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17586 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17588 break 2
17589 fi
17590 done
17591 done
17592 IFS=$as_save_IFS
17593
17594 fi
17595 fi
17596 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17597 if test -n "$WINDMC_FOR_TARGET"; then
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17599 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17600 else
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 $as_echo "no" >&6; }
17603 fi
17604
17605
17606 done
17607 fi
17608
17609 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17610 for ncn_progname in windmc; do
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17612 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17613 if test -x $with_build_time_tools/${ncn_progname}; then
17614 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17616 $as_echo "yes" >&6; }
17617 break
17618 else
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17621 fi
17622 done
17623 fi
17624
17625 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17626 for ncn_progname in windmc; do
17627 if test -n "$ncn_target_tool_prefix"; then
17628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17631 $as_echo_n "checking for $ac_word... " >&6; }
17632 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 if test -n "$WINDMC_FOR_TARGET"; then
17636 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17637 else
17638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17639 for as_dir in $PATH
17640 do
17641 IFS=$as_save_IFS
17642 test -z "$as_dir" && as_dir=.
17643 for ac_exec_ext in '' $ac_executable_extensions; do
17644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17645 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17647 break 2
17648 fi
17649 done
17650 done
17651 IFS=$as_save_IFS
17652
17653 fi
17654 fi
17655 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17656 if test -n "$WINDMC_FOR_TARGET"; then
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17658 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17659 else
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17661 $as_echo "no" >&6; }
17662 fi
17663
17664
17665 fi
17666 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17668 set dummy ${ncn_progname}; ac_word=$2
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17670 $as_echo_n "checking for $ac_word... " >&6; }
17671 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17672 $as_echo_n "(cached) " >&6
17673 else
17674 if test -n "$WINDMC_FOR_TARGET"; then
17675 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17676 else
17677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17678 for as_dir in $PATH
17679 do
17680 IFS=$as_save_IFS
17681 test -z "$as_dir" && as_dir=.
17682 for ac_exec_ext in '' $ac_executable_extensions; do
17683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17684 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17686 break 2
17687 fi
17688 done
17689 done
17690 IFS=$as_save_IFS
17691
17692 fi
17693 fi
17694 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17695 if test -n "$WINDMC_FOR_TARGET"; then
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17697 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17698 else
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17700 $as_echo "no" >&6; }
17701 fi
17702
17703
17704 fi
17705 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17706 done
17707 fi
17708
17709 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17710 set dummy windmc
17711 if test $build = $target ; then
17712 WINDMC_FOR_TARGET="$2"
17713 else
17714 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17715 fi
17716 else
17717 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17718 fi
17719
17720 else
17721 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17722 fi
17723
17724
17725 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17726
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17728 $as_echo_n "checking where to find the target ar... " >&6; }
17729 if test "x${build}" != "x${host}" ; then
17730 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17731 # We already found the complete path
17732 ac_dir=`dirname $AR_FOR_TARGET`
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17734 $as_echo "pre-installed in $ac_dir" >&6; }
17735 else
17736 # Canadian cross, just use what we found
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17738 $as_echo "pre-installed" >&6; }
17739 fi
17740 else
17741 ok=yes
17742 case " ${configdirs} " in
17743 *" binutils "*) ;;
17744 *) ok=no ;;
17745 esac
17746
17747 if test $ok = yes; then
17748 # An in-tree tool is available and we can use it
17749 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17751 $as_echo "just compiled" >&6; }
17752 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17753 # We already found the complete path
17754 ac_dir=`dirname $AR_FOR_TARGET`
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17756 $as_echo "pre-installed in $ac_dir" >&6; }
17757 elif test "x$target" = "x$host"; then
17758 # We can use an host tool
17759 AR_FOR_TARGET='$(AR)'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17761 $as_echo "host tool" >&6; }
17762 else
17763 # We need a cross tool
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17765 $as_echo "pre-installed" >&6; }
17766 fi
17767 fi
17768
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17770 $as_echo_n "checking where to find the target as... " >&6; }
17771 if test "x${build}" != "x${host}" ; then
17772 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17773 # We already found the complete path
17774 ac_dir=`dirname $AS_FOR_TARGET`
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17776 $as_echo "pre-installed in $ac_dir" >&6; }
17777 else
17778 # Canadian cross, just use what we found
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17780 $as_echo "pre-installed" >&6; }
17781 fi
17782 else
17783 ok=yes
17784 case " ${configdirs} " in
17785 *" gas "*) ;;
17786 *) ok=no ;;
17787 esac
17788
17789 if test $ok = yes; then
17790 # An in-tree tool is available and we can use it
17791 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17793 $as_echo "just compiled" >&6; }
17794 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17795 # We already found the complete path
17796 ac_dir=`dirname $AS_FOR_TARGET`
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17798 $as_echo "pre-installed in $ac_dir" >&6; }
17799 elif test "x$target" = "x$host"; then
17800 # We can use an host tool
17801 AS_FOR_TARGET='$(AS)'
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17803 $as_echo "host tool" >&6; }
17804 else
17805 # We need a cross tool
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17807 $as_echo "pre-installed" >&6; }
17808 fi
17809 fi
17810
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17812 $as_echo_n "checking where to find the target cc... " >&6; }
17813 if test "x${build}" != "x${host}" ; then
17814 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17815 # We already found the complete path
17816 ac_dir=`dirname $CC_FOR_TARGET`
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17818 $as_echo "pre-installed in $ac_dir" >&6; }
17819 else
17820 # Canadian cross, just use what we found
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17822 $as_echo "pre-installed" >&6; }
17823 fi
17824 else
17825 ok=yes
17826 case " ${configdirs} " in
17827 *" gcc "*) ;;
17828 *) ok=no ;;
17829 esac
17830
17831 if test $ok = yes; then
17832 # An in-tree tool is available and we can use it
17833 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17835 $as_echo "just compiled" >&6; }
17836 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17837 # We already found the complete path
17838 ac_dir=`dirname $CC_FOR_TARGET`
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17840 $as_echo "pre-installed in $ac_dir" >&6; }
17841 elif test "x$target" = "x$host"; then
17842 # We can use an host tool
17843 CC_FOR_TARGET='$(CC)'
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17845 $as_echo "host tool" >&6; }
17846 else
17847 # We need a cross tool
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17849 $as_echo "pre-installed" >&6; }
17850 fi
17851 fi
17852
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17854 $as_echo_n "checking where to find the target c++... " >&6; }
17855 if test "x${build}" != "x${host}" ; then
17856 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17857 # We already found the complete path
17858 ac_dir=`dirname $CXX_FOR_TARGET`
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17860 $as_echo "pre-installed in $ac_dir" >&6; }
17861 else
17862 # Canadian cross, just use what we found
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17864 $as_echo "pre-installed" >&6; }
17865 fi
17866 else
17867 ok=yes
17868 case " ${configdirs} " in
17869 *" gcc "*) ;;
17870 *) ok=no ;;
17871 esac
17872 case ,${enable_languages}, in
17873 *,c++,*) ;;
17874 *) ok=no ;;
17875 esac
17876 if test $ok = yes; then
17877 # An in-tree tool is available and we can use it
17878 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'
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17880 $as_echo "just compiled" >&6; }
17881 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17882 # We already found the complete path
17883 ac_dir=`dirname $CXX_FOR_TARGET`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17885 $as_echo "pre-installed in $ac_dir" >&6; }
17886 elif test "x$target" = "x$host"; then
17887 # We can use an host tool
17888 CXX_FOR_TARGET='$(CXX)'
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17890 $as_echo "host tool" >&6; }
17891 else
17892 # We need a cross tool
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17894 $as_echo "pre-installed" >&6; }
17895 fi
17896 fi
17897
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17899 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17900 if test "x${build}" != "x${host}" ; then
17901 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17902 # We already found the complete path
17903 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17905 $as_echo "pre-installed in $ac_dir" >&6; }
17906 else
17907 # Canadian cross, just use what we found
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909 $as_echo "pre-installed" >&6; }
17910 fi
17911 else
17912 ok=yes
17913 case " ${configdirs} " in
17914 *" gcc "*) ;;
17915 *) ok=no ;;
17916 esac
17917 case ,${enable_languages}, in
17918 *,c++,*) ;;
17919 *) ok=no ;;
17920 esac
17921 if test $ok = yes; then
17922 # An in-tree tool is available and we can use it
17923 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'
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17925 $as_echo "just compiled" >&6; }
17926 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17927 # We already found the complete path
17928 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17930 $as_echo "pre-installed in $ac_dir" >&6; }
17931 elif test "x$target" = "x$host"; then
17932 # We can use an host tool
17933 RAW_CXX_FOR_TARGET='$(CXX)'
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17935 $as_echo "host tool" >&6; }
17936 else
17937 # We need a cross tool
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17939 $as_echo "pre-installed" >&6; }
17940 fi
17941 fi
17942
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17944 $as_echo_n "checking where to find the target dlltool... " >&6; }
17945 if test "x${build}" != "x${host}" ; then
17946 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17947 # We already found the complete path
17948 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17950 $as_echo "pre-installed in $ac_dir" >&6; }
17951 else
17952 # Canadian cross, just use what we found
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17954 $as_echo "pre-installed" >&6; }
17955 fi
17956 else
17957 ok=yes
17958 case " ${configdirs} " in
17959 *" binutils "*) ;;
17960 *) ok=no ;;
17961 esac
17962
17963 if test $ok = yes; then
17964 # An in-tree tool is available and we can use it
17965 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17967 $as_echo "just compiled" >&6; }
17968 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17969 # We already found the complete path
17970 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17972 $as_echo "pre-installed in $ac_dir" >&6; }
17973 elif test "x$target" = "x$host"; then
17974 # We can use an host tool
17975 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17977 $as_echo "host tool" >&6; }
17978 else
17979 # We need a cross tool
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17981 $as_echo "pre-installed" >&6; }
17982 fi
17983 fi
17984
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17986 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17987 if test "x${build}" != "x${host}" ; then
17988 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17989 # We already found the complete path
17990 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17992 $as_echo "pre-installed in $ac_dir" >&6; }
17993 else
17994 # Canadian cross, just use what we found
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17996 $as_echo "pre-installed" >&6; }
17997 fi
17998 else
17999 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18000 # We already found the complete path
18001 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18003 $as_echo "pre-installed in $ac_dir" >&6; }
18004 elif test "x$target" = "x$host"; then
18005 # We can use an host tool
18006 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18008 $as_echo "host tool" >&6; }
18009 else
18010 # We need a cross tool
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18012 $as_echo "pre-installed" >&6; }
18013 fi
18014 fi
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18017 $as_echo_n "checking where to find the target gcc... " >&6; }
18018 if test "x${build}" != "x${host}" ; then
18019 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18020 # We already found the complete path
18021 ac_dir=`dirname $GCC_FOR_TARGET`
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18023 $as_echo "pre-installed in $ac_dir" >&6; }
18024 else
18025 # Canadian cross, just use what we found
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18027 $as_echo "pre-installed" >&6; }
18028 fi
18029 else
18030 ok=yes
18031 case " ${configdirs} " in
18032 *" gcc "*) ;;
18033 *) ok=no ;;
18034 esac
18035
18036 if test $ok = yes; then
18037 # An in-tree tool is available and we can use it
18038 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18040 $as_echo "just compiled" >&6; }
18041 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18042 # We already found the complete path
18043 ac_dir=`dirname $GCC_FOR_TARGET`
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18045 $as_echo "pre-installed in $ac_dir" >&6; }
18046 elif test "x$target" = "x$host"; then
18047 # We can use an host tool
18048 GCC_FOR_TARGET='$()'
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18050 $as_echo "host tool" >&6; }
18051 else
18052 # We need a cross tool
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18054 $as_echo "pre-installed" >&6; }
18055 fi
18056 fi
18057
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18059 $as_echo_n "checking where to find the target gfortran... " >&6; }
18060 if test "x${build}" != "x${host}" ; then
18061 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18062 # We already found the complete path
18063 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18065 $as_echo "pre-installed in $ac_dir" >&6; }
18066 else
18067 # Canadian cross, just use what we found
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18069 $as_echo "pre-installed" >&6; }
18070 fi
18071 else
18072 ok=yes
18073 case " ${configdirs} " in
18074 *" gcc "*) ;;
18075 *) ok=no ;;
18076 esac
18077 case ,${enable_languages}, in
18078 *,fortran,*) ;;
18079 *) ok=no ;;
18080 esac
18081 if test $ok = yes; then
18082 # An in-tree tool is available and we can use it
18083 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18085 $as_echo "just compiled" >&6; }
18086 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18087 # We already found the complete path
18088 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18090 $as_echo "pre-installed in $ac_dir" >&6; }
18091 elif test "x$target" = "x$host"; then
18092 # We can use an host tool
18093 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18095 $as_echo "host tool" >&6; }
18096 else
18097 # We need a cross tool
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18099 $as_echo "pre-installed" >&6; }
18100 fi
18101 fi
18102
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18104 $as_echo_n "checking where to find the target gccgo... " >&6; }
18105 if test "x${build}" != "x${host}" ; then
18106 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18107 # We already found the complete path
18108 ac_dir=`dirname $GOC_FOR_TARGET`
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18110 $as_echo "pre-installed in $ac_dir" >&6; }
18111 else
18112 # Canadian cross, just use what we found
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18114 $as_echo "pre-installed" >&6; }
18115 fi
18116 else
18117 ok=yes
18118 case " ${configdirs} " in
18119 *" gcc "*) ;;
18120 *) ok=no ;;
18121 esac
18122 case ,${enable_languages}, in
18123 *,go,*) ;;
18124 *) ok=no ;;
18125 esac
18126 if test $ok = yes; then
18127 # An in-tree tool is available and we can use it
18128 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18130 $as_echo "just compiled" >&6; }
18131 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18132 # We already found the complete path
18133 ac_dir=`dirname $GOC_FOR_TARGET`
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18135 $as_echo "pre-installed in $ac_dir" >&6; }
18136 elif test "x$target" = "x$host"; then
18137 # We can use an host tool
18138 GOC_FOR_TARGET='$(GOC)'
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18140 $as_echo "host tool" >&6; }
18141 else
18142 # We need a cross tool
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18144 $as_echo "pre-installed" >&6; }
18145 fi
18146 fi
18147
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18149 $as_echo_n "checking where to find the target gdc... " >&6; }
18150 if test "x${build}" != "x${host}" ; then
18151 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18152 # We already found the complete path
18153 ac_dir=`dirname $GDC_FOR_TARGET`
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18155 $as_echo "pre-installed in $ac_dir" >&6; }
18156 else
18157 # Canadian cross, just use what we found
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18159 $as_echo "pre-installed" >&6; }
18160 fi
18161 else
18162 ok=yes
18163 case " ${configdirs} " in
18164 *" gcc "*) ;;
18165 *) ok=no ;;
18166 esac
18167 case ,${enable_languages}, in
18168 *,d,*) ;;
18169 *) ok=no ;;
18170 esac
18171 if test $ok = yes; then
18172 # An in-tree tool is available and we can use it
18173 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18175 $as_echo "just compiled" >&6; }
18176 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18177 # We already found the complete path
18178 ac_dir=`dirname $GDC_FOR_TARGET`
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18180 $as_echo "pre-installed in $ac_dir" >&6; }
18181 elif test "x$target" = "x$host"; then
18182 # We can use an host tool
18183 GDC_FOR_TARGET='$(GDC)'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18185 $as_echo "host tool" >&6; }
18186 else
18187 # We need a cross tool
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18189 $as_echo "pre-installed" >&6; }
18190 fi
18191 fi
18192
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18194 $as_echo_n "checking where to find the target gm2... " >&6; }
18195 if test "x${build}" != "x${host}" ; then
18196 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18197 # We already found the complete path
18198 ac_dir=`dirname $GM2_FOR_TARGET`
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18200 $as_echo "pre-installed in $ac_dir" >&6; }
18201 else
18202 # Canadian cross, just use what we found
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18204 $as_echo "pre-installed" >&6; }
18205 fi
18206 else
18207 ok=yes
18208 case " ${configdirs} " in
18209 *" gcc "*) ;;
18210 *) ok=no ;;
18211 esac
18212 case ,${enable_languages}, in
18213 *,m2,*) ;;
18214 *) ok=no ;;
18215 esac
18216 if test $ok = yes; then
18217 # An in-tree tool is available and we can use it
18218 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18220 $as_echo "just compiled" >&6; }
18221 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18222 # We already found the complete path
18223 ac_dir=`dirname $GM2_FOR_TARGET`
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18225 $as_echo "pre-installed in $ac_dir" >&6; }
18226 elif test "x$target" = "x$host"; then
18227 # We can use an host tool
18228 GM2_FOR_TARGET='$(GM2)'
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18230 $as_echo "host tool" >&6; }
18231 else
18232 # We need a cross tool
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18234 $as_echo "pre-installed" >&6; }
18235 fi
18236 fi
18237
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18239 $as_echo_n "checking where to find the target ld... " >&6; }
18240 if test "x${build}" != "x${host}" ; then
18241 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18242 # We already found the complete path
18243 ac_dir=`dirname $LD_FOR_TARGET`
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18245 $as_echo "pre-installed in $ac_dir" >&6; }
18246 else
18247 # Canadian cross, just use what we found
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18249 $as_echo "pre-installed" >&6; }
18250 fi
18251 else
18252 ok=yes
18253 case " ${configdirs} " in
18254 *" ld "*) ;;
18255 *) ok=no ;;
18256 esac
18257
18258 if test $ok = yes; then
18259 # An in-tree tool is available and we can use it
18260 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18262 $as_echo "just compiled" >&6; }
18263 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18264 # We already found the complete path
18265 ac_dir=`dirname $LD_FOR_TARGET`
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18267 $as_echo "pre-installed in $ac_dir" >&6; }
18268 elif test "x$target" = "x$host"; then
18269 # We can use an host tool
18270 LD_FOR_TARGET='$(LD)'
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18272 $as_echo "host tool" >&6; }
18273 else
18274 # We need a cross tool
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18276 $as_echo "pre-installed" >&6; }
18277 fi
18278 fi
18279
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18281 $as_echo_n "checking where to find the target lipo... " >&6; }
18282 if test "x${build}" != "x${host}" ; then
18283 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18284 # We already found the complete path
18285 ac_dir=`dirname $LIPO_FOR_TARGET`
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18287 $as_echo "pre-installed in $ac_dir" >&6; }
18288 else
18289 # Canadian cross, just use what we found
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18291 $as_echo "pre-installed" >&6; }
18292 fi
18293 else
18294 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18295 # We already found the complete path
18296 ac_dir=`dirname $LIPO_FOR_TARGET`
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18298 $as_echo "pre-installed in $ac_dir" >&6; }
18299 elif test "x$target" = "x$host"; then
18300 # We can use an host tool
18301 LIPO_FOR_TARGET='$(LIPO)'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18303 $as_echo "host tool" >&6; }
18304 else
18305 # We need a cross tool
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18307 $as_echo "pre-installed" >&6; }
18308 fi
18309 fi
18310
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18312 $as_echo_n "checking where to find the target nm... " >&6; }
18313 if test "x${build}" != "x${host}" ; then
18314 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18315 # We already found the complete path
18316 ac_dir=`dirname $NM_FOR_TARGET`
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18318 $as_echo "pre-installed in $ac_dir" >&6; }
18319 else
18320 # Canadian cross, just use what we found
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18322 $as_echo "pre-installed" >&6; }
18323 fi
18324 else
18325 ok=yes
18326 case " ${configdirs} " in
18327 *" binutils "*) ;;
18328 *) ok=no ;;
18329 esac
18330
18331 if test $ok = yes; then
18332 # An in-tree tool is available and we can use it
18333 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18335 $as_echo "just compiled" >&6; }
18336 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18337 # We already found the complete path
18338 ac_dir=`dirname $NM_FOR_TARGET`
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18340 $as_echo "pre-installed in $ac_dir" >&6; }
18341 elif test "x$target" = "x$host"; then
18342 # We can use an host tool
18343 NM_FOR_TARGET='$(NM)'
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18345 $as_echo "host tool" >&6; }
18346 else
18347 # We need a cross tool
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18349 $as_echo "pre-installed" >&6; }
18350 fi
18351 fi
18352
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18354 $as_echo_n "checking where to find the target objcopy... " >&6; }
18355 if test "x${build}" != "x${host}" ; then
18356 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18357 # We already found the complete path
18358 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18360 $as_echo "pre-installed in $ac_dir" >&6; }
18361 else
18362 # Canadian cross, just use what we found
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18364 $as_echo "pre-installed" >&6; }
18365 fi
18366 else
18367 ok=yes
18368 case " ${configdirs} " in
18369 *" binutils "*) ;;
18370 *) ok=no ;;
18371 esac
18372
18373 if test $ok = yes; then
18374 # An in-tree tool is available and we can use it
18375 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18377 $as_echo "just compiled" >&6; }
18378 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18379 # We already found the complete path
18380 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18382 $as_echo "pre-installed in $ac_dir" >&6; }
18383 elif test "x$target" = "x$host"; then
18384 # We can use an host tool
18385 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18387 $as_echo "host tool" >&6; }
18388 else
18389 # We need a cross tool
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18391 $as_echo "pre-installed" >&6; }
18392 fi
18393 fi
18394
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18396 $as_echo_n "checking where to find the target objdump... " >&6; }
18397 if test "x${build}" != "x${host}" ; then
18398 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18399 # We already found the complete path
18400 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18402 $as_echo "pre-installed in $ac_dir" >&6; }
18403 else
18404 # Canadian cross, just use what we found
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18406 $as_echo "pre-installed" >&6; }
18407 fi
18408 else
18409 ok=yes
18410 case " ${configdirs} " in
18411 *" binutils "*) ;;
18412 *) ok=no ;;
18413 esac
18414
18415 if test $ok = yes; then
18416 # An in-tree tool is available and we can use it
18417 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18419 $as_echo "just compiled" >&6; }
18420 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18421 # We already found the complete path
18422 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18424 $as_echo "pre-installed in $ac_dir" >&6; }
18425 elif test "x$target" = "x$host"; then
18426 # We can use an host tool
18427 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18429 $as_echo "host tool" >&6; }
18430 else
18431 # We need a cross tool
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18433 $as_echo "pre-installed" >&6; }
18434 fi
18435 fi
18436
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18438 $as_echo_n "checking where to find the target otool... " >&6; }
18439 if test "x${build}" != "x${host}" ; then
18440 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18441 # We already found the complete path
18442 ac_dir=`dirname $OTOOL_FOR_TARGET`
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18444 $as_echo "pre-installed in $ac_dir" >&6; }
18445 else
18446 # Canadian cross, just use what we found
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18448 $as_echo "pre-installed" >&6; }
18449 fi
18450 else
18451 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18452 # We already found the complete path
18453 ac_dir=`dirname $OTOOL_FOR_TARGET`
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18455 $as_echo "pre-installed in $ac_dir" >&6; }
18456 elif test "x$target" = "x$host"; then
18457 # We can use an host tool
18458 OTOOL_FOR_TARGET='$(OTOOL)'
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18460 $as_echo "host tool" >&6; }
18461 else
18462 # We need a cross tool
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18464 $as_echo "pre-installed" >&6; }
18465 fi
18466 fi
18467
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18469 $as_echo_n "checking where to find the target ranlib... " >&6; }
18470 if test "x${build}" != "x${host}" ; then
18471 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18472 # We already found the complete path
18473 ac_dir=`dirname $RANLIB_FOR_TARGET`
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18475 $as_echo "pre-installed in $ac_dir" >&6; }
18476 else
18477 # Canadian cross, just use what we found
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18479 $as_echo "pre-installed" >&6; }
18480 fi
18481 else
18482 ok=yes
18483 case " ${configdirs} " in
18484 *" binutils "*) ;;
18485 *) ok=no ;;
18486 esac
18487
18488 if test $ok = yes; then
18489 # An in-tree tool is available and we can use it
18490 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18492 $as_echo "just compiled" >&6; }
18493 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18494 # We already found the complete path
18495 ac_dir=`dirname $RANLIB_FOR_TARGET`
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18497 $as_echo "pre-installed in $ac_dir" >&6; }
18498 elif test "x$target" = "x$host"; then
18499 # We can use an host tool
18500 RANLIB_FOR_TARGET='$(RANLIB)'
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18502 $as_echo "host tool" >&6; }
18503 else
18504 # We need a cross tool
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18506 $as_echo "pre-installed" >&6; }
18507 fi
18508 fi
18509
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18511 $as_echo_n "checking where to find the target readelf... " >&6; }
18512 if test "x${build}" != "x${host}" ; then
18513 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18514 # We already found the complete path
18515 ac_dir=`dirname $READELF_FOR_TARGET`
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18517 $as_echo "pre-installed in $ac_dir" >&6; }
18518 else
18519 # Canadian cross, just use what we found
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18521 $as_echo "pre-installed" >&6; }
18522 fi
18523 else
18524 ok=yes
18525 case " ${configdirs} " in
18526 *" binutils "*) ;;
18527 *) ok=no ;;
18528 esac
18529
18530 if test $ok = yes; then
18531 # An in-tree tool is available and we can use it
18532 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18534 $as_echo "just compiled" >&6; }
18535 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18536 # We already found the complete path
18537 ac_dir=`dirname $READELF_FOR_TARGET`
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18539 $as_echo "pre-installed in $ac_dir" >&6; }
18540 elif test "x$target" = "x$host"; then
18541 # We can use an host tool
18542 READELF_FOR_TARGET='$(READELF)'
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18544 $as_echo "host tool" >&6; }
18545 else
18546 # We need a cross tool
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18548 $as_echo "pre-installed" >&6; }
18549 fi
18550 fi
18551
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18553 $as_echo_n "checking where to find the target strip... " >&6; }
18554 if test "x${build}" != "x${host}" ; then
18555 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18556 # We already found the complete path
18557 ac_dir=`dirname $STRIP_FOR_TARGET`
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18559 $as_echo "pre-installed in $ac_dir" >&6; }
18560 else
18561 # Canadian cross, just use what we found
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18563 $as_echo "pre-installed" >&6; }
18564 fi
18565 else
18566 ok=yes
18567 case " ${configdirs} " in
18568 *" binutils "*) ;;
18569 *) ok=no ;;
18570 esac
18571
18572 if test $ok = yes; then
18573 # An in-tree tool is available and we can use it
18574 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18576 $as_echo "just compiled" >&6; }
18577 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18578 # We already found the complete path
18579 ac_dir=`dirname $STRIP_FOR_TARGET`
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18581 $as_echo "pre-installed in $ac_dir" >&6; }
18582 elif test "x$target" = "x$host"; then
18583 # We can use an host tool
18584 STRIP_FOR_TARGET='$(STRIP)'
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18586 $as_echo "host tool" >&6; }
18587 else
18588 # We need a cross tool
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18590 $as_echo "pre-installed" >&6; }
18591 fi
18592 fi
18593
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18595 $as_echo_n "checking where to find the target windres... " >&6; }
18596 if test "x${build}" != "x${host}" ; then
18597 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18598 # We already found the complete path
18599 ac_dir=`dirname $WINDRES_FOR_TARGET`
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18601 $as_echo "pre-installed in $ac_dir" >&6; }
18602 else
18603 # Canadian cross, just use what we found
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18605 $as_echo "pre-installed" >&6; }
18606 fi
18607 else
18608 ok=yes
18609 case " ${configdirs} " in
18610 *" binutils "*) ;;
18611 *) ok=no ;;
18612 esac
18613
18614 if test $ok = yes; then
18615 # An in-tree tool is available and we can use it
18616 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18618 $as_echo "just compiled" >&6; }
18619 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18620 # We already found the complete path
18621 ac_dir=`dirname $WINDRES_FOR_TARGET`
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18623 $as_echo "pre-installed in $ac_dir" >&6; }
18624 elif test "x$target" = "x$host"; then
18625 # We can use an host tool
18626 WINDRES_FOR_TARGET='$(WINDRES)'
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18628 $as_echo "host tool" >&6; }
18629 else
18630 # We need a cross tool
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18632 $as_echo "pre-installed" >&6; }
18633 fi
18634 fi
18635
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18637 $as_echo_n "checking where to find the target windmc... " >&6; }
18638 if test "x${build}" != "x${host}" ; then
18639 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18640 # We already found the complete path
18641 ac_dir=`dirname $WINDMC_FOR_TARGET`
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18643 $as_echo "pre-installed in $ac_dir" >&6; }
18644 else
18645 # Canadian cross, just use what we found
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18647 $as_echo "pre-installed" >&6; }
18648 fi
18649 else
18650 ok=yes
18651 case " ${configdirs} " in
18652 *" binutils "*) ;;
18653 *) ok=no ;;
18654 esac
18655
18656 if test $ok = yes; then
18657 # An in-tree tool is available and we can use it
18658 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18660 $as_echo "just compiled" >&6; }
18661 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18662 # We already found the complete path
18663 ac_dir=`dirname $WINDMC_FOR_TARGET`
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18665 $as_echo "pre-installed in $ac_dir" >&6; }
18666 elif test "x$target" = "x$host"; then
18667 # We can use an host tool
18668 WINDMC_FOR_TARGET='$(WINDMC)'
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18670 $as_echo "host tool" >&6; }
18671 else
18672 # We need a cross tool
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18674 $as_echo "pre-installed" >&6; }
18675 fi
18676 fi
18677
18678
18679
18680
18681
18682 # Certain tools may need extra flags.
18683 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18684 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18685 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18686
18687 # When building target libraries, except in a Canadian cross, we use
18688 # the same toolchain as the compiler we just built.
18689 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18690 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18691 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18692 if test $host = $build; then
18693 case " $configdirs " in
18694 *" gcc "*)
18695 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18696 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18697 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18698 ;;
18699 esac
18700 fi
18701
18702
18703
18704
18705
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18707 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18708 # Check whether --enable-maintainer-mode was given.
18709 if test "${enable_maintainer_mode+set}" = set; then :
18710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18711 else
18712 USE_MAINTAINER_MODE=no
18713 fi
18714
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18716 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18717
18718
18719 if test "$USE_MAINTAINER_MODE" = yes; then
18720 MAINTAINER_MODE_TRUE=
18721 MAINTAINER_MODE_FALSE='#'
18722 else
18723 MAINTAINER_MODE_TRUE='#'
18724 MAINTAINER_MODE_FALSE=
18725 fi
18726 MAINT=$MAINTAINER_MODE_TRUE
18727
18728 # ---------------------
18729 # GCC bootstrap support
18730 # ---------------------
18731
18732 # Stage specific cflags for build.
18733 stage1_cflags="-g"
18734 case $build in
18735 vax-*-*)
18736 case ${GCC} in
18737 yes) stage1_cflags="-g -Wa,-J" ;;
18738 *) stage1_cflags="-g -J" ;;
18739 esac ;;
18740 esac
18741
18742
18743
18744 # Enable --enable-checking in stage1 of the compiler.
18745 # Check whether --enable-stage1-checking was given.
18746 if test "${enable_stage1_checking+set}" = set; then :
18747 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18748 else
18749 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18750 # For --disable-checking or implicit --enable-checking=release, avoid
18751 # setting --enable-checking=gc in the default stage1 checking for LTO
18752 # bootstraps. See PR62077.
18753 case $BUILD_CONFIG in
18754 *lto*)
18755 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18756 *)
18757 stage1_checking=--enable-checking=yes,types;;
18758 esac
18759 if test "x$enable_checking" = x && \
18760 test -d ${srcdir}/gcc && \
18761 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18762 stage1_checking=--enable-checking=yes,types,extra
18763 fi
18764 else
18765 stage1_checking=--enable-checking=$enable_checking,types
18766 fi
18767 fi
18768
18769
18770
18771 # Enable -Werror in bootstrap stage2 and later.
18772 # Check whether --enable-werror was given.
18773 if test "${enable_werror+set}" = set; then :
18774 enableval=$enable_werror;
18775 case ${enable_werror} in
18776 yes) stage2_werror_flag="--enable-werror-always" ;;
18777 *) stage2_werror_flag="" ;;
18778 esac
18779
18780 else
18781
18782 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18783 case $BUILD_CONFIG in
18784 bootstrap-debug)
18785 stage2_werror_flag="--enable-werror-always" ;;
18786 "")
18787 stage2_werror_flag="--enable-werror-always" ;;
18788 esac
18789 fi
18790
18791 fi
18792
18793
18794
18795
18796 # Specify what files to not compare during bootstrap.
18797
18798 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18799 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18800 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18801 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18802 case "$target" in
18803 hppa*64*-*-hpux*) ;;
18804 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18805 esac
18806
18807
18808 ac_config_files="$ac_config_files Makefile"
18809
18810 cat >confcache <<\_ACEOF
18811 # This file is a shell script that caches the results of configure
18812 # tests run on this system so they can be shared between configure
18813 # scripts and configure runs, see configure's option --config-cache.
18814 # It is not useful on other systems. If it contains results you don't
18815 # want to keep, you may remove or edit it.
18816 #
18817 # config.status only pays attention to the cache file if you give it
18818 # the --recheck option to rerun configure.
18819 #
18820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18822 # following values.
18823
18824 _ACEOF
18825
18826 # The following way of writing the cache mishandles newlines in values,
18827 # but we know of no workaround that is simple, portable, and efficient.
18828 # So, we kill variables containing newlines.
18829 # Ultrix sh set writes to stderr and can't be redirected directly,
18830 # and sets the high bit in the cache file unless we assign to the vars.
18831 (
18832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18833 eval ac_val=\$$ac_var
18834 case $ac_val in #(
18835 *${as_nl}*)
18836 case $ac_var in #(
18837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18838 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18839 esac
18840 case $ac_var in #(
18841 _ | IFS | as_nl) ;; #(
18842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18843 *) { eval $ac_var=; unset $ac_var;} ;;
18844 esac ;;
18845 esac
18846 done
18847
18848 (set) 2>&1 |
18849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18850 *${as_nl}ac_space=\ *)
18851 # `set' does not quote correctly, so add quotes: double-quote
18852 # substitution turns \\\\ into \\, and sed turns \\ into \.
18853 sed -n \
18854 "s/'/'\\\\''/g;
18855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18856 ;; #(
18857 *)
18858 # `set' quotes correctly as required by POSIX, so do not add quotes.
18859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18860 ;;
18861 esac |
18862 sort
18863 ) |
18864 sed '
18865 /^ac_cv_env_/b end
18866 t clear
18867 :clear
18868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18869 t end
18870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18871 :end' >>confcache
18872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18873 if test -w "$cache_file"; then
18874 if test "x$cache_file" != "x/dev/null"; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18876 $as_echo "$as_me: updating cache $cache_file" >&6;}
18877 if test ! -f "$cache_file" || test -h "$cache_file"; then
18878 cat confcache >"$cache_file"
18879 else
18880 case $cache_file in #(
18881 */* | ?:*)
18882 mv -f confcache "$cache_file"$$ &&
18883 mv -f "$cache_file"$$ "$cache_file" ;; #(
18884 *)
18885 mv -f confcache "$cache_file" ;;
18886 esac
18887 fi
18888 fi
18889 else
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18891 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18892 fi
18893 fi
18894 rm -f confcache
18895
18896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18897 # Let make expand exec_prefix.
18898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18899
18900 # Transform confdefs.h into DEFS.
18901 # Protect against shell expansion while executing Makefile rules.
18902 # Protect against Makefile macro expansion.
18903 #
18904 # If the first sed substitution is executed (which looks for macros that
18905 # take arguments), then branch to the quote section. Otherwise,
18906 # look for a macro that doesn't take arguments.
18907 ac_script='
18908 :mline
18909 /\\$/{
18910 N
18911 s,\\\n,,
18912 b mline
18913 }
18914 t clear
18915 :clear
18916 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18917 t quote
18918 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18919 t quote
18920 b any
18921 :quote
18922 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18923 s/\[/\\&/g
18924 s/\]/\\&/g
18925 s/\$/$$/g
18926 H
18927 :any
18928 ${
18929 g
18930 s/^\n//
18931 s/\n/ /g
18932 p
18933 }
18934 '
18935 DEFS=`sed -n "$ac_script" confdefs.h`
18936
18937
18938 ac_libobjs=
18939 ac_ltlibobjs=
18940 U=
18941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18942 # 1. Remove the extension, and $U if already installed.
18943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18946 # will be set to the directory where LIBOBJS objects are built.
18947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18949 done
18950 LIBOBJS=$ac_libobjs
18951
18952 LTLIBOBJS=$ac_ltlibobjs
18953
18954
18955
18956 : "${CONFIG_STATUS=./config.status}"
18957 ac_write_fail=0
18958 ac_clean_files_save=$ac_clean_files
18959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18961 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18962 as_write_fail=0
18963 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18964 #! $SHELL
18965 # Generated by $as_me.
18966 # Run this file to recreate the current configuration.
18967 # Compiler output produced by configure, useful for debugging
18968 # configure, is in config.log if it exists.
18969
18970 debug=false
18971 ac_cs_recheck=false
18972 ac_cs_silent=false
18973
18974 SHELL=\${CONFIG_SHELL-$SHELL}
18975 export SHELL
18976 _ASEOF
18977 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18978 ## -------------------- ##
18979 ## M4sh Initialization. ##
18980 ## -------------------- ##
18981
18982 # Be more Bourne compatible
18983 DUALCASE=1; export DUALCASE # for MKS sh
18984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18985 emulate sh
18986 NULLCMD=:
18987 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18988 # is contrary to our usage. Disable this feature.
18989 alias -g '${1+"$@"}'='"$@"'
18990 setopt NO_GLOB_SUBST
18991 else
18992 case `(set -o) 2>/dev/null` in #(
18993 *posix*) :
18994 set -o posix ;; #(
18995 *) :
18996 ;;
18997 esac
18998 fi
18999
19000
19001 as_nl='
19002 '
19003 export as_nl
19004 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19005 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19008 # Prefer a ksh shell builtin over an external printf program on Solaris,
19009 # but without wasting forks for bash or zsh.
19010 if test -z "$BASH_VERSION$ZSH_VERSION" \
19011 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19012 as_echo='print -r --'
19013 as_echo_n='print -rn --'
19014 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19015 as_echo='printf %s\n'
19016 as_echo_n='printf %s'
19017 else
19018 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19019 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19020 as_echo_n='/usr/ucb/echo -n'
19021 else
19022 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19023 as_echo_n_body='eval
19024 arg=$1;
19025 case $arg in #(
19026 *"$as_nl"*)
19027 expr "X$arg" : "X\\(.*\\)$as_nl";
19028 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19029 esac;
19030 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19031 '
19032 export as_echo_n_body
19033 as_echo_n='sh -c $as_echo_n_body as_echo'
19034 fi
19035 export as_echo_body
19036 as_echo='sh -c $as_echo_body as_echo'
19037 fi
19038
19039 # The user is always right.
19040 if test "${PATH_SEPARATOR+set}" != set; then
19041 PATH_SEPARATOR=:
19042 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19043 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19044 PATH_SEPARATOR=';'
19045 }
19046 fi
19047
19048
19049 # IFS
19050 # We need space, tab and new line, in precisely that order. Quoting is
19051 # there to prevent editors from complaining about space-tab.
19052 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19053 # splitting by setting IFS to empty value.)
19054 IFS=" "" $as_nl"
19055
19056 # Find who we are. Look in the path if we contain no directory separator.
19057 as_myself=
19058 case $0 in #((
19059 *[\\/]* ) as_myself=$0 ;;
19060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19061 for as_dir in $PATH
19062 do
19063 IFS=$as_save_IFS
19064 test -z "$as_dir" && as_dir=.
19065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19066 done
19067 IFS=$as_save_IFS
19068
19069 ;;
19070 esac
19071 # We did not find ourselves, most probably we were run as `sh COMMAND'
19072 # in which case we are not to be found in the path.
19073 if test "x$as_myself" = x; then
19074 as_myself=$0
19075 fi
19076 if test ! -f "$as_myself"; then
19077 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19078 exit 1
19079 fi
19080
19081 # Unset variables that we do not need and which cause bugs (e.g. in
19082 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19083 # suppresses any "Segmentation fault" message there. '((' could
19084 # trigger a bug in pdksh 5.2.14.
19085 for as_var in BASH_ENV ENV MAIL MAILPATH
19086 do eval test x\${$as_var+set} = xset \
19087 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19088 done
19089 PS1='$ '
19090 PS2='> '
19091 PS4='+ '
19092
19093 # NLS nuisances.
19094 LC_ALL=C
19095 export LC_ALL
19096 LANGUAGE=C
19097 export LANGUAGE
19098
19099 # CDPATH.
19100 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19101
19102
19103 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19104 # ----------------------------------------
19105 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19106 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19107 # script with STATUS, using 1 if that was 0.
19108 as_fn_error ()
19109 {
19110 as_status=$1; test $as_status -eq 0 && as_status=1
19111 if test "$4"; then
19112 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19113 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19114 fi
19115 $as_echo "$as_me: error: $2" >&2
19116 as_fn_exit $as_status
19117 } # as_fn_error
19118
19119
19120 # as_fn_set_status STATUS
19121 # -----------------------
19122 # Set $? to STATUS, without forking.
19123 as_fn_set_status ()
19124 {
19125 return $1
19126 } # as_fn_set_status
19127
19128 # as_fn_exit STATUS
19129 # -----------------
19130 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19131 as_fn_exit ()
19132 {
19133 set +e
19134 as_fn_set_status $1
19135 exit $1
19136 } # as_fn_exit
19137
19138 # as_fn_unset VAR
19139 # ---------------
19140 # Portably unset VAR.
19141 as_fn_unset ()
19142 {
19143 { eval $1=; unset $1;}
19144 }
19145 as_unset=as_fn_unset
19146 # as_fn_append VAR VALUE
19147 # ----------------------
19148 # Append the text in VALUE to the end of the definition contained in VAR. Take
19149 # advantage of any shell optimizations that allow amortized linear growth over
19150 # repeated appends, instead of the typical quadratic growth present in naive
19151 # implementations.
19152 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19153 eval 'as_fn_append ()
19154 {
19155 eval $1+=\$2
19156 }'
19157 else
19158 as_fn_append ()
19159 {
19160 eval $1=\$$1\$2
19161 }
19162 fi # as_fn_append
19163
19164 # as_fn_arith ARG...
19165 # ------------------
19166 # Perform arithmetic evaluation on the ARGs, and store the result in the
19167 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19168 # must be portable across $(()) and expr.
19169 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19170 eval 'as_fn_arith ()
19171 {
19172 as_val=$(( $* ))
19173 }'
19174 else
19175 as_fn_arith ()
19176 {
19177 as_val=`expr "$@" || test $? -eq 1`
19178 }
19179 fi # as_fn_arith
19180
19181
19182 if expr a : '\(a\)' >/dev/null 2>&1 &&
19183 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19184 as_expr=expr
19185 else
19186 as_expr=false
19187 fi
19188
19189 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19190 as_basename=basename
19191 else
19192 as_basename=false
19193 fi
19194
19195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19196 as_dirname=dirname
19197 else
19198 as_dirname=false
19199 fi
19200
19201 as_me=`$as_basename -- "$0" ||
19202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19203 X"$0" : 'X\(//\)$' \| \
19204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19205 $as_echo X/"$0" |
19206 sed '/^.*\/\([^/][^/]*\)\/*$/{
19207 s//\1/
19208 q
19209 }
19210 /^X\/\(\/\/\)$/{
19211 s//\1/
19212 q
19213 }
19214 /^X\/\(\/\).*/{
19215 s//\1/
19216 q
19217 }
19218 s/.*/./; q'`
19219
19220 # Avoid depending upon Character Ranges.
19221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19224 as_cr_digits='0123456789'
19225 as_cr_alnum=$as_cr_Letters$as_cr_digits
19226
19227 ECHO_C= ECHO_N= ECHO_T=
19228 case `echo -n x` in #(((((
19229 -n*)
19230 case `echo 'xy\c'` in
19231 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19232 xy) ECHO_C='\c';;
19233 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19234 ECHO_T=' ';;
19235 esac;;
19236 *)
19237 ECHO_N='-n';;
19238 esac
19239
19240 rm -f conf$$ conf$$.exe conf$$.file
19241 if test -d conf$$.dir; then
19242 rm -f conf$$.dir/conf$$.file
19243 else
19244 rm -f conf$$.dir
19245 mkdir conf$$.dir 2>/dev/null
19246 fi
19247 if (echo >conf$$.file) 2>/dev/null; then
19248 if ln -s conf$$.file conf$$ 2>/dev/null; then
19249 as_ln_s='ln -s'
19250 # ... but there are two gotchas:
19251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19253 # In both cases, we have to default to `cp -pR'.
19254 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19255 as_ln_s='cp -pR'
19256 elif ln conf$$.file conf$$ 2>/dev/null; then
19257 as_ln_s=ln
19258 else
19259 as_ln_s='cp -pR'
19260 fi
19261 else
19262 as_ln_s='cp -pR'
19263 fi
19264 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19265 rmdir conf$$.dir 2>/dev/null
19266
19267
19268 # as_fn_mkdir_p
19269 # -------------
19270 # Create "$as_dir" as a directory, including parents if necessary.
19271 as_fn_mkdir_p ()
19272 {
19273
19274 case $as_dir in #(
19275 -*) as_dir=./$as_dir;;
19276 esac
19277 test -d "$as_dir" || eval $as_mkdir_p || {
19278 as_dirs=
19279 while :; do
19280 case $as_dir in #(
19281 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19282 *) as_qdir=$as_dir;;
19283 esac
19284 as_dirs="'$as_qdir' $as_dirs"
19285 as_dir=`$as_dirname -- "$as_dir" ||
19286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287 X"$as_dir" : 'X\(//\)[^/]' \| \
19288 X"$as_dir" : 'X\(//\)$' \| \
19289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19290 $as_echo X"$as_dir" |
19291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19292 s//\1/
19293 q
19294 }
19295 /^X\(\/\/\)[^/].*/{
19296 s//\1/
19297 q
19298 }
19299 /^X\(\/\/\)$/{
19300 s//\1/
19301 q
19302 }
19303 /^X\(\/\).*/{
19304 s//\1/
19305 q
19306 }
19307 s/.*/./; q'`
19308 test -d "$as_dir" && break
19309 done
19310 test -z "$as_dirs" || eval "mkdir $as_dirs"
19311 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19312
19313
19314 } # as_fn_mkdir_p
19315 if mkdir -p . 2>/dev/null; then
19316 as_mkdir_p='mkdir -p "$as_dir"'
19317 else
19318 test -d ./-p && rmdir ./-p
19319 as_mkdir_p=false
19320 fi
19321
19322
19323 # as_fn_executable_p FILE
19324 # -----------------------
19325 # Test if FILE is an executable regular file.
19326 as_fn_executable_p ()
19327 {
19328 test -f "$1" && test -x "$1"
19329 } # as_fn_executable_p
19330 as_test_x='test -x'
19331 as_executable_p=as_fn_executable_p
19332
19333 # Sed expression to map a string onto a valid CPP name.
19334 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19335
19336 # Sed expression to map a string onto a valid variable name.
19337 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19338
19339
19340 exec 6>&1
19341 ## ----------------------------------- ##
19342 ## Main body of $CONFIG_STATUS script. ##
19343 ## ----------------------------------- ##
19344 _ASEOF
19345 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19346
19347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19348 # Save the log message, to keep $0 and so on meaningful, and to
19349 # report actual input values of CONFIG_FILES etc. instead of their
19350 # values after options handling.
19351 ac_log="
19352 This file was extended by $as_me, which was
19353 generated by GNU Autoconf 2.69. Invocation command line was
19354
19355 CONFIG_FILES = $CONFIG_FILES
19356 CONFIG_HEADERS = $CONFIG_HEADERS
19357 CONFIG_LINKS = $CONFIG_LINKS
19358 CONFIG_COMMANDS = $CONFIG_COMMANDS
19359 $ $0 $@
19360
19361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19362 "
19363
19364 _ACEOF
19365
19366 case $ac_config_files in *"
19367 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19368 esac
19369
19370
19371
19372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19373 # Files that config.status was made for.
19374 config_files="$ac_config_files"
19375
19376 _ACEOF
19377
19378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19379 ac_cs_usage="\
19380 \`$as_me' instantiates files and other configuration actions
19381 from templates according to the current configuration. Unless the files
19382 and actions are specified as TAGs, all are instantiated by default.
19383
19384 Usage: $0 [OPTION]... [TAG]...
19385
19386 -h, --help print this help, then exit
19387 -V, --version print version number and configuration settings, then exit
19388 --config print configuration, then exit
19389 -q, --quiet, --silent
19390 do not print progress messages
19391 -d, --debug don't remove temporary files
19392 --recheck update $as_me by reconfiguring in the same conditions
19393 --file=FILE[:TEMPLATE]
19394 instantiate the configuration file FILE
19395
19396 Configuration files:
19397 $config_files
19398
19399 Report bugs to the package provider."
19400
19401 _ACEOF
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19403 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19404 ac_cs_version="\\
19405 config.status
19406 configured by $0, generated by GNU Autoconf 2.69,
19407 with options \\"\$ac_cs_config\\"
19408
19409 Copyright (C) 2012 Free Software Foundation, Inc.
19410 This config.status script is free software; the Free Software Foundation
19411 gives unlimited permission to copy, distribute and modify it."
19412
19413 ac_pwd='$ac_pwd'
19414 srcdir='$srcdir'
19415 INSTALL='$INSTALL'
19416 AWK='$AWK'
19417 test -n "\$AWK" || AWK=awk
19418 _ACEOF
19419
19420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19421 # The default lists apply if the user does not specify any file.
19422 ac_need_defaults=:
19423 while test $# != 0
19424 do
19425 case $1 in
19426 --*=?*)
19427 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19429 ac_shift=:
19430 ;;
19431 --*=)
19432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19433 ac_optarg=
19434 ac_shift=:
19435 ;;
19436 *)
19437 ac_option=$1
19438 ac_optarg=$2
19439 ac_shift=shift
19440 ;;
19441 esac
19442
19443 case $ac_option in
19444 # Handling of the options.
19445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19446 ac_cs_recheck=: ;;
19447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19448 $as_echo "$ac_cs_version"; exit ;;
19449 --config | --confi | --conf | --con | --co | --c )
19450 $as_echo "$ac_cs_config"; exit ;;
19451 --debug | --debu | --deb | --de | --d | -d )
19452 debug=: ;;
19453 --file | --fil | --fi | --f )
19454 $ac_shift
19455 case $ac_optarg in
19456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19457 '') as_fn_error $? "missing file argument" ;;
19458 esac
19459 as_fn_append CONFIG_FILES " '$ac_optarg'"
19460 ac_need_defaults=false;;
19461 --he | --h | --help | --hel | -h )
19462 $as_echo "$ac_cs_usage"; exit ;;
19463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19464 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19465 ac_cs_silent=: ;;
19466
19467 # This is an error.
19468 -*) as_fn_error $? "unrecognized option: \`$1'
19469 Try \`$0 --help' for more information." ;;
19470
19471 *) as_fn_append ac_config_targets " $1"
19472 ac_need_defaults=false ;;
19473
19474 esac
19475 shift
19476 done
19477
19478 ac_configure_extra_args=
19479
19480 if $ac_cs_silent; then
19481 exec 6>/dev/null
19482 ac_configure_extra_args="$ac_configure_extra_args --silent"
19483 fi
19484
19485 _ACEOF
19486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19487 if \$ac_cs_recheck; then
19488 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19489 shift
19490 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19491 CONFIG_SHELL='$SHELL'
19492 export CONFIG_SHELL
19493 exec "\$@"
19494 fi
19495
19496 _ACEOF
19497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19498 exec 5>>config.log
19499 {
19500 echo
19501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19502 ## Running $as_me. ##
19503 _ASBOX
19504 $as_echo "$ac_log"
19505 } >&5
19506
19507 _ACEOF
19508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19509 #
19510 # INIT-COMMANDS
19511 #
19512 extrasub_build="$extrasub_build"
19513 extrasub_host="$extrasub_host"
19514 extrasub_target="$extrasub_target"
19515
19516 _ACEOF
19517
19518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19519
19520 # Handling of arguments.
19521 for ac_config_target in $ac_config_targets
19522 do
19523 case $ac_config_target in
19524 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19525
19526 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19527 esac
19528 done
19529
19530
19531 # If the user did not use the arguments to specify the items to instantiate,
19532 # then the envvar interface is used. Set only those that are not.
19533 # We use the long form for the default assignment because of an extremely
19534 # bizarre bug on SunOS 4.1.3.
19535 if $ac_need_defaults; then
19536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19537 fi
19538
19539 # Have a temporary directory for convenience. Make it in the build tree
19540 # simply because there is no reason against having it here, and in addition,
19541 # creating and moving files from /tmp can sometimes cause problems.
19542 # Hook for its removal unless debugging.
19543 # Note that there is a small window in which the directory will not be cleaned:
19544 # after its creation but before its name has been assigned to `$tmp'.
19545 $debug ||
19546 {
19547 tmp= ac_tmp=
19548 trap 'exit_status=$?
19549 : "${ac_tmp:=$tmp}"
19550 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19551 ' 0
19552 trap 'as_fn_exit 1' 1 2 13 15
19553 }
19554 # Create a (secure) tmp directory for tmp files.
19555
19556 {
19557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19558 test -d "$tmp"
19559 } ||
19560 {
19561 tmp=./conf$$-$RANDOM
19562 (umask 077 && mkdir "$tmp")
19563 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19564 ac_tmp=$tmp
19565
19566 # Set up the scripts for CONFIG_FILES section.
19567 # No need to generate them if there are no CONFIG_FILES.
19568 # This happens for instance with `./config.status config.h'.
19569 if test -n "$CONFIG_FILES"; then
19570
19571 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19572 ac_cs_awk_getline=:
19573 ac_cs_awk_pipe_init=
19574 ac_cs_awk_read_file='
19575 while ((getline aline < (F[key])) > 0)
19576 print(aline)
19577 close(F[key])'
19578 ac_cs_awk_pipe_fini=
19579 else
19580 ac_cs_awk_getline=false
19581 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19582 ac_cs_awk_read_file='
19583 print "|#_!!_#|"
19584 print "cat " F[key] " &&"
19585 '$ac_cs_awk_pipe_init
19586 # The final `:' finishes the AND list.
19587 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19588 fi
19589 ac_cr=`echo X | tr X '\015'`
19590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19591 # But we know of no other shell where ac_cr would be empty at this
19592 # point, so we can use a bashism as a fallback.
19593 if test "x$ac_cr" = x; then
19594 eval ac_cr=\$\'\\r\'
19595 fi
19596 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19598 ac_cs_awk_cr='\\r'
19599 else
19600 ac_cs_awk_cr=$ac_cr
19601 fi
19602
19603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19604 _ACEOF
19605
19606 # Create commands to substitute file output variables.
19607 {
19608 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19609 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19610 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19611 echo "_ACAWK" &&
19612 echo "_ACEOF"
19613 } >conf$$files.sh &&
19614 . ./conf$$files.sh ||
19615 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19616 rm -f conf$$files.sh
19617
19618 {
19619 echo "cat >conf$$subs.awk <<_ACEOF" &&
19620 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19621 echo "_ACEOF"
19622 } >conf$$subs.sh ||
19623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19624 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19625 ac_delim='%!_!# '
19626 for ac_last_try in false false false false false :; do
19627 . ./conf$$subs.sh ||
19628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19629
19630 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19631 if test $ac_delim_n = $ac_delim_num; then
19632 break
19633 elif $ac_last_try; then
19634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19635 else
19636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19637 fi
19638 done
19639 rm -f conf$$subs.sh
19640
19641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19642 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19643 _ACEOF
19644 sed -n '
19645 h
19646 s/^/S["/; s/!.*/"]=/
19647 p
19648 g
19649 s/^[^!]*!//
19650 :repl
19651 t repl
19652 s/'"$ac_delim"'$//
19653 t delim
19654 :nl
19655 h
19656 s/\(.\{148\}\)..*/\1/
19657 t more1
19658 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19659 p
19660 n
19661 b repl
19662 :more1
19663 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19664 p
19665 g
19666 s/.\{148\}//
19667 t nl
19668 :delim
19669 h
19670 s/\(.\{148\}\)..*/\1/
19671 t more2
19672 s/["\\]/\\&/g; s/^/"/; s/$/"/
19673 p
19674 b
19675 :more2
19676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19677 p
19678 g
19679 s/.\{148\}//
19680 t delim
19681 ' <conf$$subs.awk | sed '
19682 /^[^""]/{
19683 N
19684 s/\n//
19685 }
19686 ' >>$CONFIG_STATUS || ac_write_fail=1
19687 rm -f conf$$subs.awk
19688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19689 _ACAWK
19690 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19691 for (key in S) S_is_set[key] = 1
19692 FS = "\a"
19693 \$ac_cs_awk_pipe_init
19694 }
19695 {
19696 line = $ 0
19697 nfields = split(line, field, "@")
19698 substed = 0
19699 len = length(field[1])
19700 for (i = 2; i < nfields; i++) {
19701 key = field[i]
19702 keylen = length(key)
19703 if (S_is_set[key]) {
19704 value = S[key]
19705 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19706 len += length(value) + length(field[++i])
19707 substed = 1
19708 } else
19709 len += 1 + keylen
19710 }
19711 if (nfields == 3 && !substed) {
19712 key = field[2]
19713 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19714 \$ac_cs_awk_read_file
19715 next
19716 }
19717 }
19718 print line
19719 }
19720 \$ac_cs_awk_pipe_fini
19721 _ACAWK
19722 _ACEOF
19723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19724 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19725 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19726 else
19727 cat
19728 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19729 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19730 _ACEOF
19731
19732 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19733 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19734 # trailing colons and then remove the whole line if VPATH becomes empty
19735 # (actually we leave an empty line to preserve line numbers).
19736 if test "x$srcdir" = x.; then
19737 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19738 h
19739 s///
19740 s/^/:/
19741 s/[ ]*$/:/
19742 s/:\$(srcdir):/:/g
19743 s/:\${srcdir}:/:/g
19744 s/:@srcdir@:/:/g
19745 s/^:*//
19746 s/:*$//
19747 x
19748 s/\(=[ ]*\).*/\1/
19749 G
19750 s/\n//
19751 s/^[^=]*=[ ]*$//
19752 }'
19753 fi
19754
19755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19756 fi # test -n "$CONFIG_FILES"
19757
19758
19759 eval set X " :F $CONFIG_FILES "
19760 shift
19761 for ac_tag
19762 do
19763 case $ac_tag in
19764 :[FHLC]) ac_mode=$ac_tag; continue;;
19765 esac
19766 case $ac_mode$ac_tag in
19767 :[FHL]*:*);;
19768 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19769 :[FH]-) ac_tag=-:-;;
19770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19771 esac
19772 ac_save_IFS=$IFS
19773 IFS=:
19774 set x $ac_tag
19775 IFS=$ac_save_IFS
19776 shift
19777 ac_file=$1
19778 shift
19779
19780 case $ac_mode in
19781 :L) ac_source=$1;;
19782 :[FH])
19783 ac_file_inputs=
19784 for ac_f
19785 do
19786 case $ac_f in
19787 -) ac_f="$ac_tmp/stdin";;
19788 *) # Look for the file first in the build tree, then in the source tree
19789 # (if the path is not absolute). The absolute path cannot be DOS-style,
19790 # because $ac_f cannot contain `:'.
19791 test -f "$ac_f" ||
19792 case $ac_f in
19793 [\\/$]*) false;;
19794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19795 esac ||
19796 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19797 esac
19798 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19799 as_fn_append ac_file_inputs " '$ac_f'"
19800 done
19801
19802 # Let's still pretend it is `configure' which instantiates (i.e., don't
19803 # use $as_me), people would be surprised to read:
19804 # /* config.h. Generated by config.status. */
19805 configure_input='Generated from '`
19806 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19807 `' by configure.'
19808 if test x"$ac_file" != x-; then
19809 configure_input="$ac_file. $configure_input"
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19811 $as_echo "$as_me: creating $ac_file" >&6;}
19812 fi
19813 # Neutralize special characters interpreted by sed in replacement strings.
19814 case $configure_input in #(
19815 *\&* | *\|* | *\\* )
19816 ac_sed_conf_input=`$as_echo "$configure_input" |
19817 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19818 *) ac_sed_conf_input=$configure_input;;
19819 esac
19820
19821 case $ac_tag in
19822 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19824 esac
19825 ;;
19826 esac
19827
19828 ac_dir=`$as_dirname -- "$ac_file" ||
19829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19830 X"$ac_file" : 'X\(//\)[^/]' \| \
19831 X"$ac_file" : 'X\(//\)$' \| \
19832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19833 $as_echo X"$ac_file" |
19834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19835 s//\1/
19836 q
19837 }
19838 /^X\(\/\/\)[^/].*/{
19839 s//\1/
19840 q
19841 }
19842 /^X\(\/\/\)$/{
19843 s//\1/
19844 q
19845 }
19846 /^X\(\/\).*/{
19847 s//\1/
19848 q
19849 }
19850 s/.*/./; q'`
19851 as_dir="$ac_dir"; as_fn_mkdir_p
19852 ac_builddir=.
19853
19854 case "$ac_dir" in
19855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19856 *)
19857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19858 # A ".." for each directory in $ac_dir_suffix.
19859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19860 case $ac_top_builddir_sub in
19861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19863 esac ;;
19864 esac
19865 ac_abs_top_builddir=$ac_pwd
19866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19867 # for backward compatibility:
19868 ac_top_builddir=$ac_top_build_prefix
19869
19870 case $srcdir in
19871 .) # We are building in place.
19872 ac_srcdir=.
19873 ac_top_srcdir=$ac_top_builddir_sub
19874 ac_abs_top_srcdir=$ac_pwd ;;
19875 [\\/]* | ?:[\\/]* ) # Absolute name.
19876 ac_srcdir=$srcdir$ac_dir_suffix;
19877 ac_top_srcdir=$srcdir
19878 ac_abs_top_srcdir=$srcdir ;;
19879 *) # Relative name.
19880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19881 ac_top_srcdir=$ac_top_build_prefix$srcdir
19882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19883 esac
19884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19885
19886
19887 case $ac_mode in
19888 :F)
19889 #
19890 # CONFIG_FILE
19891 #
19892
19893 case $INSTALL in
19894 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19895 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19896 esac
19897 _ACEOF
19898
19899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19900 # If the template does not know about datarootdir, expand it.
19901 # FIXME: This hack should be removed a few years after 2.60.
19902 ac_datarootdir_hack=; ac_datarootdir_seen=
19903 ac_sed_dataroot='
19904 /datarootdir/ {
19905 p
19906 q
19907 }
19908 /@datadir@/p
19909 /@docdir@/p
19910 /@infodir@/p
19911 /@localedir@/p
19912 /@mandir@/p'
19913 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19914 *datarootdir*) ac_datarootdir_seen=yes;;
19915 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19917 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19918 _ACEOF
19919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19920 ac_datarootdir_hack='
19921 s&@datadir@&$datadir&g
19922 s&@docdir@&$docdir&g
19923 s&@infodir@&$infodir&g
19924 s&@localedir@&$localedir&g
19925 s&@mandir@&$mandir&g
19926 s&\\\${datarootdir}&$datarootdir&g' ;;
19927 esac
19928 _ACEOF
19929
19930 # Neutralize VPATH when `$srcdir' = `.'.
19931 # Shell code in configure.ac might set extrasub.
19932 # FIXME: do we really want to maintain this feature?
19933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19934 ac_sed_extra="$ac_vpsub
19935 $extrasub
19936 _ACEOF
19937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19938 :t
19939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19940 s|@configure_input@|$ac_sed_conf_input|;t t
19941 s&@top_builddir@&$ac_top_builddir_sub&;t t
19942 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19943 s&@srcdir@&$ac_srcdir&;t t
19944 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19945 s&@top_srcdir@&$ac_top_srcdir&;t t
19946 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19947 s&@builddir@&$ac_builddir&;t t
19948 s&@abs_builddir@&$ac_abs_builddir&;t t
19949 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19950 s&@INSTALL@&$ac_INSTALL&;t t
19951 $ac_datarootdir_hack
19952 "
19953 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19954 if $ac_cs_awk_getline; then
19955 $AWK -f "$ac_tmp/subs.awk"
19956 else
19957 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19958 fi \
19959 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19960
19961 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19962 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19964 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19966 which seems to be undefined. Please make sure it is defined" >&5
19967 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19968 which seems to be undefined. Please make sure it is defined" >&2;}
19969
19970 rm -f "$ac_tmp/stdin"
19971 case $ac_file in
19972 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19973 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19974 esac \
19975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19976 ;;
19977
19978
19979
19980 esac
19981
19982
19983 case $ac_file$ac_mode in
19984 "Makefile":F) sed "$extrasub_build" Makefile |
19985 sed "$extrasub_host" |
19986 sed "$extrasub_target" > mf$$
19987 mv -f mf$$ Makefile ;;
19988
19989 esac
19990 done # for ac_tag
19991
19992
19993 as_fn_exit 0
19994 _ACEOF
19995 ac_clean_files=$ac_clean_files_save
19996
19997 test $ac_write_fail = 0 ||
19998 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19999
20000
20001 # configure is writing to config.log, and then calls config.status.
20002 # config.status does its own redirection, appending to config.log.
20003 # Unfortunately, on DOS this fails, as config.log is still kept open
20004 # by configure, so config.status won't be able to write to it; its
20005 # output is simply discarded. So we exec the FD to /dev/null,
20006 # effectively closing config.log, so it can be properly (re)opened and
20007 # appended to by config.status. When coming back to configure, we
20008 # need to make the FD available again.
20009 if test "$no_create" != yes; then
20010 ac_cs_success=:
20011 ac_config_status_args=
20012 test "$silent" = yes &&
20013 ac_config_status_args="$ac_config_status_args --quiet"
20014 exec 5>/dev/null
20015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20016 exec 5>>config.log
20017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20018 # would make configure fail if this is the last instruction.
20019 $ac_cs_success || as_fn_exit 1
20020 fi
20021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20024 fi
20025