]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Update configure deps, remove stray \xA0 in picflag.m4, regenerate
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 extra_host_zlib_configure_flags
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 islver
652 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
680 AWK
681 SED
682 LN_S
683 LN
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 with_system_zlib
750 enable_as_accelerator_for
751 enable_offload_targets
752 enable_gold
753 enable_ld
754 enable_compressed_debug_sections
755 enable_libquadmath
756 enable_libquadmath_support
757 enable_libada
758 enable_libssp
759 enable_libstdcxx
760 enable_liboffloadmic
761 enable_bootstrap
762 with_mpc
763 with_mpc_include
764 with_mpc_lib
765 with_mpfr_dir
766 with_mpfr
767 with_mpfr_include
768 with_mpfr_lib
769 with_gmp_dir
770 with_gmp
771 with_gmp_include
772 with_gmp_lib
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
785 enable_objc_gc
786 with_target_bdw_gc
787 with_target_bdw_gc_include
788 with_target_bdw_gc_lib
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 build_configargs
812 host_configargs
813 target_configargs
814 AR
815 AS
816 DLLTOOL
817 LD
818 LIPO
819 NM
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJCOPY_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1178
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1231 ;;
1232
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1487 --disable-libstdcxx do not build libstdc++-v3 directory
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for isl version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1518
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-stage1-libs=LIBS libraries for stage1
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
1549 --with-isl=PATH Specify prefix directory for the installed isl
1550 package. Equivalent to
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
1565 --with-build-sysroot=SYSROOT
1566 use sysroot as the system root during the build
1567 --with-debug-prefix-map='A=B C=D ...'
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
1571 --with-build-time-tools=PATH
1572 use given path to find target tools during the build
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
1599 WINDMC WINDMC for the host
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
1602 READELF READELF for the host
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
1611 GOC_FOR_TARGET
1612 GOC for the target
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
1631 READELF_FOR_TARGET
1632 READELF for the target
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
1639
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1642
1643 Report bugs to the package provider.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1654 ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673 .) # We are building in place.
1674 ac_srcdir=.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705 cat <<\_ACEOF
1706 configure
1707 generated by GNU Autoconf 2.64
1708
1709 Copyright (C) 2009 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713 exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756 } # ac_fn_c_try_compile
1757
1758 # ac_fn_cxx_try_compile LINENO
1759 # ----------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_cxx_try_compile ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790 fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794 } # ac_fn_cxx_try_compile
1795
1796 # ac_fn_cxx_try_link LINENO
1797 # -------------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_link ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840 } # ac_fn_cxx_try_link
1841
1842 # ac_fn_c_try_link LINENO
1843 # -----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_link ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877 fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886 } # ac_fn_c_try_link
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1890
1891 It was created by $as_me, which was
1892 generated by GNU Autoconf 2.64. Invocation command line was
1893
1894 $ $0 $@
1895
1896 _ACEOF
1897 exec 5>>config.log
1898 {
1899 cat <<_ASUNAME
1900 ## --------- ##
1901 ## Platform. ##
1902 ## --------- ##
1903
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921 _ASUNAME
1922
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1929 done
1930 IFS=$as_save_IFS
1931
1932 } >&5
1933
1934 cat >&5 <<_ACEOF
1935
1936
1937 ## ----------- ##
1938 ## Core tests. ##
1939 ## ----------- ##
1940
1941 _ACEOF
1942
1943
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_configure_args=
1950 ac_configure_args0=
1951 ac_configure_args1=
1952 ac_must_keep_next=false
1953 for ac_pass in 1 2
1954 do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 esac
1965 case $ac_pass in
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1967 2)
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
1984 as_fn_append ac_configure_args " '$ac_arg'"
1985 ;;
1986 esac
1987 done
1988 done
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1991
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003 ## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##
2006 _ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
2009 (
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
2025 (set) 2>&1 |
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2028 sed -n \
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
2032 *)
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034 ;;
2035 esac |
2036 sort
2037 )
2038 echo
2039
2040 cat <<\_ASBOX
2041 ## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##
2044 _ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
2058 ## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##
2061 _ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076 ## ----------- ##
2077 ## confdefs.h. ##
2078 ## ----------- ##
2079 _ASBOX
2080 echo
2081 cat confdefs.h
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2091 ' 0
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 done
2095 ac_signal=0
2096
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2099
2100 $as_echo "/* confdefs.h */" > confdefs.h
2101
2102 # Predefined preprocessor variables.
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2126 _ACEOF
2127
2128
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 ac_site_file1=NONE
2132 ac_site_file2=NONE
2133 if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138 else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2141 fi
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 do
2144 test "x$ac_site_file" = xNONE && continue
2145 if test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2149 . "$ac_site_file"
2150 fi
2151 done
2152
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2163 fi
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2168 fi
2169
2170 # Check that the precious variables saved in the cache have kept the same
2171 # value.
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2179 set,)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,set)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217 esac
2218 fi
2219 done
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 fi
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2230
2231 ac_ext=c
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245 progname=$0
2246 # if PWD already has a value, it is probably wrong.
2247 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249 # Export original configure arguments for use by sub-configures.
2250 # Quote arguments with shell meta charatcers.
2251 TOPLEVEL_CONFIGURE_ARGUMENTS=
2252 set -- "$progname" "$@"
2253 for ac_arg
2254 do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264 done
2265 if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267 fi
2268 # Remove the initial space we just introduced and, as these will be
2269 # expanded by make, quote '$'.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
2272
2273 # Find the build, host, and target systems.
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2286 fi
2287
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
2296
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320 esac
2321 build=$ac_cv_build
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_build
2324 shift
2325 build_cpu=$1
2326 build_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 build_os=$*
2331 IFS=$ac_save_IFS
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2333
2334
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
2338 esac
2339
2340
2341
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
2345 esac
2346
2347
2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
2352 esac
2353
2354
2355
2356
2357 test "$host_noncanonical" = "$target_noncanonical" &&
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
2360 program_transform_name=s,y,y,
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363 $as_echo_n "checking host system type... " >&6; }
2364 if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369 else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372 fi
2373
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376 $as_echo "$ac_cv_host" >&6; }
2377 case $ac_cv_host in
2378 *-*-*) ;;
2379 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380 esac
2381 host=$ac_cv_host
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_host
2384 shift
2385 host_cpu=$1
2386 host_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 host_os=$*
2391 IFS=$ac_save_IFS
2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396 $as_echo_n "checking target system type... " >&6; }
2397 if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402 else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405 fi
2406
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409 $as_echo "$ac_cv_target" >&6; }
2410 case $ac_cv_target in
2411 *-*-*) ;;
2412 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413 esac
2414 target=$ac_cv_target
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_target
2417 shift
2418 target_cpu=$1
2419 target_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 target_os=$*
2424 IFS=$ac_save_IFS
2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2426
2427
2428 # The aliases save the names the user supplied, while $host etc.
2429 # will get canonicalized.
2430 test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
2434
2435 test "$program_prefix" != NONE &&
2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444
2445
2446
2447 # Get 'install' or 'install-sh' and its variants.
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2454 # AIX /bin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
2507 fi
2508 fi
2509 done
2510 done
2511 ;;
2512 esac
2513
2514 done
2515 IFS=$as_save_IFS
2516
2517 rm -rf conftest.one conftest.two conftest.dir
2518
2519 fi
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2528 fi
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2532
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542 $as_echo_n "checking whether ln works... " >&6; }
2543 if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 rm -f conftestdata_t
2547 echo >conftestdata_f
2548 if ln conftestdata_f conftestdata_t 2>/dev/null
2549 then
2550 acx_cv_prog_LN=ln
2551 else
2552 acx_cv_prog_LN=no
2553 fi
2554 rm -f conftestdata_f conftestdata_t
2555
2556 fi
2557 if test $acx_cv_prog_LN = no; then
2558 LN="cp"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560 $as_echo "no, using $LN" >&6; }
2561 else
2562 LN="$acx_cv_prog_LN"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 fi
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568 $as_echo_n "checking whether ln -s works... " >&6; }
2569 LN_S=$as_ln_s
2570 if test "$LN_S" = "ln -s"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572 $as_echo "yes" >&6; }
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575 $as_echo "no, using $LN_S" >&6; }
2576 fi
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580 if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601 # Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603 case `"$ac_path_SED" --version 2>&1` in
2604 *GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606 *)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627 esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633 IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637 else
2638 ac_cv_path_SED=$SED
2639 fi
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643 $as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647 for ac_prog in gawk mawk nawk awk
2648 do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 test -n "$AWK" && break
2687 done
2688
2689
2690 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693 # a relative path.
2694 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696 fi
2697
2698 # Set srcdir to "." if that's what it is.
2699 # This is important for multilib support.
2700 pwd=`${PWDCMD-pwd}`
2701 if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
2703 fi
2704
2705 topsrcdir=$srcpwd
2706
2707 extra_host_args=
2708
2709 ### To add a new directory to the tree, first choose whether it is a target
2710 ### or a host dependent tool. Then put it into the appropriate list
2711 ### (library or tools, host or target), doing a dependency sort.
2712
2713 # Subdirs will be configured in the order listed in build_configdirs,
2714 # configdirs, or target_configdirs; see the serialization section below.
2715
2716 # Dependency sorting is only needed when *configuration* must be done in
2717 # a particular order. In all cases a dependency should be specified in
2718 # the Makefile, whether or not it's implicitly specified here.
2719
2720 # Double entries in build_configdirs, configdirs, or target_configdirs may
2721 # cause circular dependencies and break everything horribly.
2722
2723 # these library is used by various programs built for the build
2724 # environment
2725 #
2726 build_libs="build-libiberty build-libcpp"
2727
2728 # these tools are built for the build environment
2729 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2730
2731 # these libraries are used by various programs built for the host environment
2732 #f
2733 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2734
2735 # these tools are built for the host environment
2736 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737 # know that we are building the simulator.
2738 # binutils, gas and ld appear in that order because it makes sense to run
2739 # "make check" in that particular order.
2740 # If --enable-gold is used, "gold" may replace "ld".
2741 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2742
2743 # these libraries are built for the target environment, and are built after
2744 # the host libraries and the host tools (which may be a cross compiler)
2745 # Note that libiberty is not a target library.
2746 target_libraries="target-libgcc \
2747 target-libbacktrace \
2748 target-libgloss \
2749 target-newlib \
2750 target-libgomp \
2751 target-libcilkrts \
2752 target-liboffloadmic \
2753 target-libatomic \
2754 target-libitm \
2755 target-libstdc++-v3 \
2756 target-libsanitizer \
2757 target-libvtv \
2758 target-libmpx \
2759 target-libssp \
2760 target-libquadmath \
2761 target-libgfortran \
2762 target-libffi \
2763 target-libobjc \
2764 target-libada \
2765 target-libgo"
2766
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2769 #
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2772 #
2773 target_tools="target-rda"
2774
2775 ################################################################################
2776
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines. This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2785
2786
2787
2788 ################################################################################
2789
2790 srcname="gnu development package"
2791
2792 # This gets set non-empty for some net releases of packages.
2793 appdirs=""
2794
2795 # Define is_cross_compiler to save on calls to 'test'.
2796 is_cross_compiler=
2797 if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
2799 else
2800 is_cross_compiler=yes
2801 fi
2802
2803 # Find the build and target subdir names.
2804
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2810 # finishes. So:
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2816
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2820 else
2821 build_libsubdir="$build_subdir"
2822 fi
2823
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828 else
2829 host_subdir=.
2830 fi
2831 # No prefix.
2832 target_subdir=${target_noncanonical}
2833
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838 fi
2839
2840 # Skipdirs are removed silently.
2841 skipdirs=
2842 # Noconfigdirs are removed loudly.
2843 noconfigdirs=""
2844
2845 use_gnu_ld=
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
2849 noconfigdirs="$noconfigdirs ld gold"
2850 fi
2851
2852 use_gnu_as=
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
2857 fi
2858
2859 use_included_zlib=
2860
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864 fi
2865
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870 fi
2871
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2874
2875 case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
2878 skipdirs="${skipdirs} tk itcl libgui"
2879 # We won't be able to build gdbtk without X.
2880 enable_gdbtk=no
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883 esac
2884
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2888
2889 case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
2891 esac
2892
2893 # If both --with-headers and --with-libs are specified, default to
2894 # --without-newlib.
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
2900 fi
2901
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906 esac
2907
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911 fi
2912
2913
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921 else
2922 enable_offload_targets=
2923 fi
2924
2925
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 # Build only ld. Default option.
2929 # --enable-gold [--enable-ld]
2930 # Build both gold and ld. Install gold as "ld.gold", install ld
2931 # as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2934 # install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 # Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939 # and ld.bfd).
2940 # In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2942 # Error.
2943
2944 default_ld=
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
2948 else
2949 ENABLE_GOLD=no
2950 fi
2951
2952 case "${ENABLE_GOLD}" in
2953 yes|default)
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
2972 case "${target}" in
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
2979 ENABLE_GOLD=yes
2980 ;;
2981 esac
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
2989 esac
2990
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995 ENABLE_LD=yes
2996 fi
2997
2998
2999 case "${ENABLE_LD}" in
3000 default)
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017 esac
3018
3019 # PR gas/19109
3020 # Decide the default method for compressing debug sections.
3021 # Provide a configure time option to override our default.
3022 # Check whether --enable-compressed_debug_sections was given.
3023 if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029 else
3030 enable_compressed_debug_sections=
3031 fi
3032
3033
3034 # Configure extra directories which are host specific
3035
3036 case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039 esac
3040
3041 # A target can indicate whether a language isn't supported for some reason.
3042 # Only spaces may be used in this macro; not newlines or tabs.
3043 unsupported_languages=
3044
3045 # Remove more programs from consideration, based on the host or
3046 # target this usually means that a port of the program doesn't
3047 # exist yet.
3048
3049 case "${host}" in
3050 i[3456789]86-*-msdosdjgpp*)
3051 noconfigdirs="$noconfigdirs tcl tk itcl"
3052 ;;
3053 esac
3054
3055
3056 # Check whether --enable-libquadmath was given.
3057 if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059 else
3060 ENABLE_LIBQUADMATH=yes
3061 fi
3062
3063 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065 fi
3066
3067
3068 # Check whether --enable-libquadmath-support was given.
3069 if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071 else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073 fi
3074
3075 enable_libquadmath_support=
3076 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078 fi
3079
3080
3081 # Check whether --enable-libada was given.
3082 if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3084 else
3085 ENABLE_LIBADA=yes
3086 fi
3087
3088 if test "${ENABLE_LIBADA}" != "yes" ; then
3089 noconfigdirs="$noconfigdirs gnattools"
3090 fi
3091
3092 # Check whether --enable-libssp was given.
3093 if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3095 else
3096 ENABLE_LIBSSP=yes
3097 fi
3098
3099
3100 # Check whether --enable-libstdcxx was given.
3101 if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103 else
3104 ENABLE_LIBSTDCXX=default
3105 fi
3106
3107 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3109 fi
3110
3111 # If this is accelerator compiler and its target is intelmic we enable
3112 # target liboffloadmic by default. If this is compiler with offloading
3113 # for intelmic we enable host liboffloadmic by default. Otherwise
3114 # liboffloadmic is disabled by default.
3115 # Check whether --enable-liboffloadmic was given.
3116 if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122 esac
3123 else
3124 if test x"$enable_as_accelerator_for" != x; then
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134 else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144 fi
3145 fi
3146
3147
3148
3149 # Enable libgomp by default on hosted POSIX systems, and a few others.
3150 if test x$enable_libgomp = x ; then
3151 case "${target}" in
3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3153 ;;
3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3155 ;;
3156 *-*-solaris2* | *-*-hpux11*)
3157 ;;
3158 *-*-darwin* | *-*-aix*)
3159 ;;
3160 nvptx*-*-*)
3161 ;;
3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
3166 fi
3167
3168 # Disable libatomic on unsupported systems.
3169 if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172 $as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3183 fi
3184 fi
3185 fi
3186
3187 # Disable libcilkrts on unsupported systems.
3188 if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191 $as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202 fi
3203 fi
3204 fi
3205
3206 # Disable liboffloadmic on unsupported systems.
3207 if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210 $as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221 fi
3222 fi
3223 fi
3224
3225 # Disable libitm on unsupported systems.
3226 if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3229 $as_echo_n "checking for libitm support... " >&6; }
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3240 fi
3241 fi
3242 fi
3243
3244 # Disable libsanitizer on unsupported systems.
3245 if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248 $as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3259 fi
3260 fi
3261 fi
3262
3263 # Disable libvtv on unsupported systems.
3264 if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267 $as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
3270 test "$VTV_SUPPORTED" != "yes")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278 fi
3279 fi
3280 fi
3281
3282
3283 # Enable libmpx on supported systems by request.
3284 if test -d ${srcdir}/libmpx; then
3285 if test x$enable_libmpx = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287 $as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 fi
3300 fi
3301
3302
3303
3304 # Disable libquadmath for some systems.
3305 case "${target}" in
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314 esac
3315
3316 # Disable libssp for some systems.
3317 case "${target}" in
3318 avr-*-*)
3319 # No hosted I/O support.
3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
3324 ;;
3325 rl78-*-*)
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
3329 noconfigdirs="$noconfigdirs target-libssp"
3330 ;;
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
3335 esac
3336
3337 # Disable libstdc++-v3 for some systems.
3338 # Allow user to override this if they pass --enable-libstdc++-v3
3339 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
3355 esac
3356 fi
3357
3358 # Disable Fortran for some systems.
3359 case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364 esac
3365
3366 # Disable libffi for some systems.
3367 case "${target}" in
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3376 ;;
3377 *-*-netware*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3382 ;;
3383 *-*-rtems*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3385 ;;
3386 *-*-tpf*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3388 ;;
3389 *-*-uclinux*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3391 ;;
3392 *-*-vxworks*)
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 arm*-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 arm-wince-pe)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 arm*-*-symbianelf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 cris-*-* | crisv32-*-*)
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3416 esac
3417 ;;
3418 hppa*64*-*-hpux*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
3423 hppa*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 ia64*-*-*vms*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 x86_64-*-mingw*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3437 ;;
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 rs6000-*-aix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 ft32-*-*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-lynxos*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 esac
3455
3456 # Disable the go frontend on systems where it is known to not work. Please keep
3457 # this in sync with contrib/config-list.mk.
3458 case "${target}" in
3459 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462 esac
3463
3464 # Disable libgo for some systems where it is known to not work.
3465 # For testing, you can easily override this with --enable-libgo.
3466 if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479 fi
3480
3481 # Default libgloss CPU subdirectory.
3482 libgloss_dir="$target_cpu"
3483
3484 case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518 esac
3519
3520 # Disable newlib and libgloss for various target OSes.
3521 case "${target}" in
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-chorusos)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 esac
3586
3587 case "${target}" in
3588 *-*-chorusos)
3589 ;;
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
3598 powerpc-*-darwin*)
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
3601 ;;
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
3606 x86_64-*-darwin[912]*)
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3609 ;;
3610 *-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3613 ;;
3614 *-*-dragonfly*)
3615 ;;
3616 *-*-freebsd*)
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
3621 ;;
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
3626 *-*-netbsd*)
3627 ;;
3628 *-*-netware*)
3629 ;;
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
3633 *-*-rtems*)
3634 noconfigdirs="$noconfigdirs target-libgloss"
3635 # this is not caught below because this stanza matches earlier
3636 case $target in
3637 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3638 esac
3639 ;;
3640 # The tpf target doesn't support gdb yet.
3641 *-*-tpf*)
3642 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3643 ;;
3644 *-*-uclinux*)
3645 noconfigdirs="$noconfigdirs target-rda"
3646 ;;
3647 *-*-vxworks*)
3648 ;;
3649 alpha*-dec-osf*)
3650 # ld works, but does not support shared libraries.
3651 # gas doesn't generate exception information.
3652 noconfigdirs="$noconfigdirs gas ld"
3653 ;;
3654 alpha*-*-*vms*)
3655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3656 ;;
3657 alpha*-*-*)
3658 # newlib is not 64 bit ready
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3662 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3663 ;;
3664 arc*-*-*)
3665 noconfigdirs="$noconfigdirs sim"
3666 ;;
3667 arm-*-pe*)
3668 noconfigdirs="$noconfigdirs target-libgloss"
3669 ;;
3670 arm-*-riscix*)
3671 noconfigdirs="$noconfigdirs ld target-libgloss"
3672 ;;
3673 avr-*-*)
3674 if test x${with_avrlibc} != xno; then
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 fi
3677 ;;
3678 c4x-*-* | tic4x-*-*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 ;;
3681 tic54x-*-*)
3682 noconfigdirs="$noconfigdirs target-libgloss gdb"
3683 ;;
3684 d10v-*-*)
3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 ;;
3687 d30v-*-*)
3688 noconfigdirs="$noconfigdirs gdb"
3689 ;;
3690 fr30-*-elf*)
3691 noconfigdirs="$noconfigdirs gdb"
3692 ;;
3693 ft32-*-*)
3694 noconfigdirs="$noconfigdirs target-rda gprof"
3695 ;;
3696 moxie-*-*)
3697 noconfigdirs="$noconfigdirs"
3698 ;;
3699 h8300*-*-*)
3700 noconfigdirs="$noconfigdirs target-libgloss"
3701 ;;
3702 h8500-*-*)
3703 noconfigdirs="$noconfigdirs target-libgloss"
3704 ;;
3705 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3706 ;;
3707 hppa*64*-*-hpux*)
3708 noconfigdirs="$noconfigdirs gdb"
3709 ;;
3710 hppa*-*-hpux11*)
3711 noconfigdirs="$noconfigdirs gdb ld"
3712 ;;
3713 hppa*64*-*-linux*)
3714 ;;
3715 hppa*-*-linux*)
3716 ;;
3717 hppa*-*-*elf* | \
3718 hppa*-*-lites* | \
3719 hppa*-*-openbsd* | \
3720 hppa*64*-*-*)
3721 ;;
3722 hppa*-*-pro*)
3723 ;;
3724 hppa*-*-*)
3725 noconfigdirs="$noconfigdirs ld"
3726 ;;
3727 i960-*-*)
3728 noconfigdirs="$noconfigdirs gdb"
3729 ;;
3730 ia64*-*-elf*)
3731 # No gdb support yet.
3732 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3733 ;;
3734 ia64*-**-hpux*)
3735 # No ld support yet.
3736 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3737 ;;
3738 ia64*-*-*vms*)
3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs libgui itcl ld"
3741 ;;
3742 i[3456789]86-w64-mingw*)
3743 ;;
3744 i[3456789]86-*-mingw*)
3745 target_configdirs="$target_configdirs target-winsup"
3746 ;;
3747 *-*-cygwin*)
3748 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3749 noconfigdirs="$noconfigdirs target-libgloss"
3750 # always build newlib if winsup directory is present.
3751 if test -d "$srcdir/winsup/cygwin"; then
3752 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3753 elif test -d "$srcdir/newlib"; then
3754 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3755 fi
3756 ;;
3757 i[3456789]86-*-pe)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3759 ;;
3760 i[3456789]86-*-sco3.2v5*)
3761 # The linker does not yet know about weak symbols in COFF,
3762 # and is not configured to handle mixed ELF and COFF.
3763 noconfigdirs="$noconfigdirs ld target-libgloss"
3764 ;;
3765 i[3456789]86-*-sco*)
3766 noconfigdirs="$noconfigdirs gprof target-libgloss"
3767 ;;
3768 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
3771 i[3456789]86-*-sysv4*)
3772 noconfigdirs="$noconfigdirs target-libgloss"
3773 ;;
3774 i[3456789]86-*-beos*)
3775 noconfigdirs="$noconfigdirs gdb"
3776 ;;
3777 i[3456789]86-*-rdos*)
3778 noconfigdirs="$noconfigdirs gdb"
3779 ;;
3780 mmix-*-*)
3781 noconfigdirs="$noconfigdirs gdb"
3782 ;;
3783 mt-*-*)
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
3786 powerpc-*-aix*)
3787 # copied from rs6000-*-* entry
3788 noconfigdirs="$noconfigdirs gprof"
3789 ;;
3790 powerpc*-*-winnt* | powerpc*-*-pe*)
3791 target_configdirs="$target_configdirs target-winsup"
3792 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3793 # always build newlib.
3794 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3795 ;;
3796 # This is temporary until we can link against shared libraries
3797 powerpcle-*-solaris*)
3798 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3799 ;;
3800 powerpc-*-beos*)
3801 noconfigdirs="$noconfigdirs gdb"
3802 ;;
3803 rs6000-*-lynxos*)
3804 noconfigdirs="$noconfigdirs gprof"
3805 ;;
3806 rs6000-*-aix*)
3807 noconfigdirs="$noconfigdirs gprof"
3808 ;;
3809 rs6000-*-*)
3810 noconfigdirs="$noconfigdirs gprof"
3811 ;;
3812 m68k-apollo-*)
3813 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3814 ;;
3815 microblaze*)
3816 noconfigdirs="$noconfigdirs gprof"
3817 ;;
3818 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3819 if test x$with_newlib = xyes; then
3820 noconfigdirs="$noconfigdirs gprof"
3821 fi
3822 ;;
3823 mips*-*-irix5*)
3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
3825 ;;
3826 mips*-*-irix6*)
3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
3828 ;;
3829 mips*-*-bsd*)
3830 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3831 ;;
3832 mips*-*-linux*)
3833 ;;
3834 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3835 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3836 noconfigdirs="$noconfigdirs ld gas gprof"
3837 ;;
3838 mips*-*-*)
3839 noconfigdirs="$noconfigdirs gprof"
3840 ;;
3841 nvptx*-*-*)
3842 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3843 ;;
3844 or1k*-*-*)
3845 noconfigdirs="$noconfigdirs gdb"
3846 ;;
3847 sh-*-*)
3848 case "${target}" in
3849 sh*-*-elf)
3850 ;;
3851 *)
3852 noconfigdirs="$noconfigdirs target-libgloss" ;;
3853 esac
3854 ;;
3855 sparc-*-sunos4*)
3856 if test x${is_cross_compiler} = xno ; then
3857 use_gnu_ld=no
3858 fi
3859 ;;
3860 tic6x-*-*)
3861 noconfigdirs="$noconfigdirs sim"
3862 ;;
3863 tilepro*-*-* | tilegx*-*-*)
3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
3866 v810-*-*)
3867 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3868 ;;
3869 vax-*-*)
3870 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3871 ;;
3872 esac
3873
3874 # If we aren't building newlib, then don't build libgloss, since libgloss
3875 # depends upon some newlib header files.
3876 case "${noconfigdirs}" in
3877 *target-libgloss*) ;;
3878 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3879 esac
3880
3881 # Work in distributions that contain no compiler tools, like Autoconf.
3882 host_makefile_frag=/dev/null
3883 if test -d ${srcdir}/config ; then
3884 case "${host}" in
3885 i[3456789]86-*-msdosdjgpp*)
3886 host_makefile_frag="config/mh-djgpp"
3887 ;;
3888 *-cygwin*)
3889
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3891 $as_echo_n "checking to see if cat works as expected... " >&6; }
3892 echo a >cygwin-cat-check
3893 if test `cat cygwin-cat-check` = a ; then
3894 rm cygwin-cat-check
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3897 else
3898 rm cygwin-cat-check
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 as_fn_error "The cat command does not ignore carriage return characters.
3902 Please either mount the build directory in binary mode or run the following
3903 commands before running any configure script:
3904 set -o igncr
3905 export SHELLOPTS
3906 " "$LINENO" 5
3907 fi
3908
3909 host_makefile_frag="config/mh-cygwin"
3910 ;;
3911 *-mingw*)
3912 host_makefile_frag="config/mh-mingw"
3913 ;;
3914 alpha*-linux*)
3915 host_makefile_frag="config/mh-alpha-linux"
3916 ;;
3917 hppa*-hp-hpux10*)
3918 host_makefile_frag="config/mh-pa-hpux10"
3919 ;;
3920 hppa*-hp-hpux*)
3921 host_makefile_frag="config/mh-pa"
3922 ;;
3923 hppa*-*)
3924 host_makefile_frag="config/mh-pa"
3925 ;;
3926 *-*-darwin*)
3927 host_makefile_frag="config/mh-darwin"
3928 ;;
3929 powerpc-*-aix*)
3930 host_makefile_frag="config/mh-ppc-aix"
3931 ;;
3932 rs6000-*-aix*)
3933 host_makefile_frag="config/mh-ppc-aix"
3934 ;;
3935 esac
3936 fi
3937
3938 if test "${build}" != "${host}" ; then
3939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3943 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3944 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3951 else
3952 AR_FOR_BUILD="\$(AR)"
3953 AS_FOR_BUILD="\$(AS)"
3954 CC_FOR_BUILD="\$(CC)"
3955 CXX_FOR_BUILD="\$(CXX)"
3956 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3957 GOC_FOR_BUILD="\$(GOC)"
3958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3959 LD_FOR_BUILD="\$(LD)"
3960 NM_FOR_BUILD="\$(NM)"
3961 RANLIB_FOR_BUILD="\$(RANLIB)"
3962 WINDRES_FOR_BUILD="\$(WINDRES)"
3963 WINDMC_FOR_BUILD="\$(WINDMC)"
3964 fi
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if test "${ac_cv_prog_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 fi
4007
4008
4009 fi
4010 if test -z "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
4012 # Extract the first word of "gcc", so it can be a program name with args.
4013 set dummy gcc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_ac_ct_CC="gcc"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033 done
4034 done
4035 IFS=$as_save_IFS
4036
4037 fi
4038 fi
4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040 if test -n "$ac_ct_CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042 $as_echo "$ac_ct_CC" >&6; }
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 fi
4047
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052 yes:)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4056 esac
4057 CC=$ac_ct_CC
4058 fi
4059 else
4060 CC="$ac_cv_prog_CC"
4061 fi
4062
4063 if test -z "$CC"; then
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4066 set dummy ${ac_tool_prefix}cc; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if test "${ac_cv_prog_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_CC="${ac_tool_prefix}cc"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086 done
4087 done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 CC=$ac_cv_prog_CC
4093 if test -n "$CC"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095 $as_echo "$CC" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102 fi
4103 fi
4104 if test -z "$CC"; then
4105 # Extract the first word of "cc", so it can be a program name with args.
4106 set dummy cc; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114 else
4115 ac_prog_rejected=no
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4124 ac_prog_rejected=yes
4125 continue
4126 fi
4127 ac_cv_prog_CC="cc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 if test $ac_prog_rejected = yes; then
4136 # We found a bogon in the path, so make sure we never use it.
4137 set dummy $ac_cv_prog_CC
4138 shift
4139 if test $# != 0; then
4140 # We chose a different compiler from the bogus one.
4141 # However, it has the same basename, so the bogon will be chosen
4142 # first if we set CC to just the basename; use the full file name.
4143 shift
4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4145 fi
4146 fi
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 "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 for ac_prog in cl.exe
4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200
4201 test -n "$CC" && break
4202 done
4203 fi
4204 if test -z "$CC"; then
4205 ac_ct_CC=$CC
4206 for ac_prog in cl.exe
4207 do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_ac_ct_CC="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229 done
4230 done
4231 IFS=$as_save_IFS
4232
4233 fi
4234 fi
4235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236 if test -n "$ac_ct_CC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4238 $as_echo "$ac_ct_CC" >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245 test -n "$ac_ct_CC" && break
4246 done
4247
4248 if test "x$ac_ct_CC" = x; then
4249 CC=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252 yes:)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4256 esac
4257 CC=$ac_ct_CC
4258 fi
4259 fi
4260
4261 fi
4262
4263
4264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error "no acceptable C compiler found in \$PATH
4267 See \`config.log' for more details." "$LINENO" 5; }
4268
4269 # Provide some information about the compiler.
4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4271 set X $ac_compile
4272 ac_compiler=$2
4273 for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4282 ac_status=$?
4283 if test -s conftest.err; then
4284 sed '10a\
4285 ... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4288 rm -f conftest.er1 conftest.err
4289 fi
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292 done
4293
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main ()
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 ac_clean_files_save=$ac_clean_files
4306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4307 # Try to create an executable without -o first, disregard a.out.
4308 # It will help us diagnose broken compilers, and finding out an intuition
4309 # of exeext.
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311 $as_echo_n "checking for C compiler default output file name... " >&6; }
4312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4313
4314 # The possible output files:
4315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4316
4317 ac_rmfiles=
4318 for ac_file in $ac_files
4319 do
4320 case $ac_file in
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4323 esac
4324 done
4325 rm -f $ac_rmfiles
4326
4327 if { { ac_try="$ac_link_default"
4328 case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link_default") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4341 # so that the user can short-circuit this test for compilers unknown to
4342 # Autoconf.
4343 for ac_file in $ac_files ''
4344 do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4348 ;;
4349 [ab].out )
4350 # We found the default executable, but exeext='' is most
4351 # certainly right.
4352 break;;
4353 *.* )
4354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4355 then :; else
4356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 fi
4358 # We set ac_cv_exeext here because the later test for it is not
4359 # safe: cross compilers may not add the suffix if given an `-o'
4360 # argument, so we may need to know it at that point already.
4361 # Even if this section looks crufty: it has the advantage of
4362 # actually working.
4363 break;;
4364 * )
4365 break;;
4366 esac
4367 done
4368 test "$ac_cv_exeext" = no && ac_cv_exeext=
4369
4370 else
4371 ac_file=''
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4374 $as_echo "$ac_file" >&6; }
4375 if test -z "$ac_file"; then :
4376 $as_echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381 { as_fn_set_status 77
4382 as_fn_error "C compiler cannot create executables
4383 See \`config.log' for more details." "$LINENO" 5; }; }
4384 fi
4385 ac_exeext=$ac_cv_exeext
4386
4387 # Check that the compiler produces executables we can run. If not, either
4388 # the compiler is broken, or we cross compile.
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4390 $as_echo_n "checking whether the C compiler works... " >&6; }
4391 # If not cross compiling, check that we can run a simple program.
4392 if test "$cross_compiling" != yes; then
4393 if { ac_try='./$ac_file'
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
4404 cross_compiling=no
4405 else
4406 if test "$cross_compiling" = maybe; then
4407 cross_compiling=yes
4408 else
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error "cannot run C compiled programs.
4412 If you meant to cross compile, use \`--host'.
4413 See \`config.log' for more details." "$LINENO" 5; }
4414 fi
4415 fi
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418 $as_echo "yes" >&6; }
4419
4420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4421 ac_clean_files=$ac_clean_files_save
4422 # Check that the compiler produces executables we can run. If not, either
4423 # the compiler is broken, or we cross compile.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425 $as_echo_n "checking whether we are cross compiling... " >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4427 $as_echo "$cross_compiling" >&6; }
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430 $as_echo_n "checking for suffix of executables... " >&6; }
4431 if { { ac_try="$ac_link"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
4439 ac_status=$?
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444 # work properly (i.e., refer to `conftest.exe'), while it won't with
4445 # `rm'.
4446 for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4451 break;;
4452 * ) break;;
4453 esac
4454 done
4455 else
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error "cannot compute suffix of executables: cannot compile and link
4459 See \`config.log' for more details." "$LINENO" 5; }
4460 fi
4461 rm -f conftest$ac_cv_exeext
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463 $as_echo "$ac_cv_exeext" >&6; }
4464
4465 rm -f conftest.$ac_ext
4466 EXEEXT=$ac_cv_exeext
4467 ac_exeext=$EXEEXT
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469 $as_echo_n "checking for suffix of object files... " >&6; }
4470 if test "${ac_cv_objext+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475
4476 int
4477 main ()
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.o conftest.obj
4485 if { { ac_try="$ac_compile"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_compile") 2>&5
4493 ac_status=$?
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 for ac_file in conftest.o conftest.obj conftest.*; do
4497 test -f "$ac_file" || continue;
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4501 break;;
4502 esac
4503 done
4504 else
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error "cannot compute suffix of object files: cannot compile
4511 See \`config.log' for more details." "$LINENO" 5; }
4512 fi
4513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4516 $as_echo "$ac_cv_objext" >&6; }
4517 OBJEXT=$ac_cv_objext
4518 ac_objext=$OBJEXT
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4521 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531 choke me
4532 #endif
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_compiler_gnu=yes
4540 else
4541 ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550 GCC=yes
4551 else
4552 GCC=
4553 fi
4554 ac_test_CFLAGS=${CFLAGS+set}
4555 ac_save_CFLAGS=$CFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4557 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cc_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main ()
4570 {
4571
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_prog_cc_g=yes
4578 else
4579 CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main ()
4585 {
4586
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592
4593 else
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4618 $as_echo "$ac_cv_prog_cc_g" >&6; }
4619 if test "$ac_test_CFLAGS" = set; then
4620 CFLAGS=$ac_save_CFLAGS
4621 elif test $ac_cv_prog_cc_g = yes; then
4622 if test "$GCC" = yes; then
4623 CFLAGS="-g -O2"
4624 else
4625 CFLAGS="-g"
4626 fi
4627 else
4628 if test "$GCC" = yes; then
4629 CFLAGS="-O2"
4630 else
4631 CFLAGS=
4632 fi
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4636 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 ac_cv_prog_cc_c89=no
4640 ac_save_CC=$CC
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <stdarg.h>
4644 #include <stdio.h>
4645 #include <sys/types.h>
4646 #include <sys/stat.h>
4647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4648 struct buf { int x; };
4649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4650 static char *e (p, i)
4651 char **p;
4652 int i;
4653 {
4654 return p[i];
4655 }
4656 static char *f (char * (*g) (char **, int), char **p, ...)
4657 {
4658 char *s;
4659 va_list v;
4660 va_start (v,p);
4661 s = g (p, va_arg (v,int));
4662 va_end (v);
4663 return s;
4664 }
4665
4666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4667 function prototypes and stuff, but not '\xHH' hex character constants.
4668 These don't provoke an error unfortunately, instead are silently treated
4669 as 'x'. The following induces an error, until -std is added to get
4670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4671 array size at least. It's necessary to write '\x00'==0 to get something
4672 that's true only with -std. */
4673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4674
4675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4676 inside strings and character constants. */
4677 #define FOO(x) 'x'
4678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4679
4680 int test (int i, double x);
4681 struct s1 {int (*f) (int a);};
4682 struct s2 {int (*f) (double a);};
4683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4684 int argc;
4685 char **argv;
4686 int
4687 main ()
4688 {
4689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4696 do
4697 CC="$ac_save_CC $ac_arg"
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_c89=$ac_arg
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
4703 done
4704 rm -f conftest.$ac_ext
4705 CC=$ac_save_CC
4706
4707 fi
4708 # AC_CACHE_VAL
4709 case "x$ac_cv_prog_cc_c89" in
4710 x)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4712 $as_echo "none needed" >&6; } ;;
4713 xno)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715 $as_echo "unsupported" >&6; } ;;
4716 *)
4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4720 esac
4721 if test "x$ac_cv_prog_cc_c89" != xno; then :
4722
4723 fi
4724
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731 ac_ext=cpp
4732 ac_cpp='$CXXCPP $CPPFLAGS'
4733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4736 if test -z "$CXX"; then
4737 if test -n "$CCC"; then
4738 CXX=$CCC
4739 else
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4742 do
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_CXX+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$CXX"; then
4751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 CXX=$ac_cv_prog_CXX
4771 if test -n "$CXX"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4773 $as_echo "$CXX" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 test -n "$CXX" && break
4781 done
4782 fi
4783 if test -z "$CXX"; then
4784 ac_ct_CXX=$CXX
4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4786 do
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$ac_ct_CXX"; then
4795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_CXX="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4815 if test -n "$ac_ct_CXX"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4817 $as_echo "$ac_ct_CXX" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824 test -n "$ac_ct_CXX" && break
4825 done
4826
4827 if test "x$ac_ct_CXX" = x; then
4828 CXX="g++"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 CXX=$ac_ct_CXX
4837 fi
4838 fi
4839
4840 fi
4841 fi
4842 # Provide some information about the compiler.
4843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4844 set X $ac_compile
4845 ac_compiler=$2
4846 for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853 $as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855 ac_status=$?
4856 if test -s conftest.err; then
4857 sed '10a\
4858 ... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 fi
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865 done
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4868 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874
4875 int
4876 main ()
4877 {
4878 #ifndef __GNUC__
4879 choke me
4880 #endif
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887 ac_compiler_gnu=yes
4888 else
4889 ac_compiler_gnu=no
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4896 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4897 if test $ac_compiler_gnu = yes; then
4898 GXX=yes
4899 else
4900 GXX=
4901 fi
4902 ac_test_CXXFLAGS=${CXXFLAGS+set}
4903 ac_save_CXXFLAGS=$CXXFLAGS
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4905 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4906 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4910 ac_cxx_werror_flag=yes
4911 ac_cv_prog_cxx_g=no
4912 CXXFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915
4916 int
4917 main ()
4918 {
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_cxx_try_compile "$LINENO"; then :
4925 ac_cv_prog_cxx_g=yes
4926 else
4927 CXXFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930
4931 int
4932 main ()
4933 {
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_cxx_try_compile "$LINENO"; then :
4940
4941 else
4942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 CXXFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_cv_prog_cxx_g=yes
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4966 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4967 if test "$ac_test_CXXFLAGS" = set; then
4968 CXXFLAGS=$ac_save_CXXFLAGS
4969 elif test $ac_cv_prog_cxx_g = yes; then
4970 if test "$GXX" = yes; then
4971 CXXFLAGS="-g -O2"
4972 else
4973 CXXFLAGS="-g"
4974 fi
4975 else
4976 if test "$GXX" = yes; then
4977 CXXFLAGS="-O2"
4978 else
4979 CXXFLAGS=
4980 fi
4981 fi
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989 # We must set the default linker to the linker used by gcc for the correct
4990 # operation of libtool. If LD is not defined and we are using gcc, try to
4991 # set the LD default to the ld used by gcc.
4992 if test -z "$LD"; then
4993 if test "$GCC" = yes; then
4994 case $build in
4995 *-*-mingw*)
4996 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4997 *)
4998 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4999 esac
5000 case $gcc_prog_ld in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 LD="$gcc_prog_ld" ;;
5004 esac
5005 fi
5006 fi
5007
5008 # Check whether -static-libstdc++ -static-libgcc is supported.
5009 have_static_libs=no
5010 if test "$GCC" = yes; then
5011 saved_LDFLAGS="$LDFLAGS"
5012
5013 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5015 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5016 ac_ext=cpp
5017 ac_cpp='$CXXCPP $CPPFLAGS'
5018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025
5026 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5027 #error -static-libstdc++ not implemented
5028 #endif
5029 int main() {}
5030 _ACEOF
5031 if ac_fn_cxx_try_link "$LINENO"; then :
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }; have_static_libs=yes
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 LDFLAGS="$saved_LDFLAGS"
5048 fi
5049
5050
5051
5052
5053 if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$GNATBIND"; then
5062 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 GNATBIND=$ac_cv_prog_GNATBIND
5082 if test -n "$GNATBIND"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5084 $as_echo "$GNATBIND" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 fi
5092 if test -z "$ac_cv_prog_GNATBIND"; then
5093 ac_ct_GNATBIND=$GNATBIND
5094 # Extract the first word of "gnatbind", so it can be a program name with args.
5095 set dummy gnatbind; 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 test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$ac_ct_GNATBIND"; then
5102 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
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 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5122 if test -n "$ac_ct_GNATBIND"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5124 $as_echo "$ac_ct_GNATBIND" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130 if test "x$ac_ct_GNATBIND" = x; then
5131 GNATBIND="no"
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139 GNATBIND=$ac_ct_GNATBIND
5140 fi
5141 else
5142 GNATBIND="$ac_cv_prog_GNATBIND"
5143 fi
5144
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$GNATMAKE"; then
5154 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 GNATMAKE=$ac_cv_prog_GNATMAKE
5174 if test -n "$GNATMAKE"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5176 $as_echo "$GNATMAKE" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 if test -z "$ac_cv_prog_GNATMAKE"; then
5185 ac_ct_GNATMAKE=$GNATMAKE
5186 # Extract the first word of "gnatmake", so it can be a program name with args.
5187 set dummy gnatmake; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_GNATMAKE"; then
5194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5214 if test -n "$ac_ct_GNATMAKE"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5216 $as_echo "$ac_ct_GNATMAKE" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222 if test "x$ac_ct_GNATMAKE" = x; then
5223 GNATMAKE="no"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231 GNATMAKE=$ac_ct_GNATMAKE
5232 fi
5233 else
5234 GNATMAKE="$ac_cv_prog_GNATMAKE"
5235 fi
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5238 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5239 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat >conftest.adb <<EOF
5243 procedure conftest is begin null; end conftest;
5244 EOF
5245 acx_cv_cc_gcc_supports_ada=no
5246 # There is a bug in old released versions of GCC which causes the
5247 # driver to exit successfully when the appropriate language module
5248 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249 # Therefore we must check for the error message as well as an
5250 # unsuccessful exit.
5251 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252 # given a .adb file, but produce no object file. So we must check
5253 # if an object file was really produced to guard against this.
5254 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5255 if test x"$errors" = x && test -f conftest.$ac_objext; then
5256 acx_cv_cc_gcc_supports_ada=yes
5257 fi
5258 rm -f conftest.*
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5262
5263 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5264 have_gnat=yes
5265 else
5266 have_gnat=no
5267 fi
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5270 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5271 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 echo abfoo >t1
5275 echo cdfoo >t2
5276 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5277 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5278 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5279 :
5280 else
5281 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5282 fi
5283 fi
5284 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5285 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5286 :
5287 else
5288 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5289 fi
5290 fi
5291 rm t1 t2
5292
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5295 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5296 do_compare="$gcc_cv_prog_cmp_skip"
5297
5298
5299
5300 # Check whether --enable-bootstrap was given.
5301 if test "${enable_bootstrap+set}" = set; then :
5302 enableval=$enable_bootstrap;
5303 else
5304 enable_bootstrap=default
5305 fi
5306
5307
5308 # Issue errors and warnings for invalid/strange bootstrap combinations.
5309 if test -r $srcdir/gcc/configure; then
5310 have_compiler=yes
5311 else
5312 have_compiler=no
5313 fi
5314
5315 case "$have_compiler:$host:$target:$enable_bootstrap" in
5316 *:*:*:no) ;;
5317
5318 # Default behavior. Enable bootstrap if we have a compiler
5319 # and we are in a native configuration.
5320 yes:$build:$build:default)
5321 enable_bootstrap=yes ;;
5322
5323 *:*:*:default)
5324 enable_bootstrap=no ;;
5325
5326 # We have a compiler and we are in a native configuration, bootstrap is ok
5327 yes:$build:$build:yes)
5328 ;;
5329
5330 # Other configurations, but we have a compiler. Assume the user knows
5331 # what he's doing.
5332 yes:*:*:yes)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5334 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5335 ;;
5336
5337 # No compiler: if they passed --enable-bootstrap explicitly, fail
5338 no:*:*:yes)
5339 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5340
5341 # Fail if wrong command line
5342 *)
5343 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5344 ;;
5345 esac
5346
5347 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5348 # C++98 compiler can still start the bootstrap.
5349 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5350 CXX="$CXX -std=gnu++98"
5351 fi
5352
5353 # Used for setting $lt_cv_objdir
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5355 $as_echo_n "checking for objdir... " >&6; }
5356 if test "${lt_cv_objdir+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 rm -f .libs 2>/dev/null
5360 mkdir .libs 2>/dev/null
5361 if test -d .libs; then
5362 lt_cv_objdir=.libs
5363 else
5364 # MS-DOS does not allow filenames that begin with a dot.
5365 lt_cv_objdir=_libs
5366 fi
5367 rmdir .libs 2>/dev/null
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5370 $as_echo "$lt_cv_objdir" >&6; }
5371 objdir=$lt_cv_objdir
5372
5373
5374
5375
5376
5377 cat >>confdefs.h <<_ACEOF
5378 #define LT_OBJDIR "$lt_cv_objdir/"
5379 _ACEOF
5380
5381
5382
5383 # Check for GMP, MPFR and MPC
5384 gmplibs="-lmpc -lmpfr -lgmp"
5385 gmpinc=
5386 have_gmp=no
5387
5388 # Specify a location for mpc
5389 # check for this first so it ends up on the link line before mpfr.
5390
5391 # Check whether --with-mpc was given.
5392 if test "${with_mpc+set}" = set; then :
5393 withval=$with_mpc;
5394 fi
5395
5396
5397 # Check whether --with-mpc-include was given.
5398 if test "${with_mpc_include+set}" = set; then :
5399 withval=$with_mpc_include;
5400 fi
5401
5402
5403 # Check whether --with-mpc-lib was given.
5404 if test "${with_mpc_lib+set}" = set; then :
5405 withval=$with_mpc_lib;
5406 fi
5407
5408
5409 if test "x$with_mpc" != x; then
5410 gmplibs="-L$with_mpc/lib $gmplibs"
5411 gmpinc="-I$with_mpc/include $gmpinc"
5412 fi
5413 if test "x$with_mpc_include" != x; then
5414 gmpinc="-I$with_mpc_include $gmpinc"
5415 fi
5416 if test "x$with_mpc_lib" != x; then
5417 gmplibs="-L$with_mpc_lib $gmplibs"
5418 fi
5419 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5421 gmpinc='-I$$s/mpc/src '"$gmpinc"
5422 # Do not test the mpc version. Assume that it is sufficient, since
5423 # it is in the source tree, and the library has not been built yet
5424 # but it would be included on the link line in the version check below
5425 # hence making the test fail.
5426 have_gmp=yes
5427 fi
5428
5429 # Specify a location for mpfr
5430 # check for this first so it ends up on the link line before gmp.
5431
5432 # Check whether --with-mpfr-dir was given.
5433 if test "${with_mpfr_dir+set}" = set; then :
5434 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5435 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5436 fi
5437
5438
5439
5440 # Check whether --with-mpfr was given.
5441 if test "${with_mpfr+set}" = set; then :
5442 withval=$with_mpfr;
5443 fi
5444
5445
5446 # Check whether --with-mpfr-include was given.
5447 if test "${with_mpfr_include+set}" = set; then :
5448 withval=$with_mpfr_include;
5449 fi
5450
5451
5452 # Check whether --with-mpfr-lib was given.
5453 if test "${with_mpfr_lib+set}" = set; then :
5454 withval=$with_mpfr_lib;
5455 fi
5456
5457
5458 if test "x$with_mpfr" != x; then
5459 gmplibs="-L$with_mpfr/lib $gmplibs"
5460 gmpinc="-I$with_mpfr/include $gmpinc"
5461 fi
5462 if test "x$with_mpfr_include" != x; then
5463 gmpinc="-I$with_mpfr_include $gmpinc"
5464 fi
5465 if test "x$with_mpfr_lib" != x; then
5466 gmplibs="-L$with_mpfr_lib $gmplibs"
5467 fi
5468 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5469 # MPFR v3.1.0 moved the sources into a src sub-directory.
5470 if ! test -d ${srcdir}/mpfr/src; then
5471 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5472 fi
5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5475 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5476 # Do not test the mpfr version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5481 fi
5482
5483 # Specify a location for gmp
5484
5485 # Check whether --with-gmp-dir was given.
5486 if test "${with_gmp_dir+set}" = set; then :
5487 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5488 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5489 fi
5490
5491
5492
5493 # Check whether --with-gmp was given.
5494 if test "${with_gmp+set}" = set; then :
5495 withval=$with_gmp;
5496 fi
5497
5498
5499 # Check whether --with-gmp-include was given.
5500 if test "${with_gmp_include+set}" = set; then :
5501 withval=$with_gmp_include;
5502 fi
5503
5504
5505 # Check whether --with-gmp-lib was given.
5506 if test "${with_gmp_lib+set}" = set; then :
5507 withval=$with_gmp_lib;
5508 fi
5509
5510
5511
5512 if test "x$with_gmp" != x; then
5513 gmplibs="-L$with_gmp/lib $gmplibs"
5514 gmpinc="-I$with_gmp/include $gmpinc"
5515 fi
5516 if test "x$with_gmp_include" != x; then
5517 gmpinc="-I$with_gmp_include $gmpinc"
5518 fi
5519 if test "x$with_gmp_lib" != x; then
5520 gmplibs="-L$with_gmp_lib $gmplibs"
5521 fi
5522 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5523 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5524 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5525 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5526 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5527 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5528 # Do not test the gmp version. Assume that it is sufficient, since
5529 # it is in the source tree, and the library has not been built yet
5530 # but it would be included on the link line in the version check below
5531 # hence making the test fail.
5532 have_gmp=yes
5533 fi
5534
5535 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5536 have_gmp=yes
5537 saved_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS $gmpinc"
5539 # Check for the recommended and required versions of GMP.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5541 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5542
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include "gmp.h"
5546 int
5547 main ()
5548 {
5549
5550 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5551 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5552 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5553 choke me
5554 #endif
5555
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #include <gmp.h>
5564 int
5565 main ()
5566 {
5567
5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5571 choke me
5572 #endif
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583 $as_echo "buggy but acceptable" >&6; }
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }; have_gmp=no
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591
5592 # If we have GMP, check the MPFR version.
5593 if test x"$have_gmp" = xyes; then
5594 # Check for the recommended and required versions of MPFR.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5596 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <gmp.h>
5600 #include <mpfr.h>
5601 int
5602 main ()
5603 {
5604
5605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5606 choke me
5607 #endif
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <gmp.h>
5617 #include <mpfr.h>
5618 int
5619 main ()
5620 {
5621
5622 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5623 choke me
5624 #endif
5625
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632 $as_echo "yes" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5635 $as_echo "buggy but acceptable" >&6; }
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }; have_gmp=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644
5645 # Check for the MPC header version.
5646 if test x"$have_gmp" = xyes ; then
5647 # Check for the recommended and required versions of MPC.
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5649 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <mpc.h>
5653 int
5654 main ()
5655 {
5656
5657 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 choke me
5659 #endif
5660
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <mpc.h>
5669 int
5670 main ()
5671 {
5672
5673 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5674 choke me
5675 #endif
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5683 $as_echo "yes" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686 $as_echo "buggy but acceptable" >&6; }
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }; have_gmp=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695
5696 # Now check the MPFR library.
5697 if test x"$have_gmp" = xyes; then
5698 saved_LIBS="$LIBS"
5699 LIBS="$LIBS $gmplibs"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5701 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <mpc.h>
5705 int
5706 main ()
5707 {
5708
5709 mpfr_t n;
5710 mpfr_t x;
5711 mpc_t c;
5712 int t;
5713 mpfr_init (n);
5714 mpfr_init (x);
5715 mpfr_atan2 (n, n, x, GMP_RNDN);
5716 mpfr_erfc (n, x, GMP_RNDN);
5717 mpfr_subnormalize (x, t, GMP_RNDN);
5718 mpfr_clear(n);
5719 mpfr_clear(x);
5720 mpc_init2 (c, 53);
5721 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5722 mpc_cosh (c, c, MPC_RNDNN);
5723 mpc_pow (c, c, c, MPC_RNDNN);
5724 mpc_acosh (c, c, MPC_RNDNN);
5725 mpc_clear (c);
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_link "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }; have_gmp=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 LIBS="$saved_LIBS"
5741 fi
5742
5743 CFLAGS="$saved_CFLAGS"
5744
5745 # The library versions listed in the error message below should match
5746 # the HARD-minimums enforced above.
5747 if test x$have_gmp != xyes; then
5748 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5749 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5750 their locations. Source code for these libraries can be found at
5751 their respective hosting sites as well as at
5752 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5753 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5754 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5755 make sure that you have installed both the libraries and the header
5756 files. They may be located in separate packages." "$LINENO" 5
5757 fi
5758 fi
5759
5760 # Flags needed for both GMP, MPFR and/or MPC.
5761
5762
5763
5764
5765
5766
5767
5768 # Libraries to use for stage1 or when not bootstrapping.
5769
5770 # Check whether --with-stage1-libs was given.
5771 if test "${with_stage1_libs+set}" = set; then :
5772 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5773 stage1_libs=
5774 else
5775 stage1_libs=$withval
5776 fi
5777 else
5778 stage1_libs=
5779 fi
5780
5781
5782
5783 # Linker flags to use for stage1 or when not bootstrapping.
5784
5785 # Check whether --with-stage1-ldflags was given.
5786 if test "${with_stage1_ldflags+set}" = set; then :
5787 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5788 stage1_ldflags=
5789 else
5790 stage1_ldflags=$withval
5791 fi
5792 else
5793 stage1_ldflags=
5794 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5795 # if supported. But if the user explicitly specified the libraries to use,
5796 # trust that they are doing what they want.
5797 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5798 stage1_ldflags="-static-libstdc++ -static-libgcc"
5799 fi
5800 fi
5801
5802
5803
5804 # Libraries to use for stage2 and later builds.
5805
5806 # Check whether --with-boot-libs was given.
5807 if test "${with_boot_libs+set}" = set; then :
5808 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5809 poststage1_libs=
5810 else
5811 poststage1_libs=$withval
5812 fi
5813 else
5814 poststage1_libs=
5815 fi
5816
5817
5818
5819 # Linker flags to use for stage2 and later builds.
5820
5821 # Check whether --with-boot-ldflags was given.
5822 if test "${with_boot_ldflags+set}" = set; then :
5823 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5824 poststage1_ldflags=
5825 else
5826 poststage1_ldflags=$withval
5827 fi
5828 else
5829 poststage1_ldflags=
5830 # In stages 2 and 3, default to linking libstdc++ and libgcc
5831 # statically. But if the user explicitly specified the libraries to
5832 # use, trust that they are doing what they want.
5833 if test "$poststage1_libs" = ""; then
5834 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5835 fi
5836 fi
5837
5838
5839
5840 # GCC GRAPHITE dependency isl.
5841 # Basic setup is inlined here, actual checks are in config/isl.m4
5842
5843
5844 # Check whether --with-isl was given.
5845 if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
5847 fi
5848
5849
5850 # Treat --without-isl as a request to disable
5851 # GRAPHITE support and skip all following checks.
5852 if test "x$with_isl" != "xno"; then
5853 # Check for isl
5854
5855
5856 # Check whether --with-isl-include was given.
5857 if test "${with_isl_include+set}" = set; then :
5858 withval=$with_isl_include;
5859 fi
5860
5861
5862 # Check whether --with-isl-lib was given.
5863 if test "${with_isl_lib+set}" = set; then :
5864 withval=$with_isl_lib;
5865 fi
5866
5867
5868 # Check whether --enable-isl-version-check was given.
5869 if test "${enable_isl_version_check+set}" = set; then :
5870 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5871 else
5872 ENABLE_ISL_CHECK=yes
5873 fi
5874
5875
5876 # Initialize isllibs and islinc.
5877 case $with_isl in
5878 no)
5879 isllibs=
5880 islinc=
5881 ;;
5882 "" | yes)
5883 ;;
5884 *)
5885 isllibs="-L$with_isl/lib"
5886 islinc="-I$with_isl/include"
5887 ;;
5888 esac
5889 if test "x${with_isl_include}" != x ; then
5890 islinc="-I$with_isl_include"
5891 fi
5892 if test "x${with_isl_lib}" != x; then
5893 isllibs="-L$with_isl_lib"
5894 fi
5895 if test "x${islinc}" = x && test "x${isllibs}" = x \
5896 && test -d ${srcdir}/isl; then
5897 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5898 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5899 ENABLE_ISL_CHECK=no
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5901 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5902 fi
5903
5904 isllibs="${isllibs} -lisl"
5905
5906
5907
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5918 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #include <isl/ctx.h>
5922 int
5923 main ()
5924 {
5925 isl_ctx_get_max_operations (isl_ctx_alloc ());
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_c_try_link "$LINENO"; then :
5931 gcc_cv_isl=yes
5932 else
5933 gcc_cv_isl=no
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5938 $as_echo "$gcc_cv_isl" >&6; }
5939
5940 if test "${gcc_cv_isl}" = no ; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5942 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5943 fi
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5946 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 #include <isl/schedule.h>
5950 int
5951 main ()
5952 {
5953 isl_options_set_schedule_serialize_sccs (NULL, 0);
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_link "$LINENO"; then :
5959 ac_has_isl_options_set_schedule_serialize_sccs=yes
5960 else
5961 ac_has_isl_options_set_schedule_serialize_sccs=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5966 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5967
5968 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5969 islver="0.15"
5970
5971 fi
5972
5973 CFLAGS=$_isl_saved_CFLAGS
5974 LDFLAGS=$_isl_saved_LDFLAGS
5975 LIBS=$_isl_saved_LIBS
5976 fi
5977
5978
5979
5980
5981
5982
5983 if test "x${with_isl}" = xno; then
5984 graphite_requested=no
5985 elif test "x${with_isl}" != x \
5986 || test "x${with_isl_include}" != x \
5987 || test "x${with_isl_lib}" != x ; then
5988 graphite_requested=yes
5989 else
5990 graphite_requested=no
5991 fi
5992
5993
5994
5995 if test "${gcc_cv_isl}" = no ; then
5996 isllibs=
5997 islinc=
5998 fi
5999
6000 if test "${graphite_requested}" = yes \
6001 && test "x${isllibs}" = x \
6002 && test "x${islinc}" = x ; then
6003
6004 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6005 fi
6006
6007
6008 fi
6009
6010 # If the isl check failed, disable builds of in-tree variant of isl
6011 if test "x$with_isl" = xno ||
6012 test "x$gcc_cv_isl" = xno; then
6013 noconfigdirs="$noconfigdirs isl"
6014 islinc=
6015 fi
6016
6017
6018
6019
6020 # Check for LTO support.
6021 # Check whether --enable-lto was given.
6022 if test "${enable_lto+set}" = set; then :
6023 enableval=$enable_lto; enable_lto=$enableval
6024 else
6025 enable_lto=yes; default_enable_lto=yes
6026 fi
6027
6028
6029
6030
6031
6032 target_elf=no
6033 case $target in
6034 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6035 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6036 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6037 nvptx-*-none)
6038 target_elf=no
6039 ;;
6040 *)
6041 target_elf=yes
6042 ;;
6043 esac
6044
6045 if test $target_elf = yes; then :
6046 # ELF platforms build the lto-plugin always.
6047 build_lto_plugin=yes
6048
6049 else
6050 if test x"$default_enable_lto" = x"yes" ; then
6051 case $target in
6052 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6053 # On other non-ELF platforms, LTO has yet to be validated.
6054 *) enable_lto=no ;;
6055 esac
6056 else
6057 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6058 # It would also be nice to check the binutils support, but we don't
6059 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6060 # warn during gcc/ subconfigure; unless you're bootstrapping with
6061 # -flto it won't be needed until after installation anyway.
6062 case $target in
6063 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6064 *) if test x"$enable_lto" = x"yes"; then
6065 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6066 fi
6067 ;;
6068 esac
6069 fi
6070 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6071 # Build it unless LTO was explicitly disabled.
6072 case $target in
6073 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6074 *) ;;
6075 esac
6076
6077 fi
6078
6079
6080 # Check whether --enable-linker-plugin-configure-flags was given.
6081 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6083 else
6084 extra_linker_plugin_configure_flags=
6085 fi
6086
6087
6088 # Check whether --enable-linker-plugin-flags was given.
6089 if test "${enable_linker_plugin_flags+set}" = set; then :
6090 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6091 else
6092 extra_linker_plugin_flags=
6093 fi
6094
6095
6096
6097
6098 # By default, C and C++ are the only stage 1 languages.
6099 stage1_languages=,c,
6100
6101 # Target libraries that we bootstrap.
6102 bootstrap_target_libs=,target-libgcc,
6103
6104 # Figure out what language subdirectories are present.
6105 # Look if the user specified --enable-languages="..."; if not, use
6106 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6107 # go away some day.
6108 # NB: embedded tabs in this IF block -- do not untabify
6109 if test -d ${srcdir}/gcc; then
6110 if test x"${enable_languages+set}" != xset; then
6111 if test x"${LANGUAGES+set}" = xset; then
6112 enable_languages="${LANGUAGES}"
6113 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6114 else
6115 enable_languages=all
6116 fi
6117 else
6118 if test x"${enable_languages}" = x ||
6119 test x"${enable_languages}" = xyes;
6120 then
6121 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6122 exit 1
6123 fi
6124 fi
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6126
6127 # 'f95' is the old name for the 'fortran' language. We issue a warning
6128 # and make the substitution.
6129 case ,${enable_languages}, in
6130 *,f95,*)
6131 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6132 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6133 ;;
6134 esac
6135
6136 # If bootstrapping, C++ must be enabled.
6137 case ",$enable_languages,:$enable_bootstrap" in
6138 *,c++,*:*) ;;
6139 *:yes)
6140 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6141 enable_languages="${enable_languages},c++"
6142 else
6143 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6144 fi
6145 ;;
6146 esac
6147
6148 # First scan to see if an enabled language requires some other language.
6149 # We assume that a given config-lang.in will list all the language
6150 # front ends it requires, even if some are required indirectly.
6151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6152 case ${lang_frag} in
6153 ..) ;;
6154 # The odd quoting in the next line works around
6155 # an apparent bug in bash 1.12 on linux.
6156 ${srcdir}/gcc/[*]/config-lang.in) ;;
6157 *)
6158 # From the config-lang.in, get $language, $lang_requires, and
6159 # $lang_requires_boot_languages.
6160 language=
6161 lang_requires=
6162 lang_requires_boot_languages=
6163 . ${lang_frag}
6164 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6165 case ,${enable_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6168 *,$language,*)
6169 echo " \`$other' language required by \`$language'; enabling" 1>&2
6170 enable_languages="${enable_languages},${other}"
6171 ;;
6172 esac
6173 done
6174 for other in ${lang_requires_boot_languages} ; do
6175 if test "$other" != "c"; then
6176 case ,${enable_stage1_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6179 *)
6180 case ,${enable_languages}, in
6181 *,$language,*)
6182 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6183 enable_stage1_languages="$enable_stage1_languages,${other}"
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 done
6190 ;;
6191 esac
6192 done
6193
6194 new_enable_languages=,c,
6195
6196 # If LTO is enabled, add the LTO front end.
6197 if test "$enable_lto" = "yes" ; then
6198 case ,${enable_languages}, in
6199 *,lto,*) ;;
6200 *) enable_languages="${enable_languages},lto" ;;
6201 esac
6202 if test "${build_lto_plugin}" = "yes" ; then
6203 configdirs="$configdirs lto-plugin"
6204 fi
6205 fi
6206
6207 # If we're building an offloading compiler, add the LTO front end.
6208 if test x"$enable_as_accelerator_for" != x ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6213 fi
6214
6215 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6216 potential_languages=,c,
6217
6218 enabled_target_libs=
6219 disabled_target_libs=
6220
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
6228 # From the config-lang.in, get $language, $target_libs,
6229 # $lang_dirs, $boot_language, and $build_by_default
6230 language=
6231 target_libs=
6232 lang_dirs=
6233 subdir_requires=
6234 boot_language=no
6235 build_by_default=yes
6236 . ${lang_frag}
6237 if test x${language} = x; then
6238 echo "${lang_frag} doesn't set \$language." 1>&2
6239 exit 1
6240 fi
6241
6242 if test "$language" = "c++"; then
6243 boot_language=yes
6244 fi
6245
6246 add_this_lang=no
6247 case ,${enable_languages}, in
6248 *,${language},*)
6249 # Language was explicitly selected; include it
6250 # unless it is C, which is enabled by default.
6251 if test "$language" != "c"; then
6252 add_this_lang=yes
6253 fi
6254 ;;
6255 *,all,*)
6256 # 'all' was selected, select it if it is a default language
6257 if test "$language" != "c"; then
6258 add_this_lang=${build_by_default}
6259 fi
6260 ;;
6261 esac
6262
6263 # Disable languages that need other directories if these aren't available.
6264 for i in $subdir_requires; do
6265 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6266 case ,${enable_languages}, in
6267 *,${language},*)
6268 # Specifically requested language; tell them.
6269 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6270 ;;
6271 *)
6272 # Silently disable.
6273 add_this_lang=unsupported
6274 ;;
6275 esac
6276 done
6277
6278 # Disable Ada if no preexisting GNAT is available.
6279 case ,${enable_languages},:${language}:${have_gnat} in
6280 *,${language},*:ada:no)
6281 # Specifically requested language; tell them.
6282 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6283 ;;
6284 *:ada:no)
6285 # Silently disable.
6286 add_this_lang=unsupported
6287 ;;
6288 esac
6289
6290 # Disable a language that is unsupported by the target.
6291 case " $unsupported_languages " in
6292 *" $language "*)
6293 add_this_lang=unsupported
6294 ;;
6295 esac
6296
6297 case $add_this_lang in
6298 unsupported)
6299 # Remove language-dependent dirs.
6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
6302 ;;
6303 no)
6304 # Remove language-dependent dirs; still show language as supported.
6305 disabled_target_libs="$disabled_target_libs $target_libs"
6306 noconfigdirs="$noconfigdirs $lang_dirs"
6307 potential_languages="${potential_languages}${language},"
6308 ;;
6309 yes)
6310 new_enable_languages="${new_enable_languages}${language},"
6311 potential_languages="${potential_languages}${language},"
6312 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6313 enabled_target_libs="$enabled_target_libs $target_libs"
6314 case "${boot_language}:,$enable_stage1_languages," in
6315 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6316 # Add to (comma-separated) list of stage 1 languages.
6317 case ",$stage1_languages," in
6318 *,$language,* | ,yes, | ,all,) ;;
6319 *) stage1_languages="${stage1_languages}${language}," ;;
6320 esac
6321 # We need to bootstrap any supporting libraries.
6322 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6323 ;;
6324 esac
6325 ;;
6326 esac
6327 ;;
6328 esac
6329 done
6330
6331 # Add target libraries which are only needed for disabled languages
6332 # to noconfigdirs.
6333 if test -n "$disabled_target_libs"; then
6334 for dir in $disabled_target_libs; do
6335 case " $enabled_target_libs " in
6336 *" ${dir} "*) ;;
6337 *) noconfigdirs="$noconfigdirs $dir" ;;
6338 esac
6339 done
6340 fi
6341
6342 # Check whether --enable-stage1-languages was given.
6343 if test "${enable_stage1_languages+set}" = set; then :
6344 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6345 ,no,|,,)
6346 # Set it to something that will have no effect in the loop below
6347 enable_stage1_languages=c ;;
6348 ,yes,)
6349 enable_stage1_languages=`echo $new_enable_languages | \
6350 sed -e "s/^,//" -e "s/,$//" ` ;;
6351 *,all,*)
6352 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6353 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6354 esac
6355
6356 # Add "good" languages from enable_stage1_languages to stage1_languages,
6357 # while "bad" languages go in missing_languages. Leave no duplicates.
6358 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6359 case $potential_languages in
6360 *,$i,*)
6361 case $stage1_languages in
6362 *,$i,*) ;;
6363 *) stage1_languages="$stage1_languages$i," ;;
6364 esac ;;
6365 *)
6366 case $missing_languages in
6367 *,$i,*) ;;
6368 *) missing_languages="$missing_languages$i," ;;
6369 esac ;;
6370 esac
6371 done
6372 fi
6373
6374
6375 # Remove leading/trailing commas that were added for simplicity
6376 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6377 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6380
6381 if test "x$missing_languages" != x; then
6382 as_fn_error "
6383 The following requested languages could not be built: ${missing_languages}
6384 Supported languages are: ${potential_languages}" "$LINENO" 5
6385 fi
6386 if test "x$new_enable_languages" != "x$enable_languages"; then
6387 echo The following languages will be built: ${new_enable_languages}
6388 enable_languages="$new_enable_languages"
6389 fi
6390
6391
6392 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6393 fi
6394
6395 # Handle --disable-<component> generically.
6396 for dir in $configdirs $build_configdirs $target_configdirs ; do
6397 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6398 varname=`echo $dirname | sed -e s/+/_/g`
6399 if eval test x\${enable_${varname}} "=" xno ; then
6400 noconfigdirs="$noconfigdirs $dir"
6401 fi
6402 done
6403
6404 # Check for Boehm's garbage collector
6405 # Check whether --enable-objc-gc was given.
6406 if test "${enable_objc_gc+set}" = set; then :
6407 enableval=$enable_objc_gc;
6408 fi
6409
6410
6411 # Check whether --with-target-bdw-gc was given.
6412 if test "${with_target_bdw_gc+set}" = set; then :
6413 withval=$with_target_bdw_gc;
6414 fi
6415
6416
6417 # Check whether --with-target-bdw-gc-include was given.
6418 if test "${with_target_bdw_gc_include+set}" = set; then :
6419 withval=$with_target_bdw_gc_include;
6420 fi
6421
6422
6423 # Check whether --with-target-bdw-gc-lib was given.
6424 if test "${with_target_bdw_gc_lib+set}" = set; then :
6425 withval=$with_target_bdw_gc_lib;
6426 fi
6427
6428
6429 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6431 $as_echo_n "checking for bdw garbage collector... " >&6; }
6432 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6434 $as_echo "using bdw-gc in default locations" >&6; }
6435 else
6436 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6437 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6438 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6439 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6442 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6443 fi
6444 fi
6445 esac
6446
6447 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6448 case ,${enable_languages}, in
6449 *,c++,*)
6450 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6451 case "${noconfigdirs}" in
6452 *target-libstdc++-v3*)
6453 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6454 ;;
6455 *) ;;
6456 esac
6457 ;;
6458 *)
6459 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6460 ;;
6461 esac
6462
6463 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464 # $build_configdirs and $target_configdirs.
6465 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467 notsupp=""
6468 for dir in . $skipdirs $noconfigdirs ; do
6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500 done
6501
6502 # Quietly strip out all directories which aren't configurable in this tree.
6503 # This relies on all configurable subdirectories being autoconfiscated, which
6504 # is now the case.
6505 build_configdirs_all="$build_configdirs"
6506 build_configdirs=
6507 for i in ${build_configdirs_all} ; do
6508 j=`echo $i | sed -e s/build-//g`
6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512 done
6513
6514 configdirs_all="$configdirs"
6515 configdirs=
6516 for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520 done
6521
6522 target_configdirs_all="$target_configdirs"
6523 target_configdirs=
6524 for i in ${target_configdirs_all} ; do
6525 j=`echo $i | sed -e s/target-//g`
6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529 done
6530
6531 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6532 # so we have to add it after the preceding checks.
6533 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6534 then
6535 case " $configdirs " in
6536 *" libiberty "*)
6537 # If we can build libiberty, we can also build libiberty-linker-plugin.
6538 configdirs="$configdirs libiberty-linker-plugin"
6539 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6540 --with-libiberty=../libiberty-linker-plugin";;
6541 *)
6542 as_fn_error "libiberty missing" "$LINENO" 5;;
6543 esac
6544 fi
6545
6546 # Sometimes we have special requirements for the host libiberty.
6547 extra_host_libiberty_configure_flags=
6548 extra_host_zlib_configure_flags=
6549 case " $configdirs " in
6550 *" lto-plugin "* | *" libcc1 "*)
6551 # When these are to be built as shared libraries, the same applies to
6552 # libiberty.
6553 extra_host_libiberty_configure_flags=--enable-shared
6554 ;;
6555 *" bfd "*)
6556 # When bfd is to be built as a shared library, the same applies to
6557 # zlib.
6558 if test "$enable_shared" = "yes"; then
6559 extra_host_zlib_configure_flags=--enable-host-shared
6560 fi
6561 ;;
6562 esac
6563
6564
6565
6566 # Produce a warning message for the subdirs we can't configure.
6567 # This isn't especially interesting in the Cygnus tree, but in the individual
6568 # FSF releases, it's important to let people know when their machine isn't
6569 # supported by the one or two programs in a package.
6570
6571 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6572 # If $appdirs is non-empty, at least one of those directories must still
6573 # be configured, or we error out. (E.g., if the gas release supports a
6574 # specified target in some subdirs but not the gas subdir, we shouldn't
6575 # pretend that all is well.)
6576 if test -n "$appdirs" ; then
6577 for dir in $appdirs ; do
6578 if test -r $dir/Makefile.in ; then
6579 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 appdirs=""
6581 break
6582 fi
6583 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6584 appdirs=""
6585 break
6586 fi
6587 fi
6588 done
6589 if test -n "$appdirs" ; then
6590 echo "*** This configuration is not supported by this package." 1>&2
6591 exit 1
6592 fi
6593 fi
6594 # Okay, some application will build, or we don't care to check. Still
6595 # notify of subdirs not getting built.
6596 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6597 echo " ${notsupp}" 1>&2
6598 echo " (Any other directories should still work fine.)" 1>&2
6599 fi
6600
6601 case "$host" in
6602 *msdosdjgpp*)
6603 enable_gdbtk=no ;;
6604 esac
6605
6606 # To find our prefix, in gcc_cv_tool_prefix.
6607
6608 # The user is always right.
6609 if test "${PATH_SEPARATOR+set}" != set; then
6610 echo "#! /bin/sh" >conf$$.sh
6611 echo "exit 0" >>conf$$.sh
6612 chmod +x conf$$.sh
6613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6614 PATH_SEPARATOR=';'
6615 else
6616 PATH_SEPARATOR=:
6617 fi
6618 rm -f conf$$.sh
6619 fi
6620
6621
6622
6623 if test "x$exec_prefix" = xNONE; then
6624 if test "x$prefix" = xNONE; then
6625 gcc_cv_tool_prefix=$ac_default_prefix
6626 else
6627 gcc_cv_tool_prefix=$prefix
6628 fi
6629 else
6630 gcc_cv_tool_prefix=$exec_prefix
6631 fi
6632
6633 # If there is no compiler in the tree, use the PATH only. In any
6634 # case, if there is no compiler in the tree nobody should use
6635 # AS_FOR_TARGET and LD_FOR_TARGET.
6636 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6637 gcc_version=`cat $srcdir/gcc/BASE-VER`
6638 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6639 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6640 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6643 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6644 else
6645 gcc_cv_tool_dirs=
6646 fi
6647
6648 if test x$build = x$target && test -n "$md_exec_prefix"; then
6649 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6650 fi
6651
6652
6653
6654 copy_dirs=
6655
6656
6657 # Check whether --with-build-sysroot was given.
6658 if test "${with_build_sysroot+set}" = set; then :
6659 withval=$with_build_sysroot; if test x"$withval" != x ; then
6660 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6661 fi
6662 else
6663 SYSROOT_CFLAGS_FOR_TARGET=
6664 fi
6665
6666
6667
6668
6669 # Check whether --with-debug-prefix-map was given.
6670 if test "${with_debug_prefix_map+set}" = set; then :
6671 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6672 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6673 for debug_map in $withval; do
6674 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6675 done
6676 fi
6677 else
6678 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6679 fi
6680
6681
6682
6683 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6684 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6685 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6686 # We want to ensure that TARGET libraries (which we know are built with
6687 # gcc) are built with "-O2 -g", so include those options when setting
6688 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6689 if test "x$CFLAGS_FOR_TARGET" = x; then
6690 if test "x${is_cross_compiler}" = xyes; then
6691 CFLAGS_FOR_TARGET="-g -O2"
6692 else
6693 CFLAGS_FOR_TARGET=$CFLAGS
6694 case " $CFLAGS " in
6695 *" -O2 "*) ;;
6696 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6697 esac
6698 case " $CFLAGS " in
6699 *" -g "* | *" -g3 "*) ;;
6700 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6701 esac
6702 fi
6703 fi
6704
6705
6706 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6707 if test "x${is_cross_compiler}" = xyes; then
6708 CXXFLAGS_FOR_TARGET="-g -O2"
6709 else
6710 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6711 case " $CXXFLAGS " in
6712 *" -O2 "*) ;;
6713 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6714 esac
6715 case " $CXXFLAGS " in
6716 *" -g "* | *" -g3 "*) ;;
6717 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 esac
6719 fi
6720 fi
6721
6722
6723
6724
6725 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6726 # the named directory are copied to $(tooldir)/sys-include.
6727 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6728 if test x${is_cross_compiler} = xno ; then
6729 echo 1>&2 '***' --with-headers is only supported when cross compiling
6730 exit 1
6731 fi
6732 if test x"${with_headers}" != xyes ; then
6733 x=${gcc_cv_tool_prefix}
6734 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6735 fi
6736 fi
6737
6738 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6739 # the name directories are copied to $(tooldir)/lib. Multiple directories
6740 # are permitted.
6741 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6742 if test x${is_cross_compiler} = xno ; then
6743 echo 1>&2 '***' --with-libs is only supported when cross compiling
6744 exit 1
6745 fi
6746 if test x"${with_libs}" != xyes ; then
6747 # Copy the libraries in reverse order, so that files in the first named
6748 # library override files in subsequent libraries.
6749 x=${gcc_cv_tool_prefix}
6750 for l in ${with_libs}; do
6751 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6752 done
6753 fi
6754 fi
6755
6756 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6757 #
6758 # This is done by determining whether or not the appropriate directory
6759 # is available, and by checking whether or not specific configurations
6760 # have requested that this magic not happen.
6761 #
6762 # The command line options always override the explicit settings in
6763 # configure.ac, and the settings in configure.ac override this magic.
6764 #
6765 # If the default for a toolchain is to use GNU as and ld, and you don't
6766 # want to do that, then you should use the --without-gnu-as and
6767 # --without-gnu-ld options for the configure script. Similarly, if
6768 # the default is to use the included zlib and you don't want to do that,
6769 # you should use the --with-system-zlib option for the configure script.
6770
6771 if test x${use_gnu_as} = x &&
6772 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6773 with_gnu_as=yes
6774 extra_host_args="$extra_host_args --with-gnu-as"
6775 fi
6776
6777 if test x${use_gnu_ld} = x &&
6778 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6779 with_gnu_ld=yes
6780 extra_host_args="$extra_host_args --with-gnu-ld"
6781 fi
6782
6783 if test x${use_included_zlib} = x &&
6784 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6785 :
6786 else
6787 with_system_zlib=yes
6788 extra_host_args="$extra_host_args --with-system-zlib"
6789 fi
6790
6791 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6792 # can detect this case.
6793
6794 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6795 with_newlib=yes
6796 extra_host_args="$extra_host_args --with-newlib"
6797 fi
6798
6799 # Handle ${copy_dirs}
6800 set fnord ${copy_dirs}
6801 shift
6802 while test $# != 0 ; do
6803 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6804 :
6805 else
6806 echo Copying $1 to $2
6807
6808 # Use the install script to create the directory and all required
6809 # parent directories.
6810 if test -d $2 ; then
6811 :
6812 else
6813 echo >config.temp
6814 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6815 fi
6816
6817 # Copy the directory, assuming we have tar.
6818 # FIXME: Should we use B in the second tar? Not all systems support it.
6819 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6820
6821 # It is the responsibility of the user to correctly adjust all
6822 # symlinks. If somebody can figure out how to handle them correctly
6823 # here, feel free to add the code.
6824
6825 echo $1 > $2/COPIED
6826 fi
6827 shift; shift
6828 done
6829
6830 # Determine a target-dependent exec_prefix that the installed
6831 # gcc will search in. Keep this list sorted by triplet, with
6832 # the *-*-osname triplets last.
6833 md_exec_prefix=
6834 case "${target}" in
6835 i[34567]86-pc-msdosdjgpp*)
6836 md_exec_prefix=/dev/env/DJDIR/bin
6837 ;;
6838 *-*-hpux* | \
6839 *-*-nto-qnx* | \
6840 *-*-solaris2*)
6841 md_exec_prefix=/usr/ccs/bin
6842 ;;
6843 esac
6844
6845 extra_arflags_for_target=
6846 extra_nmflags_for_target=
6847 extra_ranlibflags_for_target=
6848 target_makefile_frag=/dev/null
6849 case "${target}" in
6850 spu-*-*)
6851 target_makefile_frag="config/mt-spu"
6852 ;;
6853 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6854 target_makefile_frag="config/mt-sde"
6855 ;;
6856 mipsisa*-*-elfoabi*)
6857 target_makefile_frag="config/mt-mips-elfoabi"
6858 ;;
6859 mips*-*-*linux* | mips*-*-gnu*)
6860 target_makefile_frag="config/mt-mips-gnu"
6861 ;;
6862 nios2-*-elf*)
6863 target_makefile_frag="config/mt-nios2-elf"
6864 ;;
6865 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6866 target_makefile_frag="config/mt-gnu"
6867 ;;
6868 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6869 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6870 # commands to handle both 32-bit and 64-bit objects. These flags are
6871 # harmless if we're using GNU nm or ar.
6872 extra_arflags_for_target=" -X32_64"
6873 extra_nmflags_for_target=" -B -X32_64"
6874 ;;
6875 esac
6876
6877 alphaieee_frag=/dev/null
6878 case $target in
6879 alpha*-*-*)
6880 # This just makes sure to use the -mieee option to build target libs.
6881 # This should probably be set individually by each library.
6882 alphaieee_frag="config/mt-alphaieee"
6883 ;;
6884 esac
6885
6886 # If --enable-target-optspace always use -Os instead of -O2 to build
6887 # the target libraries, similarly if it is not specified, use -Os
6888 # on selected platforms.
6889 ospace_frag=/dev/null
6890 case "${enable_target_optspace}:${target}" in
6891 yes:*)
6892 ospace_frag="config/mt-ospace"
6893 ;;
6894 :d30v-*)
6895 ospace_frag="config/mt-d30v"
6896 ;;
6897 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6898 ospace_frag="config/mt-ospace"
6899 ;;
6900 no:* | :*)
6901 ;;
6902 *)
6903 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6904 ;;
6905 esac
6906
6907 # Some systems (e.g., one of the i386-aix systems the gas testers are
6908 # using) don't handle "\$" correctly, so don't use it here.
6909 tooldir='${exec_prefix}'/${target_noncanonical}
6910 build_tooldir=${tooldir}
6911
6912 # Create a .gdbinit file which runs the one in srcdir
6913 # and tells GDB to look there for source files.
6914
6915 if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919 # ${NO_EDIT}
6920 dir ${srcdir}
6921 dir .
6922 source ${srcdir}/.gdbinit
6923 EOF
6924 ;;
6925 esac
6926 fi
6927
6928 # Make sure that the compiler is able to generate an executable. If it
6929 # can't, we are probably in trouble. We don't care whether we can run the
6930 # executable--we might be using a cross compiler--we only care whether it
6931 # can be created. At this point the main configure script has set CC.
6932 we_are_ok=no
6933 echo "int main () { return 0; }" > conftest.c
6934 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935 if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6938 fi
6939 fi
6940 case $we_are_ok in
6941 no)
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6946 ;;
6947 esac
6948 rm -f conftest*
6949
6950 # Decide which environment variable is used to find dynamic libraries.
6951 case "${host}" in
6952 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6953 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6954 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6955 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6956 esac
6957
6958 # On systems where the dynamic library environment variable is PATH,
6959 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6960 # built executables to PATH.
6961 if test "$RPATH_ENVVAR" = PATH; then
6962 GCC_SHLIB_SUBDIR=/shlib
6963 else
6964 GCC_SHLIB_SUBDIR=
6965 fi
6966
6967 # Adjust the toplevel makefile according to whether bootstrap was selected.
6968 case $enable_bootstrap in
6969 yes)
6970 bootstrap_suffix=bootstrap
6971 BUILD_CONFIG=bootstrap-debug
6972 ;;
6973 no)
6974 bootstrap_suffix=no-bootstrap
6975 BUILD_CONFIG=
6976 ;;
6977 esac
6978
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6980 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6981
6982
6983 # Check whether --with-build-config was given.
6984 if test "${with_build_config+set}" = set; then :
6985 withval=$with_build_config; case $with_build_config in
6986 yes) with_build_config= ;;
6987 no) with_build_config= BUILD_CONFIG= ;;
6988 esac
6989 fi
6990
6991
6992 if test "x${with_build_config}" != x; then
6993 BUILD_CONFIG=$with_build_config
6994 else
6995 case $BUILD_CONFIG in
6996 bootstrap-debug)
6997 if echo "int f (void) { return 0; }" > conftest.c &&
6998 ${CC} -c conftest.c &&
6999 mv conftest.o conftest.o.g0 &&
7000 ${CC} -c -g conftest.c &&
7001 mv conftest.o conftest.o.g &&
7002 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7003 :
7004 else
7005 BUILD_CONFIG=
7006 fi
7007 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7008 ;;
7009 esac
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7012 $as_echo "$BUILD_CONFIG" >&6; }
7013
7014
7015 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7017 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7018 # Check whether --enable-vtable-verify was given.
7019 if test "${enable_vtable_verify+set}" = set; then :
7020 enableval=$enable_vtable_verify; case "$enableval" in
7021 yes) enable_vtable_verify=yes ;;
7022 no) enable_vtable_verify=no ;;
7023 *) enable_vtable_verify=no;;
7024 esac
7025 else
7026 enable_vtable_verify=no
7027 fi
7028
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7030 $as_echo "$enable_vtable_verify" >&6; }
7031
7032 # Record target_configdirs and the configure arguments for target and
7033 # build configuration in Makefile.
7034 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7035 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7036 bootstrap_fixincludes=no
7037
7038 # If we are building libgomp, bootstrap it.
7039 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7041 fi
7042
7043 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7044 # or bootstrap-ubsan, bootstrap it.
7045 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7046 case "$BUILD_CONFIG" in
7047 *bootstrap-asan* | *bootstrap-ubsan* )
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7049 bootstrap_fixincludes=yes
7050 ;;
7051 esac
7052 fi
7053
7054 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7055 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7056 test "$enable_vtable_verify" != no; then
7057 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7058 fi
7059
7060 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7061 # bootstrap it.
7062 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7063 case "$BUILD_CONFIG" in
7064 *bootstrap-mpx* )
7065 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7066 ;;
7067 esac
7068 fi
7069
7070 # Determine whether gdb needs tk/tcl or not.
7071 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7072 # and in that case we want gdb to be built without tk. Ugh!
7073 # In fact I believe gdb is the *only* package directly dependent on tk,
7074 # so we should be able to put the 'maybe's in unconditionally and
7075 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7076 # 100% sure that that's safe though.
7077
7078 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7079 case "$enable_gdbtk" in
7080 no)
7081 GDB_TK="" ;;
7082 yes)
7083 GDB_TK="${gdb_tk}" ;;
7084 *)
7085 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7086 # distro. Eventually someone will fix this and move Insight, nee
7087 # gdbtk to a separate directory.
7088 if test -d ${srcdir}/gdb/gdbtk ; then
7089 GDB_TK="${gdb_tk}"
7090 else
7091 GDB_TK=""
7092 fi
7093 ;;
7094 esac
7095 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7096 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7097
7098 # Strip out unwanted targets.
7099
7100 # While at that, we remove Makefiles if we were started for recursive
7101 # configuration, so that the top-level Makefile reconfigures them,
7102 # like we used to do when configure itself was recursive.
7103
7104 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7105 # but now we're fixing up the Makefile ourselves with the additional
7106 # commands passed to AC_CONFIG_FILES. Use separate variables
7107 # extrasub-{build,host,target} not because there is any reason to split
7108 # the substitutions up that way, but only to remain below the limit of
7109 # 99 commands in a script, for HP-UX sed.
7110 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7111
7112 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7113 yes:yes:*\ gold\ *:*,c++,*) ;;
7114 yes:yes:*\ gold\ *:*)
7115 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7116 ;;
7117 esac
7118
7119 extrasub_build=
7120 for module in ${build_configdirs} ; do
7121 if test -z "${no_recursion}" \
7122 && test -f ${build_subdir}/${module}/Makefile; then
7123 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7124 rm -f ${build_subdir}/${module}/Makefile
7125 fi
7126 extrasub_build="$extrasub_build
7127 /^@if build-$module\$/d
7128 /^@endif build-$module\$/d
7129 /^@if build-$module-$bootstrap_suffix\$/d
7130 /^@endif build-$module-$bootstrap_suffix\$/d"
7131 done
7132 extrasub_host=
7133 for module in ${configdirs} ; do
7134 if test -z "${no_recursion}"; then
7135 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7136 if test -f ${file}; then
7137 echo 1>&2 "*** removing ${file} to force reconfigure"
7138 rm -f ${file}
7139 fi
7140 done
7141 fi
7142 case ${module},${bootstrap_fixincludes} in
7143 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7144 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7145 esac
7146 extrasub_host="$extrasub_host
7147 /^@if $module\$/d
7148 /^@endif $module\$/d
7149 /^@if $module-$host_bootstrap_suffix\$/d
7150 /^@endif $module-$host_bootstrap_suffix\$/d"
7151 done
7152 extrasub_target=
7153 for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
7166 extrasub_target="$extrasub_target
7167 /^@if target-$module\$/d
7168 /^@endif target-$module\$/d
7169 /^@if target-$module-$target_bootstrap_suffix\$/d
7170 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7171 done
7172
7173 # Do the final fixup along with target modules.
7174 extrasub_target="$extrasub_target
7175 /^@if /,/^@endif /d"
7176
7177 # Create the serialization dependencies. This uses a temporary file.
7178
7179 # Check whether --enable-serial-configure was given.
7180 if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182 fi
7183
7184
7185 case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191 esac
7192
7193 # These force 'configure's to be done one at a time, to avoid problems
7194 # with contention over a shared config.cache.
7195 rm -f serdep.tmp
7196 echo '# serdep.tmp' > serdep.tmp
7197 olditem=
7198 test "x${enable_serial_build_configure}" = xyes &&
7199 for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7203 esac
7204 olditem=${item}
7205 done
7206 olditem=
7207 test "x${enable_serial_host_configure}" = xyes &&
7208 for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7212 esac
7213 olditem=${item}
7214 done
7215 olditem=
7216 test "x${enable_serial_target_configure}" = xyes &&
7217 for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7221 esac
7222 olditem=${item}
7223 done
7224 serialization_dependencies=serdep.tmp
7225
7226
7227 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7228 # target, nonopt, and variable assignments. These are the ones we
7229 # might not want to pass down to subconfigures. The exception being
7230 # --cache-file=/dev/null, which is used to turn off the use of cache
7231 # files altogether, and which should be passed on to subconfigures.
7232 # Also strip program-prefix, program-suffix, and program-transform-name,
7233 # so that we can pass down a consistent program-transform-name.
7234 baseargs=
7235 tbaseargs=
7236 keep_next=no
7237 skip_next=no
7238 eval "set -- $ac_configure_args"
7239 for ac_arg
7240 do
7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
7251 tbaseargs="$tbaseargs '$ac_arg'"
7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
7293 mpc | mpfr | gmp | isl)
7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
7306 case "$ac_arg" in
7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
7311 tbaseargs="$tbaseargs '$ac_arg'"
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353 done
7354 # Remove the initial space we just introduced and, as these will be
7355 # expanded by make, quote '$'.
7356 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7357
7358 # Add in --program-transform-name, after --program-prefix and
7359 # --program-suffix have been applied to it. Autoconf has already
7360 # doubled dollar signs and backslashes in program_transform_name; we want
7361 # the backslashes un-doubled, and then the entire thing wrapped in single
7362 # quotes, because this will be expanded first by make and then by the shell.
7363 # Also, because we want to override the logic in subdir configure scripts to
7364 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7365 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366 ${program_transform_name}
7367 EOF_SED
7368 gcc_transform_name=`cat conftestsed.out`
7369 rm -f conftestsed.out
7370 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7371 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7372 if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
7374 tbaseargs="$tbaseargs --silent"
7375 fi
7376 baseargs="$baseargs --disable-option-checking"
7377 tbaseargs="$tbaseargs --disable-option-checking"
7378
7379 # Record and document user additions to sub configure arguments.
7380
7381
7382
7383
7384 # For the build-side libraries, we just need to pretend we're native,
7385 # and not use the same cache file. Multilibs are neither needed nor
7386 # desired. We can't even use the same cache file for all build-side
7387 # libraries, as they're compiled differently; some with C, some with
7388 # C++ or with different feature-enabling options.
7389 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7390
7391 # For host modules, accept cache file option, or specification as blank.
7392 case "${cache_file}" in
7393 "") # empty
7394 cache_file_option="" ;;
7395 /* | [A-Za-z]:[\\/]* ) # absolute path
7396 cache_file_option="--cache-file=${cache_file}" ;;
7397 *) # relative path
7398 cache_file_option="--cache-file=../${cache_file}" ;;
7399 esac
7400
7401 # Host dirs don't like to share a cache file either, horribly enough.
7402 # This seems to be due to autoconf 2.5x stupidity.
7403 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7404
7405 target_configargs="$target_configargs ${tbaseargs}"
7406
7407 # Passing a --with-cross-host argument lets the target libraries know
7408 # whether they are being built with a cross-compiler or being built
7409 # native. However, it would be better to use other mechanisms to make the
7410 # sorts of decisions they want to make on this basis. Please consider
7411 # this option to be deprecated. FIXME.
7412 if test x${is_cross_compiler} = xyes ; then
7413 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7414 fi
7415
7416 # Special user-friendly check for native x86_64-linux build, if
7417 # multilib is not explicitly enabled.
7418 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7419 x86_64-*linux*:yes:$build:$build:)
7420 # Make sure we have a development environment that handles 32-bit
7421 dev64=no
7422 echo "int main () { return 0; }" > conftest.c
7423 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7424 if test $? = 0 ; then
7425 if test -s conftest || test -s conftest.exe ; then
7426 dev64=yes
7427 fi
7428 fi
7429 rm -f conftest*
7430 if test x${dev64} != xyes ; then
7431 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7432 fi
7433 ;;
7434 esac
7435
7436 # Default to --enable-multilib.
7437 if test x${enable_multilib} = x ; then
7438 target_configargs="--enable-multilib ${target_configargs}"
7439 fi
7440
7441 # Pass --with-newlib if appropriate. Note that target_configdirs has
7442 # changed from the earlier setting of with_newlib.
7443 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7444 target_configargs="--with-newlib ${target_configargs}"
7445 fi
7446
7447 # Different target subdirs use different values of certain variables
7448 # (notably CXX). Worse, multilibs use *lots* of different values.
7449 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7450 # it doesn't automatically accept command-line overrides of them.
7451 # This means it's not safe for target subdirs to share a cache file,
7452 # which is disgusting, but there you have it. Hopefully this can be
7453 # fixed in future. It's still worthwhile to use a cache file for each
7454 # directory. I think.
7455
7456 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7457 # We need to pass --target, as newer autoconf's requires consistency
7458 # for target_alias and gcc doesn't manage it consistently.
7459 target_configargs="--cache-file=./config.cache ${target_configargs}"
7460
7461 FLAGS_FOR_TARGET=
7462 case " $target_configdirs " in
7463 *" newlib "*)
7464 case " $target_configargs " in
7465 *" --with-newlib "*)
7466 case "$target" in
7467 *-cygwin*)
7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7469 ;;
7470 esac
7471
7472 # If we're not building GCC, don't discard standard headers.
7473 if test -d ${srcdir}/gcc; then
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7475
7476 if test "${build}" != "${host}"; then
7477 # On Canadian crosses, CC_FOR_TARGET will have already been set
7478 # by `configure', so we won't have an opportunity to add -Bgcc/
7479 # to it. This is right: we don't want to search that directory
7480 # for binaries, but we want the header files in there, so add
7481 # them explicitly.
7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7483
7484 # Someone might think of using the pre-installed headers on
7485 # Canadian crosses, in case the installed compiler is not fully
7486 # compatible with the compiler being built. In this case, it
7487 # would be better to flag an error than risking having
7488 # incompatible object files being constructed. We can't
7489 # guarantee that an error will be flagged, but let's hope the
7490 # compiler will do it, when presented with incompatible header
7491 # files.
7492 fi
7493 fi
7494
7495 case "${target}-${is_cross_compiler}" in
7496 i[3456789]86-*-linux*-no)
7497 # Here host == target, so we don't need to build gcc,
7498 # so we don't want to discard standard headers.
7499 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7500 ;;
7501 *)
7502 # If we're building newlib, use its generic headers last, but search
7503 # for any libc-related directories first (so make it the last -B
7504 # switch).
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7506
7507 # If we're building libgloss, find the startup file, simulator library
7508 # and linker script.
7509 case " $target_configdirs " in
7510 *" libgloss "*)
7511 # Look for startup file, simulator library and maybe linker script.
7512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7513 # Look for libnosys.a in case the target needs it.
7514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7515 # Most targets have the linker script in the source directory.
7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7517 ;;
7518 esac
7519 ;;
7520 esac
7521 ;;
7522 esac
7523 ;;
7524 esac
7525
7526 case "$target" in
7527 x86_64-*mingw* | *-w64-mingw*)
7528 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7529 # however, use a symlink named 'mingw' in ${prefix} .
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7531 ;;
7532 *-mingw*)
7533 # MinGW can't be handled as Cygwin above since it does not use newlib.
7534 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
7535 ;;
7536 esac
7537
7538 # Allow the user to override the flags for
7539 # our build compiler if desired.
7540 if test x"${build}" = x"${host}" ; then
7541 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7542 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7543 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7544 fi
7545
7546 # On Canadian crosses, we'll be searching the right directories for
7547 # the previously-installed cross compiler, so don't bother to add
7548 # flags for directories within the install tree of the compiler
7549 # being built; programs in there won't even run.
7550 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7551 # Search for pre-installed headers if nothing else fits.
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7553 fi
7554
7555 if test "x${use_gnu_ld}" = x &&
7556 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7557 # Arrange for us to find uninstalled linker scripts.
7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7559 fi
7560
7561 # Search for other target-specific linker scripts and such.
7562 case "${target}" in
7563 mep*)
7564 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7565 ;;
7566 esac
7567
7568 # Makefile fragments.
7569 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7570 do
7571 eval fragval=\$$frag
7572 if test $fragval != /dev/null; then
7573 eval $frag=${srcdir}/$fragval
7574 fi
7575 done
7576
7577
7578
7579
7580
7581 # Miscellanea: directories, flags, etc.
7582
7583
7584
7585
7586
7587
7588
7589
7590 # Build module lists & subconfigure args.
7591
7592
7593
7594 # Host module lists & subconfigure args.
7595
7596
7597
7598
7599 # Target module lists & subconfigure args.
7600
7601
7602
7603 # Build tools.
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620 # Generate default definitions for YACC, M4, LEX and other programs that run
7621 # on the build machine. These are used if the Makefile can't locate these
7622 # programs in objdir.
7623 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7624
7625 for ac_prog in 'bison -y' byacc yacc
7626 do
7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
7628 set dummy $ac_prog; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_prog_YACC+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$YACC"; then
7635 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_prog_YACC="$ac_prog"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 YACC=$ac_cv_prog_YACC
7655 if test -n "$YACC"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7657 $as_echo "$YACC" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663
7664 test -n "$YACC" && break
7665 done
7666 test -n "$YACC" || YACC="$MISSING bison -y"
7667
7668 case " $build_configdirs " in
7669 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7670 esac
7671
7672 for ac_prog in bison
7673 do
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_BISON+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$BISON"; then
7682 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_BISON="$ac_prog"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 BISON=$ac_cv_prog_BISON
7702 if test -n "$BISON"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7704 $as_echo "$BISON" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710
7711 test -n "$BISON" && break
7712 done
7713 test -n "$BISON" || BISON="$MISSING bison"
7714
7715 case " $build_configdirs " in
7716 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7717 esac
7718
7719 for ac_prog in gm4 gnum4 m4
7720 do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_M4+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$M4"; then
7729 ac_cv_prog_M4="$M4" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_prog_M4="$ac_prog"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 M4=$ac_cv_prog_M4
7749 if test -n "$M4"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7751 $as_echo "$M4" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758 test -n "$M4" && break
7759 done
7760 test -n "$M4" || M4="$MISSING m4"
7761
7762 case " $build_configdirs " in
7763 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7764 esac
7765
7766 for ac_prog in flex lex
7767 do
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_prog_LEX+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 if test -n "$LEX"; then
7776 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_LEX="$ac_prog"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789 done
7790 done
7791 IFS=$as_save_IFS
7792
7793 fi
7794 fi
7795 LEX=$ac_cv_prog_LEX
7796 if test -n "$LEX"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7798 $as_echo "$LEX" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804
7805 test -n "$LEX" && break
7806 done
7807 test -n "$LEX" || LEX="$MISSING flex"
7808
7809 case " $build_configdirs " in
7810 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7811 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7812 esac
7813
7814 for ac_prog in flex
7815 do
7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
7817 set dummy $ac_prog; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if test "${ac_cv_prog_FLEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$FLEX"; then
7824 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7833 ac_cv_prog_FLEX="$ac_prog"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 FLEX=$ac_cv_prog_FLEX
7844 if test -n "$FLEX"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7846 $as_echo "$FLEX" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852
7853 test -n "$FLEX" && break
7854 done
7855 test -n "$FLEX" || FLEX="$MISSING flex"
7856
7857 case " $build_configdirs " in
7858 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859 esac
7860
7861 for ac_prog in makeinfo
7862 do
7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
7864 set dummy $ac_prog; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$MAKEINFO"; then
7871 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_MAKEINFO="$ac_prog"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 MAKEINFO=$ac_cv_prog_MAKEINFO
7891 if test -n "$MAKEINFO"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7893 $as_echo "$MAKEINFO" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899
7900 test -n "$MAKEINFO" && break
7901 done
7902 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7903
7904 case " $build_configdirs " in
7905 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7906 *)
7907
7908 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7909 # higher, else we use the "missing" dummy.
7910 if ${MAKEINFO} --version \
7911 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7912 :
7913 else
7914 MAKEINFO="$MISSING makeinfo"
7915 fi
7916 ;;
7917
7918 esac
7919
7920 # FIXME: expect and dejagnu may become build tools?
7921
7922 for ac_prog in expect
7923 do
7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
7925 set dummy $ac_prog; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 if test -n "$EXPECT"; then
7932 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_EXPECT="$ac_prog"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 EXPECT=$ac_cv_prog_EXPECT
7952 if test -n "$EXPECT"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7954 $as_echo "$EXPECT" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961 test -n "$EXPECT" && break
7962 done
7963 test -n "$EXPECT" || EXPECT="expect"
7964
7965 case " $configdirs " in
7966 *" expect "*)
7967 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7968 ;;
7969 esac
7970
7971 for ac_prog in runtest
7972 do
7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
7974 set dummy $ac_prog; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$RUNTEST"; then
7981 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 ac_cv_prog_RUNTEST="$ac_prog"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 RUNTEST=$ac_cv_prog_RUNTEST
8001 if test -n "$RUNTEST"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8003 $as_echo "$RUNTEST" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 test -n "$RUNTEST" && break
8011 done
8012 test -n "$RUNTEST" || RUNTEST="runtest"
8013
8014 case " $configdirs " in
8015 *" dejagnu "*)
8016 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8017 ;;
8018 esac
8019
8020
8021 # Host tools.
8022 ncn_tool_prefix=
8023 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8024 ncn_target_tool_prefix=
8025 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8026
8027
8028
8029 if test -n "$AR"; then
8030 ac_cv_prog_AR=$AR
8031 elif test -n "$ac_cv_prog_AR"; then
8032 AR=$ac_cv_prog_AR
8033 fi
8034
8035 if test -n "$ac_cv_prog_AR"; then
8036 for ncn_progname in ar; do
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038 set dummy ${ncn_progname}; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_AR="${ncn_progname}"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 AR=$ac_cv_prog_AR
8065 if test -n "$AR"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067 $as_echo "$AR" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8071 fi
8072
8073
8074 done
8075 fi
8076
8077 for ncn_progname in ar; do
8078 if test -n "$ncn_tool_prefix"; then
8079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8080 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR="$AR" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 AR=$ac_cv_prog_AR
8107 if test -n "$AR"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8109 $as_echo "$AR" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116 fi
8117 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8119 set dummy ${ncn_progname}; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$AR"; then
8126 ac_cv_prog_AR="$AR" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_AR="${ncn_progname}"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 AR=$ac_cv_prog_AR
8146 if test -n "$AR"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8148 $as_echo "$AR" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 fi
8153
8154
8155 fi
8156 test -n "$ac_cv_prog_AR" && break
8157 done
8158
8159 if test -z "$ac_cv_prog_AR" ; then
8160 set dummy ar
8161 if test $build = $host ; then
8162 AR="$2"
8163 else
8164 AR="${ncn_tool_prefix}$2"
8165 fi
8166 fi
8167
8168
8169
8170 if test -n "$AS"; then
8171 ac_cv_prog_AS=$AS
8172 elif test -n "$ac_cv_prog_AS"; then
8173 AS=$ac_cv_prog_AS
8174 fi
8175
8176 if test -n "$ac_cv_prog_AS"; then
8177 for ncn_progname in as; do
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179 set dummy ${ncn_progname}; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_AS="${ncn_progname}"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 AS=$ac_cv_prog_AS
8206 if test -n "$AS"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208 $as_echo "$AS" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215 done
8216 fi
8217
8218 for ncn_progname in as; do
8219 if test -n "$ncn_tool_prefix"; then
8220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8221 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if test "${ac_cv_prog_AS+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 if test -n "$AS"; then
8228 ac_cv_prog_AS="$AS" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241 done
8242 done
8243 IFS=$as_save_IFS
8244
8245 fi
8246 fi
8247 AS=$ac_cv_prog_AS
8248 if test -n "$AS"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8250 $as_echo "$AS" >&6; }
8251 else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8254 fi
8255
8256
8257 fi
8258 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260 set dummy ${ncn_progname}; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if test "${ac_cv_prog_AS+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 if test -n "$AS"; then
8267 ac_cv_prog_AS="$AS" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276 ac_cv_prog_AS="${ncn_progname}"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280 done
8281 done
8282 IFS=$as_save_IFS
8283
8284 fi
8285 fi
8286 AS=$ac_cv_prog_AS
8287 if test -n "$AS"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289 $as_echo "$AS" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294
8295
8296 fi
8297 test -n "$ac_cv_prog_AS" && break
8298 done
8299
8300 if test -z "$ac_cv_prog_AS" ; then
8301 set dummy as
8302 if test $build = $host ; then
8303 AS="$2"
8304 else
8305 AS="${ncn_tool_prefix}$2"
8306 fi
8307 fi
8308
8309
8310
8311 if test -n "$DLLTOOL"; then
8312 ac_cv_prog_DLLTOOL=$DLLTOOL
8313 elif test -n "$ac_cv_prog_DLLTOOL"; then
8314 DLLTOOL=$ac_cv_prog_DLLTOOL
8315 fi
8316
8317 if test -n "$ac_cv_prog_DLLTOOL"; then
8318 for ncn_progname in dlltool; do
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320 set dummy ${ncn_progname}; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344 fi
8345 fi
8346 DLLTOOL=$ac_cv_prog_DLLTOOL
8347 if test -n "$DLLTOOL"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349 $as_echo "$DLLTOOL" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353 fi
8354
8355
8356 done
8357 fi
8358
8359 for ncn_progname in dlltool; do
8360 if test -n "$ncn_tool_prefix"; then
8361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8362 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$DLLTOOL"; then
8369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 DLLTOOL=$ac_cv_prog_DLLTOOL
8389 if test -n "$DLLTOOL"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8391 $as_echo "$DLLTOOL" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401 set dummy ${ncn_progname}; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$DLLTOOL"; then
8408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_DLLTOOL="${ncn_progname}"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 DLLTOOL=$ac_cv_prog_DLLTOOL
8428 if test -n "$DLLTOOL"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8430 $as_echo "$DLLTOOL" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 fi
8438 test -n "$ac_cv_prog_DLLTOOL" && break
8439 done
8440
8441 if test -z "$ac_cv_prog_DLLTOOL" ; then
8442 set dummy dlltool
8443 if test $build = $host ; then
8444 DLLTOOL="$2"
8445 else
8446 DLLTOOL="${ncn_tool_prefix}$2"
8447 fi
8448 fi
8449
8450
8451
8452 if test -n "$LD"; then
8453 ac_cv_prog_LD=$LD
8454 elif test -n "$ac_cv_prog_LD"; then
8455 LD=$ac_cv_prog_LD
8456 fi
8457
8458 if test -n "$ac_cv_prog_LD"; then
8459 for ncn_progname in ld; do
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461 set dummy ${ncn_progname}; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_LD="${ncn_progname}"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 LD=$ac_cv_prog_LD
8488 if test -n "$LD"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490 $as_echo "$LD" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 done
8498 fi
8499
8500 for ncn_progname in ld; do
8501 if test -n "$ncn_tool_prefix"; then
8502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8503 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if test "${ac_cv_prog_LD+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 if test -n "$LD"; then
8510 ac_cv_prog_LD="$LD" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8519 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523 done
8524 done
8525 IFS=$as_save_IFS
8526
8527 fi
8528 fi
8529 LD=$ac_cv_prog_LD
8530 if test -n "$LD"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8532 $as_echo "$LD" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539 fi
8540 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542 set dummy ${ncn_progname}; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_prog_LD+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 if test -n "$LD"; then
8549 ac_cv_prog_LD="$LD" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_prog_LD="${ncn_progname}"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8561 fi
8562 done
8563 done
8564 IFS=$as_save_IFS
8565
8566 fi
8567 fi
8568 LD=$ac_cv_prog_LD
8569 if test -n "$LD"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8571 $as_echo "$LD" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576
8577
8578 fi
8579 test -n "$ac_cv_prog_LD" && break
8580 done
8581
8582 if test -z "$ac_cv_prog_LD" ; then
8583 set dummy ld
8584 if test $build = $host ; then
8585 LD="$2"
8586 else
8587 LD="${ncn_tool_prefix}$2"
8588 fi
8589 fi
8590
8591
8592
8593 if test -n "$LIPO"; then
8594 ac_cv_prog_LIPO=$LIPO
8595 elif test -n "$ac_cv_prog_LIPO"; then
8596 LIPO=$ac_cv_prog_LIPO
8597 fi
8598
8599 if test -n "$ac_cv_prog_LIPO"; then
8600 for ncn_progname in lipo; do
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602 set dummy ${ncn_progname}; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_prog_LIPO="${ncn_progname}"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622 done
8623 done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 LIPO=$ac_cv_prog_LIPO
8629 if test -n "$LIPO"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631 $as_echo "$LIPO" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637
8638 done
8639 fi
8640
8641 for ncn_progname in lipo; do
8642 if test -n "$ncn_tool_prefix"; then
8643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8644 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if test "${ac_cv_prog_LIPO+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 if test -n "$LIPO"; then
8651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664 done
8665 done
8666 IFS=$as_save_IFS
8667
8668 fi
8669 fi
8670 LIPO=$ac_cv_prog_LIPO
8671 if test -n "$LIPO"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8673 $as_echo "$LIPO" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8677 fi
8678
8679
8680 fi
8681 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683 set dummy ${ncn_progname}; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if test "${ac_cv_prog_LIPO+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 if test -n "$LIPO"; then
8690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_prog_LIPO="${ncn_progname}"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703 done
8704 done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 LIPO=$ac_cv_prog_LIPO
8710 if test -n "$LIPO"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8712 $as_echo "$LIPO" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 test -n "$ac_cv_prog_LIPO" && break
8721 done
8722
8723 if test -z "$ac_cv_prog_LIPO" ; then
8724 set dummy lipo
8725 if test $build = $host ; then
8726 LIPO="$2"
8727 else
8728 LIPO="${ncn_tool_prefix}$2"
8729 fi
8730 fi
8731
8732
8733
8734 if test -n "$NM"; then
8735 ac_cv_prog_NM=$NM
8736 elif test -n "$ac_cv_prog_NM"; then
8737 NM=$ac_cv_prog_NM
8738 fi
8739
8740 if test -n "$ac_cv_prog_NM"; then
8741 for ncn_progname in nm; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743 set dummy ${ncn_progname}; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8759 ac_cv_prog_NM="${ncn_progname}"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763 done
8764 done
8765 IFS=$as_save_IFS
8766
8767 fi
8768 fi
8769 NM=$ac_cv_prog_NM
8770 if test -n "$NM"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772 $as_echo "$NM" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 fi
8777
8778
8779 done
8780 fi
8781
8782 for ncn_progname in nm; do
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if test "${ac_cv_prog_NM+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 if test -n "$NM"; then
8792 ac_cv_prog_NM="$NM" # Let the user override the test.
8793 else
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in $PATH
8796 do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8801 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805 done
8806 done
8807 IFS=$as_save_IFS
8808
8809 fi
8810 fi
8811 NM=$ac_cv_prog_NM
8812 if test -n "$NM"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8814 $as_echo "$NM" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8818 fi
8819
8820
8821 fi
8822 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824 set dummy ${ncn_progname}; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if test "${ac_cv_prog_NM+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 if test -n "$NM"; then
8831 ac_cv_prog_NM="$NM" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_NM="${ncn_progname}"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844 done
8845 done
8846 IFS=$as_save_IFS
8847
8848 fi
8849 fi
8850 NM=$ac_cv_prog_NM
8851 if test -n "$NM"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8853 $as_echo "$NM" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8858
8859
8860 fi
8861 test -n "$ac_cv_prog_NM" && break
8862 done
8863
8864 if test -z "$ac_cv_prog_NM" ; then
8865 set dummy nm
8866 if test $build = $host ; then
8867 NM="$2"
8868 else
8869 NM="${ncn_tool_prefix}$2"
8870 fi
8871 fi
8872
8873
8874
8875 if test -n "$RANLIB"; then
8876 ac_cv_prog_RANLIB=$RANLIB
8877 elif test -n "$ac_cv_prog_RANLIB"; then
8878 RANLIB=$ac_cv_prog_RANLIB
8879 fi
8880
8881 if test -n "$ac_cv_prog_RANLIB"; then
8882 for ncn_progname in ranlib; do
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884 set dummy ${ncn_progname}; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8892 else
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8895 do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8900 ac_cv_prog_RANLIB="${ncn_progname}"
8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 break 2
8903 fi
8904 done
8905 done
8906 IFS=$as_save_IFS
8907
8908 fi
8909 fi
8910 RANLIB=$ac_cv_prog_RANLIB
8911 if test -n "$RANLIB"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913 $as_echo "$RANLIB" >&6; }
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8917 fi
8918
8919
8920 done
8921 fi
8922
8923 for ncn_progname in ranlib; do
8924 if test -n "$ncn_tool_prefix"; then
8925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 if test -n "$RANLIB"; then
8933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8934 else
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8942 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946 done
8947 done
8948 IFS=$as_save_IFS
8949
8950 fi
8951 fi
8952 RANLIB=$ac_cv_prog_RANLIB
8953 if test -n "$RANLIB"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8955 $as_echo "$RANLIB" >&6; }
8956 else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8959 fi
8960
8961
8962 fi
8963 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965 set dummy ${ncn_progname}; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 if test -n "$RANLIB"; then
8972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981 ac_cv_prog_RANLIB="${ncn_progname}"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985 done
8986 done
8987 IFS=$as_save_IFS
8988
8989 fi
8990 fi
8991 RANLIB=$ac_cv_prog_RANLIB
8992 if test -n "$RANLIB"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8994 $as_echo "$RANLIB" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999
9000
9001 fi
9002 test -n "$ac_cv_prog_RANLIB" && break
9003 done
9004
9005 if test -z "$ac_cv_prog_RANLIB" ; then
9006 RANLIB="true"
9007 fi
9008
9009
9010
9011 if test -n "$STRIP"; then
9012 ac_cv_prog_STRIP=$STRIP
9013 elif test -n "$ac_cv_prog_STRIP"; then
9014 STRIP=$ac_cv_prog_STRIP
9015 fi
9016
9017 if test -n "$ac_cv_prog_STRIP"; then
9018 for ncn_progname in strip; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020 set dummy ${ncn_progname}; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_prog_STRIP="${ncn_progname}"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040 done
9041 done
9042 IFS=$as_save_IFS
9043
9044 fi
9045 fi
9046 STRIP=$ac_cv_prog_STRIP
9047 if test -n "$STRIP"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049 $as_echo "$STRIP" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9053 fi
9054
9055
9056 done
9057 fi
9058
9059 for ncn_progname in strip; do
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_prog_STRIP+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 if test -n "$STRIP"; then
9069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9070 else
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9073 do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9081 fi
9082 done
9083 done
9084 IFS=$as_save_IFS
9085
9086 fi
9087 fi
9088 STRIP=$ac_cv_prog_STRIP
9089 if test -n "$STRIP"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9091 $as_echo "$STRIP" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9095 fi
9096
9097
9098 fi
9099 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101 set dummy ${ncn_progname}; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_prog_STRIP+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 if test -n "$STRIP"; then
9108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9109 else
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117 ac_cv_prog_STRIP="${ncn_progname}"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121 done
9122 done
9123 IFS=$as_save_IFS
9124
9125 fi
9126 fi
9127 STRIP=$ac_cv_prog_STRIP
9128 if test -n "$STRIP"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9130 $as_echo "$STRIP" >&6; }
9131 else
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 fi
9135
9136
9137 fi
9138 test -n "$ac_cv_prog_STRIP" && break
9139 done
9140
9141 if test -z "$ac_cv_prog_STRIP" ; then
9142 STRIP="true"
9143 fi
9144
9145
9146
9147 if test -n "$WINDRES"; then
9148 ac_cv_prog_WINDRES=$WINDRES
9149 elif test -n "$ac_cv_prog_WINDRES"; then
9150 WINDRES=$ac_cv_prog_WINDRES
9151 fi
9152
9153 if test -n "$ac_cv_prog_WINDRES"; then
9154 for ncn_progname in windres; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156 set dummy ${ncn_progname}; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_prog_WINDRES="${ncn_progname}"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176 done
9177 done
9178 IFS=$as_save_IFS
9179
9180 fi
9181 fi
9182 WINDRES=$ac_cv_prog_WINDRES
9183 if test -n "$WINDRES"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185 $as_echo "$WINDRES" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 fi
9190
9191
9192 done
9193 fi
9194
9195 for ncn_progname in windres; do
9196 if test -n "$ncn_tool_prefix"; then
9197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 if test -n "$WINDRES"; then
9205 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9206 else
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9209 do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9217 fi
9218 done
9219 done
9220 IFS=$as_save_IFS
9221
9222 fi
9223 fi
9224 WINDRES=$ac_cv_prog_WINDRES
9225 if test -n "$WINDRES"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9227 $as_echo "$WINDRES" >&6; }
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9231 fi
9232
9233
9234 fi
9235 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237 set dummy ${ncn_progname}; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 if test -n "$WINDRES"; then
9244 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9253 ac_cv_prog_WINDRES="${ncn_progname}"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257 done
9258 done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 WINDRES=$ac_cv_prog_WINDRES
9264 if test -n "$WINDRES"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9266 $as_echo "$WINDRES" >&6; }
9267 else
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273 fi
9274 test -n "$ac_cv_prog_WINDRES" && break
9275 done
9276
9277 if test -z "$ac_cv_prog_WINDRES" ; then
9278 set dummy windres
9279 if test $build = $host ; then
9280 WINDRES="$2"
9281 else
9282 WINDRES="${ncn_tool_prefix}$2"
9283 fi
9284 fi
9285
9286
9287
9288 if test -n "$WINDMC"; then
9289 ac_cv_prog_WINDMC=$WINDMC
9290 elif test -n "$ac_cv_prog_WINDMC"; then
9291 WINDMC=$ac_cv_prog_WINDMC
9292 fi
9293
9294 if test -n "$ac_cv_prog_WINDMC"; then
9295 for ncn_progname in windmc; do
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297 set dummy ${ncn_progname}; ac_word=$2
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 $as_echo_n "checking for $ac_word... " >&6; }
9300 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305 else
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9308 do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_prog_WINDMC="${ncn_progname}"
9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9315 break 2
9316 fi
9317 done
9318 done
9319 IFS=$as_save_IFS
9320
9321 fi
9322 fi
9323 WINDMC=$ac_cv_prog_WINDMC
9324 if test -n "$WINDMC"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326 $as_echo "$WINDMC" >&6; }
9327 else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9330 fi
9331
9332
9333 done
9334 fi
9335
9336 for ncn_progname in windmc; do
9337 if test -n "$ncn_tool_prefix"; then
9338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9339 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 if test -n "$WINDMC"; then
9346 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9347 else
9348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in $PATH
9350 do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9355 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 break 2
9358 fi
9359 done
9360 done
9361 IFS=$as_save_IFS
9362
9363 fi
9364 fi
9365 WINDMC=$ac_cv_prog_WINDMC
9366 if test -n "$WINDMC"; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9368 $as_echo "$WINDMC" >&6; }
9369 else
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9372 fi
9373
9374
9375 fi
9376 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9378 set dummy ${ncn_progname}; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 if test -n "$WINDMC"; then
9385 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9386 else
9387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388 for as_dir in $PATH
9389 do
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9394 ac_cv_prog_WINDMC="${ncn_progname}"
9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 break 2
9397 fi
9398 done
9399 done
9400 IFS=$as_save_IFS
9401
9402 fi
9403 fi
9404 WINDMC=$ac_cv_prog_WINDMC
9405 if test -n "$WINDMC"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9407 $as_echo "$WINDMC" >&6; }
9408 else
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9411 fi
9412
9413
9414 fi
9415 test -n "$ac_cv_prog_WINDMC" && break
9416 done
9417
9418 if test -z "$ac_cv_prog_WINDMC" ; then
9419 set dummy windmc
9420 if test $build = $host ; then
9421 WINDMC="$2"
9422 else
9423 WINDMC="${ncn_tool_prefix}$2"
9424 fi
9425 fi
9426
9427
9428
9429 if test -n "$OBJCOPY"; then
9430 ac_cv_prog_OBJCOPY=$OBJCOPY
9431 elif test -n "$ac_cv_prog_OBJCOPY"; then
9432 OBJCOPY=$ac_cv_prog_OBJCOPY
9433 fi
9434
9435 if test -n "$ac_cv_prog_OBJCOPY"; then
9436 for ncn_progname in objcopy; do
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438 set dummy ${ncn_progname}; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9446 else
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in $PATH
9449 do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9457 fi
9458 done
9459 done
9460 IFS=$as_save_IFS
9461
9462 fi
9463 fi
9464 OBJCOPY=$ac_cv_prog_OBJCOPY
9465 if test -n "$OBJCOPY"; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467 $as_echo "$OBJCOPY" >&6; }
9468 else
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9471 fi
9472
9473
9474 done
9475 fi
9476
9477 for ncn_progname in objcopy; do
9478 if test -n "$ncn_tool_prefix"; then
9479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9480 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 if test -n "$OBJCOPY"; then
9487 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9491 do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9499 fi
9500 done
9501 done
9502 IFS=$as_save_IFS
9503
9504 fi
9505 fi
9506 OBJCOPY=$ac_cv_prog_OBJCOPY
9507 if test -n "$OBJCOPY"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9509 $as_echo "$OBJCOPY" >&6; }
9510 else
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512 $as_echo "no" >&6; }
9513 fi
9514
9515
9516 fi
9517 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9519 set dummy ${ncn_progname}; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 if test -n "$OBJCOPY"; then
9526 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9527 else
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9530 do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9535 ac_cv_prog_OBJCOPY="${ncn_progname}"
9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 break 2
9538 fi
9539 done
9540 done
9541 IFS=$as_save_IFS
9542
9543 fi
9544 fi
9545 OBJCOPY=$ac_cv_prog_OBJCOPY
9546 if test -n "$OBJCOPY"; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9548 $as_echo "$OBJCOPY" >&6; }
9549 else
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551 $as_echo "no" >&6; }
9552 fi
9553
9554
9555 fi
9556 test -n "$ac_cv_prog_OBJCOPY" && break
9557 done
9558
9559 if test -z "$ac_cv_prog_OBJCOPY" ; then
9560 set dummy objcopy
9561 if test $build = $host ; then
9562 OBJCOPY="$2"
9563 else
9564 OBJCOPY="${ncn_tool_prefix}$2"
9565 fi
9566 fi
9567
9568
9569
9570 if test -n "$OBJDUMP"; then
9571 ac_cv_prog_OBJDUMP=$OBJDUMP
9572 elif test -n "$ac_cv_prog_OBJDUMP"; then
9573 OBJDUMP=$ac_cv_prog_OBJDUMP
9574 fi
9575
9576 if test -n "$ac_cv_prog_OBJDUMP"; then
9577 for ncn_progname in objdump; do
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579 set dummy ${ncn_progname}; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9590 do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599 done
9600 done
9601 IFS=$as_save_IFS
9602
9603 fi
9604 fi
9605 OBJDUMP=$ac_cv_prog_OBJDUMP
9606 if test -n "$OBJDUMP"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608 $as_echo "$OBJDUMP" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 fi
9613
9614
9615 done
9616 fi
9617
9618 for ncn_progname in objdump; do
9619 if test -n "$ncn_tool_prefix"; then
9620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9621 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 if test -n "$OBJDUMP"; then
9628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9629 else
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9632 do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9637 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641 done
9642 done
9643 IFS=$as_save_IFS
9644
9645 fi
9646 fi
9647 OBJDUMP=$ac_cv_prog_OBJDUMP
9648 if test -n "$OBJDUMP"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9650 $as_echo "$OBJDUMP" >&6; }
9651 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9654 fi
9655
9656
9657 fi
9658 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660 set dummy ${ncn_progname}; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 if test -n "$OBJDUMP"; then
9667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9676 ac_cv_prog_OBJDUMP="${ncn_progname}"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 break 2
9679 fi
9680 done
9681 done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 OBJDUMP=$ac_cv_prog_OBJDUMP
9687 if test -n "$OBJDUMP"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689 $as_echo "$OBJDUMP" >&6; }
9690 else
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695
9696 fi
9697 test -n "$ac_cv_prog_OBJDUMP" && break
9698 done
9699
9700 if test -z "$ac_cv_prog_OBJDUMP" ; then
9701 set dummy objdump
9702 if test $build = $host ; then
9703 OBJDUMP="$2"
9704 else
9705 OBJDUMP="${ncn_tool_prefix}$2"
9706 fi
9707 fi
9708
9709
9710
9711 if test -n "$READELF"; then
9712 ac_cv_prog_READELF=$READELF
9713 elif test -n "$ac_cv_prog_READELF"; then
9714 READELF=$ac_cv_prog_READELF
9715 fi
9716
9717 if test -n "$ac_cv_prog_READELF"; then
9718 for ncn_progname in readelf; do
9719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9720 set dummy ${ncn_progname}; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if test "${ac_cv_prog_READELF+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 if test -n "$READELF"; then
9727 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9728 else
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9731 do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_prog_READELF="${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740 done
9741 done
9742 IFS=$as_save_IFS
9743
9744 fi
9745 fi
9746 READELF=$ac_cv_prog_READELF
9747 if test -n "$READELF"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9749 $as_echo "$READELF" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9753 fi
9754
9755
9756 done
9757 fi
9758
9759 for ncn_progname in readelf; do
9760 if test -n "$ncn_tool_prefix"; then
9761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if test "${ac_cv_prog_READELF+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 if test -n "$READELF"; then
9769 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9770 else
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 fi
9787 fi
9788 READELF=$ac_cv_prog_READELF
9789 if test -n "$READELF"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9791 $as_echo "$READELF" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801 set dummy ${ncn_progname}; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if test "${ac_cv_prog_READELF+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 if test -n "$READELF"; then
9808 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9809 else
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9812 do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_READELF="${ncn_progname}"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821 done
9822 done
9823 IFS=$as_save_IFS
9824
9825 fi
9826 fi
9827 READELF=$ac_cv_prog_READELF
9828 if test -n "$READELF"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9830 $as_echo "$READELF" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9834 fi
9835
9836
9837 fi
9838 test -n "$ac_cv_prog_READELF" && break
9839 done
9840
9841 if test -z "$ac_cv_prog_READELF" ; then
9842 set dummy readelf
9843 if test $build = $host ; then
9844 READELF="$2"
9845 else
9846 READELF="${ncn_tool_prefix}$2"
9847 fi
9848 fi
9849
9850
9851
9852
9853
9854
9855 # Target tools.
9856
9857 # Check whether --with-build-time-tools was given.
9858 if test "${with_build_time_tools+set}" = set; then :
9859 withval=$with_build_time_tools; case x"$withval" in
9860 x/*) ;;
9861 *)
9862 with_build_time_tools=
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9864 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9865 ;;
9866 esac
9867 else
9868 with_build_time_tools=
9869 fi
9870
9871
9872
9873
9874 if test -n "$CC_FOR_TARGET"; then
9875 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9876 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9877 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9878 fi
9879
9880 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9881 for ncn_progname in cc gcc; do
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883 set dummy ${ncn_progname}; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 if test -n "$CC_FOR_TARGET"; then
9890 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9891 else
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9894 do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9902 fi
9903 done
9904 done
9905 IFS=$as_save_IFS
9906
9907 fi
9908 fi
9909 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9910 if test -n "$CC_FOR_TARGET"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9912 $as_echo "$CC_FOR_TARGET" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9916 fi
9917
9918
9919 done
9920 fi
9921
9922 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9923 for ncn_progname in cc gcc; do
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9926 if test -x $with_build_time_tools/${ncn_progname}; then
9927 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929 $as_echo "yes" >&6; }
9930 break
9931 else
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934 fi
9935 done
9936 fi
9937
9938 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9939 for ncn_progname in cc gcc; do
9940 if test -n "$ncn_target_tool_prefix"; then
9941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9942 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 if test -n "$CC_FOR_TARGET"; then
9949 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9950 else
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9958 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9961 fi
9962 done
9963 done
9964 IFS=$as_save_IFS
9965
9966 fi
9967 fi
9968 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9969 if test -n "$CC_FOR_TARGET"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9971 $as_echo "$CC_FOR_TARGET" >&6; }
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 fi
9976
9977
9978 fi
9979 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9981 set dummy ${ncn_progname}; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 if test -n "$CC_FOR_TARGET"; then
9988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9989 else
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9992 do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10000 fi
10001 done
10002 done
10003 IFS=$as_save_IFS
10004
10005 fi
10006 fi
10007 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10008 if test -n "$CC_FOR_TARGET"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10010 $as_echo "$CC_FOR_TARGET" >&6; }
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10014 fi
10015
10016
10017 fi
10018 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10019 done
10020 fi
10021
10022 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10023 set dummy cc gcc
10024 if test $build = $target ; then
10025 CC_FOR_TARGET="$2"
10026 else
10027 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10028 fi
10029 else
10030 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10031 fi
10032
10033
10034
10035 if test -n "$CXX_FOR_TARGET"; then
10036 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10037 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10038 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10039 fi
10040
10041 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10042 for ncn_progname in c++ g++ cxx gxx; do
10043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10044 set dummy ${ncn_progname}; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$CXX_FOR_TARGET"; then
10051 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10067
10068 fi
10069 fi
10070 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10071 if test -n "$CXX_FOR_TARGET"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10073 $as_echo "$CXX_FOR_TARGET" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078
10079
10080 done
10081 fi
10082
10083 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10084 for ncn_progname in c++ g++ cxx gxx; do
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10086 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10087 if test -x $with_build_time_tools/${ncn_progname}; then
10088 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090 $as_echo "yes" >&6; }
10091 break
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096 done
10097 fi
10098
10099 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10100 for ncn_progname in c++ g++ cxx gxx; do
10101 if test -n "$ncn_target_tool_prefix"; then
10102 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10103 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 if test -n "$CXX_FOR_TARGET"; then
10110 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123 done
10124 done
10125 IFS=$as_save_IFS
10126
10127 fi
10128 fi
10129 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10130 if test -n "$CXX_FOR_TARGET"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10132 $as_echo "$CXX_FOR_TARGET" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10136 fi
10137
10138
10139 fi
10140 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10142 set dummy ${ncn_progname}; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 if test -n "$CXX_FOR_TARGET"; then
10149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10161 fi
10162 done
10163 done
10164 IFS=$as_save_IFS
10165
10166 fi
10167 fi
10168 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10169 if test -n "$CXX_FOR_TARGET"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10171 $as_echo "$CXX_FOR_TARGET" >&6; }
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 fi
10176
10177
10178 fi
10179 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10180 done
10181 fi
10182
10183 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10184 set dummy c++ g++ cxx gxx
10185 if test $build = $target ; then
10186 CXX_FOR_TARGET="$2"
10187 else
10188 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10189 fi
10190 else
10191 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10192 fi
10193
10194
10195
10196 if test -n "$GCC_FOR_TARGET"; then
10197 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10198 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10199 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10200 fi
10201
10202 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10203 for ncn_progname in gcc; do
10204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10205 set dummy ${ncn_progname}; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 if test -n "$GCC_FOR_TARGET"; then
10212 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10213 else
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10216 do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225 done
10226 done
10227 IFS=$as_save_IFS
10228
10229 fi
10230 fi
10231 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10232 if test -n "$GCC_FOR_TARGET"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10234 $as_echo "$GCC_FOR_TARGET" >&6; }
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10238 fi
10239
10240
10241 done
10242 fi
10243
10244 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10245 for ncn_progname in gcc; do
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10247 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10248 if test -x $with_build_time_tools/${ncn_progname}; then
10249 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251 $as_echo "yes" >&6; }
10252 break
10253 else
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10256 fi
10257 done
10258 fi
10259
10260 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10261 for ncn_progname in gcc; do
10262 if test -n "$ncn_target_tool_prefix"; then
10263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10264 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 if test -n "$GCC_FOR_TARGET"; then
10271 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10272 else
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10275 do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 break 2
10283 fi
10284 done
10285 done
10286 IFS=$as_save_IFS
10287
10288 fi
10289 fi
10290 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10291 if test -n "$GCC_FOR_TARGET"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10293 $as_echo "$GCC_FOR_TARGET" >&6; }
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10297 fi
10298
10299
10300 fi
10301 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10303 set dummy ${ncn_progname}; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 if test -n "$GCC_FOR_TARGET"; then
10310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323 done
10324 done
10325 IFS=$as_save_IFS
10326
10327 fi
10328 fi
10329 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10330 if test -n "$GCC_FOR_TARGET"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10332 $as_echo "$GCC_FOR_TARGET" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10336 fi
10337
10338
10339 fi
10340 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10341 done
10342 fi
10343
10344 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10345 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10346 else
10347 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10348 fi
10349
10350
10351
10352 if test -n "$GFORTRAN_FOR_TARGET"; then
10353 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10354 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10355 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10356 fi
10357
10358 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10359 for ncn_progname in gfortran; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10361 set dummy ${ncn_progname}; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 if test -n "$GFORTRAN_FOR_TARGET"; then
10368 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381 done
10382 done
10383 IFS=$as_save_IFS
10384
10385 fi
10386 fi
10387 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10388 if test -n "$GFORTRAN_FOR_TARGET"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10390 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 fi
10395
10396
10397 done
10398 fi
10399
10400 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10401 for ncn_progname in gfortran; do
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10403 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10404 if test -x $with_build_time_tools/${ncn_progname}; then
10405 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407 $as_echo "yes" >&6; }
10408 break
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10412 fi
10413 done
10414 fi
10415
10416 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10417 for ncn_progname in gfortran; do
10418 if test -n "$ncn_target_tool_prefix"; then
10419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10420 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422 $as_echo_n "checking for $ac_word... " >&6; }
10423 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 if test -n "$GFORTRAN_FOR_TARGET"; then
10427 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10428 else
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10431 do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10436 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440 done
10441 done
10442 IFS=$as_save_IFS
10443
10444 fi
10445 fi
10446 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10447 if test -n "$GFORTRAN_FOR_TARGET"; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10449 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453 fi
10454
10455
10456 fi
10457 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10459 set dummy ${ncn_progname}; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test -n "$GFORTRAN_FOR_TARGET"; then
10466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10470 do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10478 fi
10479 done
10480 done
10481 IFS=$as_save_IFS
10482
10483 fi
10484 fi
10485 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10486 if test -n "$GFORTRAN_FOR_TARGET"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10488 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10492 fi
10493
10494
10495 fi
10496 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10497 done
10498 fi
10499
10500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10501 set dummy gfortran
10502 if test $build = $target ; then
10503 GFORTRAN_FOR_TARGET="$2"
10504 else
10505 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10506 fi
10507 else
10508 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10509 fi
10510
10511
10512
10513 if test -n "$GOC_FOR_TARGET"; then
10514 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10515 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10516 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517 fi
10518
10519 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10520 for ncn_progname in gccgo; do
10521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10522 set dummy ${ncn_progname}; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 if test -n "$GOC_FOR_TARGET"; then
10529 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542 done
10543 done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10549 if test -n "$GOC_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10551 $as_echo "$GOC_FOR_TARGET" >&6; }
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558 done
10559 fi
10560
10561 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10562 for ncn_progname in gccgo; do
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10564 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10565 if test -x $with_build_time_tools/${ncn_progname}; then
10566 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568 $as_echo "yes" >&6; }
10569 break
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 fi
10574 done
10575 fi
10576
10577 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10578 for ncn_progname in gccgo; do
10579 if test -n "$ncn_target_tool_prefix"; then
10580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10581 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test -n "$GOC_FOR_TARGET"; then
10588 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601 done
10602 done
10603 IFS=$as_save_IFS
10604
10605 fi
10606 fi
10607 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10608 if test -n "$GOC_FOR_TARGET"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10610 $as_echo "$GOC_FOR_TARGET" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616
10617 fi
10618 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620 set dummy ${ncn_progname}; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 if test -n "$GOC_FOR_TARGET"; then
10627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10628 else
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10631 do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640 done
10641 done
10642 IFS=$as_save_IFS
10643
10644 fi
10645 fi
10646 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10647 if test -n "$GOC_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10649 $as_echo "$GOC_FOR_TARGET" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10653 fi
10654
10655
10656 fi
10657 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10658 done
10659 fi
10660
10661 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10662 set dummy gccgo
10663 if test $build = $target ; then
10664 GOC_FOR_TARGET="$2"
10665 else
10666 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10667 fi
10668 else
10669 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10670 fi
10671
10672
10673
10674 cat > conftest.c << \EOF
10675 #ifdef __GNUC__
10676 gcc_yay;
10677 #endif
10678 EOF
10679 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10680 have_gcc_for_target=yes
10681 else
10682 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10683 have_gcc_for_target=no
10684 fi
10685 rm conftest.c
10686
10687
10688
10689
10690 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10693 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10694 if test -x $with_build_time_tools/ar; then
10695 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10696 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10698 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10702 fi
10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10705 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10706 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10707 fi
10708 fi
10709 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10710 # Extract the first word of "ar", so it can be a program name with args.
10711 set dummy ar; ac_word=$2
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713 $as_echo_n "checking for $ac_word... " >&6; }
10714 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 case $AR_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
10719 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10720 ;;
10721 *)
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $gcc_cv_tool_dirs
10724 do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733 done
10734 done
10735 IFS=$as_save_IFS
10736
10737 ;;
10738 esac
10739 fi
10740 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10741 if test -n "$AR_FOR_TARGET"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10743 $as_echo "$AR_FOR_TARGET" >&6; }
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10747 fi
10748
10749
10750 fi
10751 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10752
10753
10754 if test -n "$AR_FOR_TARGET"; then
10755 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10756 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10757 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10758 fi
10759
10760 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10761 for ncn_progname in ar; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763 set dummy ${ncn_progname}; ac_word=$2
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765 $as_echo_n "checking for $ac_word... " >&6; }
10766 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 if test -n "$AR_FOR_TARGET"; then
10770 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10771 else
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10774 do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10779 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10782 fi
10783 done
10784 done
10785 IFS=$as_save_IFS
10786
10787 fi
10788 fi
10789 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10790 if test -n "$AR_FOR_TARGET"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10792 $as_echo "$AR_FOR_TARGET" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10796 fi
10797
10798
10799 done
10800 fi
10801
10802 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10803 for ncn_progname in ar; do
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809 $as_echo "yes" >&6; }
10810 break
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 fi
10815 done
10816 fi
10817
10818 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10819 for ncn_progname in ar; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 if test -n "$AR_FOR_TARGET"; then
10829 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10830 else
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 for as_dir in $PATH
10833 do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842 done
10843 done
10844 IFS=$as_save_IFS
10845
10846 fi
10847 fi
10848 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10849 if test -n "$AR_FOR_TARGET"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10851 $as_echo "$AR_FOR_TARGET" >&6; }
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 fi
10856
10857
10858 fi
10859 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861 set dummy ${ncn_progname}; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 if test -n "$AR_FOR_TARGET"; then
10868 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10872 do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881 done
10882 done
10883 IFS=$as_save_IFS
10884
10885 fi
10886 fi
10887 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10888 if test -n "$AR_FOR_TARGET"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10890 $as_echo "$AR_FOR_TARGET" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894 fi
10895
10896
10897 fi
10898 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10899 done
10900 fi
10901
10902 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10903 set dummy ar
10904 if test $build = $target ; then
10905 AR_FOR_TARGET="$2"
10906 else
10907 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10908 fi
10909 else
10910 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10911 fi
10912
10913 else
10914 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10915 fi
10916
10917
10918
10919
10920 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10923 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10924 if test -x $with_build_time_tools/as; then
10925 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10926 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10928 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10929 else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10932 fi
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10935 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10936 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10937 fi
10938 fi
10939 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10940 # Extract the first word of "as", so it can be a program name with args.
10941 set dummy as; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 case $AS_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
10949 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10950 ;;
10951 *)
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $gcc_cv_tool_dirs
10954 do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963 done
10964 done
10965 IFS=$as_save_IFS
10966
10967 ;;
10968 esac
10969 fi
10970 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10971 if test -n "$AS_FOR_TARGET"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10973 $as_echo "$AS_FOR_TARGET" >&6; }
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 fi
10978
10979
10980 fi
10981 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10982
10983
10984 if test -n "$AS_FOR_TARGET"; then
10985 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10986 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10987 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10988 fi
10989
10990 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10991 for ncn_progname in as; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test -n "$AS_FOR_TARGET"; then
11000 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013 done
11014 done
11015 IFS=$as_save_IFS
11016
11017 fi
11018 fi
11019 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11020 if test -n "$AS_FOR_TARGET"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11022 $as_echo "$AS_FOR_TARGET" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027
11028
11029 done
11030 fi
11031
11032 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11033 for ncn_progname in as; do
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11035 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11036 if test -x $with_build_time_tools/${ncn_progname}; then
11037 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039 $as_echo "yes" >&6; }
11040 break
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044 fi
11045 done
11046 fi
11047
11048 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11049 for ncn_progname in as; do
11050 if test -n "$ncn_target_tool_prefix"; then
11051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11052 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054 $as_echo_n "checking for $ac_word... " >&6; }
11055 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 if test -n "$AS_FOR_TARGET"; then
11059 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11060 else
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11063 do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11071 fi
11072 done
11073 done
11074 IFS=$as_save_IFS
11075
11076 fi
11077 fi
11078 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11079 if test -n "$AS_FOR_TARGET"; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11081 $as_echo "$AS_FOR_TARGET" >&6; }
11082 else
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085 fi
11086
11087
11088 fi
11089 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11091 set dummy ${ncn_progname}; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test -n "$AS_FOR_TARGET"; then
11098 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109 break 2
11110 fi
11111 done
11112 done
11113 IFS=$as_save_IFS
11114
11115 fi
11116 fi
11117 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11118 if test -n "$AS_FOR_TARGET"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11120 $as_echo "$AS_FOR_TARGET" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11124 fi
11125
11126
11127 fi
11128 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11129 done
11130 fi
11131
11132 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11133 set dummy as
11134 if test $build = $target ; then
11135 AS_FOR_TARGET="$2"
11136 else
11137 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11138 fi
11139 else
11140 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11141 fi
11142
11143 else
11144 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11145 fi
11146
11147
11148
11149
11150 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11151 if test -n "$with_build_time_tools"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11153 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11154 if test -x $with_build_time_tools/dlltool; then
11155 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11156 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11158 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11159 else
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162 fi
11163 elif test $build != $host && test $have_gcc_for_target = yes; then
11164 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11165 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11166 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11167 fi
11168 fi
11169 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11170 # Extract the first word of "dlltool", so it can be a program name with args.
11171 set dummy dlltool; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 case $DLLTOOL_FOR_TARGET in
11178 [\\/]* | ?:[\\/]*)
11179 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11180 ;;
11181 *)
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $gcc_cv_tool_dirs
11184 do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11189 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193 done
11194 done
11195 IFS=$as_save_IFS
11196
11197 ;;
11198 esac
11199 fi
11200 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11201 if test -n "$DLLTOOL_FOR_TARGET"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11203 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11204 else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11207 fi
11208
11209
11210 fi
11211 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11212
11213
11214 if test -n "$DLLTOOL_FOR_TARGET"; then
11215 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11216 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11217 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11218 fi
11219
11220 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11221 for ncn_progname in dlltool; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223 set dummy ${ncn_progname}; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test -n "$DLLTOOL_FOR_TARGET"; then
11230 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11242 fi
11243 done
11244 done
11245 IFS=$as_save_IFS
11246
11247 fi
11248 fi
11249 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11250 if test -n "$DLLTOOL_FOR_TARGET"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11252 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258
11259 done
11260 fi
11261
11262 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11263 for ncn_progname in dlltool; do
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11265 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11266 if test -x $with_build_time_tools/${ncn_progname}; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269 $as_echo "yes" >&6; }
11270 break
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275 done
11276 fi
11277
11278 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11279 for ncn_progname in dlltool; do
11280 if test -n "$ncn_target_tool_prefix"; then
11281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11282 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 if test -n "$DLLTOOL_FOR_TARGET"; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11290 else
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11293 do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302 done
11303 done
11304 IFS=$as_save_IFS
11305
11306 fi
11307 fi
11308 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11309 if test -n "$DLLTOOL_FOR_TARGET"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11311 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11315 fi
11316
11317
11318 fi
11319 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321 set dummy ${ncn_progname}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 if test -n "$DLLTOOL_FOR_TARGET"; then
11328 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11329 else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341 done
11342 done
11343 IFS=$as_save_IFS
11344
11345 fi
11346 fi
11347 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11348 if test -n "$DLLTOOL_FOR_TARGET"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11350 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11354 fi
11355
11356
11357 fi
11358 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11359 done
11360 fi
11361
11362 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11363 set dummy dlltool
11364 if test $build = $target ; then
11365 DLLTOOL_FOR_TARGET="$2"
11366 else
11367 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11368 fi
11369 else
11370 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11371 fi
11372
11373 else
11374 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11375 fi
11376
11377
11378
11379
11380 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11383 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11384 if test -x $with_build_time_tools/ld; then
11385 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11386 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11388 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11392 fi
11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11395 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11396 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11397 fi
11398 fi
11399 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11400 # Extract the first word of "ld", so it can be a program name with args.
11401 set dummy ld; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 case $LD_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11410 ;;
11411 *)
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413 for as_dir in $gcc_cv_tool_dirs
11414 do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11419 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11422 fi
11423 done
11424 done
11425 IFS=$as_save_IFS
11426
11427 ;;
11428 esac
11429 fi
11430 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11431 if test -n "$LD_FOR_TARGET"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11433 $as_echo "$LD_FOR_TARGET" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11437 fi
11438
11439
11440 fi
11441 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11442
11443
11444 if test -n "$LD_FOR_TARGET"; then
11445 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11446 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11447 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11448 fi
11449
11450 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11451 for ncn_progname in ld; do
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453 set dummy ${ncn_progname}; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 if test -n "$LD_FOR_TARGET"; then
11460 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11461 else
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11464 do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11472 fi
11473 done
11474 done
11475 IFS=$as_save_IFS
11476
11477 fi
11478 fi
11479 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11480 if test -n "$LD_FOR_TARGET"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11482 $as_echo "$LD_FOR_TARGET" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11486 fi
11487
11488
11489 done
11490 fi
11491
11492 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11493 for ncn_progname in ld; do
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11495 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11496 if test -x $with_build_time_tools/${ncn_progname}; then
11497 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500 break
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11504 fi
11505 done
11506 fi
11507
11508 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11509 for ncn_progname in ld; do
11510 if test -n "$ncn_target_tool_prefix"; then
11511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11512 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 if test -n "$LD_FOR_TARGET"; then
11519 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11520 else
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11523 do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11528 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11531 fi
11532 done
11533 done
11534 IFS=$as_save_IFS
11535
11536 fi
11537 fi
11538 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11539 if test -n "$LD_FOR_TARGET"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11541 $as_echo "$LD_FOR_TARGET" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 fi
11546
11547
11548 fi
11549 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11551 set dummy ${ncn_progname}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 if test -n "$LD_FOR_TARGET"; then
11558 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11562 do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11570 fi
11571 done
11572 done
11573 IFS=$as_save_IFS
11574
11575 fi
11576 fi
11577 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11578 if test -n "$LD_FOR_TARGET"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11580 $as_echo "$LD_FOR_TARGET" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11584 fi
11585
11586
11587 fi
11588 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11589 done
11590 fi
11591
11592 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11593 set dummy ld
11594 if test $build = $target ; then
11595 LD_FOR_TARGET="$2"
11596 else
11597 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11598 fi
11599 else
11600 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11601 fi
11602
11603 else
11604 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11605 fi
11606
11607
11608
11609
11610 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11611 if test -n "$with_build_time_tools"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11613 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11614 if test -x $with_build_time_tools/lipo; then
11615 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11616 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11618 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11622 fi
11623 elif test $build != $host && test $have_gcc_for_target = yes; then
11624 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11625 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11626 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11627 fi
11628 fi
11629 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11630 # Extract the first word of "lipo", so it can be a program name with args.
11631 set dummy lipo; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $LIPO_FOR_TARGET in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $gcc_cv_tool_dirs
11644 do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653 done
11654 done
11655 IFS=$as_save_IFS
11656
11657 ;;
11658 esac
11659 fi
11660 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11661 if test -n "$LIPO_FOR_TARGET"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11663 $as_echo "$LIPO_FOR_TARGET" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 fi
11668
11669
11670 fi
11671 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11672
11673
11674 if test -n "$LIPO_FOR_TARGET"; then
11675 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11676 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11677 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11678 fi
11679
11680 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11681 for ncn_progname in lipo; do
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683 set dummy ${ncn_progname}; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 if test -n "$LIPO_FOR_TARGET"; then
11690 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703 done
11704 done
11705 IFS=$as_save_IFS
11706
11707 fi
11708 fi
11709 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11710 if test -n "$LIPO_FOR_TARGET"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11712 $as_echo "$LIPO_FOR_TARGET" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717
11718
11719 done
11720 fi
11721
11722 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11723 for ncn_progname in lipo; do
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11725 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11726 if test -x $with_build_time_tools/${ncn_progname}; then
11727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730 break
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11734 fi
11735 done
11736 fi
11737
11738 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11739 for ncn_progname in lipo; do
11740 if test -n "$ncn_target_tool_prefix"; then
11741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11742 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 if test -n "$LIPO_FOR_TARGET"; then
11749 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11750 else
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11753 do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762 done
11763 done
11764 IFS=$as_save_IFS
11765
11766 fi
11767 fi
11768 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11769 if test -n "$LIPO_FOR_TARGET"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11771 $as_echo "$LIPO_FOR_TARGET" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 fi
11776
11777
11778 fi
11779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -n "$LIPO_FOR_TARGET"; then
11788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11792 do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11800 fi
11801 done
11802 done
11803 IFS=$as_save_IFS
11804
11805 fi
11806 fi
11807 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11808 if test -n "$LIPO_FOR_TARGET"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11810 $as_echo "$LIPO_FOR_TARGET" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814 fi
11815
11816
11817 fi
11818 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11819 done
11820 fi
11821
11822 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11823 set dummy lipo
11824 if test $build = $target ; then
11825 LIPO_FOR_TARGET="$2"
11826 else
11827 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11828 fi
11829 else
11830 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11831 fi
11832
11833 else
11834 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11835 fi
11836
11837
11838
11839
11840 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11841 if test -n "$with_build_time_tools"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11843 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11844 if test -x $with_build_time_tools/nm; then
11845 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11846 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11848 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853 elif test $build != $host && test $have_gcc_for_target = yes; then
11854 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11855 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11856 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11857 fi
11858 fi
11859 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11860 # Extract the first word of "nm", so it can be a program name with args.
11861 set dummy nm; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 case $NM_FOR_TARGET in
11868 [\\/]* | ?:[\\/]*)
11869 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11870 ;;
11871 *)
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $gcc_cv_tool_dirs
11874 do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883 done
11884 done
11885 IFS=$as_save_IFS
11886
11887 ;;
11888 esac
11889 fi
11890 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11891 if test -n "$NM_FOR_TARGET"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11893 $as_echo "$NM_FOR_TARGET" >&6; }
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898
11899
11900 fi
11901 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11902
11903
11904 if test -n "$NM_FOR_TARGET"; then
11905 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11906 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11907 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11908 fi
11909
11910 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11911 for ncn_progname in nm; do
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913 set dummy ${ncn_progname}; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 if test -n "$NM_FOR_TARGET"; then
11920 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11921 else
11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11924 do
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11929 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931 break 2
11932 fi
11933 done
11934 done
11935 IFS=$as_save_IFS
11936
11937 fi
11938 fi
11939 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11940 if test -n "$NM_FOR_TARGET"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11942 $as_echo "$NM_FOR_TARGET" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947
11948
11949 done
11950 fi
11951
11952 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11953 for ncn_progname in nm; do
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11955 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11956 if test -x $with_build_time_tools/${ncn_progname}; then
11957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959 $as_echo "yes" >&6; }
11960 break
11961 else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964 fi
11965 done
11966 fi
11967
11968 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11969 for ncn_progname in nm; do
11970 if test -n "$ncn_target_tool_prefix"; then
11971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 if test -n "$NM_FOR_TARGET"; then
11979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11980 else
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11983 do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990 break 2
11991 fi
11992 done
11993 done
11994 IFS=$as_save_IFS
11995
11996 fi
11997 fi
11998 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11999 if test -n "$NM_FOR_TARGET"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12001 $as_echo "$NM_FOR_TARGET" >&6; }
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 fi
12006
12007
12008 fi
12009 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test -n "$NM_FOR_TARGET"; then
12018 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12030 fi
12031 done
12032 done
12033 IFS=$as_save_IFS
12034
12035 fi
12036 fi
12037 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12038 if test -n "$NM_FOR_TARGET"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12040 $as_echo "$NM_FOR_TARGET" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045
12046
12047 fi
12048 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12049 done
12050 fi
12051
12052 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12053 set dummy nm
12054 if test $build = $target ; then
12055 NM_FOR_TARGET="$2"
12056 else
12057 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12058 fi
12059 else
12060 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12061 fi
12062
12063 else
12064 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12065 fi
12066
12067
12068
12069
12070 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12071 if test -n "$with_build_time_tools"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12073 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12074 if test -x $with_build_time_tools/objcopy; then
12075 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12076 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12078 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083 elif test $build != $host && test $have_gcc_for_target = yes; then
12084 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12085 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12086 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12087 fi
12088 fi
12089 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12090 # Extract the first word of "objcopy", so it can be a program name with args.
12091 set dummy objcopy; ac_word=$2
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 case $OBJCOPY_FOR_TARGET in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $gcc_cv_tool_dirs
12104 do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113 done
12114 done
12115 IFS=$as_save_IFS
12116
12117 ;;
12118 esac
12119 fi
12120 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12121 if test -n "$OBJCOPY_FOR_TARGET"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12123 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128
12129
12130 fi
12131 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12132
12133
12134 if test -n "$OBJCOPY_FOR_TARGET"; then
12135 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12136 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12137 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12138 fi
12139
12140 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12141 for ncn_progname in objcopy; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143 set dummy ${ncn_progname}; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 if test -n "$OBJCOPY_FOR_TARGET"; then
12150 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12151 else
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12154 do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163 done
12164 done
12165 IFS=$as_save_IFS
12166
12167 fi
12168 fi
12169 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12170 if test -n "$OBJCOPY_FOR_TARGET"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12172 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176 fi
12177
12178
12179 done
12180 fi
12181
12182 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12183 for ncn_progname in objcopy; do
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12185 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12186 if test -x $with_build_time_tools/${ncn_progname}; then
12187 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; }
12190 break
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195 done
12196 fi
12197
12198 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12199 for ncn_progname in objcopy; do
12200 if test -n "$ncn_target_tool_prefix"; then
12201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$OBJCOPY_FOR_TARGET"; then
12209 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222 done
12223 done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12229 if test -n "$OBJCOPY_FOR_TARGET"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12231 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238 fi
12239 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12241 set dummy ${ncn_progname}; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 if test -n "$OBJCOPY_FOR_TARGET"; then
12248 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12249 else
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12252 do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261 done
12262 done
12263 IFS=$as_save_IFS
12264
12265 fi
12266 fi
12267 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12268 if test -n "$OBJCOPY_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12270 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12274 fi
12275
12276
12277 fi
12278 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12279 done
12280 fi
12281
12282 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12283 set dummy objcopy
12284 if test $build = $target ; then
12285 OBJCOPY_FOR_TARGET="$2"
12286 else
12287 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12288 fi
12289 else
12290 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12291 fi
12292
12293 else
12294 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12295 fi
12296
12297
12298
12299
12300 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12301 if test -n "$with_build_time_tools"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12303 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12304 if test -x $with_build_time_tools/objdump; then
12305 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12306 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12308 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313 elif test $build != $host && test $have_gcc_for_target = yes; then
12314 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12315 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12316 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12317 fi
12318 fi
12319 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12320 # Extract the first word of "objdump", so it can be a program name with args.
12321 set dummy objdump; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 case $OBJDUMP_FOR_TARGET in
12328 [\\/]* | ?:[\\/]*)
12329 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12330 ;;
12331 *)
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $gcc_cv_tool_dirs
12334 do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343 done
12344 done
12345 IFS=$as_save_IFS
12346
12347 ;;
12348 esac
12349 fi
12350 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12351 if test -n "$OBJDUMP_FOR_TARGET"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12353 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357 fi
12358
12359
12360 fi
12361 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12362
12363
12364 if test -n "$OBJDUMP_FOR_TARGET"; then
12365 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12366 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12367 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12368 fi
12369
12370 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12371 for ncn_progname in objdump; do
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373 set dummy ${ncn_progname}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 if test -n "$OBJDUMP_FOR_TARGET"; then
12380 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12381 else
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12389 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 break 2
12392 fi
12393 done
12394 done
12395 IFS=$as_save_IFS
12396
12397 fi
12398 fi
12399 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12400 if test -n "$OBJDUMP_FOR_TARGET"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12402 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406 fi
12407
12408
12409 done
12410 fi
12411
12412 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12413 for ncn_progname in objdump; do
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12416 if test -x $with_build_time_tools/${ncn_progname}; then
12417 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419 $as_echo "yes" >&6; }
12420 break
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425 done
12426 fi
12427
12428 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12429 for ncn_progname in objdump; do
12430 if test -n "$ncn_target_tool_prefix"; then
12431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12443 do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12448 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12451 fi
12452 done
12453 done
12454 IFS=$as_save_IFS
12455
12456 fi
12457 fi
12458 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12459 if test -n "$OBJDUMP_FOR_TARGET"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12461 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12465 fi
12466
12467
12468 fi
12469 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12490 fi
12491 done
12492 done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12498 if test -n "$OBJDUMP_FOR_TARGET"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12500 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504 fi
12505
12506
12507 fi
12508 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12509 done
12510 fi
12511
12512 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12513 set dummy objdump
12514 if test $build = $target ; then
12515 OBJDUMP_FOR_TARGET="$2"
12516 else
12517 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12518 fi
12519 else
12520 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12521 fi
12522
12523 else
12524 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12525 fi
12526
12527
12528
12529
12530 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12531 if test -n "$with_build_time_tools"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12533 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12534 if test -x $with_build_time_tools/ranlib; then
12535 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12536 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12538 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543 elif test $build != $host && test $have_gcc_for_target = yes; then
12544 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12545 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12546 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12547 fi
12548 fi
12549 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12550 # Extract the first word of "ranlib", so it can be a program name with args.
12551 set dummy ranlib; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $RANLIB_FOR_TARGET in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12560 ;;
12561 *)
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $gcc_cv_tool_dirs
12564 do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12572 fi
12573 done
12574 done
12575 IFS=$as_save_IFS
12576
12577 ;;
12578 esac
12579 fi
12580 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12581 if test -n "$RANLIB_FOR_TARGET"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12583 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587 fi
12588
12589
12590 fi
12591 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12592
12593
12594 if test -n "$RANLIB_FOR_TARGET"; then
12595 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12596 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12597 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12598 fi
12599
12600 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12601 for ncn_progname in ranlib; do
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603 set dummy ${ncn_progname}; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 if test -n "$RANLIB_FOR_TARGET"; then
12610 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12611 else
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12614 do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12619 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12622 fi
12623 done
12624 done
12625 IFS=$as_save_IFS
12626
12627 fi
12628 fi
12629 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12630 if test -n "$RANLIB_FOR_TARGET"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12632 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637
12638
12639 done
12640 fi
12641
12642 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12643 for ncn_progname in ranlib; do
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12645 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12646 if test -x $with_build_time_tools/${ncn_progname}; then
12647 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650 break
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654 fi
12655 done
12656 fi
12657
12658 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12659 for ncn_progname in ranlib; do
12660 if test -n "$ncn_target_tool_prefix"; then
12661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12662 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12670 else
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12673 do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 break 2
12681 fi
12682 done
12683 done
12684 IFS=$as_save_IFS
12685
12686 fi
12687 fi
12688 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12689 if test -n "$RANLIB_FOR_TARGET"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12691 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696
12697
12698 fi
12699 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
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 test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_prog_RANLIB_FOR_TARGET="${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 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12728 if test -n "$RANLIB_FOR_TARGET"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12730 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12734 fi
12735
12736
12737 fi
12738 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12739 done
12740 fi
12741
12742 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12743 set dummy ranlib
12744 if test $build = $target ; then
12745 RANLIB_FOR_TARGET="$2"
12746 else
12747 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12748 fi
12749 else
12750 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12751 fi
12752
12753 else
12754 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12755 fi
12756
12757
12758
12759
12760 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12761 if test -n "$with_build_time_tools"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12763 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12764 if test -x $with_build_time_tools/readelf; then
12765 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12766 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12768 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772 fi
12773 elif test $build != $host && test $have_gcc_for_target = yes; then
12774 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12775 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12776 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12777 fi
12778 fi
12779 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12780 # Extract the first word of "readelf", so it can be a program name with args.
12781 set dummy readelf; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 case $READELF_FOR_TARGET in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $gcc_cv_tool_dirs
12794 do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803 done
12804 done
12805 IFS=$as_save_IFS
12806
12807 ;;
12808 esac
12809 fi
12810 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12811 if test -n "$READELF_FOR_TARGET"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12813 $as_echo "$READELF_FOR_TARGET" >&6; }
12814 else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12817 fi
12818
12819
12820 fi
12821 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12822
12823
12824 if test -n "$READELF_FOR_TARGET"; then
12825 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12826 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12827 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12828 fi
12829
12830 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12831 for ncn_progname in readelf; do
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833 set dummy ${ncn_progname}; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 if test -n "$READELF_FOR_TARGET"; then
12840 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853 done
12854 done
12855 IFS=$as_save_IFS
12856
12857 fi
12858 fi
12859 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12860 if test -n "$READELF_FOR_TARGET"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12862 $as_echo "$READELF_FOR_TARGET" >&6; }
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866 fi
12867
12868
12869 done
12870 fi
12871
12872 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12873 for ncn_progname in readelf; do
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12875 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12876 if test -x $with_build_time_tools/${ncn_progname}; then
12877 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879 $as_echo "yes" >&6; }
12880 break
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885 done
12886 fi
12887
12888 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12889 for ncn_progname in readelf; do
12890 if test -n "$ncn_target_tool_prefix"; then
12891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12892 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 if test -n "$READELF_FOR_TARGET"; then
12899 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12900 else
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12903 do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912 done
12913 done
12914 IFS=$as_save_IFS
12915
12916 fi
12917 fi
12918 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12919 if test -n "$READELF_FOR_TARGET"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12921 $as_echo "$READELF_FOR_TARGET" >&6; }
12922 else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12925 fi
12926
12927
12928 fi
12929 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 if test -n "$READELF_FOR_TARGET"; then
12938 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12942 do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12950 fi
12951 done
12952 done
12953 IFS=$as_save_IFS
12954
12955 fi
12956 fi
12957 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12958 if test -n "$READELF_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12960 $as_echo "$READELF_FOR_TARGET" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964 fi
12965
12966
12967 fi
12968 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12969 done
12970 fi
12971
12972 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12973 set dummy readelf
12974 if test $build = $target ; then
12975 READELF_FOR_TARGET="$2"
12976 else
12977 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12978 fi
12979 else
12980 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12981 fi
12982
12983 else
12984 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12985 fi
12986
12987
12988
12989
12990 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12991 if test -n "$with_build_time_tools"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12993 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12994 if test -x $with_build_time_tools/strip; then
12995 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12996 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12998 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12999 else
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 fi
13003 elif test $build != $host && test $have_gcc_for_target = yes; then
13004 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13005 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13006 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13007 fi
13008 fi
13009 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13010 # Extract the first word of "strip", so it can be a program name with args.
13011 set dummy strip; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 case $STRIP_FOR_TARGET in
13018 [\\/]* | ?:[\\/]*)
13019 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13020 ;;
13021 *)
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $gcc_cv_tool_dirs
13024 do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 break 2
13032 fi
13033 done
13034 done
13035 IFS=$as_save_IFS
13036
13037 ;;
13038 esac
13039 fi
13040 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13041 if test -n "$STRIP_FOR_TARGET"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13043 $as_echo "$STRIP_FOR_TARGET" >&6; }
13044 else
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048
13049
13050 fi
13051 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13052
13053
13054 if test -n "$STRIP_FOR_TARGET"; then
13055 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13056 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13057 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13058 fi
13059
13060 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13061 for ncn_progname in strip; do
13062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13063 set dummy ${ncn_progname}; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 if test -n "$STRIP_FOR_TARGET"; then
13070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13071 else
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13074 do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13081 break 2
13082 fi
13083 done
13084 done
13085 IFS=$as_save_IFS
13086
13087 fi
13088 fi
13089 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13090 if test -n "$STRIP_FOR_TARGET"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13092 $as_echo "$STRIP_FOR_TARGET" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096 fi
13097
13098
13099 done
13100 fi
13101
13102 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13103 for ncn_progname in strip; do
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13105 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13106 if test -x $with_build_time_tools/${ncn_progname}; then
13107 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13109 $as_echo "yes" >&6; }
13110 break
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115 done
13116 fi
13117
13118 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13119 for ncn_progname in strip; do
13120 if test -n "$ncn_target_tool_prefix"; then
13121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13122 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13130 else
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13141 fi
13142 done
13143 done
13144 IFS=$as_save_IFS
13145
13146 fi
13147 fi
13148 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13149 if test -n "$STRIP_FOR_TARGET"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13151 $as_echo "$STRIP_FOR_TARGET" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156
13157
13158 fi
13159 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13180 fi
13181 done
13182 done
13183 IFS=$as_save_IFS
13184
13185 fi
13186 fi
13187 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13188 if test -n "$STRIP_FOR_TARGET"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13190 $as_echo "$STRIP_FOR_TARGET" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13194 fi
13195
13196
13197 fi
13198 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13199 done
13200 fi
13201
13202 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13203 set dummy strip
13204 if test $build = $target ; then
13205 STRIP_FOR_TARGET="$2"
13206 else
13207 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13208 fi
13209 else
13210 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13211 fi
13212
13213 else
13214 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13215 fi
13216
13217
13218
13219
13220 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13221 if test -n "$with_build_time_tools"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13223 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13224 if test -x $with_build_time_tools/windres; then
13225 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13226 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13228 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233 elif test $build != $host && test $have_gcc_for_target = yes; then
13234 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13235 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13236 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13237 fi
13238 fi
13239 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13240 # Extract the first word of "windres", so it can be a program name with args.
13241 set dummy windres; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 case $WINDRES_FOR_TARGET in
13248 [\\/]* | ?:[\\/]*)
13249 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13250 ;;
13251 *)
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $gcc_cv_tool_dirs
13254 do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13259 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 break 2
13262 fi
13263 done
13264 done
13265 IFS=$as_save_IFS
13266
13267 ;;
13268 esac
13269 fi
13270 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13271 if test -n "$WINDRES_FOR_TARGET"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13273 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 fi
13278
13279
13280 fi
13281 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13282
13283
13284 if test -n "$WINDRES_FOR_TARGET"; then
13285 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13286 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13287 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13288 fi
13289
13290 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13291 for ncn_progname in windres; do
13292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293 set dummy ${ncn_progname}; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 if test -n "$WINDRES_FOR_TARGET"; then
13300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13301 else
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13304 do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13312 fi
13313 done
13314 done
13315 IFS=$as_save_IFS
13316
13317 fi
13318 fi
13319 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13320 if test -n "$WINDRES_FOR_TARGET"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13322 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13323 else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13326 fi
13327
13328
13329 done
13330 fi
13331
13332 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13333 for ncn_progname in windres; do
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13336 if test -x $with_build_time_tools/${ncn_progname}; then
13337 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339 $as_echo "yes" >&6; }
13340 break
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344 fi
13345 done
13346 fi
13347
13348 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13349 for ncn_progname in windres; do
13350 if test -n "$ncn_target_tool_prefix"; then
13351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13360 else
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13363 do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13368 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 break 2
13371 fi
13372 done
13373 done
13374 IFS=$as_save_IFS
13375
13376 fi
13377 fi
13378 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13379 if test -n "$WINDRES_FOR_TARGET"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13381 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13382 else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386
13387
13388 fi
13389 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13391 set dummy ${ncn_progname}; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13407 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 break 2
13410 fi
13411 done
13412 done
13413 IFS=$as_save_IFS
13414
13415 fi
13416 fi
13417 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13418 if test -n "$WINDRES_FOR_TARGET"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13420 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13421 else
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424 fi
13425
13426
13427 fi
13428 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13429 done
13430 fi
13431
13432 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13433 set dummy windres
13434 if test $build = $target ; then
13435 WINDRES_FOR_TARGET="$2"
13436 else
13437 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13438 fi
13439 else
13440 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13441 fi
13442
13443 else
13444 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13445 fi
13446
13447
13448
13449
13450 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13451 if test -n "$with_build_time_tools"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13453 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13454 if test -x $with_build_time_tools/windmc; then
13455 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13456 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13458 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13462 fi
13463 elif test $build != $host && test $have_gcc_for_target = yes; then
13464 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13465 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13466 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13467 fi
13468 fi
13469 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13470 # Extract the first word of "windmc", so it can be a program name with args.
13471 set dummy windmc; ac_word=$2
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473 $as_echo_n "checking for $ac_word... " >&6; }
13474 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 case $WINDMC_FOR_TARGET in
13478 [\\/]* | ?:[\\/]*)
13479 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13480 ;;
13481 *)
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $gcc_cv_tool_dirs
13484 do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13489 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491 break 2
13492 fi
13493 done
13494 done
13495 IFS=$as_save_IFS
13496
13497 ;;
13498 esac
13499 fi
13500 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13501 if test -n "$WINDMC_FOR_TARGET"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13503 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508
13509
13510 fi
13511 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13512
13513
13514 if test -n "$WINDMC_FOR_TARGET"; then
13515 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13516 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13517 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13518 fi
13519
13520 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13521 for ncn_progname in windmc; do
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523 set dummy ${ncn_progname}; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 if test -n "$WINDMC_FOR_TARGET"; then
13530 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13539 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541 break 2
13542 fi
13543 done
13544 done
13545 IFS=$as_save_IFS
13546
13547 fi
13548 fi
13549 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13550 if test -n "$WINDMC_FOR_TARGET"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13552 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13553 else
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556 fi
13557
13558
13559 done
13560 fi
13561
13562 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13563 for ncn_progname in windmc; do
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13566 if test -x $with_build_time_tools/${ncn_progname}; then
13567 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569 $as_echo "yes" >&6; }
13570 break
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575 done
13576 fi
13577
13578 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13579 for ncn_progname in windmc; do
13580 if test -n "$ncn_target_tool_prefix"; then
13581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584 $as_echo_n "checking for $ac_word... " >&6; }
13585 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13590 else
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13593 do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13598 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602 done
13603 done
13604 IFS=$as_save_IFS
13605
13606 fi
13607 fi
13608 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13609 if test -n "$WINDMC_FOR_TARGET"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13611 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13615 fi
13616
13617
13618 fi
13619 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13621 set dummy ${ncn_progname}; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13640 fi
13641 done
13642 done
13643 IFS=$as_save_IFS
13644
13645 fi
13646 fi
13647 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13648 if test -n "$WINDMC_FOR_TARGET"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13650 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655
13656
13657 fi
13658 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13659 done
13660 fi
13661
13662 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13663 set dummy windmc
13664 if test $build = $target ; then
13665 WINDMC_FOR_TARGET="$2"
13666 else
13667 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13668 fi
13669 else
13670 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13671 fi
13672
13673 else
13674 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13675 fi
13676
13677
13678 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13681 $as_echo_n "checking where to find the target ar... " >&6; }
13682 if test "x${build}" != "x${host}" ; then
13683 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13684 # We already found the complete path
13685 ac_dir=`dirname $AR_FOR_TARGET`
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13687 $as_echo "pre-installed in $ac_dir" >&6; }
13688 else
13689 # Canadian cross, just use what we found
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13691 $as_echo "pre-installed" >&6; }
13692 fi
13693 else
13694 ok=yes
13695 case " ${configdirs} " in
13696 *" binutils "*) ;;
13697 *) ok=no ;;
13698 esac
13699
13700 if test $ok = yes; then
13701 # An in-tree tool is available and we can use it
13702 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13704 $as_echo "just compiled" >&6; }
13705 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
13707 ac_dir=`dirname $AR_FOR_TARGET`
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709 $as_echo "pre-installed in $ac_dir" >&6; }
13710 elif test "x$target" = "x$host"; then
13711 # We can use an host tool
13712 AR_FOR_TARGET='$(AR)'
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13714 $as_echo "host tool" >&6; }
13715 else
13716 # We need a cross tool
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718 $as_echo "pre-installed" >&6; }
13719 fi
13720 fi
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13723 $as_echo_n "checking where to find the target as... " >&6; }
13724 if test "x${build}" != "x${host}" ; then
13725 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
13727 ac_dir=`dirname $AS_FOR_TARGET`
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729 $as_echo "pre-installed in $ac_dir" >&6; }
13730 else
13731 # Canadian cross, just use what we found
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13733 $as_echo "pre-installed" >&6; }
13734 fi
13735 else
13736 ok=yes
13737 case " ${configdirs} " in
13738 *" gas "*) ;;
13739 *) ok=no ;;
13740 esac
13741
13742 if test $ok = yes; then
13743 # An in-tree tool is available and we can use it
13744 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13746 $as_echo "just compiled" >&6; }
13747 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
13749 ac_dir=`dirname $AS_FOR_TARGET`
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751 $as_echo "pre-installed in $ac_dir" >&6; }
13752 elif test "x$target" = "x$host"; then
13753 # We can use an host tool
13754 AS_FOR_TARGET='$(AS)'
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13756 $as_echo "host tool" >&6; }
13757 else
13758 # We need a cross tool
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760 $as_echo "pre-installed" >&6; }
13761 fi
13762 fi
13763
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13765 $as_echo_n "checking where to find the target cc... " >&6; }
13766 if test "x${build}" != "x${host}" ; then
13767 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
13769 ac_dir=`dirname $CC_FOR_TARGET`
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771 $as_echo "pre-installed in $ac_dir" >&6; }
13772 else
13773 # Canadian cross, just use what we found
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775 $as_echo "pre-installed" >&6; }
13776 fi
13777 else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" gcc "*) ;;
13781 *) ok=no ;;
13782 esac
13783
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788 $as_echo "just compiled" >&6; }
13789 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
13791 ac_dir=`dirname $CC_FOR_TARGET`
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793 $as_echo "pre-installed in $ac_dir" >&6; }
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 CC_FOR_TARGET='$(CC)'
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798 $as_echo "host tool" >&6; }
13799 else
13800 # We need a cross tool
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13803 fi
13804 fi
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13807 $as_echo_n "checking where to find the target c++... " >&6; }
13808 if test "x${build}" != "x${host}" ; then
13809 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
13811 ac_dir=`dirname $CXX_FOR_TARGET`
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813 $as_echo "pre-installed in $ac_dir" >&6; }
13814 else
13815 # Canadian cross, just use what we found
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817 $as_echo "pre-installed" >&6; }
13818 fi
13819 else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" gcc "*) ;;
13823 *) ok=no ;;
13824 esac
13825 case ,${enable_languages}, in
13826 *,c++,*) ;;
13827 *) ok=no ;;
13828 esac
13829 if test $ok = yes; then
13830 # An in-tree tool is available and we can use it
13831 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13833 $as_echo "just compiled" >&6; }
13834 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13835 # We already found the complete path
13836 ac_dir=`dirname $CXX_FOR_TARGET`
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13838 $as_echo "pre-installed in $ac_dir" >&6; }
13839 elif test "x$target" = "x$host"; then
13840 # We can use an host tool
13841 CXX_FOR_TARGET='$(CXX)'
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13843 $as_echo "host tool" >&6; }
13844 else
13845 # We need a cross tool
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847 $as_echo "pre-installed" >&6; }
13848 fi
13849 fi
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13852 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13853 if test "x${build}" != "x${host}" ; then
13854 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
13856 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858 $as_echo "pre-installed in $ac_dir" >&6; }
13859 else
13860 # Canadian cross, just use what we found
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13862 $as_echo "pre-installed" >&6; }
13863 fi
13864 else
13865 ok=yes
13866 case " ${configdirs} " in
13867 *" gcc "*) ;;
13868 *) ok=no ;;
13869 esac
13870 case ,${enable_languages}, in
13871 *,c++,*) ;;
13872 *) ok=no ;;
13873 esac
13874 if test $ok = yes; then
13875 # An in-tree tool is available and we can use it
13876 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13878 $as_echo "just compiled" >&6; }
13879 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13880 # We already found the complete path
13881 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13883 $as_echo "pre-installed in $ac_dir" >&6; }
13884 elif test "x$target" = "x$host"; then
13885 # We can use an host tool
13886 RAW_CXX_FOR_TARGET='$(CXX)'
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13888 $as_echo "host tool" >&6; }
13889 else
13890 # We need a cross tool
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892 $as_echo "pre-installed" >&6; }
13893 fi
13894 fi
13895
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13897 $as_echo_n "checking where to find the target dlltool... " >&6; }
13898 if test "x${build}" != "x${host}" ; then
13899 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
13901 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903 $as_echo "pre-installed in $ac_dir" >&6; }
13904 else
13905 # Canadian cross, just use what we found
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13907 $as_echo "pre-installed" >&6; }
13908 fi
13909 else
13910 ok=yes
13911 case " ${configdirs} " in
13912 *" binutils "*) ;;
13913 *) ok=no ;;
13914 esac
13915
13916 if test $ok = yes; then
13917 # An in-tree tool is available and we can use it
13918 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13920 $as_echo "just compiled" >&6; }
13921 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
13923 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925 $as_echo "pre-installed in $ac_dir" >&6; }
13926 elif test "x$target" = "x$host"; then
13927 # We can use an host tool
13928 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13930 $as_echo "host tool" >&6; }
13931 else
13932 # We need a cross tool
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934 $as_echo "pre-installed" >&6; }
13935 fi
13936 fi
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13939 $as_echo_n "checking where to find the target gcc... " >&6; }
13940 if test "x${build}" != "x${host}" ; then
13941 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
13943 ac_dir=`dirname $GCC_FOR_TARGET`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945 $as_echo "pre-installed in $ac_dir" >&6; }
13946 else
13947 # Canadian cross, just use what we found
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949 $as_echo "pre-installed" >&6; }
13950 fi
13951 else
13952 ok=yes
13953 case " ${configdirs} " in
13954 *" gcc "*) ;;
13955 *) ok=no ;;
13956 esac
13957
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962 $as_echo "just compiled" >&6; }
13963 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
13965 ac_dir=`dirname $GCC_FOR_TARGET`
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967 $as_echo "pre-installed in $ac_dir" >&6; }
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GCC_FOR_TARGET='$()'
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972 $as_echo "host tool" >&6; }
13973 else
13974 # We need a cross tool
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13977 fi
13978 fi
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13981 $as_echo_n "checking where to find the target gfortran... " >&6; }
13982 if test "x${build}" != "x${host}" ; then
13983 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 else
13989 # Canadian cross, just use what we found
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991 $as_echo "pre-installed" >&6; }
13992 fi
13993 else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,fortran,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007 $as_echo "just compiled" >&6; }
14008 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
14010 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012 $as_echo "pre-installed in $ac_dir" >&6; }
14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017 $as_echo "host tool" >&6; }
14018 else
14019 # We need a cross tool
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14022 fi
14023 fi
14024
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14026 $as_echo_n "checking where to find the target gccgo... " >&6; }
14027 if test "x${build}" != "x${host}" ; then
14028 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $GOC_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032 $as_echo "pre-installed in $ac_dir" >&6; }
14033 else
14034 # Canadian cross, just use what we found
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036 $as_echo "pre-installed" >&6; }
14037 fi
14038 else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" gcc "*) ;;
14042 *) ok=no ;;
14043 esac
14044 case ,${enable_languages}, in
14045 *,go,*) ;;
14046 *) ok=no ;;
14047 esac
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052 $as_echo "just compiled" >&6; }
14053 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $GOC_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057 $as_echo "pre-installed in $ac_dir" >&6; }
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 GOC_FOR_TARGET='$(GOC)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062 $as_echo "host tool" >&6; }
14063 else
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14067 fi
14068 fi
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14071 $as_echo_n "checking where to find the target ld... " >&6; }
14072 if test "x${build}" != "x${host}" ; then
14073 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $LD_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077 $as_echo "pre-installed in $ac_dir" >&6; }
14078 else
14079 # Canadian cross, just use what we found
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081 $as_echo "pre-installed" >&6; }
14082 fi
14083 else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" ld "*) ;;
14087 *) ok=no ;;
14088 esac
14089
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094 $as_echo "just compiled" >&6; }
14095 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $LD_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 LD_FOR_TARGET='$(LD)'
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104 $as_echo "host tool" >&6; }
14105 else
14106 # We need a cross tool
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14109 fi
14110 fi
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14113 $as_echo_n "checking where to find the target lipo... " >&6; }
14114 if test "x${build}" != "x${host}" ; then
14115 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $LIPO_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 else
14121 # Canadian cross, just use what we found
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123 $as_echo "pre-installed" >&6; }
14124 fi
14125 else
14126 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14127 # We already found the complete path
14128 ac_dir=`dirname $LIPO_FOR_TARGET`
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14130 $as_echo "pre-installed in $ac_dir" >&6; }
14131 elif test "x$target" = "x$host"; then
14132 # We can use an host tool
14133 LIPO_FOR_TARGET='$(LIPO)'
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14135 $as_echo "host tool" >&6; }
14136 else
14137 # We need a cross tool
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139 $as_echo "pre-installed" >&6; }
14140 fi
14141 fi
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14144 $as_echo_n "checking where to find the target nm... " >&6; }
14145 if test "x${build}" != "x${host}" ; then
14146 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
14148 ac_dir=`dirname $NM_FOR_TARGET`
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150 $as_echo "pre-installed in $ac_dir" >&6; }
14151 else
14152 # Canadian cross, just use what we found
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154 $as_echo "pre-installed" >&6; }
14155 fi
14156 else
14157 ok=yes
14158 case " ${configdirs} " in
14159 *" binutils "*) ;;
14160 *) ok=no ;;
14161 esac
14162
14163 if test $ok = yes; then
14164 # An in-tree tool is available and we can use it
14165 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14167 $as_echo "just compiled" >&6; }
14168 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
14170 ac_dir=`dirname $NM_FOR_TARGET`
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172 $as_echo "pre-installed in $ac_dir" >&6; }
14173 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 NM_FOR_TARGET='$(NM)'
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177 $as_echo "host tool" >&6; }
14178 else
14179 # We need a cross tool
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181 $as_echo "pre-installed" >&6; }
14182 fi
14183 fi
14184
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14186 $as_echo_n "checking where to find the target objcopy... " >&6; }
14187 if test "x${build}" != "x${host}" ; then
14188 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192 $as_echo "pre-installed in $ac_dir" >&6; }
14193 else
14194 # Canadian cross, just use what we found
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196 $as_echo "pre-installed" >&6; }
14197 fi
14198 else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" binutils "*) ;;
14202 *) ok=no ;;
14203 esac
14204
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209 $as_echo "just compiled" >&6; }
14210 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214 $as_echo "pre-installed in $ac_dir" >&6; }
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
14217 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219 $as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223 $as_echo "pre-installed" >&6; }
14224 fi
14225 fi
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14228 $as_echo_n "checking where to find the target objdump... " >&6; }
14229 if test "x${build}" != "x${host}" ; then
14230 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234 $as_echo "pre-installed in $ac_dir" >&6; }
14235 else
14236 # Canadian cross, just use what we found
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238 $as_echo "pre-installed" >&6; }
14239 fi
14240 else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
14246
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251 $as_echo "just compiled" >&6; }
14252 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
14254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256 $as_echo "pre-installed in $ac_dir" >&6; }
14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261 $as_echo "host tool" >&6; }
14262 else
14263 # We need a cross tool
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265 $as_echo "pre-installed" >&6; }
14266 fi
14267 fi
14268
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14270 $as_echo_n "checking where to find the target ranlib... " >&6; }
14271 if test "x${build}" != "x${host}" ; then
14272 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276 $as_echo "pre-installed in $ac_dir" >&6; }
14277 else
14278 # Canadian cross, just use what we found
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280 $as_echo "pre-installed" >&6; }
14281 fi
14282 else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
14288
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293 $as_echo "just compiled" >&6; }
14294 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
14296 ac_dir=`dirname $RANLIB_FOR_TARGET`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298 $as_echo "pre-installed in $ac_dir" >&6; }
14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 RANLIB_FOR_TARGET='$(RANLIB)'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303 $as_echo "host tool" >&6; }
14304 else
14305 # We need a cross tool
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307 $as_echo "pre-installed" >&6; }
14308 fi
14309 fi
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14312 $as_echo_n "checking where to find the target readelf... " >&6; }
14313 if test "x${build}" != "x${host}" ; then
14314 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318 $as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322 $as_echo "pre-installed" >&6; }
14323 fi
14324 else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
14330
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335 $as_echo "just compiled" >&6; }
14336 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $READELF_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340 $as_echo "pre-installed in $ac_dir" >&6; }
14341 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 READELF_FOR_TARGET='$(READELF)'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345 $as_echo "host tool" >&6; }
14346 else
14347 # We need a cross tool
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349 $as_echo "pre-installed" >&6; }
14350 fi
14351 fi
14352
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14354 $as_echo_n "checking where to find the target strip... " >&6; }
14355 if test "x${build}" != "x${host}" ; then
14356 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $STRIP_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360 $as_echo "pre-installed in $ac_dir" >&6; }
14361 else
14362 # Canadian cross, just use what we found
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364 $as_echo "pre-installed" >&6; }
14365 fi
14366 else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
14372
14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
14375 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377 $as_echo "just compiled" >&6; }
14378 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
14380 ac_dir=`dirname $STRIP_FOR_TARGET`
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382 $as_echo "pre-installed in $ac_dir" >&6; }
14383 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 STRIP_FOR_TARGET='$(STRIP)'
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387 $as_echo "host tool" >&6; }
14388 else
14389 # We need a cross tool
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391 $as_echo "pre-installed" >&6; }
14392 fi
14393 fi
14394
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14396 $as_echo_n "checking where to find the target windres... " >&6; }
14397 if test "x${build}" != "x${host}" ; then
14398 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402 $as_echo "pre-installed in $ac_dir" >&6; }
14403 else
14404 # Canadian cross, just use what we found
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406 $as_echo "pre-installed" >&6; }
14407 fi
14408 else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
14414
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419 $as_echo "just compiled" >&6; }
14420 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $WINDRES_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424 $as_echo "pre-installed in $ac_dir" >&6; }
14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 WINDRES_FOR_TARGET='$(WINDRES)'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429 $as_echo "host tool" >&6; }
14430 else
14431 # We need a cross tool
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433 $as_echo "pre-installed" >&6; }
14434 fi
14435 fi
14436
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14438 $as_echo_n "checking where to find the target windmc... " >&6; }
14439 if test "x${build}" != "x${host}" ; then
14440 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 else
14446 # Canadian cross, just use what we found
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448 $as_echo "pre-installed" >&6; }
14449 fi
14450 else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
14456
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461 $as_echo "just compiled" >&6; }
14462 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $WINDMC_FOR_TARGET`
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466 $as_echo "pre-installed in $ac_dir" >&6; }
14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 WINDMC_FOR_TARGET='$(WINDMC)'
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471 $as_echo "host tool" >&6; }
14472 else
14473 # We need a cross tool
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475 $as_echo "pre-installed" >&6; }
14476 fi
14477 fi
14478
14479
14480
14481
14482
14483 # Certain tools may need extra flags.
14484 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14485 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14486 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14487
14488 # When building target libraries, except in a Canadian cross, we use
14489 # the same toolchain as the compiler we just built.
14490 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14491 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14492 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14493 if test $host = $build; then
14494 case " $configdirs " in
14495 *" gcc "*)
14496 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14497 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14498 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14499 ;;
14500 esac
14501 fi
14502
14503
14504
14505
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14508 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14509 # Check whether --enable-maintainer-mode was given.
14510 if test "${enable_maintainer_mode+set}" = set; then :
14511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14512 else
14513 USE_MAINTAINER_MODE=no
14514 fi
14515
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14517 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14518
14519
14520 if test "$USE_MAINTAINER_MODE" = yes; then
14521 MAINTAINER_MODE_TRUE=
14522 MAINTAINER_MODE_FALSE='#'
14523 else
14524 MAINTAINER_MODE_TRUE='#'
14525 MAINTAINER_MODE_FALSE=
14526 fi
14527 MAINT=$MAINTAINER_MODE_TRUE
14528
14529 # ---------------------
14530 # GCC bootstrap support
14531 # ---------------------
14532
14533 # Stage specific cflags for build.
14534 stage1_cflags="-g"
14535 case $build in
14536 vax-*-*)
14537 case ${GCC} in
14538 yes) stage1_cflags="-g -Wa,-J" ;;
14539 *) stage1_cflags="-g -J" ;;
14540 esac ;;
14541 esac
14542
14543
14544
14545 # Enable --enable-checking in stage1 of the compiler.
14546 # Check whether --enable-stage1-checking was given.
14547 if test "${enable_stage1_checking+set}" = set; then :
14548 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14549 else
14550 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14551 # For --disable-checking or implicit --enable-checking=release, avoid
14552 # setting --enable-checking=gc in the default stage1 checking for LTO
14553 # bootstraps. See PR62077.
14554 case $BUILD_CONFIG in
14555 *lto*)
14556 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14557 *)
14558 stage1_checking=--enable-checking=yes,types;;
14559 esac
14560 if test "x$enable_checking" = x && \
14561 test -d ${srcdir}/gcc && \
14562 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14563 stage1_checking=--enable-checking=yes,types,extra
14564 fi
14565 else
14566 stage1_checking=--enable-checking=$enable_checking,types
14567 fi
14568 fi
14569
14570
14571
14572 # Enable -Werror in bootstrap stage2 and later.
14573 # Check whether --enable-werror was given.
14574 if test "${enable_werror+set}" = set; then :
14575 enableval=$enable_werror;
14576 else
14577 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14578 enable_werror=yes
14579 else
14580 enable_werror=no
14581 fi
14582 fi
14583
14584 case ${enable_werror} in
14585 yes) stage2_werror_flag="--enable-werror-always" ;;
14586 *) stage2_werror_flag="" ;;
14587 esac
14588
14589
14590 # Enable --enable-host-shared.
14591 # Check whether --enable-host-shared was given.
14592 if test "${enable_host_shared+set}" = set; then :
14593 enableval=$enable_host_shared; host_shared=$enableval
14594 else
14595 host_shared=no
14596 fi
14597
14598
14599
14600 # PR jit/64780: Require the user to explicitly specify
14601 # --enable-host-shared if the jit is enabled, hinting
14602 # that they might want to do a separate configure/build of
14603 # the jit, to avoid users from slowing down the rest of the
14604 # compiler by enabling the jit.
14605 if test ${host_shared} = "no" ; then
14606 case "${enable_languages}" in
14607 *jit*)
14608 as_fn_error "
14609 Enabling language \"jit\" requires --enable-host-shared.
14610
14611 --enable-host-shared typically slows the rest of the compiler down by
14612 a few %, so you must explicitly enable it.
14613
14614 If you want to build both the jit and the regular compiler, it is often
14615 best to do this via two separate configure/builds, in separate
14616 directories, to avoid imposing the performance cost of
14617 --enable-host-shared on the regular compiler." "$LINENO" 5
14618 ;;
14619 *)
14620 ;;
14621 esac
14622 fi
14623
14624 # Specify what files to not compare during bootstrap.
14625
14626 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14627 case "$target" in
14628 hppa*64*-*-hpux*) ;;
14629 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14630 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14631 esac
14632
14633
14634 ac_config_files="$ac_config_files Makefile"
14635
14636 cat >confcache <<\_ACEOF
14637 # This file is a shell script that caches the results of configure
14638 # tests run on this system so they can be shared between configure
14639 # scripts and configure runs, see configure's option --config-cache.
14640 # It is not useful on other systems. If it contains results you don't
14641 # want to keep, you may remove or edit it.
14642 #
14643 # config.status only pays attention to the cache file if you give it
14644 # the --recheck option to rerun configure.
14645 #
14646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14648 # following values.
14649
14650 _ACEOF
14651
14652 # The following way of writing the cache mishandles newlines in values,
14653 # but we know of no workaround that is simple, portable, and efficient.
14654 # So, we kill variables containing newlines.
14655 # Ultrix sh set writes to stderr and can't be redirected directly,
14656 # and sets the high bit in the cache file unless we assign to the vars.
14657 (
14658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14659 eval ac_val=\$$ac_var
14660 case $ac_val in #(
14661 *${as_nl}*)
14662 case $ac_var in #(
14663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14664 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14665 esac
14666 case $ac_var in #(
14667 _ | IFS | as_nl) ;; #(
14668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14669 *) { eval $ac_var=; unset $ac_var;} ;;
14670 esac ;;
14671 esac
14672 done
14673
14674 (set) 2>&1 |
14675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14676 *${as_nl}ac_space=\ *)
14677 # `set' does not quote correctly, so add quotes: double-quote
14678 # substitution turns \\\\ into \\, and sed turns \\ into \.
14679 sed -n \
14680 "s/'/'\\\\''/g;
14681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14682 ;; #(
14683 *)
14684 # `set' quotes correctly as required by POSIX, so do not add quotes.
14685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14686 ;;
14687 esac |
14688 sort
14689 ) |
14690 sed '
14691 /^ac_cv_env_/b end
14692 t clear
14693 :clear
14694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14695 t end
14696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14697 :end' >>confcache
14698 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14699 if test -w "$cache_file"; then
14700 test "x$cache_file" != "x/dev/null" &&
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14702 $as_echo "$as_me: updating cache $cache_file" >&6;}
14703 cat confcache >$cache_file
14704 else
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14706 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14707 fi
14708 fi
14709 rm -f confcache
14710
14711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14712 # Let make expand exec_prefix.
14713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14714
14715 # Transform confdefs.h into DEFS.
14716 # Protect against shell expansion while executing Makefile rules.
14717 # Protect against Makefile macro expansion.
14718 #
14719 # If the first sed substitution is executed (which looks for macros that
14720 # take arguments), then branch to the quote section. Otherwise,
14721 # look for a macro that doesn't take arguments.
14722 ac_script='
14723 :mline
14724 /\\$/{
14725 N
14726 s,\\\n,,
14727 b mline
14728 }
14729 t clear
14730 :clear
14731 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14732 t quote
14733 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14734 t quote
14735 b any
14736 :quote
14737 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14738 s/\[/\\&/g
14739 s/\]/\\&/g
14740 s/\$/$$/g
14741 H
14742 :any
14743 ${
14744 g
14745 s/^\n//
14746 s/\n/ /g
14747 p
14748 }
14749 '
14750 DEFS=`sed -n "$ac_script" confdefs.h`
14751
14752
14753 ac_libobjs=
14754 ac_ltlibobjs=
14755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14756 # 1. Remove the extension, and $U if already installed.
14757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14760 # will be set to the directory where LIBOBJS objects are built.
14761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14763 done
14764 LIBOBJS=$ac_libobjs
14765
14766 LTLIBOBJS=$ac_ltlibobjs
14767
14768
14769
14770 : ${CONFIG_STATUS=./config.status}
14771 ac_write_fail=0
14772 ac_clean_files_save=$ac_clean_files
14773 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14775 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14776 as_write_fail=0
14777 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14778 #! $SHELL
14779 # Generated by $as_me.
14780 # Run this file to recreate the current configuration.
14781 # Compiler output produced by configure, useful for debugging
14782 # configure, is in config.log if it exists.
14783
14784 debug=false
14785 ac_cs_recheck=false
14786 ac_cs_silent=false
14787
14788 SHELL=\${CONFIG_SHELL-$SHELL}
14789 export SHELL
14790 _ASEOF
14791 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14792 ## -------------------- ##
14793 ## M4sh Initialization. ##
14794 ## -------------------- ##
14795
14796 # Be more Bourne compatible
14797 DUALCASE=1; export DUALCASE # for MKS sh
14798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14799 emulate sh
14800 NULLCMD=:
14801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14802 # is contrary to our usage. Disable this feature.
14803 alias -g '${1+"$@"}'='"$@"'
14804 setopt NO_GLOB_SUBST
14805 else
14806 case `(set -o) 2>/dev/null` in #(
14807 *posix*) :
14808 set -o posix ;; #(
14809 *) :
14810 ;;
14811 esac
14812 fi
14813
14814
14815 as_nl='
14816 '
14817 export as_nl
14818 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14819 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14822 # Prefer a ksh shell builtin over an external printf program on Solaris,
14823 # but without wasting forks for bash or zsh.
14824 if test -z "$BASH_VERSION$ZSH_VERSION" \
14825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14826 as_echo='print -r --'
14827 as_echo_n='print -rn --'
14828 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14829 as_echo='printf %s\n'
14830 as_echo_n='printf %s'
14831 else
14832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14834 as_echo_n='/usr/ucb/echo -n'
14835 else
14836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14837 as_echo_n_body='eval
14838 arg=$1;
14839 case $arg in #(
14840 *"$as_nl"*)
14841 expr "X$arg" : "X\\(.*\\)$as_nl";
14842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14843 esac;
14844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14845 '
14846 export as_echo_n_body
14847 as_echo_n='sh -c $as_echo_n_body as_echo'
14848 fi
14849 export as_echo_body
14850 as_echo='sh -c $as_echo_body as_echo'
14851 fi
14852
14853 # The user is always right.
14854 if test "${PATH_SEPARATOR+set}" != set; then
14855 PATH_SEPARATOR=:
14856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14858 PATH_SEPARATOR=';'
14859 }
14860 fi
14861
14862
14863 # IFS
14864 # We need space, tab and new line, in precisely that order. Quoting is
14865 # there to prevent editors from complaining about space-tab.
14866 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14867 # splitting by setting IFS to empty value.)
14868 IFS=" "" $as_nl"
14869
14870 # Find who we are. Look in the path if we contain no directory separator.
14871 case $0 in #((
14872 *[\\/]* ) as_myself=$0 ;;
14873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874 for as_dir in $PATH
14875 do
14876 IFS=$as_save_IFS
14877 test -z "$as_dir" && as_dir=.
14878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14879 done
14880 IFS=$as_save_IFS
14881
14882 ;;
14883 esac
14884 # We did not find ourselves, most probably we were run as `sh COMMAND'
14885 # in which case we are not to be found in the path.
14886 if test "x$as_myself" = x; then
14887 as_myself=$0
14888 fi
14889 if test ! -f "$as_myself"; then
14890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14891 exit 1
14892 fi
14893
14894 # Unset variables that we do not need and which cause bugs (e.g. in
14895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14896 # suppresses any "Segmentation fault" message there. '((' could
14897 # trigger a bug in pdksh 5.2.14.
14898 for as_var in BASH_ENV ENV MAIL MAILPATH
14899 do eval test x\${$as_var+set} = xset \
14900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14901 done
14902 PS1='$ '
14903 PS2='> '
14904 PS4='+ '
14905
14906 # NLS nuisances.
14907 LC_ALL=C
14908 export LC_ALL
14909 LANGUAGE=C
14910 export LANGUAGE
14911
14912 # CDPATH.
14913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14914
14915
14916 # as_fn_error ERROR [LINENO LOG_FD]
14917 # ---------------------------------
14918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14920 # script with status $?, using 1 if that was 0.
14921 as_fn_error ()
14922 {
14923 as_status=$?; test $as_status -eq 0 && as_status=1
14924 if test "$3"; then
14925 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14927 fi
14928 $as_echo "$as_me: error: $1" >&2
14929 as_fn_exit $as_status
14930 } # as_fn_error
14931
14932
14933 # as_fn_set_status STATUS
14934 # -----------------------
14935 # Set $? to STATUS, without forking.
14936 as_fn_set_status ()
14937 {
14938 return $1
14939 } # as_fn_set_status
14940
14941 # as_fn_exit STATUS
14942 # -----------------
14943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14944 as_fn_exit ()
14945 {
14946 set +e
14947 as_fn_set_status $1
14948 exit $1
14949 } # as_fn_exit
14950
14951 # as_fn_unset VAR
14952 # ---------------
14953 # Portably unset VAR.
14954 as_fn_unset ()
14955 {
14956 { eval $1=; unset $1;}
14957 }
14958 as_unset=as_fn_unset
14959 # as_fn_append VAR VALUE
14960 # ----------------------
14961 # Append the text in VALUE to the end of the definition contained in VAR. Take
14962 # advantage of any shell optimizations that allow amortized linear growth over
14963 # repeated appends, instead of the typical quadratic growth present in naive
14964 # implementations.
14965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14966 eval 'as_fn_append ()
14967 {
14968 eval $1+=\$2
14969 }'
14970 else
14971 as_fn_append ()
14972 {
14973 eval $1=\$$1\$2
14974 }
14975 fi # as_fn_append
14976
14977 # as_fn_arith ARG...
14978 # ------------------
14979 # Perform arithmetic evaluation on the ARGs, and store the result in the
14980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14981 # must be portable across $(()) and expr.
14982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14983 eval 'as_fn_arith ()
14984 {
14985 as_val=$(( $* ))
14986 }'
14987 else
14988 as_fn_arith ()
14989 {
14990 as_val=`expr "$@" || test $? -eq 1`
14991 }
14992 fi # as_fn_arith
14993
14994
14995 if expr a : '\(a\)' >/dev/null 2>&1 &&
14996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14997 as_expr=expr
14998 else
14999 as_expr=false
15000 fi
15001
15002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15003 as_basename=basename
15004 else
15005 as_basename=false
15006 fi
15007
15008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15009 as_dirname=dirname
15010 else
15011 as_dirname=false
15012 fi
15013
15014 as_me=`$as_basename -- "$0" ||
15015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15016 X"$0" : 'X\(//\)$' \| \
15017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15018 $as_echo X/"$0" |
15019 sed '/^.*\/\([^/][^/]*\)\/*$/{
15020 s//\1/
15021 q
15022 }
15023 /^X\/\(\/\/\)$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\/\(\/\).*/{
15028 s//\1/
15029 q
15030 }
15031 s/.*/./; q'`
15032
15033 # Avoid depending upon Character Ranges.
15034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15037 as_cr_digits='0123456789'
15038 as_cr_alnum=$as_cr_Letters$as_cr_digits
15039
15040 ECHO_C= ECHO_N= ECHO_T=
15041 case `echo -n x` in #(((((
15042 -n*)
15043 case `echo 'xy\c'` in
15044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15045 xy) ECHO_C='\c';;
15046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15047 ECHO_T=' ';;
15048 esac;;
15049 *)
15050 ECHO_N='-n';;
15051 esac
15052
15053 rm -f conf$$ conf$$.exe conf$$.file
15054 if test -d conf$$.dir; then
15055 rm -f conf$$.dir/conf$$.file
15056 else
15057 rm -f conf$$.dir
15058 mkdir conf$$.dir 2>/dev/null
15059 fi
15060 if (echo >conf$$.file) 2>/dev/null; then
15061 if ln -s conf$$.file conf$$ 2>/dev/null; then
15062 as_ln_s='ln -s'
15063 # ... but there are two gotchas:
15064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15066 # In both cases, we have to default to `cp -p'.
15067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15068 as_ln_s='cp -p'
15069 elif ln conf$$.file conf$$ 2>/dev/null; then
15070 as_ln_s=ln
15071 else
15072 as_ln_s='cp -p'
15073 fi
15074 else
15075 as_ln_s='cp -p'
15076 fi
15077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15078 rmdir conf$$.dir 2>/dev/null
15079
15080
15081 # as_fn_mkdir_p
15082 # -------------
15083 # Create "$as_dir" as a directory, including parents if necessary.
15084 as_fn_mkdir_p ()
15085 {
15086
15087 case $as_dir in #(
15088 -*) as_dir=./$as_dir;;
15089 esac
15090 test -d "$as_dir" || eval $as_mkdir_p || {
15091 as_dirs=
15092 while :; do
15093 case $as_dir in #(
15094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15095 *) as_qdir=$as_dir;;
15096 esac
15097 as_dirs="'$as_qdir' $as_dirs"
15098 as_dir=`$as_dirname -- "$as_dir" ||
15099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15100 X"$as_dir" : 'X\(//\)[^/]' \| \
15101 X"$as_dir" : 'X\(//\)$' \| \
15102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15103 $as_echo X"$as_dir" |
15104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15105 s//\1/
15106 q
15107 }
15108 /^X\(\/\/\)[^/].*/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\/\)$/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\).*/{
15117 s//\1/
15118 q
15119 }
15120 s/.*/./; q'`
15121 test -d "$as_dir" && break
15122 done
15123 test -z "$as_dirs" || eval "mkdir $as_dirs"
15124 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15125
15126
15127 } # as_fn_mkdir_p
15128 if mkdir -p . 2>/dev/null; then
15129 as_mkdir_p='mkdir -p "$as_dir"'
15130 else
15131 test -d ./-p && rmdir ./-p
15132 as_mkdir_p=false
15133 fi
15134
15135 if test -x / >/dev/null 2>&1; then
15136 as_test_x='test -x'
15137 else
15138 if ls -dL / >/dev/null 2>&1; then
15139 as_ls_L_option=L
15140 else
15141 as_ls_L_option=
15142 fi
15143 as_test_x='
15144 eval sh -c '\''
15145 if test -d "$1"; then
15146 test -d "$1/.";
15147 else
15148 case $1 in #(
15149 -*)set "./$1";;
15150 esac;
15151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15152 ???[sx]*):;;*)false;;esac;fi
15153 '\'' sh
15154 '
15155 fi
15156 as_executable_p=$as_test_x
15157
15158 # Sed expression to map a string onto a valid CPP name.
15159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15160
15161 # Sed expression to map a string onto a valid variable name.
15162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15163
15164
15165 exec 6>&1
15166 ## ----------------------------------- ##
15167 ## Main body of $CONFIG_STATUS script. ##
15168 ## ----------------------------------- ##
15169 _ASEOF
15170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15171
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173 # Save the log message, to keep $0 and so on meaningful, and to
15174 # report actual input values of CONFIG_FILES etc. instead of their
15175 # values after options handling.
15176 ac_log="
15177 This file was extended by $as_me, which was
15178 generated by GNU Autoconf 2.64. Invocation command line was
15179
15180 CONFIG_FILES = $CONFIG_FILES
15181 CONFIG_HEADERS = $CONFIG_HEADERS
15182 CONFIG_LINKS = $CONFIG_LINKS
15183 CONFIG_COMMANDS = $CONFIG_COMMANDS
15184 $ $0 $@
15185
15186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15187 "
15188
15189 _ACEOF
15190
15191 case $ac_config_files in *"
15192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15193 esac
15194
15195
15196
15197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198 # Files that config.status was made for.
15199 config_files="$ac_config_files"
15200
15201 _ACEOF
15202
15203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204 ac_cs_usage="\
15205 \`$as_me' instantiates files and other configuration actions
15206 from templates according to the current configuration. Unless the files
15207 and actions are specified as TAGs, all are instantiated by default.
15208
15209 Usage: $0 [OPTION]... [TAG]...
15210
15211 -h, --help print this help, then exit
15212 -V, --version print version number and configuration settings, then exit
15213 -q, --quiet, --silent
15214 do not print progress messages
15215 -d, --debug don't remove temporary files
15216 --recheck update $as_me by reconfiguring in the same conditions
15217 --file=FILE[:TEMPLATE]
15218 instantiate the configuration file FILE
15219
15220 Configuration files:
15221 $config_files
15222
15223 Report bugs to the package provider."
15224
15225 _ACEOF
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 ac_cs_version="\\
15228 config.status
15229 configured by $0, generated by GNU Autoconf 2.64,
15230 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15231
15232 Copyright (C) 2009 Free Software Foundation, Inc.
15233 This config.status script is free software; the Free Software Foundation
15234 gives unlimited permission to copy, distribute and modify it."
15235
15236 ac_pwd='$ac_pwd'
15237 srcdir='$srcdir'
15238 INSTALL='$INSTALL'
15239 AWK='$AWK'
15240 test -n "\$AWK" || AWK=awk
15241 _ACEOF
15242
15243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244 # The default lists apply if the user does not specify any file.
15245 ac_need_defaults=:
15246 while test $# != 0
15247 do
15248 case $1 in
15249 --*=*)
15250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15252 ac_shift=:
15253 ;;
15254 *)
15255 ac_option=$1
15256 ac_optarg=$2
15257 ac_shift=shift
15258 ;;
15259 esac
15260
15261 case $ac_option in
15262 # Handling of the options.
15263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15264 ac_cs_recheck=: ;;
15265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15266 $as_echo "$ac_cs_version"; exit ;;
15267 --debug | --debu | --deb | --de | --d | -d )
15268 debug=: ;;
15269 --file | --fil | --fi | --f )
15270 $ac_shift
15271 case $ac_optarg in
15272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15273 esac
15274 as_fn_append CONFIG_FILES " '$ac_optarg'"
15275 ac_need_defaults=false;;
15276 --he | --h | --help | --hel | -h )
15277 $as_echo "$ac_cs_usage"; exit ;;
15278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15280 ac_cs_silent=: ;;
15281
15282 # This is an error.
15283 -*) as_fn_error "unrecognized option: \`$1'
15284 Try \`$0 --help' for more information." ;;
15285
15286 *) as_fn_append ac_config_targets " $1"
15287 ac_need_defaults=false ;;
15288
15289 esac
15290 shift
15291 done
15292
15293 ac_configure_extra_args=
15294
15295 if $ac_cs_silent; then
15296 exec 6>/dev/null
15297 ac_configure_extra_args="$ac_configure_extra_args --silent"
15298 fi
15299
15300 _ACEOF
15301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15302 if \$ac_cs_recheck; then
15303 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15304 shift
15305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15306 CONFIG_SHELL='$SHELL'
15307 export CONFIG_SHELL
15308 exec "\$@"
15309 fi
15310
15311 _ACEOF
15312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313 exec 5>>config.log
15314 {
15315 echo
15316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15317 ## Running $as_me. ##
15318 _ASBOX
15319 $as_echo "$ac_log"
15320 } >&5
15321
15322 _ACEOF
15323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 #
15325 # INIT-COMMANDS
15326 #
15327 extrasub_build="$extrasub_build"
15328 extrasub_host="$extrasub_host"
15329 extrasub_target="$extrasub_target"
15330
15331 _ACEOF
15332
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15334
15335 # Handling of arguments.
15336 for ac_config_target in $ac_config_targets
15337 do
15338 case $ac_config_target in
15339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15340
15341 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15342 esac
15343 done
15344
15345
15346 # If the user did not use the arguments to specify the items to instantiate,
15347 # then the envvar interface is used. Set only those that are not.
15348 # We use the long form for the default assignment because of an extremely
15349 # bizarre bug on SunOS 4.1.3.
15350 if $ac_need_defaults; then
15351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15352 fi
15353
15354 # Have a temporary directory for convenience. Make it in the build tree
15355 # simply because there is no reason against having it here, and in addition,
15356 # creating and moving files from /tmp can sometimes cause problems.
15357 # Hook for its removal unless debugging.
15358 # Note that there is a small window in which the directory will not be cleaned:
15359 # after its creation but before its name has been assigned to `$tmp'.
15360 $debug ||
15361 {
15362 tmp=
15363 trap 'exit_status=$?
15364 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15365 ' 0
15366 trap 'as_fn_exit 1' 1 2 13 15
15367 }
15368 # Create a (secure) tmp directory for tmp files.
15369
15370 {
15371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15372 test -n "$tmp" && test -d "$tmp"
15373 } ||
15374 {
15375 tmp=./conf$$-$RANDOM
15376 (umask 077 && mkdir "$tmp")
15377 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15378
15379 # Set up the scripts for CONFIG_FILES section.
15380 # No need to generate them if there are no CONFIG_FILES.
15381 # This happens for instance with `./config.status config.h'.
15382 if test -n "$CONFIG_FILES"; then
15383
15384 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15385 ac_cs_awk_getline=:
15386 ac_cs_awk_pipe_init=
15387 ac_cs_awk_read_file='
15388 while ((getline aline < (F[key])) > 0)
15389 print(aline)
15390 close(F[key])'
15391 ac_cs_awk_pipe_fini=
15392 else
15393 ac_cs_awk_getline=false
15394 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15395 ac_cs_awk_read_file='
15396 print "|#_!!_#|"
15397 print "cat " F[key] " &&"
15398 '$ac_cs_awk_pipe_init
15399 # The final `:' finishes the AND list.
15400 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15401 fi
15402 ac_cr=`echo X | tr X '\015'`
15403 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15404 # But we know of no other shell where ac_cr would be empty at this
15405 # point, so we can use a bashism as a fallback.
15406 if test "x$ac_cr" = x; then
15407 eval ac_cr=\$\'\\r\'
15408 fi
15409 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15410 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15411 ac_cs_awk_cr='\r'
15412 else
15413 ac_cs_awk_cr=$ac_cr
15414 fi
15415
15416 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15417 _ACEOF
15418
15419 # Create commands to substitute file output variables.
15420 {
15421 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15422 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15423 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15424 echo "_ACAWK" &&
15425 echo "_ACEOF"
15426 } >conf$$files.sh &&
15427 . ./conf$$files.sh ||
15428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15429 rm -f conf$$files.sh
15430
15431 {
15432 echo "cat >conf$$subs.awk <<_ACEOF" &&
15433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15434 echo "_ACEOF"
15435 } >conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15437 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15438 ac_delim='%!_!# '
15439 for ac_last_try in false false false false false :; do
15440 . ./conf$$subs.sh ||
15441 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15442
15443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15444 if test $ac_delim_n = $ac_delim_num; then
15445 break
15446 elif $ac_last_try; then
15447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15448 else
15449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15450 fi
15451 done
15452 rm -f conf$$subs.sh
15453
15454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15456 _ACEOF
15457 sed -n '
15458 h
15459 s/^/S["/; s/!.*/"]=/
15460 p
15461 g
15462 s/^[^!]*!//
15463 :repl
15464 t repl
15465 s/'"$ac_delim"'$//
15466 t delim
15467 :nl
15468 h
15469 s/\(.\{148\}\).*/\1/
15470 t more1
15471 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15472 p
15473 n
15474 b repl
15475 :more1
15476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15477 p
15478 g
15479 s/.\{148\}//
15480 t nl
15481 :delim
15482 h
15483 s/\(.\{148\}\).*/\1/
15484 t more2
15485 s/["\\]/\\&/g; s/^/"/; s/$/"/
15486 p
15487 b
15488 :more2
15489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15490 p
15491 g
15492 s/.\{148\}//
15493 t delim
15494 ' <conf$$subs.awk | sed '
15495 /^[^""]/{
15496 N
15497 s/\n//
15498 }
15499 ' >>$CONFIG_STATUS || ac_write_fail=1
15500 rm -f conf$$subs.awk
15501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502 _ACAWK
15503 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15504 for (key in S) S_is_set[key] = 1
15505 FS = "\a"
15506 \$ac_cs_awk_pipe_init
15507 }
15508 {
15509 line = $ 0
15510 nfields = split(line, field, "@")
15511 substed = 0
15512 len = length(field[1])
15513 for (i = 2; i < nfields; i++) {
15514 key = field[i]
15515 keylen = length(key)
15516 if (S_is_set[key]) {
15517 value = S[key]
15518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15519 len += length(value) + length(field[++i])
15520 substed = 1
15521 } else
15522 len += 1 + keylen
15523 }
15524 if (nfields == 3 && !substed) {
15525 key = field[2]
15526 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15527 \$ac_cs_awk_read_file
15528 next
15529 }
15530 }
15531 print line
15532 }
15533 \$ac_cs_awk_pipe_fini
15534 _ACAWK
15535 _ACEOF
15536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15537 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15539 else
15540 cat
15541 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15542 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15543 _ACEOF
15544
15545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15547 # trailing colons and then remove the whole line if VPATH becomes empty
15548 # (actually we leave an empty line to preserve line numbers).
15549 if test "x$srcdir" = x.; then
15550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15551 s/:*\$(srcdir):*/:/
15552 s/:*\${srcdir}:*/:/
15553 s/:*@srcdir@:*/:/
15554 s/^\([^=]*=[ ]*\):*/\1/
15555 s/:*$//
15556 s/^[^=]*=[ ]*$//
15557 }'
15558 fi
15559
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 fi # test -n "$CONFIG_FILES"
15562
15563
15564 eval set X " :F $CONFIG_FILES "
15565 shift
15566 for ac_tag
15567 do
15568 case $ac_tag in
15569 :[FHLC]) ac_mode=$ac_tag; continue;;
15570 esac
15571 case $ac_mode$ac_tag in
15572 :[FHL]*:*);;
15573 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15574 :[FH]-) ac_tag=-:-;;
15575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15576 esac
15577 ac_save_IFS=$IFS
15578 IFS=:
15579 set x $ac_tag
15580 IFS=$ac_save_IFS
15581 shift
15582 ac_file=$1
15583 shift
15584
15585 case $ac_mode in
15586 :L) ac_source=$1;;
15587 :[FH])
15588 ac_file_inputs=
15589 for ac_f
15590 do
15591 case $ac_f in
15592 -) ac_f="$tmp/stdin";;
15593 *) # Look for the file first in the build tree, then in the source tree
15594 # (if the path is not absolute). The absolute path cannot be DOS-style,
15595 # because $ac_f cannot contain `:'.
15596 test -f "$ac_f" ||
15597 case $ac_f in
15598 [\\/$]*) false;;
15599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15600 esac ||
15601 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15602 esac
15603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15604 as_fn_append ac_file_inputs " '$ac_f'"
15605 done
15606
15607 # Let's still pretend it is `configure' which instantiates (i.e., don't
15608 # use $as_me), people would be surprised to read:
15609 # /* config.h. Generated by config.status. */
15610 configure_input='Generated from '`
15611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15612 `' by configure.'
15613 if test x"$ac_file" != x-; then
15614 configure_input="$ac_file. $configure_input"
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15616 $as_echo "$as_me: creating $ac_file" >&6;}
15617 fi
15618 # Neutralize special characters interpreted by sed in replacement strings.
15619 case $configure_input in #(
15620 *\&* | *\|* | *\\* )
15621 ac_sed_conf_input=`$as_echo "$configure_input" |
15622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15623 *) ac_sed_conf_input=$configure_input;;
15624 esac
15625
15626 case $ac_tag in
15627 *:-:* | *:-) cat >"$tmp/stdin" \
15628 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15629 esac
15630 ;;
15631 esac
15632
15633 ac_dir=`$as_dirname -- "$ac_file" ||
15634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15635 X"$ac_file" : 'X\(//\)[^/]' \| \
15636 X"$ac_file" : 'X\(//\)$' \| \
15637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15638 $as_echo X"$ac_file" |
15639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\(\/\/\)[^/].*/{
15644 s//\1/
15645 q
15646 }
15647 /^X\(\/\/\)$/{
15648 s//\1/
15649 q
15650 }
15651 /^X\(\/\).*/{
15652 s//\1/
15653 q
15654 }
15655 s/.*/./; q'`
15656 as_dir="$ac_dir"; as_fn_mkdir_p
15657 ac_builddir=.
15658
15659 case "$ac_dir" in
15660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15661 *)
15662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15663 # A ".." for each directory in $ac_dir_suffix.
15664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15665 case $ac_top_builddir_sub in
15666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15668 esac ;;
15669 esac
15670 ac_abs_top_builddir=$ac_pwd
15671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15672 # for backward compatibility:
15673 ac_top_builddir=$ac_top_build_prefix
15674
15675 case $srcdir in
15676 .) # We are building in place.
15677 ac_srcdir=.
15678 ac_top_srcdir=$ac_top_builddir_sub
15679 ac_abs_top_srcdir=$ac_pwd ;;
15680 [\\/]* | ?:[\\/]* ) # Absolute name.
15681 ac_srcdir=$srcdir$ac_dir_suffix;
15682 ac_top_srcdir=$srcdir
15683 ac_abs_top_srcdir=$srcdir ;;
15684 *) # Relative name.
15685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15686 ac_top_srcdir=$ac_top_build_prefix$srcdir
15687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15688 esac
15689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15690
15691
15692 case $ac_mode in
15693 :F)
15694 #
15695 # CONFIG_FILE
15696 #
15697
15698 case $INSTALL in
15699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15701 esac
15702 _ACEOF
15703
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 # If the template does not know about datarootdir, expand it.
15706 # FIXME: This hack should be removed a few years after 2.60.
15707 ac_datarootdir_hack=; ac_datarootdir_seen=
15708 ac_sed_dataroot='
15709 /datarootdir/ {
15710 p
15711 q
15712 }
15713 /@datadir@/p
15714 /@docdir@/p
15715 /@infodir@/p
15716 /@localedir@/p
15717 /@mandir@/p'
15718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719 *datarootdir*) ac_datarootdir_seen=yes;;
15720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15723 _ACEOF
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_datarootdir_hack='
15726 s&@datadir@&$datadir&g
15727 s&@docdir@&$docdir&g
15728 s&@infodir@&$infodir&g
15729 s&@localedir@&$localedir&g
15730 s&@mandir@&$mandir&g
15731 s&\\\${datarootdir}&$datarootdir&g' ;;
15732 esac
15733 _ACEOF
15734
15735 # Neutralize VPATH when `$srcdir' = `.'.
15736 # Shell code in configure.ac might set extrasub.
15737 # FIXME: do we really want to maintain this feature?
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 ac_sed_extra="$ac_vpsub
15740 $extrasub
15741 _ACEOF
15742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15743 :t
15744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15745 s|@configure_input@|$ac_sed_conf_input|;t t
15746 s&@top_builddir@&$ac_top_builddir_sub&;t t
15747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748 s&@srcdir@&$ac_srcdir&;t t
15749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750 s&@top_srcdir@&$ac_top_srcdir&;t t
15751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752 s&@builddir@&$ac_builddir&;t t
15753 s&@abs_builddir@&$ac_abs_builddir&;t t
15754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755 s&@INSTALL@&$ac_INSTALL&;t t
15756 $ac_datarootdir_hack
15757 "
15758 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15759 if $ac_cs_awk_getline; then
15760 $AWK -f "$tmp/subs.awk"
15761 else
15762 $AWK -f "$tmp/subs.awk" | $SHELL
15763 fi >$tmp/out \
15764 || as_fn_error "could not create $ac_file" "$LINENO" 5
15765
15766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15770 which seems to be undefined. Please make sure it is defined." >&5
15771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15772 which seems to be undefined. Please make sure it is defined." >&2;}
15773
15774 rm -f "$tmp/stdin"
15775 case $ac_file in
15776 -) cat "$tmp/out" && rm -f "$tmp/out";;
15777 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15778 esac \
15779 || as_fn_error "could not create $ac_file" "$LINENO" 5
15780 ;;
15781
15782
15783
15784 esac
15785
15786
15787 case $ac_file$ac_mode in
15788 "Makefile":F) sed "$extrasub_build" Makefile |
15789 sed "$extrasub_host" |
15790 sed "$extrasub_target" > mf$$
15791 mv -f mf$$ Makefile ;;
15792
15793 esac
15794 done # for ac_tag
15795
15796
15797 as_fn_exit 0
15798 _ACEOF
15799 ac_clean_files=$ac_clean_files_save
15800
15801 test $ac_write_fail = 0 ||
15802 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15803
15804
15805 # configure is writing to config.log, and then calls config.status.
15806 # config.status does its own redirection, appending to config.log.
15807 # Unfortunately, on DOS this fails, as config.log is still kept open
15808 # by configure, so config.status won't be able to write to it; its
15809 # output is simply discarded. So we exec the FD to /dev/null,
15810 # effectively closing config.log, so it can be properly (re)opened and
15811 # appended to by config.status. When coming back to configure, we
15812 # need to make the FD available again.
15813 if test "$no_create" != yes; then
15814 ac_cs_success=:
15815 ac_config_status_args=
15816 test "$silent" = yes &&
15817 ac_config_status_args="$ac_config_status_args --quiet"
15818 exec 5>/dev/null
15819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15820 exec 5>>config.log
15821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15822 # would make configure fail if this is the last instruction.
15823 $ac_cs_success || as_fn_exit $?
15824 fi
15825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15828 fi
15829