]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure.ac: Add gcc/function-tests.o to compare_exclusions for 32-bit hppa*-*-hpux*.
[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 get_gcc_base_ver
645 extra_host_zlib_configure_flags
646 extra_host_libiberty_configure_flags
647 stage1_languages
648 extra_linker_plugin_flags
649 extra_linker_plugin_configure_flags
650 islinc
651 isllibs
652 islver
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 extra_liboffloadmic_configure_flags
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
681 AWK
682 SED
683 LN_S
684 LN
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 with_system_zlib
751 enable_as_accelerator_for
752 enable_offload_targets
753 enable_gold
754 enable_ld
755 enable_compressed_debug_sections
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_bootstrap
763 with_mpc
764 with_mpc_include
765 with_mpc_lib
766 with_mpfr_dir
767 with_mpfr
768 with_mpfr_include
769 with_mpfr_lib
770 with_gmp_dir
771 with_gmp
772 with_gmp_include
773 with_gmp_lib
774 with_stage1_libs
775 with_stage1_ldflags
776 with_boot_libs
777 with_boot_ldflags
778 with_isl
779 with_isl_include
780 with_isl_lib
781 enable_isl_version_check
782 enable_lto
783 enable_linker_plugin_configure_flags
784 enable_linker_plugin_flags
785 enable_stage1_languages
786 enable_objc_gc
787 with_target_bdw_gc
788 with_target_bdw_gc_include
789 with_target_bdw_gc_lib
790 with_gcc_major_version_only
791 with_build_sysroot
792 with_debug_prefix_map
793 with_build_config
794 enable_vtable_verify
795 enable_serial_configure
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CXX
811 CXXFLAGS
812 CCC
813 build_configargs
814 host_configargs
815 target_configargs
816 AR
817 AS
818 DLLTOOL
819 LD
820 LIPO
821 NM
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GFORTRAN_FOR_TARGET
833 GOC_FOR_TARGET
834 AR_FOR_TARGET
835 AS_FOR_TARGET
836 DLLTOOL_FOR_TARGET
837 LD_FOR_TARGET
838 LIPO_FOR_TARGET
839 NM_FOR_TARGET
840 OBJCOPY_FOR_TARGET
841 OBJDUMP_FOR_TARGET
842 RANLIB_FOR_TARGET
843 READELF_FOR_TARGET
844 STRIP_FOR_TARGET
845 WINDRES_FOR_TARGET
846 WINDMC_FOR_TARGET'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
896
897 ac_prev=
898 ac_dashdash=
899 for ac_option
900 do
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
906 fi
907
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
923
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
938
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
943
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
976
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1012
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1017
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1047
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1121
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378 esac
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --disable-libstdcxx do not build libstdc++-v3 directory
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
1492 --enable-bootstrap enable bootstrapping [yes if native build]
1493 --disable-isl-version-check
1494 disable check for isl version
1495 --enable-lto enable link time optimization support
1496 --enable-linker-plugin-configure-flags=FLAGS
1497 additional flags for configuring linker plugins
1498 [none]
1499 --enable-linker-plugin-flags=FLAGS
1500 additional flags for configuring and building linker
1501 plugins [none]
1502 --enable-stage1-languages[=all]
1503 choose additional languages to build during stage1.
1504 Mostly useful for compiler development
1505 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1506 Objective-C runtime
1507 --enable-vtable-verify Enable vtable verification feature
1508 --enable-serial-[{host,target,build}-]configure
1509 force sequential configuration of sub-packages for
1510 the host, target or build machine, or all
1511 sub-packages
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-stage1-checking[=all]
1516 choose additional checking for stage1 of the
1517 compiler
1518 --enable-werror enable -Werror in bootstrap stage2 and later
1519 --enable-host-shared build host code as shared libraries
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-build-libsubdir=DIR Directory where to find libraries for build system
1525 --with-system-zlib use installed libz
1526 --with-mpc=PATH specify prefix directory for installed MPC package.
1527 Equivalent to --with-mpc-include=PATH/include plus
1528 --with-mpc-lib=PATH/lib
1529 --with-mpc-include=PATH specify directory for installed MPC include files
1530 --with-mpc-lib=PATH specify directory for the installed MPC library
1531 --with-mpfr-dir=PATH this option has been REMOVED
1532 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1533 Equivalent to --with-mpfr-include=PATH/include plus
1534 --with-mpfr-lib=PATH/lib
1535 --with-mpfr-include=PATH
1536 specify directory for installed MPFR include files
1537 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1538 --with-gmp-dir=PATH this option has been REMOVED
1539 --with-gmp=PATH specify prefix directory for the installed GMP
1540 package. Equivalent to
1541 --with-gmp-include=PATH/include plus
1542 --with-gmp-lib=PATH/lib
1543 --with-gmp-include=PATH specify directory for installed GMP include files
1544 --with-gmp-lib=PATH specify directory for the installed GMP library
1545 --with-stage1-libs=LIBS libraries for stage1
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
1551 --with-isl=PATH Specify prefix directory for the installed isl
1552 package. Equivalent to
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
1555 --with-isl-include=PATH Specify directory for installed isl include files
1556 --with-isl-lib=PATH Specify the directory for the installed isl library
1557 --with-target-bdw-gc=PATHLIST
1558 specify prefix directory for installed bdw-gc
1559 package. Equivalent to
1560 --with-target-bdw-gc-include=PATH/include plus
1561 --with-target-bdw-gc-lib=PATH/lib
1562 --with-target-bdw-gc-include=PATHLIST
1563 specify directories for installed bdw-gc include
1564 files
1565 --with-target-bdw-gc-lib=PATHLIST
1566 specify directories for installed bdw-gc library
1567 --with-gcc-major-version-only
1568 use only GCC major number in filesystem paths
1569 --with-build-sysroot=SYSROOT
1570 use sysroot as the system root during the build
1571 --with-debug-prefix-map='A=B C=D ...'
1572 map A to B, C to D ... in debug information
1573 --with-build-config='NAME NAME2...'
1574 use config/NAME.mk build configuration
1575 --with-build-time-tools=PATH
1576 use given path to find target tools during the build
1577
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1586 CXX C++ compiler command
1587 CXXFLAGS C++ compiler flags
1588 build_configargs
1589 additional configure arguments for build directories
1590 host_configargs
1591 additional configure arguments for host directories
1592 target_configargs
1593 additional configure arguments for target directories
1594 AR AR for the host
1595 AS AS for the host
1596 DLLTOOL DLLTOOL for the host
1597 LD LD for the host
1598 LIPO LIPO for the host
1599 NM NM for the host
1600 RANLIB RANLIB for the host
1601 STRIP STRIP for the host
1602 WINDRES WINDRES for the host
1603 WINDMC WINDMC for the host
1604 OBJCOPY OBJCOPY for the host
1605 OBJDUMP OBJDUMP for the host
1606 READELF READELF for the host
1607 CC_FOR_TARGET
1608 CC for the target
1609 CXX_FOR_TARGET
1610 CXX for the target
1611 GCC_FOR_TARGET
1612 GCC for the target
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
1615 GOC_FOR_TARGET
1616 GOC for the target
1617 AR_FOR_TARGET
1618 AR for the target
1619 AS_FOR_TARGET
1620 AS for the target
1621 DLLTOOL_FOR_TARGET
1622 DLLTOOL for the target
1623 LD_FOR_TARGET
1624 LD for the target
1625 LIPO_FOR_TARGET
1626 LIPO for the target
1627 NM_FOR_TARGET
1628 NM for the target
1629 OBJCOPY_FOR_TARGET
1630 OBJCOPY for the target
1631 OBJDUMP_FOR_TARGET
1632 OBJDUMP for the target
1633 RANLIB_FOR_TARGET
1634 RANLIB for the target
1635 READELF_FOR_TARGET
1636 READELF for the target
1637 STRIP_FOR_TARGET
1638 STRIP for the target
1639 WINDRES_FOR_TARGET
1640 WINDRES for the target
1641 WINDMC_FOR_TARGET
1642 WINDMC for the target
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 Report bugs to the package provider.
1648 _ACEOF
1649 ac_status=$?
1650 fi
1651
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
1658 ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677 .) # We are building in place.
1678 ac_srcdir=.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1700 else
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1704 done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709 cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.64
1712
1713 Copyright (C) 2009 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1718 fi
1719
1720 ## ------------------------ ##
1721 ## Autoconf initialization. ##
1722 ## ------------------------ ##
1723
1724 # ac_fn_c_try_compile LINENO
1725 # --------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760 } # ac_fn_c_try_compile
1761
1762 # ac_fn_cxx_try_compile LINENO
1763 # ----------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_cxx_try_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1797
1798 } # ac_fn_cxx_try_compile
1799
1800 # ac_fn_cxx_try_link LINENO
1801 # -------------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_link ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 $as_test_x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1843
1844 } # ac_fn_cxx_try_link
1845
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_link ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1889
1890 } # ac_fn_c_try_link
1891 cat >config.log <<_ACEOF
1892 This file contains any messages produced by compilers while
1893 running configure, to aid debugging if configure makes a mistake.
1894
1895 It was created by $as_me, which was
1896 generated by GNU Autoconf 2.64. Invocation command line was
1897
1898 $ $0 $@
1899
1900 _ACEOF
1901 exec 5>>config.log
1902 {
1903 cat <<_ASUNAME
1904 ## --------- ##
1905 ## Platform. ##
1906 ## --------- ##
1907
1908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916
1917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924
1925 _ASUNAME
1926
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 $as_echo "PATH: $as_dir"
1933 done
1934 IFS=$as_save_IFS
1935
1936 } >&5
1937
1938 cat >&5 <<_ACEOF
1939
1940
1941 ## ----------- ##
1942 ## Core tests. ##
1943 ## ----------- ##
1944
1945 _ACEOF
1946
1947
1948 # Keep a trace of the command line.
1949 # Strip out --no-create and --no-recursion so they do not pile up.
1950 # Strip out --silent because we don't want to record it for future runs.
1951 # Also quote any args containing shell meta-characters.
1952 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_configure_args=
1954 ac_configure_args0=
1955 ac_configure_args1=
1956 ac_must_keep_next=false
1957 for ac_pass in 1 2
1958 do
1959 for ac_arg
1960 do
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 esac
1969 case $ac_pass in
1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971 2)
1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1984 ;;
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1987 fi
1988 as_fn_append ac_configure_args " '$ac_arg'"
1989 ;;
1990 esac
1991 done
1992 done
1993 { ac_configure_args0=; unset ac_configure_args0;}
1994 { ac_configure_args1=; unset ac_configure_args1;}
1995
1996 # When interrupted or exit'd, cleanup temporary files, and complete
1997 # config.log. We remove comments because anyway the quotes in there
1998 # would cause problems or look ugly.
1999 # WARNING: Use '\'' to represent an apostrophe within the trap.
2000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001 trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2003 {
2004 echo
2005
2006 cat <<\_ASBOX
2007 ## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##
2010 _ASBOX
2011 echo
2012 # The following way of writing the cache mishandles newlines in values,
2013 (
2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2015 eval ac_val=\$$ac_var
2016 case $ac_val in #(
2017 *${as_nl}*)
2018 case $ac_var in #(
2019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2021 esac
2022 case $ac_var in #(
2023 _ | IFS | as_nl) ;; #(
2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2025 *) { eval $ac_var=; unset $ac_var;} ;;
2026 esac ;;
2027 esac
2028 done
2029 (set) 2>&1 |
2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2031 *${as_nl}ac_space=\ *)
2032 sed -n \
2033 "s/'\''/'\''\\\\'\'''\''/g;
2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2035 ;; #(
2036 *)
2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2038 ;;
2039 esac |
2040 sort
2041 )
2042 echo
2043
2044 cat <<\_ASBOX
2045 ## ----------------- ##
2046 ## Output variables. ##
2047 ## ----------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 cat <<\_ASBOX
2062 ## ------------------- ##
2063 ## File substitutions. ##
2064 ## ------------------- ##
2065 _ASBOX
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 cat <<\_ASBOX
2080 ## ----------- ##
2081 ## confdefs.h. ##
2082 ## ----------- ##
2083 _ASBOX
2084 echo
2085 cat confdefs.h
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2095 ' 0
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2100
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2103
2104 $as_echo "/* confdefs.h */" > confdefs.h
2105
2106 # Predefined preprocessor variables.
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138 ac_site_file1=$CONFIG_SITE
2139 elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142 else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
2145 fi
2146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147 do
2148 test "x$ac_site_file" = xNONE && continue
2149 if test -r "$ac_site_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2152 sed 's/^/| /' "$ac_site_file" >&5
2153 . "$ac_site_file"
2154 fi
2155 done
2156
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special
2159 # files actually), so we avoid doing that.
2160 if test -f "$cache_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 case $cache_file in
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2166 esac
2167 fi
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 >$cache_file
2172 fi
2173
2174 # Check that the precious variables saved in the cache have kept the same
2175 # value.
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
2182 case $ac_old_set,$ac_new_set in
2183 set,)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,set)
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190 ac_cache_corrupted=: ;;
2191 ,);;
2192 *)
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2210 fi;;
2211 esac
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2214 case $ac_new_val in
2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2217 esac
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221 esac
2222 fi
2223 done
2224 if $ac_cache_corrupted; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 fi
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249 progname=$0
2250 # if PWD already has a value, it is probably wrong.
2251 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2252
2253 # Export original configure arguments for use by sub-configures.
2254 # Quote arguments with shell meta charatcers.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS=
2256 set -- "$progname" "$@"
2257 for ac_arg
2258 do
2259 case "$ac_arg" in
2260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2262 # if the argument is of the form -foo=baz, quote the baz part only
2263 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2264 *) ;;
2265 esac
2266 # Add the quoted argument to the list.
2267 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2268 done
2269 if test "$silent" = yes; then
2270 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2271 fi
2272 # Remove the initial space we just introduced and, as these will be
2273 # expanded by make, quote '$'.
2274 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2275
2276
2277 # Find the build, host, and target systems.
2278 ac_aux_dir=
2279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2280 for ac_t in install-sh install.sh shtool; do
2281 if test -f "$ac_dir/$ac_t"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/$ac_t -c"
2284 break 2
2285 fi
2286 done
2287 done
2288 if test -z "$ac_aux_dir"; then
2289 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2290 fi
2291
2292 # These three variables are undocumented and unsupported,
2293 # and are intended to be withdrawn in a future Autoconf release.
2294 # They can cause serious problems if a builder's source tree is in a directory
2295 # whose full name contains unusual characters.
2296 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299
2300
2301 # Make sure we can run config.sub.
2302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2303 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2304
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2306 $as_echo_n "checking build system type... " >&6; }
2307 if test "${ac_cv_build+set}" = set; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 ac_build_alias=$build_alias
2311 test "x$ac_build_alias" = x &&
2312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313 test "x$ac_build_alias" = x &&
2314 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2316 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2317
2318 fi
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2320 $as_echo "$ac_cv_build" >&6; }
2321 case $ac_cv_build in
2322 *-*-*) ;;
2323 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2324 esac
2325 build=$ac_cv_build
2326 ac_save_IFS=$IFS; IFS='-'
2327 set x $ac_cv_build
2328 shift
2329 build_cpu=$1
2330 build_vendor=$2
2331 shift; shift
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2334 build_os=$*
2335 IFS=$ac_save_IFS
2336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2337
2338
2339 case ${build_alias} in
2340 "") build_noncanonical=${build} ;;
2341 *) build_noncanonical=${build_alias} ;;
2342 esac
2343
2344
2345
2346 case ${host_alias} in
2347 "") host_noncanonical=${build_noncanonical} ;;
2348 *) host_noncanonical=${host_alias} ;;
2349 esac
2350
2351
2352
2353 case ${target_alias} in
2354 "") target_noncanonical=${host_noncanonical} ;;
2355 *) target_noncanonical=${target_alias} ;;
2356 esac
2357
2358
2359
2360
2361 test "$host_noncanonical" = "$target_noncanonical" &&
2362 test "$program_prefix$program_suffix$program_transform_name" = \
2363 NONENONEs,x,x, &&
2364 program_transform_name=s,y,y,
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2367 $as_echo_n "checking host system type... " >&6; }
2368 if test "${ac_cv_host+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test "x$host_alias" = x; then
2372 ac_cv_host=$ac_cv_build
2373 else
2374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2376 fi
2377
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2380 $as_echo "$ac_cv_host" >&6; }
2381 case $ac_cv_host in
2382 *-*-*) ;;
2383 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2384 esac
2385 host=$ac_cv_host
2386 ac_save_IFS=$IFS; IFS='-'
2387 set x $ac_cv_host
2388 shift
2389 host_cpu=$1
2390 host_vendor=$2
2391 shift; shift
2392 # Remember, the first character of IFS is used to create $*,
2393 # except with old shells:
2394 host_os=$*
2395 IFS=$ac_save_IFS
2396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2397
2398
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2400 $as_echo_n "checking target system type... " >&6; }
2401 if test "${ac_cv_target+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test "x$target_alias" = x; then
2405 ac_cv_target=$ac_cv_host
2406 else
2407 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2409 fi
2410
2411 fi
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2413 $as_echo "$ac_cv_target" >&6; }
2414 case $ac_cv_target in
2415 *-*-*) ;;
2416 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2417 esac
2418 target=$ac_cv_target
2419 ac_save_IFS=$IFS; IFS='-'
2420 set x $ac_cv_target
2421 shift
2422 target_cpu=$1
2423 target_vendor=$2
2424 shift; shift
2425 # Remember, the first character of IFS is used to create $*,
2426 # except with old shells:
2427 target_os=$*
2428 IFS=$ac_save_IFS
2429 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2430
2431
2432 # The aliases save the names the user supplied, while $host etc.
2433 # will get canonicalized.
2434 test -n "$target_alias" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_prefix=${target_alias}-
2438
2439 test "$program_prefix" != NONE &&
2440 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2441 # Use a double $ so make ignores it.
2442 test "$program_suffix" != NONE &&
2443 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2444 # Double any \ or $.
2445 # By default was `s,x,x', remove it if useless.
2446 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2447 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2448
2449
2450
2451 # Get 'install' or 'install-sh' and its variants.
2452 # Find a good install program. We prefer a C program (faster),
2453 # so one script is as good as another. But avoid the broken or
2454 # incompatible versions:
2455 # SysV /etc/install, /usr/sbin/install
2456 # SunOS /usr/etc/install
2457 # IRIX /sbin/install
2458 # AIX /bin/install
2459 # AmigaOS /C/install, which installs bootblocks on floppy discs
2460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2463 # OS/2's system install, which has a completely different semantic
2464 # ./install, which can be erroneously created by make from ./install.sh.
2465 # Reject install programs that cannot install multiple files.
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2468 if test -z "$INSTALL"; then
2469 if test "${ac_cv_path_install+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 # Account for people who put trailing slashes in PATH elements.
2478 case $as_dir/ in #((
2479 ./ | .// | /[cC]/* | \
2480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2482 /usr/ucb/* ) ;;
2483 *)
2484 # OSF1 and SCO ODT 3.0 have their own names for install.
2485 # Don't use installbsd from OSF since it installs stuff as root
2486 # by default.
2487 for ac_prog in ginstall scoinst install; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2490 if test $ac_prog = install &&
2491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # AIX install. It has an incompatible calling convention.
2493 :
2494 elif test $ac_prog = install &&
2495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # program-specific install script used by HP pwplus--don't use.
2497 :
2498 else
2499 rm -rf conftest.one conftest.two conftest.dir
2500 echo one > conftest.one
2501 echo two > conftest.two
2502 mkdir conftest.dir
2503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504 test -s conftest.one && test -s conftest.two &&
2505 test -s conftest.dir/conftest.one &&
2506 test -s conftest.dir/conftest.two
2507 then
2508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509 break 3
2510 fi
2511 fi
2512 fi
2513 done
2514 done
2515 ;;
2516 esac
2517
2518 done
2519 IFS=$as_save_IFS
2520
2521 rm -rf conftest.one conftest.two conftest.dir
2522
2523 fi
2524 if test "${ac_cv_path_install+set}" = set; then
2525 INSTALL=$ac_cv_path_install
2526 else
2527 # As a last resort, use the slow shell script. Don't cache a
2528 # value for INSTALL within a source directory, because that will
2529 # break other packages using the cache if that directory is
2530 # removed, or if the value is a relative name.
2531 INSTALL=$ac_install_sh
2532 fi
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535 $as_echo "$INSTALL" >&6; }
2536
2537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538 # It thinks the first close brace ends the variable substitution.
2539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540
2541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542
2543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2546 $as_echo_n "checking whether ln works... " >&6; }
2547 if test "${acx_cv_prog_LN+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 rm -f conftestdata_t
2551 echo >conftestdata_f
2552 if ln conftestdata_f conftestdata_t 2>/dev/null
2553 then
2554 acx_cv_prog_LN=ln
2555 else
2556 acx_cv_prog_LN=no
2557 fi
2558 rm -f conftestdata_f conftestdata_t
2559
2560 fi
2561 if test $acx_cv_prog_LN = no; then
2562 LN="cp"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2564 $as_echo "no, using $LN" >&6; }
2565 else
2566 LN="$acx_cv_prog_LN"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 fi
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2572 $as_echo_n "checking whether ln -s works... " >&6; }
2573 LN_S=$as_ln_s
2574 if test "$LN_S" = "ln -s"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2579 $as_echo "no, using $LN_S" >&6; }
2580 fi
2581
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2583 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2584 if test "${ac_cv_path_SED+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2588 for ac_i in 1 2 3 4 5 6 7; do
2589 ac_script="$ac_script$as_nl$ac_script"
2590 done
2591 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2592 { ac_script=; unset ac_script;}
2593 if test -z "$SED"; then
2594 ac_path_SED_found=false
2595 # Loop through the user's path and test for each of PROGNAME-LIST
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in sed gsed; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2604 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2605 # Check for GNU ac_path_SED and select it if it is found.
2606 # Check for GNU $ac_path_SED
2607 case `"$ac_path_SED" --version 2>&1` in
2608 *GNU*)
2609 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2610 *)
2611 ac_count=0
2612 $as_echo_n 0123456789 >"conftest.in"
2613 while :
2614 do
2615 cat "conftest.in" "conftest.in" >"conftest.tmp"
2616 mv "conftest.tmp" "conftest.in"
2617 cp "conftest.in" "conftest.nl"
2618 $as_echo '' >> "conftest.nl"
2619 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2621 as_fn_arith $ac_count + 1 && ac_count=$as_val
2622 if test $ac_count -gt ${ac_path_SED_max-0}; then
2623 # Best one so far, save it but keep looking for a better one
2624 ac_cv_path_SED="$ac_path_SED"
2625 ac_path_SED_max=$ac_count
2626 fi
2627 # 10*(2^10) chars as input seems more than enough
2628 test $ac_count -gt 10 && break
2629 done
2630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2631 esac
2632
2633 $ac_path_SED_found && break 3
2634 done
2635 done
2636 done
2637 IFS=$as_save_IFS
2638 if test -z "$ac_cv_path_SED"; then
2639 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2640 fi
2641 else
2642 ac_cv_path_SED=$SED
2643 fi
2644
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2647 $as_echo "$ac_cv_path_SED" >&6; }
2648 SED="$ac_cv_path_SED"
2649 rm -f conftest.sed
2650
2651 for ac_prog in gawk mawk nawk awk
2652 do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_AWK+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$AWK"; then
2661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_AWK="$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 AWK=$ac_cv_prog_AWK
2681 if test -n "$AWK"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683 $as_echo "$AWK" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 test -n "$AWK" && break
2691 done
2692
2693
2694 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2695
2696 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2697 # a relative path.
2698 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2699 INSTALL="${srcpwd}/install-sh -c"
2700 fi
2701
2702 # Set srcdir to "." if that's what it is.
2703 # This is important for multilib support.
2704 pwd=`${PWDCMD-pwd}`
2705 if test "${pwd}" = "${srcpwd}" ; then
2706 srcdir=.
2707 fi
2708
2709 topsrcdir=$srcpwd
2710
2711 extra_host_args=
2712
2713 ### To add a new directory to the tree, first choose whether it is a target
2714 ### or a host dependent tool. Then put it into the appropriate list
2715 ### (library or tools, host or target), doing a dependency sort.
2716
2717 # Subdirs will be configured in the order listed in build_configdirs,
2718 # configdirs, or target_configdirs; see the serialization section below.
2719
2720 # Dependency sorting is only needed when *configuration* must be done in
2721 # a particular order. In all cases a dependency should be specified in
2722 # the Makefile, whether or not it's implicitly specified here.
2723
2724 # Double entries in build_configdirs, configdirs, or target_configdirs may
2725 # cause circular dependencies and break everything horribly.
2726
2727 # these library is used by various programs built for the build
2728 # environment
2729 #
2730 build_libs="build-libiberty build-libcpp"
2731
2732 # these tools are built for the build environment
2733 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2734
2735 # these libraries are used by various programs built for the host environment
2736 #f
2737 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2738
2739 # these tools are built for the host environment
2740 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2741 # know that we are building the simulator.
2742 # binutils, gas and ld appear in that order because it makes sense to run
2743 # "make check" in that particular order.
2744 # If --enable-gold is used, "gold" may replace "ld".
2745 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"
2746
2747 # these libraries are built for the target environment, and are built after
2748 # the host libraries and the host tools (which may be a cross compiler)
2749 # Note that libiberty is not a target library.
2750 target_libraries="target-libgcc \
2751 target-libbacktrace \
2752 target-libgloss \
2753 target-newlib \
2754 target-libgomp \
2755 target-libcilkrts \
2756 target-liboffloadmic \
2757 target-libhsail-rt \
2758 target-libatomic \
2759 target-libitm \
2760 target-libstdc++-v3 \
2761 target-libsanitizer \
2762 target-libvtv \
2763 target-libmpx \
2764 target-libssp \
2765 target-libquadmath \
2766 target-libgfortran \
2767 target-libffi \
2768 target-libobjc \
2769 target-libada \
2770 target-libgo"
2771
2772 # these tools are built using the target libraries, and are intended to
2773 # run only in the target environment
2774 #
2775 # note: any program that *uses* libraries that are in the "target_libraries"
2776 # list belongs in this list.
2777 #
2778 target_tools="target-rda"
2779
2780 ################################################################################
2781
2782 ## All tools belong in one of the four categories, and are assigned above
2783 ## We assign ${configdirs} this way to remove all embedded newlines. This
2784 ## is important because configure will choke if they ever get through.
2785 ## ${configdirs} is directories we build using the host tools.
2786 ## ${target_configdirs} is directories we build using the target tools.
2787 configdirs=`echo ${host_libs} ${host_tools}`
2788 target_configdirs=`echo ${target_libraries} ${target_tools}`
2789 build_configdirs=`echo ${build_libs} ${build_tools}`
2790
2791
2792
2793 ################################################################################
2794
2795 srcname="gnu development package"
2796
2797 # This gets set non-empty for some net releases of packages.
2798 appdirs=""
2799
2800 # Define is_cross_compiler to save on calls to 'test'.
2801 is_cross_compiler=
2802 if test x"${host}" = x"${target}" ; then
2803 is_cross_compiler=no
2804 else
2805 is_cross_compiler=yes
2806 fi
2807
2808 # Find the build and target subdir names.
2809
2810 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2811 # have matching libraries, they should use host libraries: Makefile.tpl
2812 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2813 # However, they still use the build modules, because the corresponding
2814 # host modules (e.g. bison) are only built for the host when bootstrap
2815 # finishes. So:
2816 # - build_subdir is where we find build modules, and never changes.
2817 # - build_libsubdir is where we find build libraries, and can be overridden.
2818
2819 # Prefix 'build-' so this never conflicts with target_subdir.
2820 build_subdir="build-${build_noncanonical}"
2821
2822 # Check whether --with-build-libsubdir was given.
2823 if test "${with_build_libsubdir+set}" = set; then :
2824 withval=$with_build_libsubdir; build_libsubdir="$withval"
2825 else
2826 build_libsubdir="$build_subdir"
2827 fi
2828
2829 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2830 if ( test $srcdir = . && test -d gcc ) \
2831 || test -d $srcdir/../host-${host_noncanonical}; then
2832 host_subdir="host-${host_noncanonical}"
2833 else
2834 host_subdir=.
2835 fi
2836 # No prefix.
2837 target_subdir=${target_noncanonical}
2838
2839 # Be sure to cover against remnants of an in-tree build.
2840 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2841 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2842 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2843 fi
2844
2845 # Skipdirs are removed silently.
2846 skipdirs=
2847 # Noconfigdirs are removed loudly.
2848 noconfigdirs=""
2849
2850 use_gnu_ld=
2851 # Make sure we don't let GNU ld be added if we didn't want it.
2852 if test x$with_gnu_ld = xno ; then
2853 use_gnu_ld=no
2854 noconfigdirs="$noconfigdirs ld gold"
2855 fi
2856
2857 use_gnu_as=
2858 # Make sure we don't let GNU as be added if we didn't want it.
2859 if test x$with_gnu_as = xno ; then
2860 use_gnu_as=no
2861 noconfigdirs="$noconfigdirs gas"
2862 fi
2863
2864 use_included_zlib=
2865
2866 # Check whether --with-system-zlib was given.
2867 if test "${with_system_zlib+set}" = set; then :
2868 withval=$with_system_zlib;
2869 fi
2870
2871 # Make sure we don't let ZLIB be added if we didn't want it.
2872 if test x$with_system_zlib = xyes ; then
2873 use_included_zlib=no
2874 noconfigdirs="$noconfigdirs zlib"
2875 fi
2876
2877 # some tools are so dependent upon X11 that if we're not building with X,
2878 # it's not even worth trying to configure, much less build, that tool.
2879
2880 case ${with_x} in
2881 yes | "") ;; # the default value for this tree is that X11 is available
2882 no)
2883 skipdirs="${skipdirs} tk itcl libgui"
2884 # We won't be able to build gdbtk without X.
2885 enable_gdbtk=no
2886 ;;
2887 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2888 esac
2889
2890 # Some are only suitable for cross toolchains.
2891 # Remove these if host=target.
2892 cross_only="target-libgloss target-newlib target-opcodes"
2893
2894 case $is_cross_compiler in
2895 no) skipdirs="${skipdirs} ${cross_only}" ;;
2896 esac
2897
2898 # If both --with-headers and --with-libs are specified, default to
2899 # --without-newlib.
2900 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2901 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2902 if test x"${with_newlib}" = x ; then
2903 with_newlib=no
2904 fi
2905 fi
2906
2907 # Recognize --with-newlib/--without-newlib.
2908 case ${with_newlib} in
2909 no) skipdirs="${skipdirs} target-newlib" ;;
2910 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2911 esac
2912
2913 # Check whether --enable-as-accelerator-for was given.
2914 if test "${enable_as_accelerator_for+set}" = set; then :
2915 enableval=$enable_as_accelerator_for;
2916 fi
2917
2918
2919 # Check whether --enable-offload-targets was given.
2920 if test "${enable_offload_targets+set}" = set; then :
2921 enableval=$enable_offload_targets;
2922 if test x"$enable_offload_targets" = x; then
2923 as_fn_error "no offload targets specified" "$LINENO" 5
2924 fi
2925
2926 else
2927 enable_offload_targets=
2928 fi
2929
2930
2931 # Handle --enable-gold, --enable-ld.
2932 # --disable-gold [--enable-ld]
2933 # Build only ld. Default option.
2934 # --enable-gold [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold", install ld
2936 # as "ld.bfd" and "ld".
2937 # --enable-gold=default [--enable-ld]
2938 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2939 # install ld as "ld.bfd".
2940 # --enable-gold[=default] --disable-ld
2941 # Build only gold, which is then installed as both "ld.gold" and "ld".
2942 # --enable-gold --enable-ld=default
2943 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944 # and ld.bfd).
2945 # In other words, ld is default
2946 # --enable-gold=default --enable-ld=default
2947 # Error.
2948
2949 default_ld=
2950 # Check whether --enable-gold was given.
2951 if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
2953 else
2954 ENABLE_GOLD=no
2955 fi
2956
2957 case "${ENABLE_GOLD}" in
2958 yes|default)
2959 # Check for ELF target.
2960 is_elf=no
2961 case "${target}" in
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2966 case "${target}" in
2967 *-*-linux*aout* | *-*-linux*oldld*)
2968 ;;
2969 *)
2970 is_elf=yes
2971 ;;
2972 esac
2973 esac
2974
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
2977 case "${target}" in
2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2982 default_ld=gold
2983 fi
2984 ENABLE_GOLD=yes
2985 ;;
2986 esac
2987 fi
2988 ;;
2989 no)
2990 ;;
2991 *)
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993 ;;
2994 esac
2995
2996 # Check whether --enable-ld was given.
2997 if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
2999 else
3000 ENABLE_LD=yes
3001 fi
3002
3003
3004 case "${ENABLE_LD}" in
3005 default)
3006 if test x${default_ld} != x; then
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008 fi
3009 ;;
3010 yes)
3011 ;;
3012 no)
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3016 fi
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3018 ;;
3019 *)
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3021 ;;
3022 esac
3023
3024 # PR gas/19109
3025 # Decide the default method for compressing debug sections.
3026 # Provide a configure time option to override our default.
3027 # Check whether --enable-compressed_debug_sections was given.
3028 if test "${enable_compressed_debug_sections+set}" = set; then :
3029 enableval=$enable_compressed_debug_sections;
3030 if test x"$enable_compressed_debug_sections" = xyes; then
3031 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3032 fi
3033
3034 else
3035 enable_compressed_debug_sections=
3036 fi
3037
3038
3039 # Configure extra directories which are host specific
3040
3041 case "${host}" in
3042 *-cygwin*)
3043 configdirs="$configdirs libtermcap" ;;
3044 esac
3045
3046 # A target can indicate whether a language isn't supported for some reason.
3047 # Only spaces may be used in this macro; not newlines or tabs.
3048 unsupported_languages=
3049
3050 # Remove more programs from consideration, based on the host or
3051 # target this usually means that a port of the program doesn't
3052 # exist yet.
3053
3054 case "${host}" in
3055 i[3456789]86-*-msdosdjgpp*)
3056 noconfigdirs="$noconfigdirs tcl tk itcl"
3057 ;;
3058 esac
3059
3060
3061 # Check whether --enable-libquadmath was given.
3062 if test "${enable_libquadmath+set}" = set; then :
3063 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3064 else
3065 ENABLE_LIBQUADMATH=yes
3066 fi
3067
3068 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3069 noconfigdirs="$noconfigdirs target-libquadmath"
3070 fi
3071
3072
3073 # Check whether --enable-libquadmath-support was given.
3074 if test "${enable_libquadmath_support+set}" = set; then :
3075 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3076 else
3077 ENABLE_LIBQUADMATH_SUPPORT=yes
3078 fi
3079
3080 enable_libquadmath_support=
3081 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3082 enable_libquadmath_support=no
3083 fi
3084
3085
3086 # Check whether --enable-libada was given.
3087 if test "${enable_libada+set}" = set; then :
3088 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3089 else
3090 ENABLE_LIBADA=yes
3091 fi
3092
3093 if test "${ENABLE_LIBADA}" != "yes" ; then
3094 noconfigdirs="$noconfigdirs gnattools"
3095 fi
3096
3097 # Check whether --enable-libssp was given.
3098 if test "${enable_libssp+set}" = set; then :
3099 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3100 else
3101 ENABLE_LIBSSP=yes
3102 fi
3103
3104
3105 # Check whether --enable-libstdcxx was given.
3106 if test "${enable_libstdcxx+set}" = set; then :
3107 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3108 else
3109 ENABLE_LIBSTDCXX=default
3110 fi
3111
3112 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3113 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3114 fi
3115
3116 # If this is accelerator compiler and its target is intelmic we enable
3117 # target liboffloadmic by default. If this is compiler with offloading
3118 # for intelmic we enable host liboffloadmic by default. Otherwise
3119 # liboffloadmic is disabled by default.
3120 # Check whether --enable-liboffloadmic was given.
3121 if test "${enable_liboffloadmic+set}" = set; then :
3122 enableval=$enable_liboffloadmic; case "$enableval" in
3123 no | host | target)
3124 enable_liboffloadmic=$enableval ;;
3125 *)
3126 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3127 esac
3128 else
3129 if test x"$enable_as_accelerator_for" != x; then
3130 case "${target}" in
3131 *-intelmic-* | *-intelmicemul-*)
3132 enable_liboffloadmic=target
3133 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3134 ;;
3135 *)
3136 enable_liboffloadmic=no
3137 ;;
3138 esac
3139 else
3140 case "${enable_offload_targets}" in
3141 *-intelmic-* | *-intelmicemul-*)
3142 enable_liboffloadmic=host
3143 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3144 ;;
3145 *)
3146 enable_liboffloadmic=no
3147 ;;
3148 esac
3149 fi
3150 fi
3151
3152
3153
3154 # Enable libgomp by default on hosted POSIX systems, and a few others.
3155 if test x$enable_libgomp = x ; then
3156 case "${target}" in
3157 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3158 ;;
3159 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3160 ;;
3161 *-*-solaris2* | *-*-hpux11*)
3162 ;;
3163 *-*-darwin* | *-*-aix*)
3164 ;;
3165 nvptx*-*-*)
3166 ;;
3167 *)
3168 noconfigdirs="$noconfigdirs target-libgomp"
3169 ;;
3170 esac
3171 fi
3172
3173 # Disable libatomic on unsupported systems.
3174 if test -d ${srcdir}/libatomic; then
3175 if test x$enable_libatomic = x; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3177 $as_echo_n "checking for libatomic support... " >&6; }
3178 if (srcdir=${srcdir}/libatomic; \
3179 . ${srcdir}/configure.tgt; \
3180 test -n "$UNSUPPORTED")
3181 then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 noconfigdirs="$noconfigdirs target-libatomic"
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3188 fi
3189 fi
3190 fi
3191
3192 # Disable libcilkrts on unsupported systems.
3193 if test -d ${srcdir}/libcilkrts; then
3194 if test x$enable_libcilkrts = x; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3196 $as_echo_n "checking for libcilkrts support... " >&6; }
3197 if (srcdir=${srcdir}/libcilkrts; \
3198 . ${srcdir}/configure.tgt; \
3199 test -n "$UNSUPPORTED")
3200 then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 noconfigdirs="$noconfigdirs target-libcilkrts"
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3207 fi
3208 fi
3209 fi
3210
3211 # Disable liboffloadmic on unsupported systems.
3212 if test -d ${srcdir}/liboffloadmic; then
3213 if test x$enable_liboffloadmic != xno; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3215 $as_echo_n "checking for liboffloadmic support... " >&6; }
3216 if (srcdir=${srcdir}/liboffloadmic; \
3217 . ${srcdir}/configure.tgt; \
3218 test -n "$UNSUPPORTED")
3219 then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 noconfigdirs="$noconfigdirs target-liboffloadmic"
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3226 fi
3227 fi
3228 fi
3229
3230 # Disable libitm on unsupported systems.
3231 if test -d ${srcdir}/libitm; then
3232 if test x$enable_libitm = x; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3234 $as_echo_n "checking for libitm support... " >&6; }
3235 if (srcdir=${srcdir}/libitm; \
3236 . ${srcdir}/configure.tgt; \
3237 test -n "$UNSUPPORTED")
3238 then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 noconfigdirs="$noconfigdirs target-libitm"
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3245 fi
3246 fi
3247 fi
3248
3249 # Disable libsanitizer on unsupported systems.
3250 if test -d ${srcdir}/libsanitizer; then
3251 if test x$enable_libsanitizer = x; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3253 $as_echo_n "checking for libsanitizer support... " >&6; }
3254 if (srcdir=${srcdir}/libsanitizer; \
3255 . ${srcdir}/configure.tgt; \
3256 test -n "$UNSUPPORTED")
3257 then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 noconfigdirs="$noconfigdirs target-libsanitizer"
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264 fi
3265 fi
3266 fi
3267
3268 # Disable libvtv on unsupported systems.
3269 if test -d ${srcdir}/libvtv; then
3270 if test x$enable_libvtv = x; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3272 $as_echo_n "checking for libvtv support... " >&6; }
3273 if (srcdir=${srcdir}/libvtv; \
3274 . ${srcdir}/configure.tgt; \
3275 test "$VTV_SUPPORTED" != "yes")
3276 then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 noconfigdirs="$noconfigdirs target-libvtv"
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283 fi
3284 fi
3285 fi
3286
3287
3288 # Enable libmpx on supported systems by request.
3289 if test -d ${srcdir}/libmpx; then
3290 if test x$enable_libmpx = x; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3292 $as_echo_n "checking for libmpx support... " >&6; }
3293 if (srcdir=${srcdir}/libmpx; \
3294 . ${srcdir}/configure.tgt; \
3295 test "$LIBMPX_SUPPORTED" != "yes")
3296 then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libmpx"
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303 fi
3304 fi
3305 fi
3306
3307 # Disable libhsail-rt on unsupported systems.
3308 if test -d ${srcdir}/libhsail-rt; then
3309 if test x$enable_libhsail_rt = x; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3311 $as_echo_n "checking for libhsail-rt support... " >&6; }
3312 if (srcdir=${srcdir}/libhsail-rt; \
3313 . ${srcdir}/configure.tgt; \
3314 test -n "$UNSUPPORTED")
3315 then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 unsupported_languages="$unsupported_languages brig"
3319 # This implicitly disables also target-libhsail-rt as it won't
3320 # get added to the build without BRIG FE.
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324 fi
3325 fi
3326 fi
3327
3328
3329 # Disable libquadmath for some systems.
3330 case "${target}" in
3331 avr-*-*)
3332 noconfigdirs="$noconfigdirs target-libquadmath"
3333 ;;
3334 # libquadmath is unused on AIX and libquadmath build process use of
3335 # LD_LIBRARY_PATH can break AIX bootstrap.
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libquadmath"
3338 ;;
3339 esac
3340
3341 # Disable libssp for some systems.
3342 case "${target}" in
3343 avr-*-*)
3344 # No hosted I/O support.
3345 noconfigdirs="$noconfigdirs target-libssp"
3346 ;;
3347 powerpc-*-aix* | rs6000-*-aix*)
3348 noconfigdirs="$noconfigdirs target-libssp"
3349 ;;
3350 rl78-*-*)
3351 # libssp uses a misaligned load to trigger a fault, but the RL78
3352 # doesn't fault for those - instead, it gives a build-time error
3353 # for explicit misaligned loads.
3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
3356 visium-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 esac
3361
3362 # Disable libstdc++-v3 for some systems.
3363 # Allow user to override this if they pass --enable-libstdc++-v3
3364 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3365 case "${target}" in
3366 *-*-vxworks*)
3367 # VxWorks uses the Dinkumware C++ library.
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
3370 arm*-wince-pe*)
3371 # the C++ libraries don't build on top of CE's C libraries
3372 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 ;;
3374 avr-*-*)
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 ;;
3377 ft32-*-*)
3378 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3379 ;;
3380 esac
3381 fi
3382
3383 # Disable Fortran for some systems.
3384 case "${target}" in
3385 mmix-*-*)
3386 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3387 unsupported_languages="$unsupported_languages fortran"
3388 ;;
3389 esac
3390
3391 # Disable libffi for some systems.
3392 case "${target}" in
3393 powerpc-*-darwin*)
3394 ;;
3395 i[3456789]86-*-darwin*)
3396 ;;
3397 x86_64-*-darwin[912]*)
3398 ;;
3399 *-*-darwin*)
3400 noconfigdirs="$noconfigdirs target-libffi"
3401 ;;
3402 *-*-netware*)
3403 noconfigdirs="$noconfigdirs target-libffi"
3404 ;;
3405 *-*-phoenix*)
3406 noconfigdirs="$noconfigdirs target-libffi"
3407 ;;
3408 *-*-rtems*)
3409 noconfigdirs="$noconfigdirs target-libffi"
3410 ;;
3411 *-*-tpf*)
3412 noconfigdirs="$noconfigdirs target-libffi"
3413 ;;
3414 *-*-uclinux*)
3415 noconfigdirs="$noconfigdirs target-libffi"
3416 ;;
3417 *-*-vxworks*)
3418 noconfigdirs="$noconfigdirs target-libffi"
3419 ;;
3420 aarch64*-*-freebsd*)
3421 noconfigdirs="$noconfigdirs target-libffi"
3422 ;;
3423 alpha*-*-*vms*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 arm*-*-freebsd*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 arm-wince-pe)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 arm*-*-symbianelf*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 cris-*-* | crisv32-*-*)
3436 case "${target}" in
3437 *-*-linux*)
3438 ;;
3439 *) # See PR46792 regarding target-libffi.
3440 noconfigdirs="$noconfigdirs target-libffi";;
3441 esac
3442 ;;
3443 hppa*64*-*-hpux*)
3444 noconfigdirs="$noconfigdirs target-libffi"
3445 ;;
3446 hppa*-hp-hpux11*)
3447 ;;
3448 hppa*-*-hpux*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 ia64*-*-*vms*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 i[3456789]86-w64-mingw*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 i[3456789]86-*-mingw*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 x86_64-*-mingw*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 mmix-*-*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
3466 powerpc-*-aix*)
3467 # copied from rs6000-*-* entry
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 rs6000-*-aix*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 ft32-*-*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 *-*-lynxos*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 esac
3480
3481 # Disable the go frontend on systems where it is known to not work. Please keep
3482 # this in sync with contrib/config-list.mk.
3483 case "${target}" in
3484 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3485 unsupported_languages="$unsupported_languages go"
3486 ;;
3487 esac
3488
3489 # Disable libgo for some systems where it is known to not work.
3490 # For testing, you can easily override this with --enable-libgo.
3491 if test x$enable_libgo = x; then
3492 case "${target}" in
3493 *-*-darwin*)
3494 # PR 46986
3495 noconfigdirs="$noconfigdirs target-libgo"
3496 ;;
3497 *-*-cygwin* | *-*-mingw*)
3498 noconfigdirs="$noconfigdirs target-libgo"
3499 ;;
3500 *-*-aix*)
3501 noconfigdirs="$noconfigdirs target-libgo"
3502 ;;
3503 esac
3504 fi
3505
3506 # Default libgloss CPU subdirectory.
3507 libgloss_dir="$target_cpu"
3508
3509 case "${target}" in
3510 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3511 libgloss_dir=wince
3512 ;;
3513 aarch64*-*-* )
3514 libgloss_dir=aarch64
3515 ;;
3516 arm*-*-*)
3517 libgloss_dir=arm
3518 ;;
3519 cris-*-* | crisv32-*-*)
3520 libgloss_dir=cris
3521 ;;
3522 hppa*-*-*)
3523 libgloss_dir=pa
3524 ;;
3525 i[3456789]86-*-*)
3526 libgloss_dir=i386
3527 ;;
3528 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3529 libgloss_dir=m68hc11
3530 ;;
3531 m68*-*-* | fido-*-*)
3532 libgloss_dir=m68k
3533 ;;
3534 mips*-*-*)
3535 libgloss_dir=mips
3536 ;;
3537 powerpc*-*-*)
3538 libgloss_dir=rs6000
3539 ;;
3540 sparc*-*-*)
3541 libgloss_dir=sparc
3542 ;;
3543 esac
3544
3545 # Disable newlib and libgloss for various target OSes.
3546 case "${target}" in
3547 alpha*-dec-osf*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 ;;
3550 i[3456789]86-*-linux*)
3551 # This section makes it possible to build newlib natively on linux.
3552 # If we are using a cross compiler then don't configure newlib.
3553 if test x${is_cross_compiler} != xno ; then
3554 noconfigdirs="$noconfigdirs target-newlib"
3555 fi
3556 noconfigdirs="$noconfigdirs target-libgloss"
3557 # If we are not using a cross compiler, do configure newlib.
3558 # Note however, that newlib will only be configured in this situation
3559 # if the --with-newlib option has been given, because otherwise
3560 # 'target-newlib' will appear in skipdirs.
3561 ;;
3562 i[3456789]86-*-rdos*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 ;;
3565 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 ;;
3568 sparc-*-sunos4*)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 *-*-aix*)
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 ;;
3574 *-*-beos*)
3575 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3576 ;;
3577 *-*-chorusos)
3578 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3579 ;;
3580 *-*-dragonfly*)
3581 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 ;;
3583 *-*-freebsd*)
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 ;;
3586 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3587 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3588 ;;
3589 *-*-lynxos*)
3590 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 ;;
3592 *-*-mingw*)
3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 ;;
3595 *-*-netbsd*)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 ;;
3598 *-*-netware*)
3599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 ;;
3601 *-*-tpf*)
3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 ;;
3604 *-*-uclinux*)
3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 ;;
3607 *-*-vxworks*)
3608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 ;;
3610 esac
3611
3612 case "${target}" in
3613 *-*-chorusos)
3614 ;;
3615 aarch64-*-darwin*)
3616 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3617 noconfigdirs="$noconfigdirs sim target-rda"
3618 ;;
3619 arm-*-darwin*)
3620 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3621 noconfigdirs="$noconfigdirs sim target-rda"
3622 ;;
3623 powerpc-*-darwin*)
3624 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3625 noconfigdirs="$noconfigdirs sim target-rda"
3626 ;;
3627 i[3456789]86-*-darwin*)
3628 noconfigdirs="$noconfigdirs ld gprof"
3629 noconfigdirs="$noconfigdirs sim target-rda"
3630 ;;
3631 x86_64-*-darwin[912]*)
3632 noconfigdirs="$noconfigdirs ld gas gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
3635 *-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
3638 ;;
3639 *-*-dragonfly*)
3640 ;;
3641 *-*-freebsd*)
3642 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3643 && test -f /usr/local/include/gmp.h; then
3644 with_gmp=/usr/local
3645 fi
3646 ;;
3647 *-*-kaos*)
3648 # Remove unsupported stuff on all kaOS configurations.
3649 noconfigdirs="$noconfigdirs target-libgloss"
3650 ;;
3651 *-*-netbsd*)
3652 ;;
3653 *-*-netware*)
3654 ;;
3655 *-*-phoenix*)
3656 noconfigdirs="$noconfigdirs target-libgloss"
3657 ;;
3658 *-*-rtems*)
3659 noconfigdirs="$noconfigdirs target-libgloss"
3660 # this is not caught below because this stanza matches earlier
3661 case $target in
3662 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3663 esac
3664 ;;
3665 # The tpf target doesn't support gdb yet.
3666 *-*-tpf*)
3667 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3668 ;;
3669 *-*-uclinux*)
3670 noconfigdirs="$noconfigdirs target-rda"
3671 ;;
3672 *-*-vxworks*)
3673 ;;
3674 alpha*-dec-osf*)
3675 # ld works, but does not support shared libraries.
3676 # gas doesn't generate exception information.
3677 noconfigdirs="$noconfigdirs gas ld"
3678 ;;
3679 alpha*-*-*vms*)
3680 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3681 ;;
3682 alpha*-*-*)
3683 # newlib is not 64 bit ready
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3687 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3688 ;;
3689 arc*-*-*)
3690 noconfigdirs="$noconfigdirs sim"
3691 ;;
3692 arm-*-pe*)
3693 noconfigdirs="$noconfigdirs target-libgloss"
3694 ;;
3695 arm-*-riscix*)
3696 noconfigdirs="$noconfigdirs ld target-libgloss"
3697 ;;
3698 avr-*-*)
3699 if test x${with_avrlibc} != xno; then
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 fi
3702 ;;
3703 c4x-*-* | tic4x-*-*)
3704 noconfigdirs="$noconfigdirs target-libgloss"
3705 ;;
3706 tic54x-*-*)
3707 noconfigdirs="$noconfigdirs target-libgloss gdb"
3708 ;;
3709 d10v-*-*)
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 ;;
3712 d30v-*-*)
3713 noconfigdirs="$noconfigdirs gdb"
3714 ;;
3715 fr30-*-elf*)
3716 noconfigdirs="$noconfigdirs gdb"
3717 ;;
3718 ft32-*-*)
3719 noconfigdirs="$noconfigdirs target-rda gprof"
3720 ;;
3721 moxie-*-*)
3722 noconfigdirs="$noconfigdirs"
3723 ;;
3724 h8300*-*-*)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 ;;
3727 h8500-*-*)
3728 noconfigdirs="$noconfigdirs target-libgloss"
3729 ;;
3730 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3731 ;;
3732 hppa*64*-*-hpux*)
3733 noconfigdirs="$noconfigdirs gdb"
3734 ;;
3735 hppa*-*-hpux11*)
3736 noconfigdirs="$noconfigdirs gdb ld"
3737 ;;
3738 hppa*64*-*-linux*)
3739 ;;
3740 hppa*-*-linux*)
3741 ;;
3742 hppa*-*-*elf* | \
3743 hppa*-*-lites* | \
3744 hppa*-*-openbsd* | \
3745 hppa*64*-*-*)
3746 ;;
3747 hppa*-*-pro*)
3748 ;;
3749 hppa*-*-*)
3750 noconfigdirs="$noconfigdirs ld"
3751 ;;
3752 i960-*-*)
3753 noconfigdirs="$noconfigdirs gdb"
3754 ;;
3755 ia64*-*-elf*)
3756 # No gdb support yet.
3757 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3758 ;;
3759 ia64*-**-hpux*)
3760 # No ld support yet.
3761 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3762 ;;
3763 ia64*-*-*vms*)
3764 # No ld support yet.
3765 noconfigdirs="$noconfigdirs libgui itcl ld"
3766 ;;
3767 i[3456789]86-w64-mingw*)
3768 ;;
3769 i[3456789]86-*-mingw*)
3770 target_configdirs="$target_configdirs target-winsup"
3771 ;;
3772 *-*-cygwin*)
3773 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3774 noconfigdirs="$noconfigdirs target-libgloss"
3775 # always build newlib if winsup directory is present.
3776 if test -d "$srcdir/winsup/cygwin"; then
3777 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3778 elif test -d "$srcdir/newlib"; then
3779 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3780 fi
3781 ;;
3782 i[3456789]86-*-pe)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3784 ;;
3785 i[3456789]86-*-sco3.2v5*)
3786 # The linker does not yet know about weak symbols in COFF,
3787 # and is not configured to handle mixed ELF and COFF.
3788 noconfigdirs="$noconfigdirs ld target-libgloss"
3789 ;;
3790 i[3456789]86-*-sco*)
3791 noconfigdirs="$noconfigdirs gprof target-libgloss"
3792 ;;
3793 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3794 noconfigdirs="$noconfigdirs target-libgloss"
3795 ;;
3796 i[3456789]86-*-sysv4*)
3797 noconfigdirs="$noconfigdirs target-libgloss"
3798 ;;
3799 i[3456789]86-*-beos*)
3800 noconfigdirs="$noconfigdirs gdb"
3801 ;;
3802 i[3456789]86-*-rdos*)
3803 noconfigdirs="$noconfigdirs gdb"
3804 ;;
3805 mmix-*-*)
3806 noconfigdirs="$noconfigdirs gdb"
3807 ;;
3808 mt-*-*)
3809 noconfigdirs="$noconfigdirs sim"
3810 ;;
3811 powerpc-*-aix*)
3812 # copied from rs6000-*-* entry
3813 noconfigdirs="$noconfigdirs gprof"
3814 ;;
3815 powerpc*-*-winnt* | powerpc*-*-pe*)
3816 target_configdirs="$target_configdirs target-winsup"
3817 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3818 # always build newlib.
3819 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3820 ;;
3821 # This is temporary until we can link against shared libraries
3822 powerpcle-*-solaris*)
3823 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3824 ;;
3825 powerpc-*-beos*)
3826 noconfigdirs="$noconfigdirs gdb"
3827 ;;
3828 rs6000-*-lynxos*)
3829 noconfigdirs="$noconfigdirs gprof"
3830 ;;
3831 rs6000-*-aix*)
3832 noconfigdirs="$noconfigdirs gprof"
3833 ;;
3834 rs6000-*-*)
3835 noconfigdirs="$noconfigdirs gprof"
3836 ;;
3837 m68k-apollo-*)
3838 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3839 ;;
3840 microblaze*)
3841 noconfigdirs="$noconfigdirs gprof"
3842 ;;
3843 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3844 if test x$with_newlib = xyes; then
3845 noconfigdirs="$noconfigdirs gprof"
3846 fi
3847 ;;
3848 mips*-*-irix5*)
3849 noconfigdirs="$noconfigdirs gprof target-libgloss"
3850 ;;
3851 mips*-*-irix6*)
3852 noconfigdirs="$noconfigdirs gprof target-libgloss"
3853 ;;
3854 mips*-*-bsd*)
3855 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3856 ;;
3857 mips*-*-linux*)
3858 ;;
3859 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3860 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3861 noconfigdirs="$noconfigdirs ld gas gprof"
3862 ;;
3863 mips*-*-*)
3864 noconfigdirs="$noconfigdirs gprof"
3865 ;;
3866 nvptx*-*-*)
3867 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3868 ;;
3869 or1k*-*-*)
3870 noconfigdirs="$noconfigdirs gdb"
3871 ;;
3872 sh-*-*)
3873 case "${target}" in
3874 sh*-*-elf)
3875 ;;
3876 *)
3877 noconfigdirs="$noconfigdirs target-libgloss" ;;
3878 esac
3879 ;;
3880 sparc-*-sunos4*)
3881 if test x${is_cross_compiler} = xno ; then
3882 use_gnu_ld=no
3883 fi
3884 ;;
3885 tic6x-*-*)
3886 noconfigdirs="$noconfigdirs sim"
3887 ;;
3888 tilepro*-*-* | tilegx*-*-*)
3889 noconfigdirs="$noconfigdirs sim"
3890 ;;
3891 v810-*-*)
3892 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3893 ;;
3894 vax-*-*)
3895 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3896 ;;
3897 esac
3898
3899 # If we aren't building newlib, then don't build libgloss, since libgloss
3900 # depends upon some newlib header files.
3901 case "${noconfigdirs}" in
3902 *target-libgloss*) ;;
3903 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3904 esac
3905
3906 # Work in distributions that contain no compiler tools, like Autoconf.
3907 host_makefile_frag=/dev/null
3908 if test -d ${srcdir}/config ; then
3909 case "${host}" in
3910 i[3456789]86-*-msdosdjgpp*)
3911 host_makefile_frag="config/mh-djgpp"
3912 ;;
3913 *-cygwin*)
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3916 $as_echo_n "checking to see if cat works as expected... " >&6; }
3917 echo a >cygwin-cat-check
3918 if test `cat cygwin-cat-check` = a ; then
3919 rm cygwin-cat-check
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921 $as_echo "yes" >&6; }
3922 else
3923 rm cygwin-cat-check
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 as_fn_error "The cat command does not ignore carriage return characters.
3927 Please either mount the build directory in binary mode or run the following
3928 commands before running any configure script:
3929 set -o igncr
3930 export SHELLOPTS
3931 " "$LINENO" 5
3932 fi
3933
3934 host_makefile_frag="config/mh-cygwin"
3935 ;;
3936 *-mingw*)
3937 host_makefile_frag="config/mh-mingw"
3938 ;;
3939 alpha*-linux*)
3940 host_makefile_frag="config/mh-alpha-linux"
3941 ;;
3942 hppa*-hp-hpux10*)
3943 host_makefile_frag="config/mh-pa-hpux10"
3944 ;;
3945 hppa*-hp-hpux*)
3946 host_makefile_frag="config/mh-pa"
3947 ;;
3948 hppa*-*)
3949 host_makefile_frag="config/mh-pa"
3950 ;;
3951 *-*-darwin*)
3952 host_makefile_frag="config/mh-darwin"
3953 ;;
3954 powerpc-*-aix*)
3955 host_makefile_frag="config/mh-ppc-aix"
3956 ;;
3957 rs6000-*-aix*)
3958 host_makefile_frag="config/mh-ppc-aix"
3959 ;;
3960 esac
3961 fi
3962
3963 if test "${build}" != "${host}" ; then
3964 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3965 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3966 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3967 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3968 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3969 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3970 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3971 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3972 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3973 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3974 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3975 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3976 else
3977 AR_FOR_BUILD="\$(AR)"
3978 AS_FOR_BUILD="\$(AS)"
3979 CC_FOR_BUILD="\$(CC)"
3980 CXX_FOR_BUILD="\$(CXX)"
3981 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3982 GOC_FOR_BUILD="\$(GOC)"
3983 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3984 LD_FOR_BUILD="\$(LD)"
3985 NM_FOR_BUILD="\$(NM)"
3986 RANLIB_FOR_BUILD="\$(RANLIB)"
3987 WINDRES_FOR_BUILD="\$(WINDRES)"
3988 WINDMC_FOR_BUILD="\$(WINDMC)"
3989 fi
3990
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 if test -z "$ac_cv_prog_CC"; then
4036 ac_ct_CC=$CC
4037 # Extract the first word of "gcc", so it can be a program name with args.
4038 set dummy gcc; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054 ac_cv_prog_ac_ct_CC="gcc"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058 done
4059 done
4060 IFS=$as_save_IFS
4061
4062 fi
4063 fi
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 $as_echo "$ac_ct_CC" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082 CC=$ac_ct_CC
4083 fi
4084 else
4085 CC="$ac_cv_prog_CC"
4086 fi
4087
4088 if test -z "$CC"; then
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}cc; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_CC="${ac_tool_prefix}cc"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 CC=$ac_cv_prog_CC
4118 if test -n "$CC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4120 $as_echo "$CC" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127 fi
4128 fi
4129 if test -z "$CC"; then
4130 # Extract the first word of "cc", so it can be a program name with args.
4131 set dummy cc; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_CC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 ac_prog_rejected=no
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4149 ac_prog_rejected=yes
4150 continue
4151 fi
4152 ac_cv_prog_CC="cc"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4155 fi
4156 done
4157 done
4158 IFS=$as_save_IFS
4159
4160 if test $ac_prog_rejected = yes; then
4161 # We found a bogon in the path, so make sure we never use it.
4162 set dummy $ac_cv_prog_CC
4163 shift
4164 if test $# != 0; then
4165 # We chose a different compiler from the bogus one.
4166 # However, it has the same basename, so the bogon will be chosen
4167 # first if we set CC to just the basename; use the full file name.
4168 shift
4169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4170 fi
4171 fi
4172 fi
4173 fi
4174 CC=$ac_cv_prog_CC
4175 if test -n "$CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184 fi
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 for ac_prog in cl.exe
4188 do
4189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_CC+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 test -n "$CC" && break
4227 done
4228 fi
4229 if test -z "$CC"; then
4230 ac_ct_CC=$CC
4231 for ac_prog in cl.exe
4232 do
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$ac_ct_CC"; then
4241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_ac_ct_CC="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4261 if test -n "$ac_ct_CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4263 $as_echo "$ac_ct_CC" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270 test -n "$ac_ct_CC" && break
4271 done
4272
4273 if test "x$ac_ct_CC" = x; then
4274 CC=""
4275 else
4276 case $cross_compiling:$ac_tool_warned in
4277 yes:)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280 ac_tool_warned=yes ;;
4281 esac
4282 CC=$ac_ct_CC
4283 fi
4284 fi
4285
4286 fi
4287
4288
4289 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291 as_fn_error "no acceptable C compiler found in \$PATH
4292 See \`config.log' for more details." "$LINENO" 5; }
4293
4294 # Provide some information about the compiler.
4295 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4296 set X $ac_compile
4297 ac_compiler=$2
4298 for ac_option in --version -v -V -qversion; do
4299 { { ac_try="$ac_compiler $ac_option >&5"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4307 ac_status=$?
4308 if test -s conftest.err; then
4309 sed '10a\
4310 ... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4313 rm -f conftest.er1 conftest.err
4314 fi
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317 done
4318
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321
4322 int
4323 main ()
4324 {
4325
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 ac_clean_files_save=$ac_clean_files
4331 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4332 # Try to create an executable without -o first, disregard a.out.
4333 # It will help us diagnose broken compilers, and finding out an intuition
4334 # of exeext.
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4336 $as_echo_n "checking for C compiler default output file name... " >&6; }
4337 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4338
4339 # The possible output files:
4340 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4341
4342 ac_rmfiles=
4343 for ac_file in $ac_files
4344 do
4345 case $ac_file in
4346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4347 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4348 esac
4349 done
4350 rm -f $ac_rmfiles
4351
4352 if { { ac_try="$ac_link_default"
4353 case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358 $as_echo "$ac_try_echo"; } >&5
4359 (eval "$ac_link_default") 2>&5
4360 ac_status=$?
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }; then :
4363 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4365 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4366 # so that the user can short-circuit this test for compilers unknown to
4367 # Autoconf.
4368 for ac_file in $ac_files ''
4369 do
4370 test -f "$ac_file" || continue
4371 case $ac_file in
4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4373 ;;
4374 [ab].out )
4375 # We found the default executable, but exeext='' is most
4376 # certainly right.
4377 break;;
4378 *.* )
4379 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4380 then :; else
4381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4382 fi
4383 # We set ac_cv_exeext here because the later test for it is not
4384 # safe: cross compilers may not add the suffix if given an `-o'
4385 # argument, so we may need to know it at that point already.
4386 # Even if this section looks crufty: it has the advantage of
4387 # actually working.
4388 break;;
4389 * )
4390 break;;
4391 esac
4392 done
4393 test "$ac_cv_exeext" = no && ac_cv_exeext=
4394
4395 else
4396 ac_file=''
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4399 $as_echo "$ac_file" >&6; }
4400 if test -z "$ac_file"; then :
4401 $as_echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 { as_fn_set_status 77
4407 as_fn_error "C compiler cannot create executables
4408 See \`config.log' for more details." "$LINENO" 5; }; }
4409 fi
4410 ac_exeext=$ac_cv_exeext
4411
4412 # Check that the compiler produces executables we can run. If not, either
4413 # the compiler is broken, or we cross compile.
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4415 $as_echo_n "checking whether the C compiler works... " >&6; }
4416 # If not cross compiling, check that we can run a simple program.
4417 if test "$cross_compiling" != yes; then
4418 if { ac_try='./$ac_file'
4419 { { case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_try") 2>&5
4426 ac_status=$?
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }; }; then
4429 cross_compiling=no
4430 else
4431 if test "$cross_compiling" = maybe; then
4432 cross_compiling=yes
4433 else
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error "cannot run C compiled programs.
4437 If you meant to cross compile, use \`--host'.
4438 See \`config.log' for more details." "$LINENO" 5; }
4439 fi
4440 fi
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4444
4445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4446 ac_clean_files=$ac_clean_files_save
4447 # Check that the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4450 $as_echo_n "checking whether we are cross compiling... " >&6; }
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4452 $as_echo "$cross_compiling" >&6; }
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4455 $as_echo_n "checking for suffix of executables... " >&6; }
4456 if { { ac_try="$ac_link"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_link") 2>&5
4464 ac_status=$?
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; then :
4467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4468 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4469 # work properly (i.e., refer to `conftest.exe'), while it won't with
4470 # `rm'.
4471 for ac_file in conftest.exe conftest conftest.*; do
4472 test -f "$ac_file" || continue
4473 case $ac_file in
4474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4476 break;;
4477 * ) break;;
4478 esac
4479 done
4480 else
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error "cannot compute suffix of executables: cannot compile and link
4484 See \`config.log' for more details." "$LINENO" 5; }
4485 fi
4486 rm -f conftest$ac_cv_exeext
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4488 $as_echo "$ac_cv_exeext" >&6; }
4489
4490 rm -f conftest.$ac_ext
4491 EXEEXT=$ac_cv_exeext
4492 ac_exeext=$EXEEXT
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4494 $as_echo_n "checking for suffix of object files... " >&6; }
4495 if test "${ac_cv_objext+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main ()
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.o conftest.obj
4510 if { { ac_try="$ac_compile"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compile") 2>&5
4518 ac_status=$?
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
4521 for ac_file in conftest.o conftest.obj conftest.*; do
4522 test -f "$ac_file" || continue;
4523 case $ac_file in
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4526 break;;
4527 esac
4528 done
4529 else
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535 as_fn_error "cannot compute suffix of object files: cannot compile
4536 See \`config.log' for more details." "$LINENO" 5; }
4537 fi
4538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4541 $as_echo "$ac_cv_objext" >&6; }
4542 OBJEXT=$ac_cv_objext
4543 ac_objext=$OBJEXT
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4546 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551
4552 int
4553 main ()
4554 {
4555 #ifndef __GNUC__
4556 choke me
4557 #endif
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564 ac_compiler_gnu=yes
4565 else
4566 ac_compiler_gnu=no
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4570
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4574 if test $ac_compiler_gnu = yes; then
4575 GCC=yes
4576 else
4577 GCC=
4578 fi
4579 ac_test_CFLAGS=${CFLAGS+set}
4580 ac_save_CFLAGS=$CFLAGS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4583 if test "${ac_cv_prog_cc_g+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 ac_save_c_werror_flag=$ac_c_werror_flag
4587 ac_c_werror_flag=yes
4588 ac_cv_prog_cc_g=no
4589 CFLAGS="-g"
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592
4593 int
4594 main ()
4595 {
4596
4597 ;
4598 return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_prog_cc_g=yes
4603 else
4604 CFLAGS=""
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607
4608 int
4609 main ()
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617
4618 else
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="-g"
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623
4624 int
4625 main ()
4626 {
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_g=yes
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4643 $as_echo "$ac_cv_prog_cc_g" >&6; }
4644 if test "$ac_test_CFLAGS" = set; then
4645 CFLAGS=$ac_save_CFLAGS
4646 elif test $ac_cv_prog_cc_g = yes; then
4647 if test "$GCC" = yes; then
4648 CFLAGS="-g -O2"
4649 else
4650 CFLAGS="-g"
4651 fi
4652 else
4653 if test "$GCC" = yes; then
4654 CFLAGS="-O2"
4655 else
4656 CFLAGS=
4657 fi
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4661 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 ac_cv_prog_cc_c89=no
4665 ac_save_CC=$CC
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <stdarg.h>
4669 #include <stdio.h>
4670 #include <sys/types.h>
4671 #include <sys/stat.h>
4672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673 struct buf { int x; };
4674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675 static char *e (p, i)
4676 char **p;
4677 int i;
4678 {
4679 return p[i];
4680 }
4681 static char *f (char * (*g) (char **, int), char **p, ...)
4682 {
4683 char *s;
4684 va_list v;
4685 va_start (v,p);
4686 s = g (p, va_arg (v,int));
4687 va_end (v);
4688 return s;
4689 }
4690
4691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
4694 as 'x'. The following induces an error, until -std is added to get
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
4697 that's true only with -std. */
4698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4699
4700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4702 #define FOO(x) 'x'
4703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4704
4705 int test (int i, double x);
4706 struct s1 {int (*f) (int a);};
4707 struct s2 {int (*f) (double a);};
4708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4709 int argc;
4710 char **argv;
4711 int
4712 main ()
4713 {
4714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4721 do
4722 CC="$ac_save_CC $ac_arg"
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_c89=$ac_arg
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext
4727 test "x$ac_cv_prog_cc_c89" != "xno" && break
4728 done
4729 rm -f conftest.$ac_ext
4730 CC=$ac_save_CC
4731
4732 fi
4733 # AC_CACHE_VAL
4734 case "x$ac_cv_prog_cc_c89" in
4735 x)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4737 $as_echo "none needed" >&6; } ;;
4738 xno)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4740 $as_echo "unsupported" >&6; } ;;
4741 *)
4742 CC="$CC $ac_cv_prog_cc_c89"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4745 esac
4746 if test "x$ac_cv_prog_cc_c89" != xno; then :
4747
4748 fi
4749
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756 ac_ext=cpp
4757 ac_cpp='$CXXCPP $CPPFLAGS'
4758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4761 if test -z "$CXX"; then
4762 if test -n "$CCC"; then
4763 CXX=$CCC
4764 else
4765 if test -n "$ac_tool_prefix"; then
4766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4767 do
4768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_CXX+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$CXX"; then
4776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 fi
4794 fi
4795 CXX=$ac_cv_prog_CXX
4796 if test -n "$CXX"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4798 $as_echo "$CXX" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804
4805 test -n "$CXX" && break
4806 done
4807 fi
4808 if test -z "$CXX"; then
4809 ac_ct_CXX=$CXX
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4811 do
4812 # Extract the first word of "$ac_prog", so it can be a program name with args.
4813 set dummy $ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$ac_ct_CXX"; then
4820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_CXX="$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4840 if test -n "$ac_ct_CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4842 $as_echo "$ac_ct_CXX" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847
4848
4849 test -n "$ac_ct_CXX" && break
4850 done
4851
4852 if test "x$ac_ct_CXX" = x; then
4853 CXX="g++"
4854 else
4855 case $cross_compiling:$ac_tool_warned in
4856 yes:)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859 ac_tool_warned=yes ;;
4860 esac
4861 CXX=$ac_ct_CXX
4862 fi
4863 fi
4864
4865 fi
4866 fi
4867 # Provide some information about the compiler.
4868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4869 set X $ac_compile
4870 ac_compiler=$2
4871 for ac_option in --version -v -V -qversion; do
4872 { { ac_try="$ac_compiler $ac_option >&5"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4880 ac_status=$?
4881 if test -s conftest.err; then
4882 sed '10a\
4883 ... rest of stderr output deleted ...
4884 10q' conftest.err >conftest.er1
4885 cat conftest.er1 >&5
4886 rm -f conftest.er1 conftest.err
4887 fi
4888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4889 test $ac_status = 0; }
4890 done
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4893 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899
4900 int
4901 main ()
4902 {
4903 #ifndef __GNUC__
4904 choke me
4905 #endif
4906
4907 ;
4908 return 0;
4909 }
4910 _ACEOF
4911 if ac_fn_cxx_try_compile "$LINENO"; then :
4912 ac_compiler_gnu=yes
4913 else
4914 ac_compiler_gnu=no
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4918
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4921 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4922 if test $ac_compiler_gnu = yes; then
4923 GXX=yes
4924 else
4925 GXX=
4926 fi
4927 ac_test_CXXFLAGS=${CXXFLAGS+set}
4928 ac_save_CXXFLAGS=$CXXFLAGS
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4930 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4931 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4935 ac_cxx_werror_flag=yes
4936 ac_cv_prog_cxx_g=no
4937 CXXFLAGS="-g"
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_cxx_try_compile "$LINENO"; then :
4950 ac_cv_prog_cxx_g=yes
4951 else
4952 CXXFLAGS=""
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955
4956 int
4957 main ()
4958 {
4959
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 if ac_fn_cxx_try_compile "$LINENO"; then :
4965
4966 else
4967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4968 CXXFLAGS="-g"
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971
4972 int
4973 main ()
4974 {
4975
4976 ;
4977 return 0;
4978 }
4979 _ACEOF
4980 if ac_fn_cxx_try_compile "$LINENO"; then :
4981 ac_cv_prog_cxx_g=yes
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4991 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4992 if test "$ac_test_CXXFLAGS" = set; then
4993 CXXFLAGS=$ac_save_CXXFLAGS
4994 elif test $ac_cv_prog_cxx_g = yes; then
4995 if test "$GXX" = yes; then
4996 CXXFLAGS="-g -O2"
4997 else
4998 CXXFLAGS="-g"
4999 fi
5000 else
5001 if test "$GXX" = yes; then
5002 CXXFLAGS="-O2"
5003 else
5004 CXXFLAGS=
5005 fi
5006 fi
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014 # We must set the default linker to the linker used by gcc for the correct
5015 # operation of libtool. If LD is not defined and we are using gcc, try to
5016 # set the LD default to the ld used by gcc.
5017 if test -z "$LD"; then
5018 if test "$GCC" = yes; then
5019 case $build in
5020 *-*-mingw*)
5021 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5022 *)
5023 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5024 esac
5025 case $gcc_prog_ld in
5026 # Accept absolute paths.
5027 [\\/]* | [A-Za-z]:[\\/]*)
5028 LD="$gcc_prog_ld" ;;
5029 esac
5030 fi
5031 fi
5032
5033 # Check whether -static-libstdc++ -static-libgcc is supported.
5034 have_static_libs=no
5035 if test "$GCC" = yes; then
5036 saved_LDFLAGS="$LDFLAGS"
5037
5038 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5040 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5041 ac_ext=cpp
5042 ac_cpp='$CXXCPP $CPPFLAGS'
5043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5046
5047
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050
5051 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5052 #error -static-libstdc++ not implemented
5053 #endif
5054 int main() {}
5055 _ACEOF
5056 if ac_fn_cxx_try_link "$LINENO"; then :
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 $as_echo "yes" >&6; }; have_static_libs=yes
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070
5071
5072 LDFLAGS="$saved_LDFLAGS"
5073 fi
5074
5075
5076
5077
5078 if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$GNATBIND"; then
5087 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 GNATBIND=$ac_cv_prog_GNATBIND
5107 if test -n "$GNATBIND"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5109 $as_echo "$GNATBIND" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116 fi
5117 if test -z "$ac_cv_prog_GNATBIND"; then
5118 ac_ct_GNATBIND=$GNATBIND
5119 # Extract the first word of "gnatbind", so it can be a program name with args.
5120 set dummy gnatbind; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$ac_ct_GNATBIND"; then
5127 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5147 if test -n "$ac_ct_GNATBIND"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5149 $as_echo "$ac_ct_GNATBIND" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155 if test "x$ac_ct_GNATBIND" = x; then
5156 GNATBIND="no"
5157 else
5158 case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164 GNATBIND=$ac_ct_GNATBIND
5165 fi
5166 else
5167 GNATBIND="$ac_cv_prog_GNATBIND"
5168 fi
5169
5170 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$GNATMAKE"; then
5179 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 GNATMAKE=$ac_cv_prog_GNATMAKE
5199 if test -n "$GNATMAKE"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5201 $as_echo "$GNATMAKE" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207
5208 fi
5209 if test -z "$ac_cv_prog_GNATMAKE"; then
5210 ac_ct_GNATMAKE=$GNATMAKE
5211 # Extract the first word of "gnatmake", so it can be a program name with args.
5212 set dummy gnatmake; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$ac_ct_GNATMAKE"; then
5219 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5239 if test -n "$ac_ct_GNATMAKE"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5241 $as_echo "$ac_ct_GNATMAKE" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247 if test "x$ac_ct_GNATMAKE" = x; then
5248 GNATMAKE="no"
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 GNATMAKE=$ac_ct_GNATMAKE
5257 fi
5258 else
5259 GNATMAKE="$ac_cv_prog_GNATMAKE"
5260 fi
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5263 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5264 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 cat >conftest.adb <<EOF
5268 procedure conftest is begin null; end conftest;
5269 EOF
5270 acx_cv_cc_gcc_supports_ada=no
5271 # There is a bug in old released versions of GCC which causes the
5272 # driver to exit successfully when the appropriate language module
5273 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5274 # Therefore we must check for the error message as well as an
5275 # unsuccessful exit.
5276 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5277 # given a .adb file, but produce no object file. So we must check
5278 # if an object file was really produced to guard against this.
5279 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5280 if test x"$errors" = x && test -f conftest.$ac_objext; then
5281 acx_cv_cc_gcc_supports_ada=yes
5282 fi
5283 rm -f conftest.*
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5286 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5287
5288 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5289 have_gnat=yes
5290 else
5291 have_gnat=no
5292 fi
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5295 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5296 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 echo abfoo >t1
5300 echo cdfoo >t2
5301 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5302 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5303 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5304 :
5305 else
5306 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5307 fi
5308 fi
5309 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5310 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5311 :
5312 else
5313 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5314 fi
5315 fi
5316 rm t1 t2
5317
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5320 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5321 do_compare="$gcc_cv_prog_cmp_skip"
5322
5323
5324
5325 # Check whether --enable-bootstrap was given.
5326 if test "${enable_bootstrap+set}" = set; then :
5327 enableval=$enable_bootstrap;
5328 else
5329 enable_bootstrap=default
5330 fi
5331
5332
5333 # Issue errors and warnings for invalid/strange bootstrap combinations.
5334 if test -r $srcdir/gcc/configure; then
5335 have_compiler=yes
5336 else
5337 have_compiler=no
5338 fi
5339
5340 case "$have_compiler:$host:$target:$enable_bootstrap" in
5341 *:*:*:no) ;;
5342
5343 # Default behavior. Enable bootstrap if we have a compiler
5344 # and we are in a native configuration.
5345 yes:$build:$build:default)
5346 enable_bootstrap=yes ;;
5347
5348 *:*:*:default)
5349 enable_bootstrap=no ;;
5350
5351 # We have a compiler and we are in a native configuration, bootstrap is ok
5352 yes:$build:$build:yes)
5353 ;;
5354
5355 # Other configurations, but we have a compiler. Assume the user knows
5356 # what he's doing.
5357 yes:*:*:yes)
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5359 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5360 ;;
5361
5362 # No compiler: if they passed --enable-bootstrap explicitly, fail
5363 no:*:*:yes)
5364 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5365
5366 # Fail if wrong command line
5367 *)
5368 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5369 ;;
5370 esac
5371
5372 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5373 # C++98 compiler can still start the bootstrap.
5374 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5375 CXX="$CXX -std=gnu++98"
5376 fi
5377
5378 # Used for setting $lt_cv_objdir
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5380 $as_echo_n "checking for objdir... " >&6; }
5381 if test "${lt_cv_objdir+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 rm -f .libs 2>/dev/null
5385 mkdir .libs 2>/dev/null
5386 if test -d .libs; then
5387 lt_cv_objdir=.libs
5388 else
5389 # MS-DOS does not allow filenames that begin with a dot.
5390 lt_cv_objdir=_libs
5391 fi
5392 rmdir .libs 2>/dev/null
5393 fi
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5395 $as_echo "$lt_cv_objdir" >&6; }
5396 objdir=$lt_cv_objdir
5397
5398
5399
5400
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LT_OBJDIR "$lt_cv_objdir/"
5404 _ACEOF
5405
5406
5407
5408 # Check for GMP, MPFR and MPC
5409 gmplibs="-lmpc -lmpfr -lgmp"
5410 gmpinc=
5411 have_gmp=no
5412
5413 # Specify a location for mpc
5414 # check for this first so it ends up on the link line before mpfr.
5415
5416 # Check whether --with-mpc was given.
5417 if test "${with_mpc+set}" = set; then :
5418 withval=$with_mpc;
5419 fi
5420
5421
5422 # Check whether --with-mpc-include was given.
5423 if test "${with_mpc_include+set}" = set; then :
5424 withval=$with_mpc_include;
5425 fi
5426
5427
5428 # Check whether --with-mpc-lib was given.
5429 if test "${with_mpc_lib+set}" = set; then :
5430 withval=$with_mpc_lib;
5431 fi
5432
5433
5434 if test "x$with_mpc" != x; then
5435 gmplibs="-L$with_mpc/lib $gmplibs"
5436 gmpinc="-I$with_mpc/include $gmpinc"
5437 fi
5438 if test "x$with_mpc_include" != x; then
5439 gmpinc="-I$with_mpc_include $gmpinc"
5440 fi
5441 if test "x$with_mpc_lib" != x; then
5442 gmplibs="-L$with_mpc_lib $gmplibs"
5443 fi
5444 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5445 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5446 gmpinc='-I$$s/mpc/src '"$gmpinc"
5447 # Do not test the mpc version. Assume that it is sufficient, since
5448 # it is in the source tree, and the library has not been built yet
5449 # but it would be included on the link line in the version check below
5450 # hence making the test fail.
5451 have_gmp=yes
5452 fi
5453
5454 # Specify a location for mpfr
5455 # check for this first so it ends up on the link line before gmp.
5456
5457 # Check whether --with-mpfr-dir was given.
5458 if test "${with_mpfr_dir+set}" = set; then :
5459 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5460 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5461 fi
5462
5463
5464
5465 # Check whether --with-mpfr was given.
5466 if test "${with_mpfr+set}" = set; then :
5467 withval=$with_mpfr;
5468 fi
5469
5470
5471 # Check whether --with-mpfr-include was given.
5472 if test "${with_mpfr_include+set}" = set; then :
5473 withval=$with_mpfr_include;
5474 fi
5475
5476
5477 # Check whether --with-mpfr-lib was given.
5478 if test "${with_mpfr_lib+set}" = set; then :
5479 withval=$with_mpfr_lib;
5480 fi
5481
5482
5483 if test "x$with_mpfr" != x; then
5484 gmplibs="-L$with_mpfr/lib $gmplibs"
5485 gmpinc="-I$with_mpfr/include $gmpinc"
5486 fi
5487 if test "x$with_mpfr_include" != x; then
5488 gmpinc="-I$with_mpfr_include $gmpinc"
5489 fi
5490 if test "x$with_mpfr_lib" != x; then
5491 gmplibs="-L$with_mpfr_lib $gmplibs"
5492 fi
5493 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5494 # MPFR v3.1.0 moved the sources into a src sub-directory.
5495 if ! test -d ${srcdir}/mpfr/src; then
5496 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5497 fi
5498 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5499 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5500 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5501 # Do not test the mpfr version. Assume that it is sufficient, since
5502 # it is in the source tree, and the library has not been built yet
5503 # but it would be included on the link line in the version check below
5504 # hence making the test fail.
5505 have_gmp=yes
5506 fi
5507
5508 # Specify a location for gmp
5509
5510 # Check whether --with-gmp-dir was given.
5511 if test "${with_gmp_dir+set}" = set; then :
5512 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5513 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5514 fi
5515
5516
5517
5518 # Check whether --with-gmp was given.
5519 if test "${with_gmp+set}" = set; then :
5520 withval=$with_gmp;
5521 fi
5522
5523
5524 # Check whether --with-gmp-include was given.
5525 if test "${with_gmp_include+set}" = set; then :
5526 withval=$with_gmp_include;
5527 fi
5528
5529
5530 # Check whether --with-gmp-lib was given.
5531 if test "${with_gmp_lib+set}" = set; then :
5532 withval=$with_gmp_lib;
5533 fi
5534
5535
5536
5537 if test "x$with_gmp" != x; then
5538 gmplibs="-L$with_gmp/lib $gmplibs"
5539 gmpinc="-I$with_gmp/include $gmpinc"
5540 fi
5541 if test "x$with_gmp_include" != x; then
5542 gmpinc="-I$with_gmp_include $gmpinc"
5543 fi
5544 if test "x$with_gmp_lib" != x; then
5545 gmplibs="-L$with_gmp_lib $gmplibs"
5546 fi
5547 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5548 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5549 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5550 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5551 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5552 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5553 # Do not test the gmp version. Assume that it is sufficient, since
5554 # it is in the source tree, and the library has not been built yet
5555 # but it would be included on the link line in the version check below
5556 # hence making the test fail.
5557 have_gmp=yes
5558 fi
5559
5560 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5561 have_gmp=yes
5562 saved_CFLAGS="$CFLAGS"
5563 CFLAGS="$CFLAGS $gmpinc"
5564 # Check for the recommended and required versions of GMP.
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5566 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5567
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #include "gmp.h"
5571 int
5572 main ()
5573 {
5574
5575 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5576 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5577 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5578 choke me
5579 #endif
5580
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 #include <gmp.h>
5589 int
5590 main ()
5591 {
5592
5593 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5594 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5595 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5596 choke me
5597 #endif
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5605 $as_echo "yes" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5608 $as_echo "buggy but acceptable" >&6; }
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }; have_gmp=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616
5617 # If we have GMP, check the MPFR version.
5618 if test x"$have_gmp" = xyes; then
5619 # Check for the recommended and required versions of MPFR.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5621 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <gmp.h>
5625 #include <mpfr.h>
5626 int
5627 main ()
5628 {
5629
5630 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5631 choke me
5632 #endif
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include <gmp.h>
5642 #include <mpfr.h>
5643 int
5644 main ()
5645 {
5646
5647 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5648 choke me
5649 #endif
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5660 $as_echo "buggy but acceptable" >&6; }
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }; have_gmp=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669
5670 # Check for the MPC header version.
5671 if test x"$have_gmp" = xyes ; then
5672 # Check for the recommended and required versions of MPC.
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5674 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <mpc.h>
5678 int
5679 main ()
5680 {
5681
5682 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5683 choke me
5684 #endif
5685
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <mpc.h>
5694 int
5695 main ()
5696 {
5697
5698 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5699 choke me
5700 #endif
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5708 $as_echo "yes" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5711 $as_echo "buggy but acceptable" >&6; }
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }; have_gmp=no
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 fi
5720
5721 # Now check the MPFR library.
5722 if test x"$have_gmp" = xyes; then
5723 saved_LIBS="$LIBS"
5724 LIBS="$LIBS $gmplibs"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5726 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #include <mpc.h>
5730 int
5731 main ()
5732 {
5733
5734 mpfr_t n;
5735 mpfr_t x;
5736 mpc_t c;
5737 int t;
5738 mpfr_init (n);
5739 mpfr_init (x);
5740 mpfr_atan2 (n, n, x, GMP_RNDN);
5741 mpfr_erfc (n, x, GMP_RNDN);
5742 mpfr_subnormalize (x, t, GMP_RNDN);
5743 mpfr_clear(n);
5744 mpfr_clear(x);
5745 mpc_init2 (c, 53);
5746 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5747 mpc_cosh (c, c, MPC_RNDNN);
5748 mpc_pow (c, c, c, MPC_RNDNN);
5749 mpc_acosh (c, c, MPC_RNDNN);
5750 mpc_clear (c);
5751
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 if ac_fn_c_try_link "$LINENO"; then :
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758 $as_echo "yes" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }; have_gmp=no
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
5765 LIBS="$saved_LIBS"
5766 fi
5767
5768 CFLAGS="$saved_CFLAGS"
5769
5770 # The library versions listed in the error message below should match
5771 # the HARD-minimums enforced above.
5772 if test x$have_gmp != xyes; then
5773 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5774 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5775 their locations. Source code for these libraries can be found at
5776 their respective hosting sites as well as at
5777 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5778 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5779 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5780 make sure that you have installed both the libraries and the header
5781 files. They may be located in separate packages." "$LINENO" 5
5782 fi
5783 fi
5784
5785 # Flags needed for both GMP, MPFR and/or MPC.
5786
5787
5788
5789
5790
5791
5792
5793 # Libraries to use for stage1 or when not bootstrapping.
5794
5795 # Check whether --with-stage1-libs was given.
5796 if test "${with_stage1_libs+set}" = set; then :
5797 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5798 stage1_libs=
5799 else
5800 stage1_libs=$withval
5801 fi
5802 else
5803 stage1_libs=
5804 fi
5805
5806
5807
5808 # Linker flags to use for stage1 or when not bootstrapping.
5809
5810 # Check whether --with-stage1-ldflags was given.
5811 if test "${with_stage1_ldflags+set}" = set; then :
5812 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5813 stage1_ldflags=
5814 else
5815 stage1_ldflags=$withval
5816 fi
5817 else
5818 stage1_ldflags=
5819 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5820 # if supported. But if the user explicitly specified the libraries to use,
5821 # trust that they are doing what they want.
5822 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5823 stage1_ldflags="-static-libstdc++ -static-libgcc"
5824 fi
5825 fi
5826
5827
5828
5829 # Libraries to use for stage2 and later builds.
5830
5831 # Check whether --with-boot-libs was given.
5832 if test "${with_boot_libs+set}" = set; then :
5833 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5834 poststage1_libs=
5835 else
5836 poststage1_libs=$withval
5837 fi
5838 else
5839 poststage1_libs=
5840 fi
5841
5842
5843
5844 # Linker flags to use for stage2 and later builds.
5845
5846 # Check whether --with-boot-ldflags was given.
5847 if test "${with_boot_ldflags+set}" = set; then :
5848 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5849 poststage1_ldflags=
5850 else
5851 poststage1_ldflags=$withval
5852 fi
5853 else
5854 poststage1_ldflags=
5855 # In stages 2 and 3, default to linking libstdc++ and libgcc
5856 # statically. But if the user explicitly specified the libraries to
5857 # use, trust that they are doing what they want.
5858 if test "$poststage1_libs" = ""; then
5859 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5860 fi
5861 fi
5862
5863
5864
5865 # GCC GRAPHITE dependency isl.
5866 # Basic setup is inlined here, actual checks are in config/isl.m4
5867
5868
5869 # Check whether --with-isl was given.
5870 if test "${with_isl+set}" = set; then :
5871 withval=$with_isl;
5872 fi
5873
5874
5875 # Treat --without-isl as a request to disable
5876 # GRAPHITE support and skip all following checks.
5877 if test "x$with_isl" != "xno"; then
5878 # Check for isl
5879
5880
5881 # Check whether --with-isl-include was given.
5882 if test "${with_isl_include+set}" = set; then :
5883 withval=$with_isl_include;
5884 fi
5885
5886
5887 # Check whether --with-isl-lib was given.
5888 if test "${with_isl_lib+set}" = set; then :
5889 withval=$with_isl_lib;
5890 fi
5891
5892
5893 # Check whether --enable-isl-version-check was given.
5894 if test "${enable_isl_version_check+set}" = set; then :
5895 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5896 else
5897 ENABLE_ISL_CHECK=yes
5898 fi
5899
5900
5901 # Initialize isllibs and islinc.
5902 case $with_isl in
5903 no)
5904 isllibs=
5905 islinc=
5906 ;;
5907 "" | yes)
5908 ;;
5909 *)
5910 isllibs="-L$with_isl/lib"
5911 islinc="-I$with_isl/include"
5912 ;;
5913 esac
5914 if test "x${with_isl_include}" != x ; then
5915 islinc="-I$with_isl_include"
5916 fi
5917 if test "x${with_isl_lib}" != x; then
5918 isllibs="-L$with_isl_lib"
5919 fi
5920 if test "x${islinc}" = x && test "x${isllibs}" = x \
5921 && test -d ${srcdir}/isl; then
5922 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5923 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5924 ENABLE_ISL_CHECK=no
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5926 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5927 fi
5928
5929 isllibs="${isllibs} -lisl"
5930
5931
5932
5933 if test "${ENABLE_ISL_CHECK}" = yes ; then
5934 _isl_saved_CFLAGS=$CFLAGS
5935 _isl_saved_LDFLAGS=$LDFLAGS
5936 _isl_saved_LIBS=$LIBS
5937
5938 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5939 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5940 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5943 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <isl/ctx.h>
5947 int
5948 main ()
5949 {
5950 isl_ctx_get_max_operations (isl_ctx_alloc ());
5951 ;
5952 return 0;
5953 }
5954 _ACEOF
5955 if ac_fn_c_try_link "$LINENO"; then :
5956 gcc_cv_isl=yes
5957 else
5958 gcc_cv_isl=no
5959 fi
5960 rm -f core conftest.err conftest.$ac_objext \
5961 conftest$ac_exeext conftest.$ac_ext
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5963 $as_echo "$gcc_cv_isl" >&6; }
5964
5965 if test "${gcc_cv_isl}" = no ; then
5966 { $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
5967 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5968 fi
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5971 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974 #include <isl/schedule.h>
5975 int
5976 main ()
5977 {
5978 isl_options_set_schedule_serialize_sccs (NULL, 0);
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 if ac_fn_c_try_link "$LINENO"; then :
5984 ac_has_isl_options_set_schedule_serialize_sccs=yes
5985 else
5986 ac_has_isl_options_set_schedule_serialize_sccs=no
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5991 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5992
5993 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5994 islver="0.15"
5995
5996 fi
5997
5998 CFLAGS=$_isl_saved_CFLAGS
5999 LDFLAGS=$_isl_saved_LDFLAGS
6000 LIBS=$_isl_saved_LIBS
6001 fi
6002
6003
6004
6005
6006
6007
6008 if test "x${with_isl}" = xno; then
6009 graphite_requested=no
6010 elif test "x${with_isl}" != x \
6011 || test "x${with_isl_include}" != x \
6012 || test "x${with_isl_lib}" != x ; then
6013 graphite_requested=yes
6014 else
6015 graphite_requested=no
6016 fi
6017
6018
6019
6020 if test "${gcc_cv_isl}" = no ; then
6021 isllibs=
6022 islinc=
6023 fi
6024
6025 if test "${graphite_requested}" = yes \
6026 && test "x${isllibs}" = x \
6027 && test "x${islinc}" = x ; then
6028
6029 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6030 fi
6031
6032
6033 fi
6034
6035 # If the isl check failed, disable builds of in-tree variant of isl
6036 if test "x$with_isl" = xno ||
6037 test "x$gcc_cv_isl" = xno; then
6038 noconfigdirs="$noconfigdirs isl"
6039 islinc=
6040 fi
6041
6042
6043
6044
6045 # Check for LTO support.
6046 # Check whether --enable-lto was given.
6047 if test "${enable_lto+set}" = set; then :
6048 enableval=$enable_lto; enable_lto=$enableval
6049 else
6050 enable_lto=yes; default_enable_lto=yes
6051 fi
6052
6053
6054
6055
6056
6057 target_elf=no
6058 case $target in
6059 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6060 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6061 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6062 nvptx-*-none)
6063 target_elf=no
6064 ;;
6065 *)
6066 target_elf=yes
6067 ;;
6068 esac
6069
6070 if test $target_elf = yes; then :
6071 # ELF platforms build the lto-plugin always.
6072 build_lto_plugin=yes
6073
6074 else
6075 if test x"$default_enable_lto" = x"yes" ; then
6076 case $target in
6077 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6078 # On other non-ELF platforms, LTO has yet to be validated.
6079 *) enable_lto=no ;;
6080 esac
6081 else
6082 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6083 # It would also be nice to check the binutils support, but we don't
6084 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6085 # warn during gcc/ subconfigure; unless you're bootstrapping with
6086 # -flto it won't be needed until after installation anyway.
6087 case $target in
6088 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6089 *) if test x"$enable_lto" = x"yes"; then
6090 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6091 fi
6092 ;;
6093 esac
6094 fi
6095 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6096 # Build it unless LTO was explicitly disabled.
6097 case $target in
6098 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6099 *) ;;
6100 esac
6101
6102 fi
6103
6104
6105 # Check whether --enable-linker-plugin-configure-flags was given.
6106 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6107 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6108 else
6109 extra_linker_plugin_configure_flags=
6110 fi
6111
6112
6113 # Check whether --enable-linker-plugin-flags was given.
6114 if test "${enable_linker_plugin_flags+set}" = set; then :
6115 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6116 else
6117 extra_linker_plugin_flags=
6118 fi
6119
6120
6121
6122
6123 # By default, C and C++ are the only stage 1 languages.
6124 stage1_languages=,c,
6125
6126 # Target libraries that we bootstrap.
6127 bootstrap_target_libs=,target-libgcc,
6128
6129 # Figure out what language subdirectories are present.
6130 # Look if the user specified --enable-languages="..."; if not, use
6131 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6132 # go away some day.
6133 # NB: embedded tabs in this IF block -- do not untabify
6134 if test -d ${srcdir}/gcc; then
6135 if test x"${enable_languages+set}" != xset; then
6136 if test x"${LANGUAGES+set}" = xset; then
6137 enable_languages="${LANGUAGES}"
6138 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6139 else
6140 enable_languages=all
6141 fi
6142 else
6143 if test x"${enable_languages}" = x ||
6144 test x"${enable_languages}" = xyes;
6145 then
6146 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6147 exit 1
6148 fi
6149 fi
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6151
6152 # 'f95' is the old name for the 'fortran' language. We issue a warning
6153 # and make the substitution.
6154 case ,${enable_languages}, in
6155 *,f95,*)
6156 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6157 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6158 ;;
6159 esac
6160
6161 # If bootstrapping, C++ must be enabled.
6162 case ",$enable_languages,:$enable_bootstrap" in
6163 *,c++,*:*) ;;
6164 *:yes)
6165 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6166 enable_languages="${enable_languages},c++"
6167 else
6168 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6169 fi
6170 ;;
6171 esac
6172
6173 # First scan to see if an enabled language requires some other language.
6174 # We assume that a given config-lang.in will list all the language
6175 # front ends it requires, even if some are required indirectly.
6176 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6177 case ${lang_frag} in
6178 ..) ;;
6179 # The odd quoting in the next line works around
6180 # an apparent bug in bash 1.12 on linux.
6181 ${srcdir}/gcc/[*]/config-lang.in) ;;
6182 *)
6183 # From the config-lang.in, get $language, $lang_requires, and
6184 # $lang_requires_boot_languages.
6185 language=
6186 lang_requires=
6187 lang_requires_boot_languages=
6188 . ${lang_frag}
6189 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6190 case ,${enable_languages}, in
6191 *,$other,*) ;;
6192 *,all,*) ;;
6193 *,$language,*)
6194 echo " \`$other' language required by \`$language'; enabling" 1>&2
6195 enable_languages="${enable_languages},${other}"
6196 ;;
6197 esac
6198 done
6199 for other in ${lang_requires_boot_languages} ; do
6200 if test "$other" != "c"; then
6201 case ,${enable_stage1_languages}, in
6202 *,$other,*) ;;
6203 *,all,*) ;;
6204 *)
6205 case ,${enable_languages}, in
6206 *,$language,*)
6207 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6208 enable_stage1_languages="$enable_stage1_languages,${other}"
6209 ;;
6210 esac
6211 ;;
6212 esac
6213 fi
6214 done
6215 ;;
6216 esac
6217 done
6218
6219 new_enable_languages=,c,
6220
6221 # If LTO is enabled, add the LTO front end.
6222 if test "$enable_lto" = "yes" ; then
6223 case ,${enable_languages}, in
6224 *,lto,*) ;;
6225 *) enable_languages="${enable_languages},lto" ;;
6226 esac
6227 if test "${build_lto_plugin}" = "yes" ; then
6228 configdirs="$configdirs lto-plugin"
6229 fi
6230 fi
6231
6232 # If we're building an offloading compiler, add the LTO front end.
6233 if test x"$enable_as_accelerator_for" != x ; then
6234 case ,${enable_languages}, in
6235 *,lto,*) ;;
6236 *) enable_languages="${enable_languages},lto" ;;
6237 esac
6238 fi
6239
6240 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6241 potential_languages=,c,
6242
6243 enabled_target_libs=
6244 disabled_target_libs=
6245
6246 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6247 case ${lang_frag} in
6248 ..) ;;
6249 # The odd quoting in the next line works around
6250 # an apparent bug in bash 1.12 on linux.
6251 ${srcdir}/gcc/[*]/config-lang.in) ;;
6252 *)
6253 # From the config-lang.in, get $language, $target_libs,
6254 # $lang_dirs, $boot_language, and $build_by_default
6255 language=
6256 target_libs=
6257 lang_dirs=
6258 subdir_requires=
6259 boot_language=no
6260 build_by_default=yes
6261 . ${lang_frag}
6262 if test x${language} = x; then
6263 echo "${lang_frag} doesn't set \$language." 1>&2
6264 exit 1
6265 fi
6266
6267 if test "$language" = "c++"; then
6268 boot_language=yes
6269 fi
6270
6271 add_this_lang=no
6272 case ,${enable_languages}, in
6273 *,${language},*)
6274 # Language was explicitly selected; include it
6275 # unless it is C, which is enabled by default.
6276 if test "$language" != "c"; then
6277 add_this_lang=yes
6278 fi
6279 ;;
6280 *,all,*)
6281 # 'all' was selected, select it if it is a default language
6282 if test "$language" != "c"; then
6283 add_this_lang=${build_by_default}
6284 fi
6285 ;;
6286 esac
6287
6288 # Disable languages that need other directories if these aren't available.
6289 for i in $subdir_requires; do
6290 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6291 case ,${enable_languages}, in
6292 *,${language},*)
6293 # Specifically requested language; tell them.
6294 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6295 ;;
6296 *)
6297 # Silently disable.
6298 add_this_lang=unsupported
6299 ;;
6300 esac
6301 done
6302
6303 # Disable Ada if no preexisting GNAT is available.
6304 case ,${enable_languages},:${language}:${have_gnat} in
6305 *,${language},*:ada:no)
6306 # Specifically requested language; tell them.
6307 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6308 ;;
6309 *:ada:no)
6310 # Silently disable.
6311 add_this_lang=unsupported
6312 ;;
6313 esac
6314
6315 # Disable a language that is unsupported by the target.
6316 case " $unsupported_languages " in
6317 *" $language "*)
6318 add_this_lang=unsupported
6319 ;;
6320 esac
6321
6322 case $add_this_lang in
6323 unsupported)
6324 # Remove language-dependent dirs.
6325 disabled_target_libs="$disabled_target_libs $target_libs"
6326 noconfigdirs="$noconfigdirs $lang_dirs"
6327 ;;
6328 no)
6329 # Remove language-dependent dirs; still show language as supported.
6330 disabled_target_libs="$disabled_target_libs $target_libs"
6331 noconfigdirs="$noconfigdirs $lang_dirs"
6332 potential_languages="${potential_languages}${language},"
6333 ;;
6334 yes)
6335 new_enable_languages="${new_enable_languages}${language},"
6336 potential_languages="${potential_languages}${language},"
6337 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6338 enabled_target_libs="$enabled_target_libs $target_libs"
6339 case "${boot_language}:,$enable_stage1_languages," in
6340 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6341 # Add to (comma-separated) list of stage 1 languages.
6342 case ",$stage1_languages," in
6343 *,$language,* | ,yes, | ,all,) ;;
6344 *) stage1_languages="${stage1_languages}${language}," ;;
6345 esac
6346 # We need to bootstrap any supporting libraries.
6347 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6348 ;;
6349 esac
6350 ;;
6351 esac
6352 ;;
6353 esac
6354 done
6355
6356 # Add target libraries which are only needed for disabled languages
6357 # to noconfigdirs.
6358 if test -n "$disabled_target_libs"; then
6359 for dir in $disabled_target_libs; do
6360 case " $enabled_target_libs " in
6361 *" ${dir} "*) ;;
6362 *) noconfigdirs="$noconfigdirs $dir" ;;
6363 esac
6364 done
6365 fi
6366
6367 # Check whether --enable-stage1-languages was given.
6368 if test "${enable_stage1_languages+set}" = set; then :
6369 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6370 ,no,|,,)
6371 # Set it to something that will have no effect in the loop below
6372 enable_stage1_languages=c ;;
6373 ,yes,)
6374 enable_stage1_languages=`echo $new_enable_languages | \
6375 sed -e "s/^,//" -e "s/,$//" ` ;;
6376 *,all,*)
6377 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6378 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6379 esac
6380
6381 # Add "good" languages from enable_stage1_languages to stage1_languages,
6382 # while "bad" languages go in missing_languages. Leave no duplicates.
6383 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6384 case $potential_languages in
6385 *,$i,*)
6386 case $stage1_languages in
6387 *,$i,*) ;;
6388 *) stage1_languages="$stage1_languages$i," ;;
6389 esac ;;
6390 *)
6391 case $missing_languages in
6392 *,$i,*) ;;
6393 *) missing_languages="$missing_languages$i," ;;
6394 esac ;;
6395 esac
6396 done
6397 fi
6398
6399
6400 # Remove leading/trailing commas that were added for simplicity
6401 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6402 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6403 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6404 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6405
6406 if test "x$missing_languages" != x; then
6407 as_fn_error "
6408 The following requested languages could not be built: ${missing_languages}
6409 Supported languages are: ${potential_languages}" "$LINENO" 5
6410 fi
6411 if test "x$new_enable_languages" != "x$enable_languages"; then
6412 echo The following languages will be built: ${new_enable_languages}
6413 enable_languages="$new_enable_languages"
6414 fi
6415
6416
6417 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6418 fi
6419
6420 # Handle --disable-<component> generically.
6421 for dir in $configdirs $build_configdirs $target_configdirs ; do
6422 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6423 varname=`echo $dirname | sed -e s/+/_/g`
6424 if eval test x\${enable_${varname}} "=" xno ; then
6425 noconfigdirs="$noconfigdirs $dir"
6426 fi
6427 done
6428
6429 # Check for Boehm's garbage collector
6430 # Check whether --enable-objc-gc was given.
6431 if test "${enable_objc_gc+set}" = set; then :
6432 enableval=$enable_objc_gc;
6433 fi
6434
6435
6436 # Check whether --with-target-bdw-gc was given.
6437 if test "${with_target_bdw_gc+set}" = set; then :
6438 withval=$with_target_bdw_gc;
6439 fi
6440
6441
6442 # Check whether --with-target-bdw-gc-include was given.
6443 if test "${with_target_bdw_gc_include+set}" = set; then :
6444 withval=$with_target_bdw_gc_include;
6445 fi
6446
6447
6448 # Check whether --with-target-bdw-gc-lib was given.
6449 if test "${with_target_bdw_gc_lib+set}" = set; then :
6450 withval=$with_target_bdw_gc_lib;
6451 fi
6452
6453
6454 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6456 $as_echo_n "checking for bdw garbage collector... " >&6; }
6457 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6459 $as_echo "using bdw-gc in default locations" >&6; }
6460 else
6461 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6462 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6463 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6464 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6467 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6468 fi
6469 fi
6470 esac
6471
6472 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6473 case ,${enable_languages}, in
6474 *,c++,*)
6475 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6476 case "${noconfigdirs}" in
6477 *target-libstdc++-v3*)
6478 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6479 ;;
6480 *) ;;
6481 esac
6482 ;;
6483 *)
6484 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6485 ;;
6486 esac
6487
6488 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6489 # $build_configdirs and $target_configdirs.
6490 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6491
6492 notsupp=""
6493 for dir in . $skipdirs $noconfigdirs ; do
6494 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6495 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6496 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6497 if test -r $srcdir/$dirname/configure ; then
6498 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 true
6500 else
6501 notsupp="$notsupp $dir"
6502 fi
6503 fi
6504 fi
6505 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6507 if test -r $srcdir/$dirname/configure ; then
6508 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 true
6510 else
6511 notsupp="$notsupp $dir"
6512 fi
6513 fi
6514 fi
6515 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6517 if test -r $srcdir/$dirname/configure ; then
6518 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 true
6520 else
6521 notsupp="$notsupp $dir"
6522 fi
6523 fi
6524 fi
6525 done
6526
6527 # Quietly strip out all directories which aren't configurable in this tree.
6528 # This relies on all configurable subdirectories being autoconfiscated, which
6529 # is now the case.
6530 build_configdirs_all="$build_configdirs"
6531 build_configdirs=
6532 for i in ${build_configdirs_all} ; do
6533 j=`echo $i | sed -e s/build-//g`
6534 if test -f ${srcdir}/$j/configure ; then
6535 build_configdirs="${build_configdirs} $i"
6536 fi
6537 done
6538
6539 configdirs_all="$configdirs"
6540 configdirs=
6541 for i in ${configdirs_all} ; do
6542 if test -f ${srcdir}/$i/configure ; then
6543 configdirs="${configdirs} $i"
6544 fi
6545 done
6546
6547 target_configdirs_all="$target_configdirs"
6548 target_configdirs=
6549 for i in ${target_configdirs_all} ; do
6550 j=`echo $i | sed -e s/target-//g`
6551 if test -f ${srcdir}/$j/configure ; then
6552 target_configdirs="${target_configdirs} $i"
6553 fi
6554 done
6555
6556 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6557 # so we have to add it after the preceding checks.
6558 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6559 then
6560 case " $configdirs " in
6561 *" libiberty "*)
6562 # If we can build libiberty, we can also build libiberty-linker-plugin.
6563 configdirs="$configdirs libiberty-linker-plugin"
6564 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6565 --with-libiberty=../libiberty-linker-plugin";;
6566 *)
6567 as_fn_error "libiberty missing" "$LINENO" 5;;
6568 esac
6569 fi
6570
6571 # Sometimes we have special requirements for the host libiberty.
6572 extra_host_libiberty_configure_flags=
6573 extra_host_zlib_configure_flags=
6574 case " $configdirs " in
6575 *" lto-plugin "* | *" libcc1 "*)
6576 # When these are to be built as shared libraries, the same applies to
6577 # libiberty.
6578 extra_host_libiberty_configure_flags=--enable-shared
6579 ;;
6580 *" bfd "*)
6581 # When bfd is to be built as a shared library, the same applies to
6582 # zlib.
6583 if test "$enable_shared" = "yes"; then
6584 extra_host_zlib_configure_flags=--enable-host-shared
6585 fi
6586 ;;
6587 esac
6588
6589
6590
6591 # Produce a warning message for the subdirs we can't configure.
6592 # This isn't especially interesting in the Cygnus tree, but in the individual
6593 # FSF releases, it's important to let people know when their machine isn't
6594 # supported by the one or two programs in a package.
6595
6596 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6597 # If $appdirs is non-empty, at least one of those directories must still
6598 # be configured, or we error out. (E.g., if the gas release supports a
6599 # specified target in some subdirs but not the gas subdir, we shouldn't
6600 # pretend that all is well.)
6601 if test -n "$appdirs" ; then
6602 for dir in $appdirs ; do
6603 if test -r $dir/Makefile.in ; then
6604 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 appdirs=""
6606 break
6607 fi
6608 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6609 appdirs=""
6610 break
6611 fi
6612 fi
6613 done
6614 if test -n "$appdirs" ; then
6615 echo "*** This configuration is not supported by this package." 1>&2
6616 exit 1
6617 fi
6618 fi
6619 # Okay, some application will build, or we don't care to check. Still
6620 # notify of subdirs not getting built.
6621 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6622 echo " ${notsupp}" 1>&2
6623 echo " (Any other directories should still work fine.)" 1>&2
6624 fi
6625
6626 case "$host" in
6627 *msdosdjgpp*)
6628 enable_gdbtk=no ;;
6629 esac
6630
6631 # To find our prefix, in gcc_cv_tool_prefix.
6632
6633 # The user is always right.
6634 if test "${PATH_SEPARATOR+set}" != set; then
6635 echo "#! /bin/sh" >conf$$.sh
6636 echo "exit 0" >>conf$$.sh
6637 chmod +x conf$$.sh
6638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6639 PATH_SEPARATOR=';'
6640 else
6641 PATH_SEPARATOR=:
6642 fi
6643 rm -f conf$$.sh
6644 fi
6645
6646
6647 get_gcc_base_ver="cat"
6648
6649 # Check whether --with-gcc-major-version-only was given.
6650 if test "${with_gcc_major_version_only+set}" = set; then :
6651 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6652 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
6653 fi
6654
6655 fi
6656
6657
6658
6659
6660
6661
6662 if test "x$exec_prefix" = xNONE; then
6663 if test "x$prefix" = xNONE; then
6664 gcc_cv_tool_prefix=$ac_default_prefix
6665 else
6666 gcc_cv_tool_prefix=$prefix
6667 fi
6668 else
6669 gcc_cv_tool_prefix=$exec_prefix
6670 fi
6671
6672 # If there is no compiler in the tree, use the PATH only. In any
6673 # case, if there is no compiler in the tree nobody should use
6674 # AS_FOR_TARGET and LD_FOR_TARGET.
6675 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6676 if test x$with_gcc_major_version_only = xyes ; then
6677 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6678 else
6679 gcc_version=`cat $srcdir/gcc/BASE-VER`
6680 fi
6681 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6682 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6687 else
6688 gcc_cv_tool_dirs=
6689 fi
6690
6691 if test x$build = x$target && test -n "$md_exec_prefix"; then
6692 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6693 fi
6694
6695
6696
6697 copy_dirs=
6698
6699
6700 # Check whether --with-build-sysroot was given.
6701 if test "${with_build_sysroot+set}" = set; then :
6702 withval=$with_build_sysroot; if test x"$withval" != x ; then
6703 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6704 fi
6705 else
6706 SYSROOT_CFLAGS_FOR_TARGET=
6707 fi
6708
6709
6710
6711
6712 # Check whether --with-debug-prefix-map was given.
6713 if test "${with_debug_prefix_map+set}" = set; then :
6714 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6715 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6716 for debug_map in $withval; do
6717 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6718 done
6719 fi
6720 else
6721 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6722 fi
6723
6724
6725
6726 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6727 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6728 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6729 # We want to ensure that TARGET libraries (which we know are built with
6730 # gcc) are built with "-O2 -g", so include those options when setting
6731 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6732 if test "x$CFLAGS_FOR_TARGET" = x; then
6733 if test "x${is_cross_compiler}" = xyes; then
6734 CFLAGS_FOR_TARGET="-g -O2"
6735 else
6736 CFLAGS_FOR_TARGET=$CFLAGS
6737 case " $CFLAGS " in
6738 *" -O2 "*) ;;
6739 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6740 esac
6741 case " $CFLAGS " in
6742 *" -g "* | *" -g3 "*) ;;
6743 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6744 esac
6745 fi
6746 fi
6747
6748
6749 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6750 if test "x${is_cross_compiler}" = xyes; then
6751 CXXFLAGS_FOR_TARGET="-g -O2"
6752 else
6753 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6754 case " $CXXFLAGS " in
6755 *" -O2 "*) ;;
6756 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6757 esac
6758 case " $CXXFLAGS " in
6759 *" -g "* | *" -g3 "*) ;;
6760 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6761 esac
6762 fi
6763 fi
6764
6765
6766
6767
6768 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6769 # the named directory are copied to $(tooldir)/sys-include.
6770 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6771 if test x${is_cross_compiler} = xno ; then
6772 echo 1>&2 '***' --with-headers is only supported when cross compiling
6773 exit 1
6774 fi
6775 if test x"${with_headers}" != xyes ; then
6776 x=${gcc_cv_tool_prefix}
6777 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6778 fi
6779 fi
6780
6781 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6782 # the name directories are copied to $(tooldir)/lib. Multiple directories
6783 # are permitted.
6784 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6785 if test x${is_cross_compiler} = xno ; then
6786 echo 1>&2 '***' --with-libs is only supported when cross compiling
6787 exit 1
6788 fi
6789 if test x"${with_libs}" != xyes ; then
6790 # Copy the libraries in reverse order, so that files in the first named
6791 # library override files in subsequent libraries.
6792 x=${gcc_cv_tool_prefix}
6793 for l in ${with_libs}; do
6794 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6795 done
6796 fi
6797 fi
6798
6799 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6800 #
6801 # This is done by determining whether or not the appropriate directory
6802 # is available, and by checking whether or not specific configurations
6803 # have requested that this magic not happen.
6804 #
6805 # The command line options always override the explicit settings in
6806 # configure.ac, and the settings in configure.ac override this magic.
6807 #
6808 # If the default for a toolchain is to use GNU as and ld, and you don't
6809 # want to do that, then you should use the --without-gnu-as and
6810 # --without-gnu-ld options for the configure script. Similarly, if
6811 # the default is to use the included zlib and you don't want to do that,
6812 # you should use the --with-system-zlib option for the configure script.
6813
6814 if test x${use_gnu_as} = x &&
6815 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6816 with_gnu_as=yes
6817 extra_host_args="$extra_host_args --with-gnu-as"
6818 fi
6819
6820 if test x${use_gnu_ld} = x &&
6821 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6822 with_gnu_ld=yes
6823 extra_host_args="$extra_host_args --with-gnu-ld"
6824 fi
6825
6826 if test x${use_included_zlib} = x &&
6827 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6828 :
6829 else
6830 with_system_zlib=yes
6831 extra_host_args="$extra_host_args --with-system-zlib"
6832 fi
6833
6834 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6835 # can detect this case.
6836
6837 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6838 with_newlib=yes
6839 extra_host_args="$extra_host_args --with-newlib"
6840 fi
6841
6842 # Handle ${copy_dirs}
6843 set fnord ${copy_dirs}
6844 shift
6845 while test $# != 0 ; do
6846 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6847 :
6848 else
6849 echo Copying $1 to $2
6850
6851 # Use the install script to create the directory and all required
6852 # parent directories.
6853 if test -d $2 ; then
6854 :
6855 else
6856 echo >config.temp
6857 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6858 fi
6859
6860 # Copy the directory, assuming we have tar.
6861 # FIXME: Should we use B in the second tar? Not all systems support it.
6862 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6863
6864 # It is the responsibility of the user to correctly adjust all
6865 # symlinks. If somebody can figure out how to handle them correctly
6866 # here, feel free to add the code.
6867
6868 echo $1 > $2/COPIED
6869 fi
6870 shift; shift
6871 done
6872
6873 # Determine a target-dependent exec_prefix that the installed
6874 # gcc will search in. Keep this list sorted by triplet, with
6875 # the *-*-osname triplets last.
6876 md_exec_prefix=
6877 case "${target}" in
6878 i[34567]86-pc-msdosdjgpp*)
6879 md_exec_prefix=/dev/env/DJDIR/bin
6880 ;;
6881 *-*-hpux* | \
6882 *-*-nto-qnx* | \
6883 *-*-solaris2*)
6884 md_exec_prefix=/usr/ccs/bin
6885 ;;
6886 esac
6887
6888 extra_arflags_for_target=
6889 extra_nmflags_for_target=
6890 extra_ranlibflags_for_target=
6891 target_makefile_frag=/dev/null
6892 case "${target}" in
6893 spu-*-*)
6894 target_makefile_frag="config/mt-spu"
6895 ;;
6896 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6897 target_makefile_frag="config/mt-sde"
6898 ;;
6899 mipsisa*-*-elfoabi*)
6900 target_makefile_frag="config/mt-mips-elfoabi"
6901 ;;
6902 mips*-*-*linux* | mips*-*-gnu*)
6903 target_makefile_frag="config/mt-mips-gnu"
6904 ;;
6905 nios2-*-elf*)
6906 target_makefile_frag="config/mt-nios2-elf"
6907 ;;
6908 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6909 target_makefile_frag="config/mt-gnu"
6910 ;;
6911 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6912 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6913 # commands to handle both 32-bit and 64-bit objects. These flags are
6914 # harmless if we're using GNU nm or ar.
6915 extra_arflags_for_target=" -X32_64"
6916 extra_nmflags_for_target=" -B -X32_64"
6917 ;;
6918 esac
6919
6920 alphaieee_frag=/dev/null
6921 case $target in
6922 alpha*-*-*)
6923 # This just makes sure to use the -mieee option to build target libs.
6924 # This should probably be set individually by each library.
6925 alphaieee_frag="config/mt-alphaieee"
6926 ;;
6927 esac
6928
6929 # If --enable-target-optspace always use -Os instead of -O2 to build
6930 # the target libraries, similarly if it is not specified, use -Os
6931 # on selected platforms.
6932 ospace_frag=/dev/null
6933 case "${enable_target_optspace}:${target}" in
6934 yes:*)
6935 ospace_frag="config/mt-ospace"
6936 ;;
6937 :d30v-*)
6938 ospace_frag="config/mt-d30v"
6939 ;;
6940 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6941 ospace_frag="config/mt-ospace"
6942 ;;
6943 no:* | :*)
6944 ;;
6945 *)
6946 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6947 ;;
6948 esac
6949
6950 # Some systems (e.g., one of the i386-aix systems the gas testers are
6951 # using) don't handle "\$" correctly, so don't use it here.
6952 tooldir='${exec_prefix}'/${target_noncanonical}
6953 build_tooldir=${tooldir}
6954
6955 # Create a .gdbinit file which runs the one in srcdir
6956 # and tells GDB to look there for source files.
6957
6958 if test -r ${srcdir}/.gdbinit ; then
6959 case ${srcdir} in
6960 .) ;;
6961 *) cat > ./.gdbinit <<EOF
6962 # ${NO_EDIT}
6963 dir ${srcdir}
6964 dir .
6965 source ${srcdir}/.gdbinit
6966 EOF
6967 ;;
6968 esac
6969 fi
6970
6971 # Make sure that the compiler is able to generate an executable. If it
6972 # can't, we are probably in trouble. We don't care whether we can run the
6973 # executable--we might be using a cross compiler--we only care whether it
6974 # can be created. At this point the main configure script has set CC.
6975 we_are_ok=no
6976 echo "int main () { return 0; }" > conftest.c
6977 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6978 if test $? = 0 ; then
6979 if test -s conftest || test -s conftest.exe ; then
6980 we_are_ok=yes
6981 fi
6982 fi
6983 case $we_are_ok in
6984 no)
6985 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6986 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6987 rm -f conftest*
6988 exit 1
6989 ;;
6990 esac
6991 rm -f conftest*
6992
6993 # Decide which environment variable is used to find dynamic libraries.
6994 case "${host}" in
6995 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6996 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6997 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6998 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6999 esac
7000
7001 # On systems where the dynamic library environment variable is PATH,
7002 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7003 # built executables to PATH.
7004 if test "$RPATH_ENVVAR" = PATH; then
7005 GCC_SHLIB_SUBDIR=/shlib
7006 else
7007 GCC_SHLIB_SUBDIR=
7008 fi
7009
7010 # Adjust the toplevel makefile according to whether bootstrap was selected.
7011 case $enable_bootstrap in
7012 yes)
7013 bootstrap_suffix=bootstrap
7014 BUILD_CONFIG=bootstrap-debug
7015 ;;
7016 no)
7017 bootstrap_suffix=no-bootstrap
7018 BUILD_CONFIG=
7019 ;;
7020 esac
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7023 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7024
7025
7026 # Check whether --with-build-config was given.
7027 if test "${with_build_config+set}" = set; then :
7028 withval=$with_build_config; case $with_build_config in
7029 yes) with_build_config= ;;
7030 no) with_build_config= BUILD_CONFIG= ;;
7031 esac
7032 fi
7033
7034
7035 if test "x${with_build_config}" != x; then
7036 BUILD_CONFIG=$with_build_config
7037 else
7038 case $BUILD_CONFIG in
7039 bootstrap-debug)
7040 if echo "int f (void) { return 0; }" > conftest.c &&
7041 ${CC} -c conftest.c &&
7042 mv conftest.o conftest.o.g0 &&
7043 ${CC} -c -g conftest.c &&
7044 mv conftest.o conftest.o.g &&
7045 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7046 :
7047 else
7048 BUILD_CONFIG=
7049 fi
7050 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7051 ;;
7052 esac
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7055 $as_echo "$BUILD_CONFIG" >&6; }
7056
7057
7058 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7060 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7061 # Check whether --enable-vtable-verify was given.
7062 if test "${enable_vtable_verify+set}" = set; then :
7063 enableval=$enable_vtable_verify; case "$enableval" in
7064 yes) enable_vtable_verify=yes ;;
7065 no) enable_vtable_verify=no ;;
7066 *) enable_vtable_verify=no;;
7067 esac
7068 else
7069 enable_vtable_verify=no
7070 fi
7071
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7073 $as_echo "$enable_vtable_verify" >&6; }
7074
7075 # Record target_configdirs and the configure arguments for target and
7076 # build configuration in Makefile.
7077 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7078 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7079 bootstrap_fixincludes=no
7080
7081 # If we are building libgomp, bootstrap it.
7082 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7083 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7084 fi
7085
7086 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7087 # or bootstrap-ubsan, bootstrap it.
7088 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7089 case "$BUILD_CONFIG" in
7090 *bootstrap-asan* | *bootstrap-ubsan* )
7091 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7092 bootstrap_fixincludes=yes
7093 ;;
7094 esac
7095 fi
7096
7097 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7098 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7099 test "$enable_vtable_verify" != no; then
7100 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7101 fi
7102
7103 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7104 # bootstrap it.
7105 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7106 case "$BUILD_CONFIG" in
7107 *bootstrap-mpx* )
7108 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7109 ;;
7110 esac
7111 fi
7112
7113 # Determine whether gdb needs tk/tcl or not.
7114 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7115 # and in that case we want gdb to be built without tk. Ugh!
7116 # In fact I believe gdb is the *only* package directly dependent on tk,
7117 # so we should be able to put the 'maybe's in unconditionally and
7118 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7119 # 100% sure that that's safe though.
7120
7121 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7122 case "$enable_gdbtk" in
7123 no)
7124 GDB_TK="" ;;
7125 yes)
7126 GDB_TK="${gdb_tk}" ;;
7127 *)
7128 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7129 # distro. Eventually someone will fix this and move Insight, nee
7130 # gdbtk to a separate directory.
7131 if test -d ${srcdir}/gdb/gdbtk ; then
7132 GDB_TK="${gdb_tk}"
7133 else
7134 GDB_TK=""
7135 fi
7136 ;;
7137 esac
7138 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7139 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7140
7141 # Strip out unwanted targets.
7142
7143 # While at that, we remove Makefiles if we were started for recursive
7144 # configuration, so that the top-level Makefile reconfigures them,
7145 # like we used to do when configure itself was recursive.
7146
7147 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7148 # but now we're fixing up the Makefile ourselves with the additional
7149 # commands passed to AC_CONFIG_FILES. Use separate variables
7150 # extrasub-{build,host,target} not because there is any reason to split
7151 # the substitutions up that way, but only to remain below the limit of
7152 # 99 commands in a script, for HP-UX sed.
7153 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7154
7155 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7156 yes:yes:*\ gold\ *:*,c++,*) ;;
7157 yes:yes:*\ gold\ *:*)
7158 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7159 ;;
7160 esac
7161
7162 extrasub_build=
7163 for module in ${build_configdirs} ; do
7164 if test -z "${no_recursion}" \
7165 && test -f ${build_subdir}/${module}/Makefile; then
7166 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7167 rm -f ${build_subdir}/${module}/Makefile
7168 fi
7169 extrasub_build="$extrasub_build
7170 /^@if build-$module\$/d
7171 /^@endif build-$module\$/d
7172 /^@if build-$module-$bootstrap_suffix\$/d
7173 /^@endif build-$module-$bootstrap_suffix\$/d"
7174 done
7175 extrasub_host=
7176 for module in ${configdirs} ; do
7177 if test -z "${no_recursion}"; then
7178 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7179 if test -f ${file}; then
7180 echo 1>&2 "*** removing ${file} to force reconfigure"
7181 rm -f ${file}
7182 fi
7183 done
7184 fi
7185 case ${module},${bootstrap_fixincludes} in
7186 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7187 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7188 esac
7189 extrasub_host="$extrasub_host
7190 /^@if $module\$/d
7191 /^@endif $module\$/d
7192 /^@if $module-$host_bootstrap_suffix\$/d
7193 /^@endif $module-$host_bootstrap_suffix\$/d"
7194 done
7195 extrasub_target=
7196 for module in ${target_configdirs} ; do
7197 if test -z "${no_recursion}" \
7198 && test -f ${target_subdir}/${module}/Makefile; then
7199 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7200 rm -f ${target_subdir}/${module}/Makefile
7201 fi
7202
7203 # We only bootstrap target libraries listed in bootstrap_target_libs.
7204 case $bootstrap_target_libs in
7205 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7206 *) target_bootstrap_suffix=no-bootstrap ;;
7207 esac
7208
7209 extrasub_target="$extrasub_target
7210 /^@if target-$module\$/d
7211 /^@endif target-$module\$/d
7212 /^@if target-$module-$target_bootstrap_suffix\$/d
7213 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7214 done
7215
7216 # Do the final fixup along with target modules.
7217 extrasub_target="$extrasub_target
7218 /^@if /,/^@endif /d"
7219
7220 # Create the serialization dependencies. This uses a temporary file.
7221
7222 # Check whether --enable-serial-configure was given.
7223 if test "${enable_serial_configure+set}" = set; then :
7224 enableval=$enable_serial_configure;
7225 fi
7226
7227
7228 case ${enable_serial_configure} in
7229 yes)
7230 enable_serial_build_configure=yes
7231 enable_serial_host_configure=yes
7232 enable_serial_target_configure=yes
7233 ;;
7234 esac
7235
7236 # These force 'configure's to be done one at a time, to avoid problems
7237 # with contention over a shared config.cache.
7238 rm -f serdep.tmp
7239 echo '# serdep.tmp' > serdep.tmp
7240 olditem=
7241 test "x${enable_serial_build_configure}" = xyes &&
7242 for item in ${build_configdirs} ; do
7243 case ${olditem} in
7244 "") ;;
7245 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7246 esac
7247 olditem=${item}
7248 done
7249 olditem=
7250 test "x${enable_serial_host_configure}" = xyes &&
7251 for item in ${configdirs} ; do
7252 case ${olditem} in
7253 "") ;;
7254 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7255 esac
7256 olditem=${item}
7257 done
7258 olditem=
7259 test "x${enable_serial_target_configure}" = xyes &&
7260 for item in ${target_configdirs} ; do
7261 case ${olditem} in
7262 "") ;;
7263 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7264 esac
7265 olditem=${item}
7266 done
7267 serialization_dependencies=serdep.tmp
7268
7269
7270 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7271 # target, nonopt, and variable assignments. These are the ones we
7272 # might not want to pass down to subconfigures. The exception being
7273 # --cache-file=/dev/null, which is used to turn off the use of cache
7274 # files altogether, and which should be passed on to subconfigures.
7275 # Also strip program-prefix, program-suffix, and program-transform-name,
7276 # so that we can pass down a consistent program-transform-name.
7277 baseargs=
7278 tbaseargs=
7279 keep_next=no
7280 skip_next=no
7281 eval "set -- $ac_configure_args"
7282 for ac_arg
7283 do
7284 if test X"$skip_next" = X"yes"; then
7285 skip_next=no
7286 continue
7287 fi
7288 if test X"$keep_next" = X"yes"; then
7289 case $ac_arg in
7290 *\'*)
7291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7292 esac
7293 baseargs="$baseargs '$ac_arg'"
7294 tbaseargs="$tbaseargs '$ac_arg'"
7295 keep_next=no
7296 continue
7297 fi
7298
7299 # Handle separated arguments. Based on the logic generated by
7300 # autoconf 2.59.
7301 case $ac_arg in
7302 *=* | --config-cache | -C | -disable-* | --disable-* \
7303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7305 | -with-* | --with-* | -without-* | --without-* | --x)
7306 separate_arg=no
7307 ;;
7308 -*)
7309 separate_arg=yes
7310 ;;
7311 *)
7312 separate_arg=no
7313 ;;
7314 esac
7315
7316 skip_targ=no
7317 case $ac_arg in
7318
7319 --with-* | --without-*)
7320 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7321
7322 case $libopt in
7323 *[-_]include)
7324 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7325 ;;
7326 *[-_]lib)
7327 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7328 ;;
7329 *)
7330 lib=$libopt
7331 ;;
7332 esac
7333
7334
7335 case $lib in
7336 mpc | mpfr | gmp | isl)
7337 # If we're processing --with-$lib, --with-$lib-include or
7338 # --with-$lib-lib, for one of the libs above, and target is
7339 # different from host, don't pass the current argument to any
7340 # target library's configure.
7341 if test x$is_cross_compiler = xyes; then
7342 skip_targ=yes
7343 fi
7344 ;;
7345 esac
7346 ;;
7347 esac
7348
7349 case "$ac_arg" in
7350 --cache-file=/dev/null | \
7351 -cache-file=/dev/null )
7352 # Handled here to avoid the test to skip args below.
7353 baseargs="$baseargs '$ac_arg'"
7354 tbaseargs="$tbaseargs '$ac_arg'"
7355 # Assert: $separate_arg should always be no.
7356 keep_next=$separate_arg
7357 ;;
7358 --no*)
7359 continue
7360 ;;
7361 --c* | \
7362 --sr* | \
7363 --ho* | \
7364 --bu* | \
7365 --t* | \
7366 --program-* | \
7367 -cache_file* | \
7368 -srcdir* | \
7369 -host* | \
7370 -build* | \
7371 -target* | \
7372 -program-prefix* | \
7373 -program-suffix* | \
7374 -program-transform-name* )
7375 skip_next=$separate_arg
7376 continue
7377 ;;
7378 -*)
7379 # An option. Add it.
7380 case $ac_arg in
7381 *\'*)
7382 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7383 esac
7384 baseargs="$baseargs '$ac_arg'"
7385 if test X"$skip_targ" = Xno; then
7386 tbaseargs="$tbaseargs '$ac_arg'"
7387 fi
7388 keep_next=$separate_arg
7389 ;;
7390 *)
7391 # Either a variable assignment, or a nonopt (triplet). Don't
7392 # pass it down; let the Makefile handle this.
7393 continue
7394 ;;
7395 esac
7396 done
7397 # Remove the initial space we just introduced and, as these will be
7398 # expanded by make, quote '$'.
7399 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7400
7401 # Add in --program-transform-name, after --program-prefix and
7402 # --program-suffix have been applied to it. Autoconf has already
7403 # doubled dollar signs and backslashes in program_transform_name; we want
7404 # the backslashes un-doubled, and then the entire thing wrapped in single
7405 # quotes, because this will be expanded first by make and then by the shell.
7406 # Also, because we want to override the logic in subdir configure scripts to
7407 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7408 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7409 ${program_transform_name}
7410 EOF_SED
7411 gcc_transform_name=`cat conftestsed.out`
7412 rm -f conftestsed.out
7413 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7414 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7415 if test "$silent" = yes; then
7416 baseargs="$baseargs --silent"
7417 tbaseargs="$tbaseargs --silent"
7418 fi
7419 baseargs="$baseargs --disable-option-checking"
7420 tbaseargs="$tbaseargs --disable-option-checking"
7421
7422 # Record and document user additions to sub configure arguments.
7423
7424
7425
7426
7427 # For the build-side libraries, we just need to pretend we're native,
7428 # and not use the same cache file. Multilibs are neither needed nor
7429 # desired. We can't even use the same cache file for all build-side
7430 # libraries, as they're compiled differently; some with C, some with
7431 # C++ or with different feature-enabling options.
7432 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7433
7434 # For host modules, accept cache file option, or specification as blank.
7435 case "${cache_file}" in
7436 "") # empty
7437 cache_file_option="" ;;
7438 /* | [A-Za-z]:[\\/]* ) # absolute path
7439 cache_file_option="--cache-file=${cache_file}" ;;
7440 *) # relative path
7441 cache_file_option="--cache-file=../${cache_file}" ;;
7442 esac
7443
7444 # Host dirs don't like to share a cache file either, horribly enough.
7445 # This seems to be due to autoconf 2.5x stupidity.
7446 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7447
7448 target_configargs="$target_configargs ${tbaseargs}"
7449
7450 # Passing a --with-cross-host argument lets the target libraries know
7451 # whether they are being built with a cross-compiler or being built
7452 # native. However, it would be better to use other mechanisms to make the
7453 # sorts of decisions they want to make on this basis. Please consider
7454 # this option to be deprecated. FIXME.
7455 if test x${is_cross_compiler} = xyes ; then
7456 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7457 fi
7458
7459 # Special user-friendly check for native x86_64-linux build, if
7460 # multilib is not explicitly enabled.
7461 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7462 x86_64-*linux*:yes:$build:$build:)
7463 # Make sure we have a development environment that handles 32-bit
7464 dev64=no
7465 echo "int main () { return 0; }" > conftest.c
7466 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7467 if test $? = 0 ; then
7468 if test -s conftest || test -s conftest.exe ; then
7469 dev64=yes
7470 fi
7471 fi
7472 rm -f conftest*
7473 if test x${dev64} != xyes ; then
7474 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
7475 fi
7476 ;;
7477 esac
7478
7479 # Default to --enable-multilib.
7480 if test x${enable_multilib} = x ; then
7481 target_configargs="--enable-multilib ${target_configargs}"
7482 fi
7483
7484 # Pass --with-newlib if appropriate. Note that target_configdirs has
7485 # changed from the earlier setting of with_newlib.
7486 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7487 target_configargs="--with-newlib ${target_configargs}"
7488 fi
7489
7490 # Different target subdirs use different values of certain variables
7491 # (notably CXX). Worse, multilibs use *lots* of different values.
7492 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7493 # it doesn't automatically accept command-line overrides of them.
7494 # This means it's not safe for target subdirs to share a cache file,
7495 # which is disgusting, but there you have it. Hopefully this can be
7496 # fixed in future. It's still worthwhile to use a cache file for each
7497 # directory. I think.
7498
7499 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7500 # We need to pass --target, as newer autoconf's requires consistency
7501 # for target_alias and gcc doesn't manage it consistently.
7502 target_configargs="--cache-file=./config.cache ${target_configargs}"
7503
7504 FLAGS_FOR_TARGET=
7505 case " $target_configdirs " in
7506 *" newlib "*)
7507 case " $target_configargs " in
7508 *" --with-newlib "*)
7509 case "$target" in
7510 *-cygwin*)
7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7512 ;;
7513 esac
7514
7515 # If we're not building GCC, don't discard standard headers.
7516 if test -d ${srcdir}/gcc; then
7517 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7518
7519 if test "${build}" != "${host}"; then
7520 # On Canadian crosses, CC_FOR_TARGET will have already been set
7521 # by `configure', so we won't have an opportunity to add -Bgcc/
7522 # to it. This is right: we don't want to search that directory
7523 # for binaries, but we want the header files in there, so add
7524 # them explicitly.
7525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7526
7527 # Someone might think of using the pre-installed headers on
7528 # Canadian crosses, in case the installed compiler is not fully
7529 # compatible with the compiler being built. In this case, it
7530 # would be better to flag an error than risking having
7531 # incompatible object files being constructed. We can't
7532 # guarantee that an error will be flagged, but let's hope the
7533 # compiler will do it, when presented with incompatible header
7534 # files.
7535 fi
7536 fi
7537
7538 case "${target}-${is_cross_compiler}" in
7539 i[3456789]86-*-linux*-no)
7540 # Here host == target, so we don't need to build gcc,
7541 # so we don't want to discard standard headers.
7542 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7543 ;;
7544 *)
7545 # If we're building newlib, use its generic headers last, but search
7546 # for any libc-related directories first (so make it the last -B
7547 # switch).
7548 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7549
7550 # If we're building libgloss, find the startup file, simulator library
7551 # and linker script.
7552 case " $target_configdirs " in
7553 *" libgloss "*)
7554 # Look for startup file, simulator library and maybe linker script.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7556 # Look for libnosys.a in case the target needs it.
7557 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7558 # Most targets have the linker script in the source directory.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7560 ;;
7561 esac
7562 ;;
7563 esac
7564 ;;
7565 esac
7566 ;;
7567 esac
7568
7569 case "$target" in
7570 x86_64-*mingw* | *-w64-mingw*)
7571 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7572 # however, use a symlink named 'mingw' in ${prefix} .
7573 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7574 ;;
7575 *-mingw*)
7576 # MinGW can't be handled as Cygwin above since it does not use newlib.
7577 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'
7578 ;;
7579 esac
7580
7581 # Allow the user to override the flags for
7582 # our build compiler if desired.
7583 if test x"${build}" = x"${host}" ; then
7584 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7585 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7586 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7587 fi
7588
7589 # On Canadian crosses, we'll be searching the right directories for
7590 # the previously-installed cross compiler, so don't bother to add
7591 # flags for directories within the install tree of the compiler
7592 # being built; programs in there won't even run.
7593 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7594 # Search for pre-installed headers if nothing else fits.
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7596 fi
7597
7598 if test "x${use_gnu_ld}" = x &&
7599 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7600 # Arrange for us to find uninstalled linker scripts.
7601 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7602 fi
7603
7604 # Search for other target-specific linker scripts and such.
7605 case "${target}" in
7606 mep*)
7607 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7608 ;;
7609 esac
7610
7611 # Makefile fragments.
7612 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7613 do
7614 eval fragval=\$$frag
7615 if test $fragval != /dev/null; then
7616 eval $frag=${srcdir}/$fragval
7617 fi
7618 done
7619
7620
7621
7622
7623
7624 # Miscellanea: directories, flags, etc.
7625
7626
7627
7628
7629
7630
7631
7632
7633 # Build module lists & subconfigure args.
7634
7635
7636
7637 # Host module lists & subconfigure args.
7638
7639
7640
7641
7642 # Target module lists & subconfigure args.
7643
7644
7645
7646 # Build tools.
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663 # Generate default definitions for YACC, M4, LEX and other programs that run
7664 # on the build machine. These are used if the Makefile can't locate these
7665 # programs in objdir.
7666 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7667
7668 for ac_prog in 'bison -y' byacc yacc
7669 do
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_YACC+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$YACC"; then
7678 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_YACC="$ac_prog"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 YACC=$ac_cv_prog_YACC
7698 if test -n "$YACC"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7700 $as_echo "$YACC" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707 test -n "$YACC" && break
7708 done
7709 test -n "$YACC" || YACC="$MISSING bison -y"
7710
7711 case " $build_configdirs " in
7712 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7713 esac
7714
7715 for ac_prog in bison
7716 do
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_BISON+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$BISON"; then
7725 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_BISON="$ac_prog"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 BISON=$ac_cv_prog_BISON
7745 if test -n "$BISON"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7747 $as_echo "$BISON" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754 test -n "$BISON" && break
7755 done
7756 test -n "$BISON" || BISON="$MISSING bison"
7757
7758 case " $build_configdirs " in
7759 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7760 esac
7761
7762 for ac_prog in gm4 gnum4 m4
7763 do
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_M4+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$M4"; then
7772 ac_cv_prog_M4="$M4" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_M4="$ac_prog"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 M4=$ac_cv_prog_M4
7792 if test -n "$M4"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7794 $as_echo "$M4" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801 test -n "$M4" && break
7802 done
7803 test -n "$M4" || M4="$MISSING m4"
7804
7805 case " $build_configdirs " in
7806 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7807 esac
7808
7809 for ac_prog in flex lex
7810 do
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_LEX+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$LEX"; then
7819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_LEX="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 LEX=$ac_cv_prog_LEX
7839 if test -n "$LEX"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7841 $as_echo "$LEX" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848 test -n "$LEX" && break
7849 done
7850 test -n "$LEX" || LEX="$MISSING flex"
7851
7852 case " $build_configdirs " in
7853 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7855 esac
7856
7857 for ac_prog in flex
7858 do
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_FLEX+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$FLEX"; then
7867 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_FLEX="$ac_prog"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 FLEX=$ac_cv_prog_FLEX
7887 if test -n "$FLEX"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7889 $as_echo "$FLEX" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895
7896 test -n "$FLEX" && break
7897 done
7898 test -n "$FLEX" || FLEX="$MISSING flex"
7899
7900 case " $build_configdirs " in
7901 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7902 esac
7903
7904 for ac_prog in makeinfo
7905 do
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$MAKEINFO"; then
7914 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_MAKEINFO="$ac_prog"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927 done
7928 done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 MAKEINFO=$ac_cv_prog_MAKEINFO
7934 if test -n "$MAKEINFO"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7936 $as_echo "$MAKEINFO" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 test -n "$MAKEINFO" && break
7944 done
7945 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7946
7947 case " $build_configdirs " in
7948 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7949 *)
7950
7951 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7952 # higher, else we use the "missing" dummy.
7953 if ${MAKEINFO} --version \
7954 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7955 :
7956 else
7957 MAKEINFO="$MISSING makeinfo"
7958 fi
7959 ;;
7960
7961 esac
7962
7963 # FIXME: expect and dejagnu may become build tools?
7964
7965 for ac_prog in expect
7966 do
7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$EXPECT"; then
7975 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_prog_EXPECT="$ac_prog"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 EXPECT=$ac_cv_prog_EXPECT
7995 if test -n "$EXPECT"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7997 $as_echo "$EXPECT" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003
8004 test -n "$EXPECT" && break
8005 done
8006 test -n "$EXPECT" || EXPECT="expect"
8007
8008 case " $configdirs " in
8009 *" expect "*)
8010 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8011 ;;
8012 esac
8013
8014 for ac_prog in runtest
8015 do
8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
8017 set dummy $ac_prog; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 if test -n "$RUNTEST"; then
8024 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_prog_RUNTEST="$ac_prog"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 RUNTEST=$ac_cv_prog_RUNTEST
8044 if test -n "$RUNTEST"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8046 $as_echo "$RUNTEST" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053 test -n "$RUNTEST" && break
8054 done
8055 test -n "$RUNTEST" || RUNTEST="runtest"
8056
8057 case " $configdirs " in
8058 *" dejagnu "*)
8059 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8060 ;;
8061 esac
8062
8063
8064 # Host tools.
8065 ncn_tool_prefix=
8066 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8067 ncn_target_tool_prefix=
8068 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8069
8070
8071
8072 if test -n "$AR"; then
8073 ac_cv_prog_AR=$AR
8074 elif test -n "$ac_cv_prog_AR"; then
8075 AR=$ac_cv_prog_AR
8076 fi
8077
8078 if test -n "$ac_cv_prog_AR"; then
8079 for ncn_progname in ar; do
8080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8081 set dummy ${ncn_progname}; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if test "${ac_cv_prog_AR+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 if test -n "$AR"; then
8088 ac_cv_prog_AR="$AR" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_AR="${ncn_progname}"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101 done
8102 done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 AR=$ac_cv_prog_AR
8108 if test -n "$AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110 $as_echo "$AR" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116
8117 done
8118 fi
8119
8120 for ncn_progname in ar; do
8121 if test -n "$ncn_tool_prefix"; then
8122 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8123 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$AR"; then
8130 ac_cv_prog_AR="$AR" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143 done
8144 done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 AR=$ac_cv_prog_AR
8150 if test -n "$AR"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8152 $as_echo "$AR" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157
8158
8159 fi
8160 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8162 set dummy ${ncn_progname}; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_AR+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$AR"; then
8169 ac_cv_prog_AR="$AR" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_AR="${ncn_progname}"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 AR=$ac_cv_prog_AR
8189 if test -n "$AR"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8191 $as_echo "$AR" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198 fi
8199 test -n "$ac_cv_prog_AR" && break
8200 done
8201
8202 if test -z "$ac_cv_prog_AR" ; then
8203 set dummy ar
8204 if test $build = $host ; then
8205 AR="$2"
8206 else
8207 AR="${ncn_tool_prefix}$2"
8208 fi
8209 fi
8210
8211
8212
8213 if test -n "$AS"; then
8214 ac_cv_prog_AS=$AS
8215 elif test -n "$ac_cv_prog_AS"; then
8216 AS=$ac_cv_prog_AS
8217 fi
8218
8219 if test -n "$ac_cv_prog_AS"; then
8220 for ncn_progname in as; do
8221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222 set dummy ${ncn_progname}; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if test "${ac_cv_prog_AS+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 if test -n "$AS"; then
8229 ac_cv_prog_AS="$AS" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_prog_AS="${ncn_progname}"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi
8247 fi
8248 AS=$ac_cv_prog_AS
8249 if test -n "$AS"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8251 $as_echo "$AS" >&6; }
8252 else
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8255 fi
8256
8257
8258 done
8259 fi
8260
8261 for ncn_progname in as; do
8262 if test -n "$ncn_tool_prefix"; then
8263 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8264 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_AS+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$AS"; then
8271 ac_cv_prog_AS="$AS" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 AS=$ac_cv_prog_AS
8291 if test -n "$AS"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8293 $as_echo "$AS" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300 fi
8301 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8303 set dummy ${ncn_progname}; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_AS+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$AS"; then
8310 ac_cv_prog_AS="$AS" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_AS="${ncn_progname}"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323 done
8324 done
8325 IFS=$as_save_IFS
8326
8327 fi
8328 fi
8329 AS=$ac_cv_prog_AS
8330 if test -n "$AS"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8332 $as_echo "$AS" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338
8339 fi
8340 test -n "$ac_cv_prog_AS" && break
8341 done
8342
8343 if test -z "$ac_cv_prog_AS" ; then
8344 set dummy as
8345 if test $build = $host ; then
8346 AS="$2"
8347 else
8348 AS="${ncn_tool_prefix}$2"
8349 fi
8350 fi
8351
8352
8353
8354 if test -n "$DLLTOOL"; then
8355 ac_cv_prog_DLLTOOL=$DLLTOOL
8356 elif test -n "$ac_cv_prog_DLLTOOL"; then
8357 DLLTOOL=$ac_cv_prog_DLLTOOL
8358 fi
8359
8360 if test -n "$ac_cv_prog_DLLTOOL"; then
8361 for ncn_progname in dlltool; do
8362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8363 set dummy ${ncn_progname}; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$DLLTOOL"; then
8370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_DLLTOOL="${ncn_progname}"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 DLLTOOL=$ac_cv_prog_DLLTOOL
8390 if test -n "$DLLTOOL"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8392 $as_echo "$DLLTOOL" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398
8399 done
8400 fi
8401
8402 for ncn_progname in dlltool; do
8403 if test -n "$ncn_tool_prefix"; then
8404 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8405 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$DLLTOOL"; then
8412 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8424 fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 DLLTOOL=$ac_cv_prog_DLLTOOL
8432 if test -n "$DLLTOOL"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8434 $as_echo "$DLLTOOL" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439
8440
8441 fi
8442 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8444 set dummy ${ncn_progname}; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$DLLTOOL"; then
8451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_DLLTOOL="${ncn_progname}"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8463 fi
8464 done
8465 done
8466 IFS=$as_save_IFS
8467
8468 fi
8469 fi
8470 DLLTOOL=$ac_cv_prog_DLLTOOL
8471 if test -n "$DLLTOOL"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8473 $as_echo "$DLLTOOL" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478
8479
8480 fi
8481 test -n "$ac_cv_prog_DLLTOOL" && break
8482 done
8483
8484 if test -z "$ac_cv_prog_DLLTOOL" ; then
8485 set dummy dlltool
8486 if test $build = $host ; then
8487 DLLTOOL="$2"
8488 else
8489 DLLTOOL="${ncn_tool_prefix}$2"
8490 fi
8491 fi
8492
8493
8494
8495 if test -n "$LD"; then
8496 ac_cv_prog_LD=$LD
8497 elif test -n "$ac_cv_prog_LD"; then
8498 LD=$ac_cv_prog_LD
8499 fi
8500
8501 if test -n "$ac_cv_prog_LD"; then
8502 for ncn_progname in ld; do
8503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8504 set dummy ${ncn_progname}; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_LD+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 if test -n "$LD"; then
8511 ac_cv_prog_LD="$LD" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520 ac_cv_prog_LD="${ncn_progname}"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524 done
8525 done
8526 IFS=$as_save_IFS
8527
8528 fi
8529 fi
8530 LD=$ac_cv_prog_LD
8531 if test -n "$LD"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8533 $as_echo "$LD" >&6; }
8534 else
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8537 fi
8538
8539
8540 done
8541 fi
8542
8543 for ncn_progname in ld; do
8544 if test -n "$ncn_tool_prefix"; then
8545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8546 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_prog_LD+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 if test -n "$LD"; then
8553 ac_cv_prog_LD="$LD" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8557 do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8565 fi
8566 done
8567 done
8568 IFS=$as_save_IFS
8569
8570 fi
8571 fi
8572 LD=$ac_cv_prog_LD
8573 if test -n "$LD"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8575 $as_echo "$LD" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 fi
8580
8581
8582 fi
8583 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_progname}; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_LD+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 if test -n "$LD"; then
8592 ac_cv_prog_LD="$LD" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_LD="${ncn_progname}"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605 done
8606 done
8607 IFS=$as_save_IFS
8608
8609 fi
8610 fi
8611 LD=$ac_cv_prog_LD
8612 if test -n "$LD"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8614 $as_echo "$LD" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621 fi
8622 test -n "$ac_cv_prog_LD" && break
8623 done
8624
8625 if test -z "$ac_cv_prog_LD" ; then
8626 set dummy ld
8627 if test $build = $host ; then
8628 LD="$2"
8629 else
8630 LD="${ncn_tool_prefix}$2"
8631 fi
8632 fi
8633
8634
8635
8636 if test -n "$LIPO"; then
8637 ac_cv_prog_LIPO=$LIPO
8638 elif test -n "$ac_cv_prog_LIPO"; then
8639 LIPO=$ac_cv_prog_LIPO
8640 fi
8641
8642 if test -n "$ac_cv_prog_LIPO"; then
8643 for ncn_progname in lipo; do
8644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8645 set dummy ${ncn_progname}; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_LIPO+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$LIPO"; then
8652 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_LIPO="${ncn_progname}"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 LIPO=$ac_cv_prog_LIPO
8672 if test -n "$LIPO"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8674 $as_echo "$LIPO" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681 done
8682 fi
8683
8684 for ncn_progname in lipo; do
8685 if test -n "$ncn_tool_prefix"; then
8686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8687 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_prog_LIPO+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test -n "$LIPO"; then
8694 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8706 fi
8707 done
8708 done
8709 IFS=$as_save_IFS
8710
8711 fi
8712 fi
8713 LIPO=$ac_cv_prog_LIPO
8714 if test -n "$LIPO"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8716 $as_echo "$LIPO" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723 fi
8724 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8726 set dummy ${ncn_progname}; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_LIPO+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test -n "$LIPO"; then
8733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_LIPO="${ncn_progname}"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 LIPO=$ac_cv_prog_LIPO
8753 if test -n "$LIPO"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8755 $as_echo "$LIPO" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762 fi
8763 test -n "$ac_cv_prog_LIPO" && break
8764 done
8765
8766 if test -z "$ac_cv_prog_LIPO" ; then
8767 set dummy lipo
8768 if test $build = $host ; then
8769 LIPO="$2"
8770 else
8771 LIPO="${ncn_tool_prefix}$2"
8772 fi
8773 fi
8774
8775
8776
8777 if test -n "$NM"; then
8778 ac_cv_prog_NM=$NM
8779 elif test -n "$ac_cv_prog_NM"; then
8780 NM=$ac_cv_prog_NM
8781 fi
8782
8783 if test -n "$ac_cv_prog_NM"; then
8784 for ncn_progname in nm; do
8785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8786 set dummy ${ncn_progname}; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if test "${ac_cv_prog_NM+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 if test -n "$NM"; then
8793 ac_cv_prog_NM="$NM" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_prog_NM="${ncn_progname}"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806 done
8807 done
8808 IFS=$as_save_IFS
8809
8810 fi
8811 fi
8812 NM=$ac_cv_prog_NM
8813 if test -n "$NM"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8815 $as_echo "$NM" >&6; }
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8819 fi
8820
8821
8822 done
8823 fi
8824
8825 for ncn_progname in nm; do
8826 if test -n "$ncn_tool_prefix"; then
8827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8828 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if test "${ac_cv_prog_NM+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 if test -n "$NM"; then
8835 ac_cv_prog_NM="$NM" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8847 fi
8848 done
8849 done
8850 IFS=$as_save_IFS
8851
8852 fi
8853 fi
8854 NM=$ac_cv_prog_NM
8855 if test -n "$NM"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8857 $as_echo "$NM" >&6; }
8858 else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862
8863
8864 fi
8865 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8867 set dummy ${ncn_progname}; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if test "${ac_cv_prog_NM+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test -n "$NM"; then
8874 ac_cv_prog_NM="$NM" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_prog_NM="${ncn_progname}"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8886 fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 NM=$ac_cv_prog_NM
8894 if test -n "$NM"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8896 $as_echo "$NM" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900 fi
8901
8902
8903 fi
8904 test -n "$ac_cv_prog_NM" && break
8905 done
8906
8907 if test -z "$ac_cv_prog_NM" ; then
8908 set dummy nm
8909 if test $build = $host ; then
8910 NM="$2"
8911 else
8912 NM="${ncn_tool_prefix}$2"
8913 fi
8914 fi
8915
8916
8917
8918 if test -n "$RANLIB"; then
8919 ac_cv_prog_RANLIB=$RANLIB
8920 elif test -n "$ac_cv_prog_RANLIB"; then
8921 RANLIB=$ac_cv_prog_RANLIB
8922 fi
8923
8924 if test -n "$ac_cv_prog_RANLIB"; then
8925 for ncn_progname in ranlib; do
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927 set dummy ${ncn_progname}; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 if test -n "$RANLIB"; then
8934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8938 do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943 ac_cv_prog_RANLIB="${ncn_progname}"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947 done
8948 done
8949 IFS=$as_save_IFS
8950
8951 fi
8952 fi
8953 RANLIB=$ac_cv_prog_RANLIB
8954 if test -n "$RANLIB"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8956 $as_echo "$RANLIB" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8960 fi
8961
8962
8963 done
8964 fi
8965
8966 for ncn_progname in ranlib; do
8967 if test -n "$ncn_tool_prefix"; then
8968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8969 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 if test -n "$RANLIB"; then
8976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8988 fi
8989 done
8990 done
8991 IFS=$as_save_IFS
8992
8993 fi
8994 fi
8995 RANLIB=$ac_cv_prog_RANLIB
8996 if test -n "$RANLIB"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8998 $as_echo "$RANLIB" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005 fi
9006 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008 set dummy ${ncn_progname}; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 if test -n "$RANLIB"; then
9015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9019 do
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_prog_RANLIB="${ncn_progname}"
9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9027 fi
9028 done
9029 done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 RANLIB=$ac_cv_prog_RANLIB
9035 if test -n "$RANLIB"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9037 $as_echo "$RANLIB" >&6; }
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042
9043
9044 fi
9045 test -n "$ac_cv_prog_RANLIB" && break
9046 done
9047
9048 if test -z "$ac_cv_prog_RANLIB" ; then
9049 RANLIB="true"
9050 fi
9051
9052
9053
9054 if test -n "$STRIP"; then
9055 ac_cv_prog_STRIP=$STRIP
9056 elif test -n "$ac_cv_prog_STRIP"; then
9057 STRIP=$ac_cv_prog_STRIP
9058 fi
9059
9060 if test -n "$ac_cv_prog_STRIP"; then
9061 for ncn_progname in strip; do
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063 set dummy ${ncn_progname}; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_prog_STRIP+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 if test -n "$STRIP"; then
9070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9079 ac_cv_prog_STRIP="${ncn_progname}"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083 done
9084 done
9085 IFS=$as_save_IFS
9086
9087 fi
9088 fi
9089 STRIP=$ac_cv_prog_STRIP
9090 if test -n "$STRIP"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9092 $as_echo "$STRIP" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9096 fi
9097
9098
9099 done
9100 fi
9101
9102 for ncn_progname in strip; do
9103 if test -n "$ncn_tool_prefix"; then
9104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9105 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if test "${ac_cv_prog_STRIP+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 if test -n "$STRIP"; then
9112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9113 else
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9116 do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9121 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 break 2
9124 fi
9125 done
9126 done
9127 IFS=$as_save_IFS
9128
9129 fi
9130 fi
9131 STRIP=$ac_cv_prog_STRIP
9132 if test -n "$STRIP"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9134 $as_echo "$STRIP" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9138 fi
9139
9140
9141 fi
9142 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144 set dummy ${ncn_progname}; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if test "${ac_cv_prog_STRIP+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 if test -n "$STRIP"; then
9151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_prog_STRIP="${ncn_progname}"
9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9163 fi
9164 done
9165 done
9166 IFS=$as_save_IFS
9167
9168 fi
9169 fi
9170 STRIP=$ac_cv_prog_STRIP
9171 if test -n "$STRIP"; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9173 $as_echo "$STRIP" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177 fi
9178
9179
9180 fi
9181 test -n "$ac_cv_prog_STRIP" && break
9182 done
9183
9184 if test -z "$ac_cv_prog_STRIP" ; then
9185 STRIP="true"
9186 fi
9187
9188
9189
9190 if test -n "$WINDRES"; then
9191 ac_cv_prog_WINDRES=$WINDRES
9192 elif test -n "$ac_cv_prog_WINDRES"; then
9193 WINDRES=$ac_cv_prog_WINDRES
9194 fi
9195
9196 if test -n "$ac_cv_prog_WINDRES"; then
9197 for ncn_progname in windres; do
9198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9199 set dummy ${ncn_progname}; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$WINDRES"; then
9206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_prog_WINDRES="${ncn_progname}"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9218 fi
9219 done
9220 done
9221 IFS=$as_save_IFS
9222
9223 fi
9224 fi
9225 WINDRES=$ac_cv_prog_WINDRES
9226 if test -n "$WINDRES"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9228 $as_echo "$WINDRES" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234
9235 done
9236 fi
9237
9238 for ncn_progname in windres; do
9239 if test -n "$ncn_tool_prefix"; then
9240 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 if test -n "$WINDRES"; then
9248 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9252 do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9260 fi
9261 done
9262 done
9263 IFS=$as_save_IFS
9264
9265 fi
9266 fi
9267 WINDRES=$ac_cv_prog_WINDRES
9268 if test -n "$WINDRES"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9270 $as_echo "$WINDRES" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275
9276
9277 fi
9278 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9280 set dummy ${ncn_progname}; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 if test -n "$WINDRES"; then
9287 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296 ac_cv_prog_WINDRES="${ncn_progname}"
9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 break 2
9299 fi
9300 done
9301 done
9302 IFS=$as_save_IFS
9303
9304 fi
9305 fi
9306 WINDRES=$ac_cv_prog_WINDRES
9307 if test -n "$WINDRES"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9309 $as_echo "$WINDRES" >&6; }
9310 else
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9313 fi
9314
9315
9316 fi
9317 test -n "$ac_cv_prog_WINDRES" && break
9318 done
9319
9320 if test -z "$ac_cv_prog_WINDRES" ; then
9321 set dummy windres
9322 if test $build = $host ; then
9323 WINDRES="$2"
9324 else
9325 WINDRES="${ncn_tool_prefix}$2"
9326 fi
9327 fi
9328
9329
9330
9331 if test -n "$WINDMC"; then
9332 ac_cv_prog_WINDMC=$WINDMC
9333 elif test -n "$ac_cv_prog_WINDMC"; then
9334 WINDMC=$ac_cv_prog_WINDMC
9335 fi
9336
9337 if test -n "$ac_cv_prog_WINDMC"; then
9338 for ncn_progname in windmc; do
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340 set dummy ${ncn_progname}; ac_word=$2
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 $as_echo_n "checking for $ac_word... " >&6; }
9343 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 if test -n "$WINDMC"; then
9347 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9348 else
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9351 do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_prog_WINDMC="${ncn_progname}"
9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360 done
9361 done
9362 IFS=$as_save_IFS
9363
9364 fi
9365 fi
9366 WINDMC=$ac_cv_prog_WINDMC
9367 if test -n "$WINDMC"; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9369 $as_echo "$WINDMC" >&6; }
9370 else
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9373 fi
9374
9375
9376 done
9377 fi
9378
9379 for ncn_progname in windmc; do
9380 if test -n "$ncn_tool_prefix"; then
9381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 if test -n "$WINDMC"; then
9389 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9398 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9401 fi
9402 done
9403 done
9404 IFS=$as_save_IFS
9405
9406 fi
9407 fi
9408 WINDMC=$ac_cv_prog_WINDMC
9409 if test -n "$WINDMC"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9411 $as_echo "$WINDMC" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417
9418 fi
9419 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9421 set dummy ${ncn_progname}; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 if test -n "$WINDMC"; then
9428 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_prog_WINDMC="${ncn_progname}"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441 done
9442 done
9443 IFS=$as_save_IFS
9444
9445 fi
9446 fi
9447 WINDMC=$ac_cv_prog_WINDMC
9448 if test -n "$WINDMC"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9450 $as_echo "$WINDMC" >&6; }
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457 fi
9458 test -n "$ac_cv_prog_WINDMC" && break
9459 done
9460
9461 if test -z "$ac_cv_prog_WINDMC" ; then
9462 set dummy windmc
9463 if test $build = $host ; then
9464 WINDMC="$2"
9465 else
9466 WINDMC="${ncn_tool_prefix}$2"
9467 fi
9468 fi
9469
9470
9471
9472 if test -n "$OBJCOPY"; then
9473 ac_cv_prog_OBJCOPY=$OBJCOPY
9474 elif test -n "$ac_cv_prog_OBJCOPY"; then
9475 OBJCOPY=$ac_cv_prog_OBJCOPY
9476 fi
9477
9478 if test -n "$ac_cv_prog_OBJCOPY"; then
9479 for ncn_progname in objcopy; do
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481 set dummy ${ncn_progname}; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 if test -n "$OBJCOPY"; then
9488 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9489 else
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9492 do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_prog_OBJCOPY="${ncn_progname}"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501 done
9502 done
9503 IFS=$as_save_IFS
9504
9505 fi
9506 fi
9507 OBJCOPY=$ac_cv_prog_OBJCOPY
9508 if test -n "$OBJCOPY"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9510 $as_echo "$OBJCOPY" >&6; }
9511 else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9514 fi
9515
9516
9517 done
9518 fi
9519
9520 for ncn_progname in objcopy; do
9521 if test -n "$ncn_tool_prefix"; then
9522 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9523 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 if test -n "$OBJCOPY"; then
9530 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9531 else
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9534 do
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9542 fi
9543 done
9544 done
9545 IFS=$as_save_IFS
9546
9547 fi
9548 fi
9549 OBJCOPY=$ac_cv_prog_OBJCOPY
9550 if test -n "$OBJCOPY"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9552 $as_echo "$OBJCOPY" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 fi
9557
9558
9559 fi
9560 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9562 set dummy ${ncn_progname}; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 if test -n "$OBJCOPY"; then
9569 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9570 else
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9573 do
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578 ac_cv_prog_OBJCOPY="${ncn_progname}"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9581 fi
9582 done
9583 done
9584 IFS=$as_save_IFS
9585
9586 fi
9587 fi
9588 OBJCOPY=$ac_cv_prog_OBJCOPY
9589 if test -n "$OBJCOPY"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9591 $as_echo "$OBJCOPY" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 fi
9596
9597
9598 fi
9599 test -n "$ac_cv_prog_OBJCOPY" && break
9600 done
9601
9602 if test -z "$ac_cv_prog_OBJCOPY" ; then
9603 set dummy objcopy
9604 if test $build = $host ; then
9605 OBJCOPY="$2"
9606 else
9607 OBJCOPY="${ncn_tool_prefix}$2"
9608 fi
9609 fi
9610
9611
9612
9613 if test -n "$OBJDUMP"; then
9614 ac_cv_prog_OBJDUMP=$OBJDUMP
9615 elif test -n "$ac_cv_prog_OBJDUMP"; then
9616 OBJDUMP=$ac_cv_prog_OBJDUMP
9617 fi
9618
9619 if test -n "$ac_cv_prog_OBJDUMP"; then
9620 for ncn_progname in objdump; do
9621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9622 set dummy ${ncn_progname}; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 if test -n "$OBJDUMP"; then
9629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9630 else
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9633 do
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9638 ac_cv_prog_OBJDUMP="${ncn_progname}"
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9641 fi
9642 done
9643 done
9644 IFS=$as_save_IFS
9645
9646 fi
9647 fi
9648 OBJDUMP=$ac_cv_prog_OBJDUMP
9649 if test -n "$OBJDUMP"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9651 $as_echo "$OBJDUMP" >&6; }
9652 else
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9655 fi
9656
9657
9658 done
9659 fi
9660
9661 for ncn_progname in objdump; do
9662 if test -n "$ncn_tool_prefix"; then
9663 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 if test -n "$OBJDUMP"; then
9671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9675 do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9680 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684 done
9685 done
9686 IFS=$as_save_IFS
9687
9688 fi
9689 fi
9690 OBJDUMP=$ac_cv_prog_OBJDUMP
9691 if test -n "$OBJDUMP"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9693 $as_echo "$OBJDUMP" >&6; }
9694 else
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698
9699
9700 fi
9701 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$OBJDUMP"; then
9710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_OBJDUMP="${ncn_progname}"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723 done
9724 done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 OBJDUMP=$ac_cv_prog_OBJDUMP
9730 if test -n "$OBJDUMP"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9732 $as_echo "$OBJDUMP" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739 fi
9740 test -n "$ac_cv_prog_OBJDUMP" && break
9741 done
9742
9743 if test -z "$ac_cv_prog_OBJDUMP" ; then
9744 set dummy objdump
9745 if test $build = $host ; then
9746 OBJDUMP="$2"
9747 else
9748 OBJDUMP="${ncn_tool_prefix}$2"
9749 fi
9750 fi
9751
9752
9753
9754 if test -n "$READELF"; then
9755 ac_cv_prog_READELF=$READELF
9756 elif test -n "$ac_cv_prog_READELF"; then
9757 READELF=$ac_cv_prog_READELF
9758 fi
9759
9760 if test -n "$ac_cv_prog_READELF"; then
9761 for ncn_progname in readelf; do
9762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9763 set dummy ${ncn_progname}; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if test "${ac_cv_prog_READELF+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 if test -n "$READELF"; then
9770 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_READELF="${ncn_progname}"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783 done
9784 done
9785 IFS=$as_save_IFS
9786
9787 fi
9788 fi
9789 READELF=$ac_cv_prog_READELF
9790 if test -n "$READELF"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9792 $as_echo "$READELF" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9796 fi
9797
9798
9799 done
9800 fi
9801
9802 for ncn_progname in readelf; do
9803 if test -n "$ncn_tool_prefix"; then
9804 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9805 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if test "${ac_cv_prog_READELF+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test -n "$READELF"; then
9812 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9824 fi
9825 done
9826 done
9827 IFS=$as_save_IFS
9828
9829 fi
9830 fi
9831 READELF=$ac_cv_prog_READELF
9832 if test -n "$READELF"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9834 $as_echo "$READELF" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840
9841 fi
9842 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9844 set dummy ${ncn_progname}; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if test "${ac_cv_prog_READELF+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test -n "$READELF"; then
9851 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9855 do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_prog_READELF="${ncn_progname}"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864 done
9865 done
9866 IFS=$as_save_IFS
9867
9868 fi
9869 fi
9870 READELF=$ac_cv_prog_READELF
9871 if test -n "$READELF"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9873 $as_echo "$READELF" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 fi
9878
9879
9880 fi
9881 test -n "$ac_cv_prog_READELF" && break
9882 done
9883
9884 if test -z "$ac_cv_prog_READELF" ; then
9885 set dummy readelf
9886 if test $build = $host ; then
9887 READELF="$2"
9888 else
9889 READELF="${ncn_tool_prefix}$2"
9890 fi
9891 fi
9892
9893
9894
9895
9896
9897
9898 # Target tools.
9899
9900 # Check whether --with-build-time-tools was given.
9901 if test "${with_build_time_tools+set}" = set; then :
9902 withval=$with_build_time_tools; case x"$withval" in
9903 x/*) ;;
9904 *)
9905 with_build_time_tools=
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9907 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9908 ;;
9909 esac
9910 else
9911 with_build_time_tools=
9912 fi
9913
9914
9915
9916
9917 if test -n "$CC_FOR_TARGET"; then
9918 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9919 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9920 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9921 fi
9922
9923 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9924 for ncn_progname in cc gcc; do
9925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926 set dummy ${ncn_progname}; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 if test -n "$CC_FOR_TARGET"; then
9933 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9945 fi
9946 done
9947 done
9948 IFS=$as_save_IFS
9949
9950 fi
9951 fi
9952 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9953 if test -n "$CC_FOR_TARGET"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9955 $as_echo "$CC_FOR_TARGET" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960
9961
9962 done
9963 fi
9964
9965 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9966 for ncn_progname in cc gcc; do
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9968 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9969 if test -x $with_build_time_tools/${ncn_progname}; then
9970 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9972 $as_echo "yes" >&6; }
9973 break
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9977 fi
9978 done
9979 fi
9980
9981 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9982 for ncn_progname in cc gcc; do
9983 if test -n "$ncn_target_tool_prefix"; then
9984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9985 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -n "$CC_FOR_TARGET"; then
9992 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005 done
10006 done
10007 IFS=$as_save_IFS
10008
10009 fi
10010 fi
10011 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10012 if test -n "$CC_FOR_TARGET"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10014 $as_echo "$CC_FOR_TARGET" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019
10020
10021 fi
10022 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10024 set dummy ${ncn_progname}; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 if test -n "$CC_FOR_TARGET"; then
10031 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10032 else
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10035 do
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10043 fi
10044 done
10045 done
10046 IFS=$as_save_IFS
10047
10048 fi
10049 fi
10050 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10051 if test -n "$CC_FOR_TARGET"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10053 $as_echo "$CC_FOR_TARGET" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 fi
10058
10059
10060 fi
10061 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10062 done
10063 fi
10064
10065 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10066 set dummy cc gcc
10067 if test $build = $target ; then
10068 CC_FOR_TARGET="$2"
10069 else
10070 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10071 fi
10072 else
10073 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10074 fi
10075
10076
10077
10078 if test -n "$CXX_FOR_TARGET"; then
10079 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10080 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10081 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10082 fi
10083
10084 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10085 for ncn_progname in c++ g++ cxx gxx; do
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087 set dummy ${ncn_progname}; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 if test -n "$CXX_FOR_TARGET"; then
10094 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10106 fi
10107 done
10108 done
10109 IFS=$as_save_IFS
10110
10111 fi
10112 fi
10113 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10114 if test -n "$CXX_FOR_TARGET"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10116 $as_echo "$CXX_FOR_TARGET" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123 done
10124 fi
10125
10126 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10127 for ncn_progname in c++ g++ cxx gxx; do
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10130 if test -x $with_build_time_tools/${ncn_progname}; then
10131 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10133 $as_echo "yes" >&6; }
10134 break
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139 done
10140 fi
10141
10142 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10143 for ncn_progname in c++ g++ cxx gxx; do
10144 if test -n "$ncn_target_tool_prefix"; then
10145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 if test -n "$CXX_FOR_TARGET"; then
10153 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10154 else
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10157 do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166 done
10167 done
10168 IFS=$as_save_IFS
10169
10170 fi
10171 fi
10172 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10173 if test -n "$CXX_FOR_TARGET"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10175 $as_echo "$CXX_FOR_TARGET" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180
10181
10182 fi
10183 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10185 set dummy ${ncn_progname}; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 if test -n "$CXX_FOR_TARGET"; then
10192 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205 done
10206 done
10207 IFS=$as_save_IFS
10208
10209 fi
10210 fi
10211 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10212 if test -n "$CXX_FOR_TARGET"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10214 $as_echo "$CXX_FOR_TARGET" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221 fi
10222 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10223 done
10224 fi
10225
10226 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10227 set dummy c++ g++ cxx gxx
10228 if test $build = $target ; then
10229 CXX_FOR_TARGET="$2"
10230 else
10231 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10232 fi
10233 else
10234 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10235 fi
10236
10237
10238
10239 if test -n "$GCC_FOR_TARGET"; then
10240 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10241 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10242 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10243 fi
10244
10245 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10246 for ncn_progname in gcc; do
10247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10248 set dummy ${ncn_progname}; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 if test -n "$GCC_FOR_TARGET"; then
10255 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10267 fi
10268 done
10269 done
10270 IFS=$as_save_IFS
10271
10272 fi
10273 fi
10274 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10275 if test -n "$GCC_FOR_TARGET"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10277 $as_echo "$GCC_FOR_TARGET" >&6; }
10278 else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282
10283
10284 done
10285 fi
10286
10287 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10288 for ncn_progname in gcc; do
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10290 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10291 if test -x $with_build_time_tools/${ncn_progname}; then
10292 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; }
10295 break
10296 else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10299 fi
10300 done
10301 fi
10302
10303 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10304 for ncn_progname in gcc; do
10305 if test -n "$ncn_target_tool_prefix"; then
10306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10307 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 if test -n "$GCC_FOR_TARGET"; then
10314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10318 do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327 done
10328 done
10329 IFS=$as_save_IFS
10330
10331 fi
10332 fi
10333 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10334 if test -n "$GCC_FOR_TARGET"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10336 $as_echo "$GCC_FOR_TARGET" >&6; }
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341
10342
10343 fi
10344 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10346 set dummy ${ncn_progname}; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 if test -n "$GCC_FOR_TARGET"; then
10353 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 break 2
10365 fi
10366 done
10367 done
10368 IFS=$as_save_IFS
10369
10370 fi
10371 fi
10372 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10373 if test -n "$GCC_FOR_TARGET"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10375 $as_echo "$GCC_FOR_TARGET" >&6; }
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380
10381
10382 fi
10383 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10384 done
10385 fi
10386
10387 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10388 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10389 else
10390 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10391 fi
10392
10393
10394
10395 if test -n "$GFORTRAN_FOR_TARGET"; then
10396 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10397 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10398 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10399 fi
10400
10401 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10402 for ncn_progname in gfortran; do
10403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10404 set dummy ${ncn_progname}; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 if test -n "$GFORTRAN_FOR_TARGET"; then
10411 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10415 do
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10423 fi
10424 done
10425 done
10426 IFS=$as_save_IFS
10427
10428 fi
10429 fi
10430 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10431 if test -n "$GFORTRAN_FOR_TARGET"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10433 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10437 fi
10438
10439
10440 done
10441 fi
10442
10443 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10444 for ncn_progname in gfortran; do
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10446 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10447 if test -x $with_build_time_tools/${ncn_progname}; then
10448 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10450 $as_echo "yes" >&6; }
10451 break
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10455 fi
10456 done
10457 fi
10458
10459 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10460 for ncn_progname in gfortran; do
10461 if test -n "$ncn_target_tool_prefix"; then
10462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 if test -n "$GFORTRAN_FOR_TARGET"; then
10470 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483 done
10484 done
10485 IFS=$as_save_IFS
10486
10487 fi
10488 fi
10489 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10490 if test -n "$GFORTRAN_FOR_TARGET"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10492 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499 fi
10500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10502 set dummy ${ncn_progname}; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 if test -n "$GFORTRAN_FOR_TARGET"; then
10509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10510 else
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10513 do
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10521 fi
10522 done
10523 done
10524 IFS=$as_save_IFS
10525
10526 fi
10527 fi
10528 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10529 if test -n "$GFORTRAN_FOR_TARGET"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10531 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10535 fi
10536
10537
10538 fi
10539 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10540 done
10541 fi
10542
10543 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10544 set dummy gfortran
10545 if test $build = $target ; then
10546 GFORTRAN_FOR_TARGET="$2"
10547 else
10548 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10549 fi
10550 else
10551 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10552 fi
10553
10554
10555
10556 if test -n "$GOC_FOR_TARGET"; then
10557 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10558 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10559 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10560 fi
10561
10562 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10563 for ncn_progname in gccgo; do
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565 set dummy ${ncn_progname}; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 if test -n "$GOC_FOR_TARGET"; then
10572 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585 done
10586 done
10587 IFS=$as_save_IFS
10588
10589 fi
10590 fi
10591 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10592 if test -n "$GOC_FOR_TARGET"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10594 $as_echo "$GOC_FOR_TARGET" >&6; }
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599
10600
10601 done
10602 fi
10603
10604 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10605 for ncn_progname in gccgo; do
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10608 if test -x $with_build_time_tools/${ncn_progname}; then
10609 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10612 break
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617 done
10618 fi
10619
10620 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10621 for ncn_progname in gccgo; do
10622 if test -n "$ncn_target_tool_prefix"; then
10623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$GOC_FOR_TARGET"; then
10631 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644 done
10645 done
10646 IFS=$as_save_IFS
10647
10648 fi
10649 fi
10650 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10651 if test -n "$GOC_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10653 $as_echo "$GOC_FOR_TARGET" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658
10659
10660 fi
10661 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663 set dummy ${ncn_progname}; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 if test -n "$GOC_FOR_TARGET"; then
10670 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10674 do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10679 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10682 fi
10683 done
10684 done
10685 IFS=$as_save_IFS
10686
10687 fi
10688 fi
10689 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10690 if test -n "$GOC_FOR_TARGET"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10692 $as_echo "$GOC_FOR_TARGET" >&6; }
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696 fi
10697
10698
10699 fi
10700 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10701 done
10702 fi
10703
10704 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10705 set dummy gccgo
10706 if test $build = $target ; then
10707 GOC_FOR_TARGET="$2"
10708 else
10709 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10710 fi
10711 else
10712 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10713 fi
10714
10715
10716
10717 cat > conftest.c << \EOF
10718 #ifdef __GNUC__
10719 gcc_yay;
10720 #endif
10721 EOF
10722 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10723 have_gcc_for_target=yes
10724 else
10725 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10726 have_gcc_for_target=no
10727 fi
10728 rm conftest.c
10729
10730
10731
10732
10733 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10734 if test -n "$with_build_time_tools"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10736 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10737 if test -x $with_build_time_tools/ar; then
10738 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10739 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10741 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746 elif test $build != $host && test $have_gcc_for_target = yes; then
10747 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10748 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10749 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10750 fi
10751 fi
10752 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10753 # Extract the first word of "ar", so it can be a program name with args.
10754 set dummy ar; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 case $AR_FOR_TARGET in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10763 ;;
10764 *)
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $gcc_cv_tool_dirs
10767 do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776 done
10777 done
10778 IFS=$as_save_IFS
10779
10780 ;;
10781 esac
10782 fi
10783 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10784 if test -n "$AR_FOR_TARGET"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10786 $as_echo "$AR_FOR_TARGET" >&6; }
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10790 fi
10791
10792
10793 fi
10794 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10795
10796
10797 if test -n "$AR_FOR_TARGET"; then
10798 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10799 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10800 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10801 fi
10802
10803 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10804 for ncn_progname in ar; do
10805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10806 set dummy ${ncn_progname}; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 if test -n "$AR_FOR_TARGET"; then
10813 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10814 else
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10817 do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10822 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826 done
10827 done
10828 IFS=$as_save_IFS
10829
10830 fi
10831 fi
10832 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10833 if test -n "$AR_FOR_TARGET"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10835 $as_echo "$AR_FOR_TARGET" >&6; }
10836 else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10839 fi
10840
10841
10842 done
10843 fi
10844
10845 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10846 for ncn_progname in ar; do
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10848 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10849 if test -x $with_build_time_tools/${ncn_progname}; then
10850 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852 $as_echo "yes" >&6; }
10853 break
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858 done
10859 fi
10860
10861 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10862 for ncn_progname in ar; do
10863 if test -n "$ncn_target_tool_prefix"; then
10864 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10865 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 if test -n "$AR_FOR_TARGET"; then
10872 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10873 else
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885 done
10886 done
10887 IFS=$as_save_IFS
10888
10889 fi
10890 fi
10891 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10892 if test -n "$AR_FOR_TARGET"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10894 $as_echo "$AR_FOR_TARGET" >&6; }
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; }
10898 fi
10899
10900
10901 fi
10902 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10904 set dummy ${ncn_progname}; ac_word=$2
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906 $as_echo_n "checking for $ac_word... " >&6; }
10907 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 if test -n "$AR_FOR_TARGET"; then
10911 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10912 else
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10915 do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924 done
10925 done
10926 IFS=$as_save_IFS
10927
10928 fi
10929 fi
10930 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10931 if test -n "$AR_FOR_TARGET"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10933 $as_echo "$AR_FOR_TARGET" >&6; }
10934 else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; }
10937 fi
10938
10939
10940 fi
10941 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10942 done
10943 fi
10944
10945 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10946 set dummy ar
10947 if test $build = $target ; then
10948 AR_FOR_TARGET="$2"
10949 else
10950 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10951 fi
10952 else
10953 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10954 fi
10955
10956 else
10957 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10958 fi
10959
10960
10961
10962
10963 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10964 if test -n "$with_build_time_tools"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10966 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10967 if test -x $with_build_time_tools/as; then
10968 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10969 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10971 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10975 fi
10976 elif test $build != $host && test $have_gcc_for_target = yes; then
10977 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10978 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10979 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10980 fi
10981 fi
10982 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10983 # Extract the first word of "as", so it can be a program name with args.
10984 set dummy as; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 case $AS_FOR_TARGET in
10991 [\\/]* | ?:[\\/]*)
10992 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10993 ;;
10994 *)
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $gcc_cv_tool_dirs
10997 do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010 ;;
11011 esac
11012 fi
11013 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11014 if test -n "$AS_FOR_TARGET"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11016 $as_echo "$AS_FOR_TARGET" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11020 fi
11021
11022
11023 fi
11024 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11025
11026
11027 if test -n "$AS_FOR_TARGET"; then
11028 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11029 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11030 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11031 fi
11032
11033 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11034 for ncn_progname in as; do
11035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11036 set dummy ${ncn_progname}; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 if test -n "$AS_FOR_TARGET"; then
11043 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11044 else
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11047 do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11052 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056 done
11057 done
11058 IFS=$as_save_IFS
11059
11060 fi
11061 fi
11062 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11063 if test -n "$AS_FOR_TARGET"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11065 $as_echo "$AS_FOR_TARGET" >&6; }
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 fi
11070
11071
11072 done
11073 fi
11074
11075 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11076 for ncn_progname in as; do
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11078 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11079 if test -x $with_build_time_tools/${ncn_progname}; then
11080 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11082 $as_echo "yes" >&6; }
11083 break
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087 fi
11088 done
11089 fi
11090
11091 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11092 for ncn_progname in as; do
11093 if test -n "$ncn_target_tool_prefix"; then
11094 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11095 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test -n "$AS_FOR_TARGET"; then
11102 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11122 if test -n "$AS_FOR_TARGET"; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11124 $as_echo "$AS_FOR_TARGET" >&6; }
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130
11131 fi
11132 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11134 set dummy ${ncn_progname}; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 if test -n "$AS_FOR_TARGET"; then
11141 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11142 else
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11145 do
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11153 fi
11154 done
11155 done
11156 IFS=$as_save_IFS
11157
11158 fi
11159 fi
11160 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11161 if test -n "$AS_FOR_TARGET"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11163 $as_echo "$AS_FOR_TARGET" >&6; }
11164 else
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11167 fi
11168
11169
11170 fi
11171 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11172 done
11173 fi
11174
11175 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11176 set dummy as
11177 if test $build = $target ; then
11178 AS_FOR_TARGET="$2"
11179 else
11180 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11181 fi
11182 else
11183 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11184 fi
11185
11186 else
11187 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11188 fi
11189
11190
11191
11192
11193 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11194 if test -n "$with_build_time_tools"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11196 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11197 if test -x $with_build_time_tools/dlltool; then
11198 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11199 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11201 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11205 fi
11206 elif test $build != $host && test $have_gcc_for_target = yes; then
11207 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11208 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11209 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11210 fi
11211 fi
11212 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11213 # Extract the first word of "dlltool", so it can be a program name with args.
11214 set dummy dlltool; ac_word=$2
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216 $as_echo_n "checking for $ac_word... " >&6; }
11217 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 case $DLLTOOL_FOR_TARGET in
11221 [\\/]* | ?:[\\/]*)
11222 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11223 ;;
11224 *)
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $gcc_cv_tool_dirs
11227 do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236 done
11237 done
11238 IFS=$as_save_IFS
11239
11240 ;;
11241 esac
11242 fi
11243 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11244 if test -n "$DLLTOOL_FOR_TARGET"; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11246 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249 $as_echo "no" >&6; }
11250 fi
11251
11252
11253 fi
11254 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11255
11256
11257 if test -n "$DLLTOOL_FOR_TARGET"; then
11258 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11259 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11260 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11261 fi
11262
11263 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11264 for ncn_progname in dlltool; do
11265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11266 set dummy ${ncn_progname}; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 if test -n "$DLLTOOL_FOR_TARGET"; then
11273 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11274 else
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11277 do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11285 fi
11286 done
11287 done
11288 IFS=$as_save_IFS
11289
11290 fi
11291 fi
11292 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11293 if test -n "$DLLTOOL_FOR_TARGET"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11295 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300
11301
11302 done
11303 fi
11304
11305 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11306 for ncn_progname in dlltool; do
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11308 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11309 if test -x $with_build_time_tools/${ncn_progname}; then
11310 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11312 $as_echo "yes" >&6; }
11313 break
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11317 fi
11318 done
11319 fi
11320
11321 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11322 for ncn_progname in dlltool; do
11323 if test -n "$ncn_target_tool_prefix"; then
11324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11325 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 if test -n "$DLLTOOL_FOR_TARGET"; then
11332 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11333 else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11336 do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11341 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345 done
11346 done
11347 IFS=$as_save_IFS
11348
11349 fi
11350 fi
11351 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11352 if test -n "$DLLTOOL_FOR_TARGET"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11354 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359
11360
11361 fi
11362 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364 set dummy ${ncn_progname}; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 if test -n "$DLLTOOL_FOR_TARGET"; then
11371 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11380 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384 done
11385 done
11386 IFS=$as_save_IFS
11387
11388 fi
11389 fi
11390 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11391 if test -n "$DLLTOOL_FOR_TARGET"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11393 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 fi
11398
11399
11400 fi
11401 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11402 done
11403 fi
11404
11405 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11406 set dummy dlltool
11407 if test $build = $target ; then
11408 DLLTOOL_FOR_TARGET="$2"
11409 else
11410 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11411 fi
11412 else
11413 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11414 fi
11415
11416 else
11417 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11418 fi
11419
11420
11421
11422
11423 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11424 if test -n "$with_build_time_tools"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11426 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11427 if test -x $with_build_time_tools/ld; then
11428 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11429 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11431 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11435 fi
11436 elif test $build != $host && test $have_gcc_for_target = yes; then
11437 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11438 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11439 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11440 fi
11441 fi
11442 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11443 # Extract the first word of "ld", so it can be a program name with args.
11444 set dummy ld; ac_word=$2
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446 $as_echo_n "checking for $ac_word... " >&6; }
11447 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 case $LD_FOR_TARGET in
11451 [\\/]* | ?:[\\/]*)
11452 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11453 ;;
11454 *)
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $gcc_cv_tool_dirs
11457 do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11462 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466 done
11467 done
11468 IFS=$as_save_IFS
11469
11470 ;;
11471 esac
11472 fi
11473 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11474 if test -n "$LD_FOR_TARGET"; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11476 $as_echo "$LD_FOR_TARGET" >&6; }
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479 $as_echo "no" >&6; }
11480 fi
11481
11482
11483 fi
11484 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11485
11486
11487 if test -n "$LD_FOR_TARGET"; then
11488 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11489 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11490 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11491 fi
11492
11493 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11494 for ncn_progname in ld; do
11495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11496 set dummy ${ncn_progname}; ac_word=$2
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498 $as_echo_n "checking for $ac_word... " >&6; }
11499 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 if test -n "$LD_FOR_TARGET"; then
11503 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11504 else
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11507 do
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11512 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11515 fi
11516 done
11517 done
11518 IFS=$as_save_IFS
11519
11520 fi
11521 fi
11522 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11523 if test -n "$LD_FOR_TARGET"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11525 $as_echo "$LD_FOR_TARGET" >&6; }
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 fi
11530
11531
11532 done
11533 fi
11534
11535 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11536 for ncn_progname in ld; do
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11538 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11539 if test -x $with_build_time_tools/${ncn_progname}; then
11540 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 $as_echo "yes" >&6; }
11543 break
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547 fi
11548 done
11549 fi
11550
11551 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11552 for ncn_progname in ld; do
11553 if test -n "$ncn_target_tool_prefix"; then
11554 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11555 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test -n "$LD_FOR_TARGET"; then
11562 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11582 if test -n "$LD_FOR_TARGET"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11584 $as_echo "$LD_FOR_TARGET" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590
11591 fi
11592 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11594 set dummy ${ncn_progname}; ac_word=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 if test -n "$LD_FOR_TARGET"; then
11601 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11602 else
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11605 do
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11610 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11613 fi
11614 done
11615 done
11616 IFS=$as_save_IFS
11617
11618 fi
11619 fi
11620 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11621 if test -n "$LD_FOR_TARGET"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11623 $as_echo "$LD_FOR_TARGET" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11627 fi
11628
11629
11630 fi
11631 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11632 done
11633 fi
11634
11635 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11636 set dummy ld
11637 if test $build = $target ; then
11638 LD_FOR_TARGET="$2"
11639 else
11640 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11641 fi
11642 else
11643 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11644 fi
11645
11646 else
11647 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11648 fi
11649
11650
11651
11652
11653 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11654 if test -n "$with_build_time_tools"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11656 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11657 if test -x $with_build_time_tools/lipo; then
11658 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11659 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11661 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11665 fi
11666 elif test $build != $host && test $have_gcc_for_target = yes; then
11667 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11668 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11669 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11670 fi
11671 fi
11672 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11673 # Extract the first word of "lipo", so it can be a program name with args.
11674 set dummy lipo; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 case $LIPO_FOR_TARGET in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11683 ;;
11684 *)
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $gcc_cv_tool_dirs
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 ;;
11701 esac
11702 fi
11703 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11704 if test -n "$LIPO_FOR_TARGET"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11706 $as_echo "$LIPO_FOR_TARGET" >&6; }
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712
11713 fi
11714 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11715
11716
11717 if test -n "$LIPO_FOR_TARGET"; then
11718 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11719 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11720 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11721 fi
11722
11723 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11724 for ncn_progname in lipo; do
11725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11726 set dummy ${ncn_progname}; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 if test -n "$LIPO_FOR_TARGET"; then
11733 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11734 else
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11737 do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11745 fi
11746 done
11747 done
11748 IFS=$as_save_IFS
11749
11750 fi
11751 fi
11752 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11753 if test -n "$LIPO_FOR_TARGET"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11755 $as_echo "$LIPO_FOR_TARGET" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 fi
11760
11761
11762 done
11763 fi
11764
11765 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11766 for ncn_progname in lipo; do
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11768 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11769 if test -x $with_build_time_tools/${ncn_progname}; then
11770 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11773 break
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11777 fi
11778 done
11779 fi
11780
11781 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11782 for ncn_progname in lipo; do
11783 if test -n "$ncn_target_tool_prefix"; then
11784 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11785 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 if test -n "$LIPO_FOR_TARGET"; then
11792 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11793 else
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805 done
11806 done
11807 IFS=$as_save_IFS
11808
11809 fi
11810 fi
11811 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11812 if test -n "$LIPO_FOR_TARGET"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11814 $as_echo "$LIPO_FOR_TARGET" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819
11820
11821 fi
11822 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11824 set dummy ${ncn_progname}; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test -n "$LIPO_FOR_TARGET"; then
11831 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11832 else
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11835 do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11843 fi
11844 done
11845 done
11846 IFS=$as_save_IFS
11847
11848 fi
11849 fi
11850 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11851 if test -n "$LIPO_FOR_TARGET"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11853 $as_echo "$LIPO_FOR_TARGET" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858
11859
11860 fi
11861 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11862 done
11863 fi
11864
11865 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11866 set dummy lipo
11867 if test $build = $target ; then
11868 LIPO_FOR_TARGET="$2"
11869 else
11870 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11871 fi
11872 else
11873 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11874 fi
11875
11876 else
11877 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11878 fi
11879
11880
11881
11882
11883 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11884 if test -n "$with_build_time_tools"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11886 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11887 if test -x $with_build_time_tools/nm; then
11888 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11889 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11891 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896 elif test $build != $host && test $have_gcc_for_target = yes; then
11897 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11898 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11899 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11900 fi
11901 fi
11902 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11903 # Extract the first word of "nm", so it can be a program name with args.
11904 set dummy nm; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 case $NM_FOR_TARGET in
11911 [\\/]* | ?:[\\/]*)
11912 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11913 ;;
11914 *)
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $gcc_cv_tool_dirs
11917 do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11925 fi
11926 done
11927 done
11928 IFS=$as_save_IFS
11929
11930 ;;
11931 esac
11932 fi
11933 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11934 if test -n "$NM_FOR_TARGET"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11936 $as_echo "$NM_FOR_TARGET" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11940 fi
11941
11942
11943 fi
11944 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11945
11946
11947 if test -n "$NM_FOR_TARGET"; then
11948 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11949 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11950 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11951 fi
11952
11953 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11954 for ncn_progname in nm; do
11955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11956 set dummy ${ncn_progname}; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 if test -n "$NM_FOR_TARGET"; then
11963 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11964 else
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11967 do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11972 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 break 2
11975 fi
11976 done
11977 done
11978 IFS=$as_save_IFS
11979
11980 fi
11981 fi
11982 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11983 if test -n "$NM_FOR_TARGET"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11985 $as_echo "$NM_FOR_TARGET" >&6; }
11986 else
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 fi
11990
11991
11992 done
11993 fi
11994
11995 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11996 for ncn_progname in nm; do
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11998 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11999 if test -x $with_build_time_tools/${ncn_progname}; then
12000 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12002 $as_echo "yes" >&6; }
12003 break
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12007 fi
12008 done
12009 fi
12010
12011 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12012 for ncn_progname in nm; do
12013 if test -n "$ncn_target_tool_prefix"; then
12014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 if test -n "$NM_FOR_TARGET"; then
12022 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12023 else
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035 done
12036 done
12037 IFS=$as_save_IFS
12038
12039 fi
12040 fi
12041 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12042 if test -n "$NM_FOR_TARGET"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12044 $as_echo "$NM_FOR_TARGET" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 fi
12052 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12054 set dummy ${ncn_progname}; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test -n "$NM_FOR_TARGET"; then
12061 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12062 else
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074 done
12075 done
12076 IFS=$as_save_IFS
12077
12078 fi
12079 fi
12080 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12081 if test -n "$NM_FOR_TARGET"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12083 $as_echo "$NM_FOR_TARGET" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089
12090 fi
12091 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12092 done
12093 fi
12094
12095 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12096 set dummy nm
12097 if test $build = $target ; then
12098 NM_FOR_TARGET="$2"
12099 else
12100 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12101 fi
12102 else
12103 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12104 fi
12105
12106 else
12107 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12108 fi
12109
12110
12111
12112
12113 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12114 if test -n "$with_build_time_tools"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12116 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12117 if test -x $with_build_time_tools/objcopy; then
12118 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12119 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12121 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126 elif test $build != $host && test $have_gcc_for_target = yes; then
12127 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12128 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12129 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12130 fi
12131 fi
12132 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12133 # Extract the first word of "objcopy", so it can be a program name with args.
12134 set dummy objcopy; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 case $OBJCOPY_FOR_TARGET in
12141 [\\/]* | ?:[\\/]*)
12142 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12143 ;;
12144 *)
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $gcc_cv_tool_dirs
12147 do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156 done
12157 done
12158 IFS=$as_save_IFS
12159
12160 ;;
12161 esac
12162 fi
12163 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12164 if test -n "$OBJCOPY_FOR_TARGET"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12166 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12170 fi
12171
12172
12173 fi
12174 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12175
12176
12177 if test -n "$OBJCOPY_FOR_TARGET"; then
12178 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12179 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12180 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12181 fi
12182
12183 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12184 for ncn_progname in objcopy; do
12185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12186 set dummy ${ncn_progname}; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 if test -n "$OBJCOPY_FOR_TARGET"; then
12193 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12205 fi
12206 done
12207 done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12213 if test -n "$OBJCOPY_FOR_TARGET"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12215 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222 done
12223 fi
12224
12225 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12226 for ncn_progname in objcopy; do
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12228 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12229 if test -x $with_build_time_tools/${ncn_progname}; then
12230 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12232 $as_echo "yes" >&6; }
12233 break
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12237 fi
12238 done
12239 fi
12240
12241 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12242 for ncn_progname in objcopy; do
12243 if test -n "$ncn_target_tool_prefix"; then
12244 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12245 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 if test -n "$OBJCOPY_FOR_TARGET"; then
12252 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12253 else
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12264 fi
12265 done
12266 done
12267 IFS=$as_save_IFS
12268
12269 fi
12270 fi
12271 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12272 if test -n "$OBJCOPY_FOR_TARGET"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12274 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279
12280
12281 fi
12282 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12284 set dummy ${ncn_progname}; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 if test -n "$OBJCOPY_FOR_TARGET"; then
12291 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12292 else
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304 done
12305 done
12306 IFS=$as_save_IFS
12307
12308 fi
12309 fi
12310 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12311 if test -n "$OBJCOPY_FOR_TARGET"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12313 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12314 else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12317 fi
12318
12319
12320 fi
12321 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12322 done
12323 fi
12324
12325 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12326 set dummy objcopy
12327 if test $build = $target ; then
12328 OBJCOPY_FOR_TARGET="$2"
12329 else
12330 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12331 fi
12332 else
12333 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12334 fi
12335
12336 else
12337 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12338 fi
12339
12340
12341
12342
12343 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12344 if test -n "$with_build_time_tools"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12346 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12347 if test -x $with_build_time_tools/objdump; then
12348 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12349 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12351 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356 elif test $build != $host && test $have_gcc_for_target = yes; then
12357 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12358 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12359 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12360 fi
12361 fi
12362 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12363 # Extract the first word of "objdump", so it can be a program name with args.
12364 set dummy objdump; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 case $OBJDUMP_FOR_TARGET in
12371 [\\/]* | ?:[\\/]*)
12372 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12373 ;;
12374 *)
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $gcc_cv_tool_dirs
12377 do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12385 fi
12386 done
12387 done
12388 IFS=$as_save_IFS
12389
12390 ;;
12391 esac
12392 fi
12393 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12394 if test -n "$OBJDUMP_FOR_TARGET"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12396 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401
12402
12403 fi
12404 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12405
12406
12407 if test -n "$OBJDUMP_FOR_TARGET"; then
12408 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12409 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12410 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12411 fi
12412
12413 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12414 for ncn_progname in objdump; do
12415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12416 set dummy ${ncn_progname}; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 if test -n "$OBJDUMP_FOR_TARGET"; then
12423 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12424 else
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12427 do
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12435 fi
12436 done
12437 done
12438 IFS=$as_save_IFS
12439
12440 fi
12441 fi
12442 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12443 if test -n "$OBJDUMP_FOR_TARGET"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12445 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12446 else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450
12451
12452 done
12453 fi
12454
12455 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12456 for ncn_progname in objdump; do
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12458 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12459 if test -x $with_build_time_tools/${ncn_progname}; then
12460 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12462 $as_echo "yes" >&6; }
12463 break
12464 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12467 fi
12468 done
12469 fi
12470
12471 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12472 for ncn_progname in objdump; do
12473 if test -n "$ncn_target_tool_prefix"; then
12474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12475 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 if test -n "$OBJDUMP_FOR_TARGET"; then
12482 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12483 else
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12491 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 break 2
12494 fi
12495 done
12496 done
12497 IFS=$as_save_IFS
12498
12499 fi
12500 fi
12501 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12502 if test -n "$OBJDUMP_FOR_TARGET"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12504 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509
12510
12511 fi
12512 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12514 set dummy ${ncn_progname}; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 if test -n "$OBJDUMP_FOR_TARGET"; then
12521 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12522 else
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12525 do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12530 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534 done
12535 done
12536 IFS=$as_save_IFS
12537
12538 fi
12539 fi
12540 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12541 if test -n "$OBJDUMP_FOR_TARGET"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12543 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 fi
12548
12549
12550 fi
12551 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12552 done
12553 fi
12554
12555 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12556 set dummy objdump
12557 if test $build = $target ; then
12558 OBJDUMP_FOR_TARGET="$2"
12559 else
12560 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12561 fi
12562 else
12563 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12564 fi
12565
12566 else
12567 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12568 fi
12569
12570
12571
12572
12573 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12574 if test -n "$with_build_time_tools"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12576 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12577 if test -x $with_build_time_tools/ranlib; then
12578 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12579 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12581 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12582 else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12585 fi
12586 elif test $build != $host && test $have_gcc_for_target = yes; then
12587 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12588 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12589 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12590 fi
12591 fi
12592 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12593 # Extract the first word of "ranlib", so it can be a program name with args.
12594 set dummy ranlib; ac_word=$2
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 case $RANLIB_FOR_TARGET in
12601 [\\/]* | ?:[\\/]*)
12602 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12603 ;;
12604 *)
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $gcc_cv_tool_dirs
12607 do
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12612 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12615 fi
12616 done
12617 done
12618 IFS=$as_save_IFS
12619
12620 ;;
12621 esac
12622 fi
12623 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12624 if test -n "$RANLIB_FOR_TARGET"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12626 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12627 else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630 fi
12631
12632
12633 fi
12634 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12635
12636
12637 if test -n "$RANLIB_FOR_TARGET"; then
12638 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12639 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12640 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12641 fi
12642
12643 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12644 for ncn_progname in ranlib; do
12645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -n "$RANLIB_FOR_TARGET"; then
12653 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12662 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666 done
12667 done
12668 IFS=$as_save_IFS
12669
12670 fi
12671 fi
12672 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12673 if test -n "$RANLIB_FOR_TARGET"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12675 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680
12681
12682 done
12683 fi
12684
12685 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12686 for ncn_progname in ranlib; do
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12688 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12689 if test -x $with_build_time_tools/${ncn_progname}; then
12690 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692 $as_echo "yes" >&6; }
12693 break
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697 fi
12698 done
12699 fi
12700
12701 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12702 for ncn_progname in ranlib; do
12703 if test -n "$ncn_target_tool_prefix"; then
12704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12705 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 if test -n "$RANLIB_FOR_TARGET"; then
12712 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12713 else
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12721 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 break 2
12724 fi
12725 done
12726 done
12727 IFS=$as_save_IFS
12728
12729 fi
12730 fi
12731 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12732 if test -n "$RANLIB_FOR_TARGET"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12734 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739
12740
12741 fi
12742 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12744 set dummy ${ncn_progname}; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 if test -n "$RANLIB_FOR_TARGET"; then
12751 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12752 else
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12755 do
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12760 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12763 fi
12764 done
12765 done
12766 IFS=$as_save_IFS
12767
12768 fi
12769 fi
12770 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12771 if test -n "$RANLIB_FOR_TARGET"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12773 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 fi
12778
12779
12780 fi
12781 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12782 done
12783 fi
12784
12785 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12786 set dummy ranlib
12787 if test $build = $target ; then
12788 RANLIB_FOR_TARGET="$2"
12789 else
12790 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12791 fi
12792 else
12793 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12794 fi
12795
12796 else
12797 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12798 fi
12799
12800
12801
12802
12803 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12804 if test -n "$with_build_time_tools"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12806 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12807 if test -x $with_build_time_tools/readelf; then
12808 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12809 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12811 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 elif test $build != $host && test $have_gcc_for_target = yes; then
12817 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12818 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12819 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12820 fi
12821 fi
12822 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12823 # Extract the first word of "readelf", so it can be a program name with args.
12824 set dummy readelf; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 case $READELF_FOR_TARGET in
12831 [\\/]* | ?:[\\/]*)
12832 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12833 ;;
12834 *)
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $gcc_cv_tool_dirs
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 ;;
12851 esac
12852 fi
12853 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12854 if test -n "$READELF_FOR_TARGET"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12856 $as_echo "$READELF_FOR_TARGET" >&6; }
12857 else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12860 fi
12861
12862
12863 fi
12864 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12865
12866
12867 if test -n "$READELF_FOR_TARGET"; then
12868 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12869 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12870 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12871 fi
12872
12873 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12874 for ncn_progname in readelf; do
12875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12876 set dummy ${ncn_progname}; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test -n "$READELF_FOR_TARGET"; then
12883 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12884 else
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896 done
12897 done
12898 IFS=$as_save_IFS
12899
12900 fi
12901 fi
12902 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12903 if test -n "$READELF_FOR_TARGET"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12905 $as_echo "$READELF_FOR_TARGET" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910
12911
12912 done
12913 fi
12914
12915 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12916 for ncn_progname in readelf; do
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12918 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12919 if test -x $with_build_time_tools/${ncn_progname}; then
12920 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12922 $as_echo "yes" >&6; }
12923 break
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927 fi
12928 done
12929 fi
12930
12931 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12932 for ncn_progname in readelf; do
12933 if test -n "$ncn_target_tool_prefix"; then
12934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if test -n "$READELF_FOR_TARGET"; then
12942 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12946 do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955 done
12956 done
12957 IFS=$as_save_IFS
12958
12959 fi
12960 fi
12961 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12962 if test -n "$READELF_FOR_TARGET"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12964 $as_echo "$READELF_FOR_TARGET" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 fi
12969
12970
12971 fi
12972 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12974 set dummy ${ncn_progname}; ac_word=$2
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976 $as_echo_n "checking for $ac_word... " >&6; }
12977 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 if test -n "$READELF_FOR_TARGET"; then
12981 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12982 else
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12985 do
12986 IFS=$as_save_IFS
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12990 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12992 break 2
12993 fi
12994 done
12995 done
12996 IFS=$as_save_IFS
12997
12998 fi
12999 fi
13000 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13001 if test -n "$READELF_FOR_TARGET"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13003 $as_echo "$READELF_FOR_TARGET" >&6; }
13004 else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13007 fi
13008
13009
13010 fi
13011 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13012 done
13013 fi
13014
13015 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13016 set dummy readelf
13017 if test $build = $target ; then
13018 READELF_FOR_TARGET="$2"
13019 else
13020 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13021 fi
13022 else
13023 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13024 fi
13025
13026 else
13027 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13028 fi
13029
13030
13031
13032
13033 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13034 if test -n "$with_build_time_tools"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13036 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13037 if test -x $with_build_time_tools/strip; then
13038 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13039 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13041 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13045 fi
13046 elif test $build != $host && test $have_gcc_for_target = yes; then
13047 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13048 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13049 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13050 fi
13051 fi
13052 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13053 # Extract the first word of "strip", so it can be a program name with args.
13054 set dummy strip; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 case $STRIP_FOR_TARGET in
13061 [\\/]* | ?:[\\/]*)
13062 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13063 ;;
13064 *)
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $gcc_cv_tool_dirs
13067 do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13072 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13075 fi
13076 done
13077 done
13078 IFS=$as_save_IFS
13079
13080 ;;
13081 esac
13082 fi
13083 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13084 if test -n "$STRIP_FOR_TARGET"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13086 $as_echo "$STRIP_FOR_TARGET" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092
13093 fi
13094 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13095
13096
13097 if test -n "$STRIP_FOR_TARGET"; then
13098 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13099 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13100 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13101 fi
13102
13103 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13104 for ncn_progname in strip; do
13105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13106 set dummy ${ncn_progname}; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108 $as_echo_n "checking for $ac_word... " >&6; }
13109 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 if test -n "$STRIP_FOR_TARGET"; then
13113 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13114 else
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126 done
13127 done
13128 IFS=$as_save_IFS
13129
13130 fi
13131 fi
13132 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13133 if test -n "$STRIP_FOR_TARGET"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13135 $as_echo "$STRIP_FOR_TARGET" >&6; }
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139 fi
13140
13141
13142 done
13143 fi
13144
13145 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13146 for ncn_progname in strip; do
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13148 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13149 if test -x $with_build_time_tools/${ncn_progname}; then
13150 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153 break
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158 done
13159 fi
13160
13161 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13162 for ncn_progname in strip; do
13163 if test -n "$ncn_target_tool_prefix"; then
13164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 if test -n "$STRIP_FOR_TARGET"; then
13172 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13181 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13184 fi
13185 done
13186 done
13187 IFS=$as_save_IFS
13188
13189 fi
13190 fi
13191 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13192 if test -n "$STRIP_FOR_TARGET"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13194 $as_echo "$STRIP_FOR_TARGET" >&6; }
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198 fi
13199
13200
13201 fi
13202 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13204 set dummy ${ncn_progname}; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 if test -n "$STRIP_FOR_TARGET"; then
13211 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13215 do
13216 IFS=$as_save_IFS
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 break 2
13223 fi
13224 done
13225 done
13226 IFS=$as_save_IFS
13227
13228 fi
13229 fi
13230 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13231 if test -n "$STRIP_FOR_TARGET"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13233 $as_echo "$STRIP_FOR_TARGET" >&6; }
13234 else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237 fi
13238
13239
13240 fi
13241 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13242 done
13243 fi
13244
13245 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13246 set dummy strip
13247 if test $build = $target ; then
13248 STRIP_FOR_TARGET="$2"
13249 else
13250 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13251 fi
13252 else
13253 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13254 fi
13255
13256 else
13257 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13258 fi
13259
13260
13261
13262
13263 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13264 if test -n "$with_build_time_tools"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13266 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13267 if test -x $with_build_time_tools/windres; then
13268 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13269 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13271 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13272 else
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276 elif test $build != $host && test $have_gcc_for_target = yes; then
13277 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13278 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13279 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13280 fi
13281 fi
13282 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13283 # Extract the first word of "windres", so it can be a program name with args.
13284 set dummy windres; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 case $WINDRES_FOR_TARGET in
13291 [\\/]* | ?:[\\/]*)
13292 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13293 ;;
13294 *)
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $gcc_cv_tool_dirs
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 ;;
13311 esac
13312 fi
13313 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13314 if test -n "$WINDRES_FOR_TARGET"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13316 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13317 else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322
13323 fi
13324 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13325
13326
13327 if test -n "$WINDRES_FOR_TARGET"; then
13328 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13329 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13330 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13331 fi
13332
13333 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13334 for ncn_progname in windres; do
13335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13336 set dummy ${ncn_progname}; ac_word=$2
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338 $as_echo_n "checking for $ac_word... " >&6; }
13339 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 if test -n "$WINDRES_FOR_TARGET"; then
13343 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13344 else
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13347 do
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
13350 for ac_exec_ext in '' $ac_executable_extensions; do
13351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13352 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354 break 2
13355 fi
13356 done
13357 done
13358 IFS=$as_save_IFS
13359
13360 fi
13361 fi
13362 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13363 if test -n "$WINDRES_FOR_TARGET"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13365 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13366 else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369 fi
13370
13371
13372 done
13373 fi
13374
13375 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13376 for ncn_progname in windres; do
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13379 if test -x $with_build_time_tools/${ncn_progname}; then
13380 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13382 $as_echo "yes" >&6; }
13383 break
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 fi
13388 done
13389 fi
13390
13391 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13392 for ncn_progname in windres; do
13393 if test -n "$ncn_target_tool_prefix"; then
13394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 if test -n "$WINDRES_FOR_TARGET"; then
13402 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415 done
13416 done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13422 if test -n "$WINDRES_FOR_TARGET"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13424 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430
13431 fi
13432 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13434 set dummy ${ncn_progname}; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -n "$WINDRES_FOR_TARGET"; then
13441 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13445 do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13450 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454 done
13455 done
13456 IFS=$as_save_IFS
13457
13458 fi
13459 fi
13460 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13461 if test -n "$WINDRES_FOR_TARGET"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13463 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 fi
13468
13469
13470 fi
13471 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13472 done
13473 fi
13474
13475 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13476 set dummy windres
13477 if test $build = $target ; then
13478 WINDRES_FOR_TARGET="$2"
13479 else
13480 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13481 fi
13482 else
13483 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13484 fi
13485
13486 else
13487 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13488 fi
13489
13490
13491
13492
13493 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13494 if test -n "$with_build_time_tools"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13496 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13497 if test -x $with_build_time_tools/windmc; then
13498 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13499 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13501 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13502 else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505 fi
13506 elif test $build != $host && test $have_gcc_for_target = yes; then
13507 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13508 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13509 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13510 fi
13511 fi
13512 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13513 # Extract the first word of "windmc", so it can be a program name with args.
13514 set dummy windmc; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 case $WINDMC_FOR_TARGET in
13521 [\\/]* | ?:[\\/]*)
13522 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13523 ;;
13524 *)
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $gcc_cv_tool_dirs
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 ;;
13541 esac
13542 fi
13543 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13544 if test -n "$WINDMC_FOR_TARGET"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13546 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552
13553 fi
13554 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13555
13556
13557 if test -n "$WINDMC_FOR_TARGET"; then
13558 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13559 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13560 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13561 fi
13562
13563 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13564 for ncn_progname in windmc; do
13565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13566 set dummy ${ncn_progname}; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 if test -n "$WINDMC_FOR_TARGET"; then
13573 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13574 else
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH
13577 do
13578 IFS=$as_save_IFS
13579 test -z "$as_dir" && as_dir=.
13580 for ac_exec_ext in '' $ac_executable_extensions; do
13581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13582 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 break 2
13585 fi
13586 done
13587 done
13588 IFS=$as_save_IFS
13589
13590 fi
13591 fi
13592 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13593 if test -n "$WINDMC_FOR_TARGET"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13595 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13599 fi
13600
13601
13602 done
13603 fi
13604
13605 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13606 for ncn_progname in windmc; do
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13609 if test -x $with_build_time_tools/${ncn_progname}; then
13610 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13612 $as_echo "yes" >&6; }
13613 break
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617 fi
13618 done
13619 fi
13620
13621 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13622 for ncn_progname in windmc; do
13623 if test -n "$ncn_target_tool_prefix"; then
13624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 if test -n "$WINDMC_FOR_TARGET"; then
13632 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13641 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13644 fi
13645 done
13646 done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13652 if test -n "$WINDMC_FOR_TARGET"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13654 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661 fi
13662 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13664 set dummy ${ncn_progname}; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 if test -n "$WINDMC_FOR_TARGET"; then
13671 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13680 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13683 fi
13684 done
13685 done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13691 if test -n "$WINDMC_FOR_TARGET"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13693 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13694 else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699
13700 fi
13701 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13702 done
13703 fi
13704
13705 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13706 set dummy windmc
13707 if test $build = $target ; then
13708 WINDMC_FOR_TARGET="$2"
13709 else
13710 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13711 fi
13712 else
13713 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13714 fi
13715
13716 else
13717 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13718 fi
13719
13720
13721 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13724 $as_echo_n "checking where to find the target ar... " >&6; }
13725 if test "x${build}" != "x${host}" ; then
13726 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $AR_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730 $as_echo "pre-installed in $ac_dir" >&6; }
13731 else
13732 # Canadian cross, just use what we found
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734 $as_echo "pre-installed" >&6; }
13735 fi
13736 else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" binutils "*) ;;
13740 *) ok=no ;;
13741 esac
13742
13743 if test $ok = yes; then
13744 # An in-tree tool is available and we can use it
13745 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13747 $as_echo "just compiled" >&6; }
13748 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
13750 ac_dir=`dirname $AR_FOR_TARGET`
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752 $as_echo "pre-installed in $ac_dir" >&6; }
13753 elif test "x$target" = "x$host"; then
13754 # We can use an host tool
13755 AR_FOR_TARGET='$(AR)'
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13757 $as_echo "host tool" >&6; }
13758 else
13759 # We need a cross tool
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761 $as_echo "pre-installed" >&6; }
13762 fi
13763 fi
13764
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13766 $as_echo_n "checking where to find the target as... " >&6; }
13767 if test "x${build}" != "x${host}" ; then
13768 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $AS_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772 $as_echo "pre-installed in $ac_dir" >&6; }
13773 else
13774 # Canadian cross, just use what we found
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776 $as_echo "pre-installed" >&6; }
13777 fi
13778 else
13779 ok=yes
13780 case " ${configdirs} " in
13781 *" gas "*) ;;
13782 *) ok=no ;;
13783 esac
13784
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789 $as_echo "just compiled" >&6; }
13790 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
13792 ac_dir=`dirname $AS_FOR_TARGET`
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794 $as_echo "pre-installed in $ac_dir" >&6; }
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 AS_FOR_TARGET='$(AS)'
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799 $as_echo "host tool" >&6; }
13800 else
13801 # We need a cross tool
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803 $as_echo "pre-installed" >&6; }
13804 fi
13805 fi
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13808 $as_echo_n "checking where to find the target cc... " >&6; }
13809 if test "x${build}" != "x${host}" ; then
13810 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
13812 ac_dir=`dirname $CC_FOR_TARGET`
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814 $as_echo "pre-installed in $ac_dir" >&6; }
13815 else
13816 # Canadian cross, just use what we found
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818 $as_echo "pre-installed" >&6; }
13819 fi
13820 else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" gcc "*) ;;
13824 *) ok=no ;;
13825 esac
13826
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831 $as_echo "just compiled" >&6; }
13832 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
13834 ac_dir=`dirname $CC_FOR_TARGET`
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836 $as_echo "pre-installed in $ac_dir" >&6; }
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 CC_FOR_TARGET='$(CC)'
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841 $as_echo "host tool" >&6; }
13842 else
13843 # We need a cross tool
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845 $as_echo "pre-installed" >&6; }
13846 fi
13847 fi
13848
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13850 $as_echo_n "checking where to find the target c++... " >&6; }
13851 if test "x${build}" != "x${host}" ; then
13852 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
13854 ac_dir=`dirname $CXX_FOR_TARGET`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856 $as_echo "pre-installed in $ac_dir" >&6; }
13857 else
13858 # Canadian cross, just use what we found
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860 $as_echo "pre-installed" >&6; }
13861 fi
13862 else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" gcc "*) ;;
13866 *) ok=no ;;
13867 esac
13868 case ,${enable_languages}, in
13869 *,c++,*) ;;
13870 *) ok=no ;;
13871 esac
13872 if test $ok = yes; then
13873 # An in-tree tool is available and we can use it
13874 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'
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13876 $as_echo "just compiled" >&6; }
13877 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
13879 ac_dir=`dirname $CXX_FOR_TARGET`
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881 $as_echo "pre-installed in $ac_dir" >&6; }
13882 elif test "x$target" = "x$host"; then
13883 # We can use an host tool
13884 CXX_FOR_TARGET='$(CXX)'
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13886 $as_echo "host tool" >&6; }
13887 else
13888 # We need a cross tool
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890 $as_echo "pre-installed" >&6; }
13891 fi
13892 fi
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13895 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13896 if test "x${build}" != "x${host}" ; then
13897 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
13899 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901 $as_echo "pre-installed in $ac_dir" >&6; }
13902 else
13903 # Canadian cross, just use what we found
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905 $as_echo "pre-installed" >&6; }
13906 fi
13907 else
13908 ok=yes
13909 case " ${configdirs} " in
13910 *" gcc "*) ;;
13911 *) ok=no ;;
13912 esac
13913 case ,${enable_languages}, in
13914 *,c++,*) ;;
13915 *) ok=no ;;
13916 esac
13917 if test $ok = yes; then
13918 # An in-tree tool is available and we can use it
13919 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'
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13921 $as_echo "just compiled" >&6; }
13922 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13923 # We already found the complete path
13924 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13926 $as_echo "pre-installed in $ac_dir" >&6; }
13927 elif test "x$target" = "x$host"; then
13928 # We can use an host tool
13929 RAW_CXX_FOR_TARGET='$(CXX)'
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13931 $as_echo "host tool" >&6; }
13932 else
13933 # We need a cross tool
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13935 $as_echo "pre-installed" >&6; }
13936 fi
13937 fi
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13940 $as_echo_n "checking where to find the target dlltool... " >&6; }
13941 if test "x${build}" != "x${host}" ; then
13942 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
13944 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946 $as_echo "pre-installed in $ac_dir" >&6; }
13947 else
13948 # Canadian cross, just use what we found
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13950 $as_echo "pre-installed" >&6; }
13951 fi
13952 else
13953 ok=yes
13954 case " ${configdirs} " in
13955 *" binutils "*) ;;
13956 *) ok=no ;;
13957 esac
13958
13959 if test $ok = yes; then
13960 # An in-tree tool is available and we can use it
13961 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13963 $as_echo "just compiled" >&6; }
13964 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13965 # We already found the complete path
13966 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13968 $as_echo "pre-installed in $ac_dir" >&6; }
13969 elif test "x$target" = "x$host"; then
13970 # We can use an host tool
13971 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13973 $as_echo "host tool" >&6; }
13974 else
13975 # We need a cross tool
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13977 $as_echo "pre-installed" >&6; }
13978 fi
13979 fi
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13982 $as_echo_n "checking where to find the target gcc... " >&6; }
13983 if test "x${build}" != "x${host}" ; then
13984 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13985 # We already found the complete path
13986 ac_dir=`dirname $GCC_FOR_TARGET`
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13988 $as_echo "pre-installed in $ac_dir" >&6; }
13989 else
13990 # Canadian cross, just use what we found
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13992 $as_echo "pre-installed" >&6; }
13993 fi
13994 else
13995 ok=yes
13996 case " ${configdirs} " in
13997 *" gcc "*) ;;
13998 *) ok=no ;;
13999 esac
14000
14001 if test $ok = yes; then
14002 # An in-tree tool is available and we can use it
14003 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14005 $as_echo "just compiled" >&6; }
14006 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14007 # We already found the complete path
14008 ac_dir=`dirname $GCC_FOR_TARGET`
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14010 $as_echo "pre-installed in $ac_dir" >&6; }
14011 elif test "x$target" = "x$host"; then
14012 # We can use an host tool
14013 GCC_FOR_TARGET='$()'
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14015 $as_echo "host tool" >&6; }
14016 else
14017 # We need a cross tool
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14019 $as_echo "pre-installed" >&6; }
14020 fi
14021 fi
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14024 $as_echo_n "checking where to find the target gfortran... " >&6; }
14025 if test "x${build}" != "x${host}" ; then
14026 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14027 # We already found the complete path
14028 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14030 $as_echo "pre-installed in $ac_dir" >&6; }
14031 else
14032 # Canadian cross, just use what we found
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14034 $as_echo "pre-installed" >&6; }
14035 fi
14036 else
14037 ok=yes
14038 case " ${configdirs} " in
14039 *" gcc "*) ;;
14040 *) ok=no ;;
14041 esac
14042 case ,${enable_languages}, in
14043 *,fortran,*) ;;
14044 *) ok=no ;;
14045 esac
14046 if test $ok = yes; then
14047 # An in-tree tool is available and we can use it
14048 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14050 $as_echo "just compiled" >&6; }
14051 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
14053 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055 $as_echo "pre-installed in $ac_dir" >&6; }
14056 elif test "x$target" = "x$host"; then
14057 # We can use an host tool
14058 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060 $as_echo "host tool" >&6; }
14061 else
14062 # We need a cross tool
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064 $as_echo "pre-installed" >&6; }
14065 fi
14066 fi
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14069 $as_echo_n "checking where to find the target gccgo... " >&6; }
14070 if test "x${build}" != "x${host}" ; then
14071 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $GOC_FOR_TARGET`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075 $as_echo "pre-installed in $ac_dir" >&6; }
14076 else
14077 # Canadian cross, just use what we found
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14080 fi
14081 else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" gcc "*) ;;
14085 *) ok=no ;;
14086 esac
14087 case ,${enable_languages}, in
14088 *,go,*) ;;
14089 *) ok=no ;;
14090 esac
14091 if test $ok = yes; then
14092 # An in-tree tool is available and we can use it
14093 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14095 $as_echo "just compiled" >&6; }
14096 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $GOC_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 GOC_FOR_TARGET='$(GOC)'
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105 $as_echo "host tool" >&6; }
14106 else
14107 # We need a cross tool
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109 $as_echo "pre-installed" >&6; }
14110 fi
14111 fi
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14114 $as_echo_n "checking where to find the target ld... " >&6; }
14115 if test "x${build}" != "x${host}" ; then
14116 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
14118 ac_dir=`dirname $LD_FOR_TARGET`
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120 $as_echo "pre-installed in $ac_dir" >&6; }
14121 else
14122 # Canadian cross, just use what we found
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124 $as_echo "pre-installed" >&6; }
14125 fi
14126 else
14127 ok=yes
14128 case " ${configdirs} " in
14129 *" ld "*) ;;
14130 *) ok=no ;;
14131 esac
14132
14133 if test $ok = yes; then
14134 # An in-tree tool is available and we can use it
14135 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137 $as_echo "just compiled" >&6; }
14138 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $LD_FOR_TARGET`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142 $as_echo "pre-installed in $ac_dir" >&6; }
14143 elif test "x$target" = "x$host"; then
14144 # We can use an host tool
14145 LD_FOR_TARGET='$(LD)'
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147 $as_echo "host tool" >&6; }
14148 else
14149 # We need a cross tool
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14152 fi
14153 fi
14154
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14156 $as_echo_n "checking where to find the target lipo... " >&6; }
14157 if test "x${build}" != "x${host}" ; then
14158 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
14160 ac_dir=`dirname $LIPO_FOR_TARGET`
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162 $as_echo "pre-installed in $ac_dir" >&6; }
14163 else
14164 # Canadian cross, just use what we found
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166 $as_echo "pre-installed" >&6; }
14167 fi
14168 else
14169 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
14171 ac_dir=`dirname $LIPO_FOR_TARGET`
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173 $as_echo "pre-installed in $ac_dir" >&6; }
14174 elif test "x$target" = "x$host"; then
14175 # We can use an host tool
14176 LIPO_FOR_TARGET='$(LIPO)'
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14178 $as_echo "host tool" >&6; }
14179 else
14180 # We need a cross tool
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182 $as_echo "pre-installed" >&6; }
14183 fi
14184 fi
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14187 $as_echo_n "checking where to find the target nm... " >&6; }
14188 if test "x${build}" != "x${host}" ; then
14189 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14190 # We already found the complete path
14191 ac_dir=`dirname $NM_FOR_TARGET`
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14193 $as_echo "pre-installed in $ac_dir" >&6; }
14194 else
14195 # Canadian cross, just use what we found
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197 $as_echo "pre-installed" >&6; }
14198 fi
14199 else
14200 ok=yes
14201 case " ${configdirs} " in
14202 *" binutils "*) ;;
14203 *) ok=no ;;
14204 esac
14205
14206 if test $ok = yes; then
14207 # An in-tree tool is available and we can use it
14208 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14210 $as_echo "just compiled" >&6; }
14211 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
14213 ac_dir=`dirname $NM_FOR_TARGET`
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215 $as_echo "pre-installed in $ac_dir" >&6; }
14216 elif test "x$target" = "x$host"; then
14217 # We can use an host tool
14218 NM_FOR_TARGET='$(NM)'
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14220 $as_echo "host tool" >&6; }
14221 else
14222 # We need a cross tool
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14224 $as_echo "pre-installed" >&6; }
14225 fi
14226 fi
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14229 $as_echo_n "checking where to find the target objcopy... " >&6; }
14230 if test "x${build}" != "x${host}" ; then
14231 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14232 # We already found the complete path
14233 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14235 $as_echo "pre-installed in $ac_dir" >&6; }
14236 else
14237 # Canadian cross, just use what we found
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239 $as_echo "pre-installed" >&6; }
14240 fi
14241 else
14242 ok=yes
14243 case " ${configdirs} " in
14244 *" binutils "*) ;;
14245 *) ok=no ;;
14246 esac
14247
14248 if test $ok = yes; then
14249 # An in-tree tool is available and we can use it
14250 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14252 $as_echo "just compiled" >&6; }
14253 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14254 # We already found the complete path
14255 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14257 $as_echo "pre-installed in $ac_dir" >&6; }
14258 elif test "x$target" = "x$host"; then
14259 # We can use an host tool
14260 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14262 $as_echo "host tool" >&6; }
14263 else
14264 # We need a cross tool
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14266 $as_echo "pre-installed" >&6; }
14267 fi
14268 fi
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14271 $as_echo_n "checking where to find the target objdump... " >&6; }
14272 if test "x${build}" != "x${host}" ; then
14273 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14274 # We already found the complete path
14275 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14277 $as_echo "pre-installed in $ac_dir" >&6; }
14278 else
14279 # Canadian cross, just use what we found
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14281 $as_echo "pre-installed" >&6; }
14282 fi
14283 else
14284 ok=yes
14285 case " ${configdirs} " in
14286 *" binutils "*) ;;
14287 *) ok=no ;;
14288 esac
14289
14290 if test $ok = yes; then
14291 # An in-tree tool is available and we can use it
14292 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14294 $as_echo "just compiled" >&6; }
14295 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14296 # We already found the complete path
14297 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14299 $as_echo "pre-installed in $ac_dir" >&6; }
14300 elif test "x$target" = "x$host"; then
14301 # We can use an host tool
14302 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14304 $as_echo "host tool" >&6; }
14305 else
14306 # We need a cross tool
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14308 $as_echo "pre-installed" >&6; }
14309 fi
14310 fi
14311
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14313 $as_echo_n "checking where to find the target ranlib... " >&6; }
14314 if test "x${build}" != "x${host}" ; then
14315 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14316 # We already found the complete path
14317 ac_dir=`dirname $RANLIB_FOR_TARGET`
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14319 $as_echo "pre-installed in $ac_dir" >&6; }
14320 else
14321 # Canadian cross, just use what we found
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14323 $as_echo "pre-installed" >&6; }
14324 fi
14325 else
14326 ok=yes
14327 case " ${configdirs} " in
14328 *" binutils "*) ;;
14329 *) ok=no ;;
14330 esac
14331
14332 if test $ok = yes; then
14333 # An in-tree tool is available and we can use it
14334 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14336 $as_echo "just compiled" >&6; }
14337 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14338 # We already found the complete path
14339 ac_dir=`dirname $RANLIB_FOR_TARGET`
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14341 $as_echo "pre-installed in $ac_dir" >&6; }
14342 elif test "x$target" = "x$host"; then
14343 # We can use an host tool
14344 RANLIB_FOR_TARGET='$(RANLIB)'
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14346 $as_echo "host tool" >&6; }
14347 else
14348 # We need a cross tool
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14350 $as_echo "pre-installed" >&6; }
14351 fi
14352 fi
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14355 $as_echo_n "checking where to find the target readelf... " >&6; }
14356 if test "x${build}" != "x${host}" ; then
14357 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14358 # We already found the complete path
14359 ac_dir=`dirname $READELF_FOR_TARGET`
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14361 $as_echo "pre-installed in $ac_dir" >&6; }
14362 else
14363 # Canadian cross, just use what we found
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365 $as_echo "pre-installed" >&6; }
14366 fi
14367 else
14368 ok=yes
14369 case " ${configdirs} " in
14370 *" binutils "*) ;;
14371 *) ok=no ;;
14372 esac
14373
14374 if test $ok = yes; then
14375 # An in-tree tool is available and we can use it
14376 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14378 $as_echo "just compiled" >&6; }
14379 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14380 # We already found the complete path
14381 ac_dir=`dirname $READELF_FOR_TARGET`
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14383 $as_echo "pre-installed in $ac_dir" >&6; }
14384 elif test "x$target" = "x$host"; then
14385 # We can use an host tool
14386 READELF_FOR_TARGET='$(READELF)'
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14388 $as_echo "host tool" >&6; }
14389 else
14390 # We need a cross tool
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14392 $as_echo "pre-installed" >&6; }
14393 fi
14394 fi
14395
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14397 $as_echo_n "checking where to find the target strip... " >&6; }
14398 if test "x${build}" != "x${host}" ; then
14399 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14400 # We already found the complete path
14401 ac_dir=`dirname $STRIP_FOR_TARGET`
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14403 $as_echo "pre-installed in $ac_dir" >&6; }
14404 else
14405 # Canadian cross, just use what we found
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407 $as_echo "pre-installed" >&6; }
14408 fi
14409 else
14410 ok=yes
14411 case " ${configdirs} " in
14412 *" binutils "*) ;;
14413 *) ok=no ;;
14414 esac
14415
14416 if test $ok = yes; then
14417 # An in-tree tool is available and we can use it
14418 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14420 $as_echo "just compiled" >&6; }
14421 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14422 # We already found the complete path
14423 ac_dir=`dirname $STRIP_FOR_TARGET`
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14425 $as_echo "pre-installed in $ac_dir" >&6; }
14426 elif test "x$target" = "x$host"; then
14427 # We can use an host tool
14428 STRIP_FOR_TARGET='$(STRIP)'
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14430 $as_echo "host tool" >&6; }
14431 else
14432 # We need a cross tool
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14434 $as_echo "pre-installed" >&6; }
14435 fi
14436 fi
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14439 $as_echo_n "checking where to find the target windres... " >&6; }
14440 if test "x${build}" != "x${host}" ; then
14441 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14442 # We already found the complete path
14443 ac_dir=`dirname $WINDRES_FOR_TARGET`
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14445 $as_echo "pre-installed in $ac_dir" >&6; }
14446 else
14447 # Canadian cross, just use what we found
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14449 $as_echo "pre-installed" >&6; }
14450 fi
14451 else
14452 ok=yes
14453 case " ${configdirs} " in
14454 *" binutils "*) ;;
14455 *) ok=no ;;
14456 esac
14457
14458 if test $ok = yes; then
14459 # An in-tree tool is available and we can use it
14460 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14462 $as_echo "just compiled" >&6; }
14463 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14464 # We already found the complete path
14465 ac_dir=`dirname $WINDRES_FOR_TARGET`
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14467 $as_echo "pre-installed in $ac_dir" >&6; }
14468 elif test "x$target" = "x$host"; then
14469 # We can use an host tool
14470 WINDRES_FOR_TARGET='$(WINDRES)'
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14472 $as_echo "host tool" >&6; }
14473 else
14474 # We need a cross tool
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14476 $as_echo "pre-installed" >&6; }
14477 fi
14478 fi
14479
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14481 $as_echo_n "checking where to find the target windmc... " >&6; }
14482 if test "x${build}" != "x${host}" ; then
14483 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14484 # We already found the complete path
14485 ac_dir=`dirname $WINDMC_FOR_TARGET`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14487 $as_echo "pre-installed in $ac_dir" >&6; }
14488 else
14489 # Canadian cross, just use what we found
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491 $as_echo "pre-installed" >&6; }
14492 fi
14493 else
14494 ok=yes
14495 case " ${configdirs} " in
14496 *" binutils "*) ;;
14497 *) ok=no ;;
14498 esac
14499
14500 if test $ok = yes; then
14501 # An in-tree tool is available and we can use it
14502 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14504 $as_echo "just compiled" >&6; }
14505 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14506 # We already found the complete path
14507 ac_dir=`dirname $WINDMC_FOR_TARGET`
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14509 $as_echo "pre-installed in $ac_dir" >&6; }
14510 elif test "x$target" = "x$host"; then
14511 # We can use an host tool
14512 WINDMC_FOR_TARGET='$(WINDMC)'
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14514 $as_echo "host tool" >&6; }
14515 else
14516 # We need a cross tool
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14518 $as_echo "pre-installed" >&6; }
14519 fi
14520 fi
14521
14522
14523
14524
14525
14526 # Certain tools may need extra flags.
14527 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14528 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14529 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14530
14531 # When building target libraries, except in a Canadian cross, we use
14532 # the same toolchain as the compiler we just built.
14533 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14534 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14535 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14536 if test $host = $build; then
14537 case " $configdirs " in
14538 *" gcc "*)
14539 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14540 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14541 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14542 ;;
14543 esac
14544 fi
14545
14546
14547
14548
14549
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14551 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14552 # Check whether --enable-maintainer-mode was given.
14553 if test "${enable_maintainer_mode+set}" = set; then :
14554 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14555 else
14556 USE_MAINTAINER_MODE=no
14557 fi
14558
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14560 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14561
14562
14563 if test "$USE_MAINTAINER_MODE" = yes; then
14564 MAINTAINER_MODE_TRUE=
14565 MAINTAINER_MODE_FALSE='#'
14566 else
14567 MAINTAINER_MODE_TRUE='#'
14568 MAINTAINER_MODE_FALSE=
14569 fi
14570 MAINT=$MAINTAINER_MODE_TRUE
14571
14572 # ---------------------
14573 # GCC bootstrap support
14574 # ---------------------
14575
14576 # Stage specific cflags for build.
14577 stage1_cflags="-g"
14578 case $build in
14579 vax-*-*)
14580 case ${GCC} in
14581 yes) stage1_cflags="-g -Wa,-J" ;;
14582 *) stage1_cflags="-g -J" ;;
14583 esac ;;
14584 esac
14585
14586
14587
14588 # Enable --enable-checking in stage1 of the compiler.
14589 # Check whether --enable-stage1-checking was given.
14590 if test "${enable_stage1_checking+set}" = set; then :
14591 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14592 else
14593 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14594 # For --disable-checking or implicit --enable-checking=release, avoid
14595 # setting --enable-checking=gc in the default stage1 checking for LTO
14596 # bootstraps. See PR62077.
14597 case $BUILD_CONFIG in
14598 *lto*)
14599 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14600 *)
14601 stage1_checking=--enable-checking=yes,types;;
14602 esac
14603 if test "x$enable_checking" = x && \
14604 test -d ${srcdir}/gcc && \
14605 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14606 stage1_checking=--enable-checking=yes,types,extra
14607 fi
14608 else
14609 stage1_checking=--enable-checking=$enable_checking,types
14610 fi
14611 fi
14612
14613
14614
14615 # Enable -Werror in bootstrap stage2 and later.
14616 # Check whether --enable-werror was given.
14617 if test "${enable_werror+set}" = set; then :
14618 enableval=$enable_werror;
14619 else
14620 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14621 enable_werror=yes
14622 else
14623 enable_werror=no
14624 fi
14625 fi
14626
14627 case ${enable_werror} in
14628 yes) stage2_werror_flag="--enable-werror-always" ;;
14629 *) stage2_werror_flag="" ;;
14630 esac
14631
14632
14633 # Enable --enable-host-shared.
14634 # Check whether --enable-host-shared was given.
14635 if test "${enable_host_shared+set}" = set; then :
14636 enableval=$enable_host_shared; host_shared=$enableval
14637 else
14638 host_shared=no
14639 fi
14640
14641
14642
14643 # PR jit/64780: Require the user to explicitly specify
14644 # --enable-host-shared if the jit is enabled, hinting
14645 # that they might want to do a separate configure/build of
14646 # the jit, to avoid users from slowing down the rest of the
14647 # compiler by enabling the jit.
14648 if test ${host_shared} = "no" ; then
14649 case "${enable_languages}" in
14650 *jit*)
14651 as_fn_error "
14652 Enabling language \"jit\" requires --enable-host-shared.
14653
14654 --enable-host-shared typically slows the rest of the compiler down by
14655 a few %, so you must explicitly enable it.
14656
14657 If you want to build both the jit and the regular compiler, it is often
14658 best to do this via two separate configure/builds, in separate
14659 directories, to avoid imposing the performance cost of
14660 --enable-host-shared on the regular compiler." "$LINENO" 5
14661 ;;
14662 *)
14663 ;;
14664 esac
14665 fi
14666
14667 # Specify what files to not compare during bootstrap.
14668
14669 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14670 case "$target" in
14671 hppa*64*-*-hpux*) ;;
14672 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14673 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14674 esac
14675
14676
14677 ac_config_files="$ac_config_files Makefile"
14678
14679 cat >confcache <<\_ACEOF
14680 # This file is a shell script that caches the results of configure
14681 # tests run on this system so they can be shared between configure
14682 # scripts and configure runs, see configure's option --config-cache.
14683 # It is not useful on other systems. If it contains results you don't
14684 # want to keep, you may remove or edit it.
14685 #
14686 # config.status only pays attention to the cache file if you give it
14687 # the --recheck option to rerun configure.
14688 #
14689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14691 # following values.
14692
14693 _ACEOF
14694
14695 # The following way of writing the cache mishandles newlines in values,
14696 # but we know of no workaround that is simple, portable, and efficient.
14697 # So, we kill variables containing newlines.
14698 # Ultrix sh set writes to stderr and can't be redirected directly,
14699 # and sets the high bit in the cache file unless we assign to the vars.
14700 (
14701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14702 eval ac_val=\$$ac_var
14703 case $ac_val in #(
14704 *${as_nl}*)
14705 case $ac_var in #(
14706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14708 esac
14709 case $ac_var in #(
14710 _ | IFS | as_nl) ;; #(
14711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14712 *) { eval $ac_var=; unset $ac_var;} ;;
14713 esac ;;
14714 esac
14715 done
14716
14717 (set) 2>&1 |
14718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14719 *${as_nl}ac_space=\ *)
14720 # `set' does not quote correctly, so add quotes: double-quote
14721 # substitution turns \\\\ into \\, and sed turns \\ into \.
14722 sed -n \
14723 "s/'/'\\\\''/g;
14724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14725 ;; #(
14726 *)
14727 # `set' quotes correctly as required by POSIX, so do not add quotes.
14728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14729 ;;
14730 esac |
14731 sort
14732 ) |
14733 sed '
14734 /^ac_cv_env_/b end
14735 t clear
14736 :clear
14737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14738 t end
14739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14740 :end' >>confcache
14741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14742 if test -w "$cache_file"; then
14743 test "x$cache_file" != "x/dev/null" &&
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14745 $as_echo "$as_me: updating cache $cache_file" >&6;}
14746 cat confcache >$cache_file
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14750 fi
14751 fi
14752 rm -f confcache
14753
14754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14755 # Let make expand exec_prefix.
14756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14757
14758 # Transform confdefs.h into DEFS.
14759 # Protect against shell expansion while executing Makefile rules.
14760 # Protect against Makefile macro expansion.
14761 #
14762 # If the first sed substitution is executed (which looks for macros that
14763 # take arguments), then branch to the quote section. Otherwise,
14764 # look for a macro that doesn't take arguments.
14765 ac_script='
14766 :mline
14767 /\\$/{
14768 N
14769 s,\\\n,,
14770 b mline
14771 }
14772 t clear
14773 :clear
14774 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14775 t quote
14776 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14777 t quote
14778 b any
14779 :quote
14780 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14781 s/\[/\\&/g
14782 s/\]/\\&/g
14783 s/\$/$$/g
14784 H
14785 :any
14786 ${
14787 g
14788 s/^\n//
14789 s/\n/ /g
14790 p
14791 }
14792 '
14793 DEFS=`sed -n "$ac_script" confdefs.h`
14794
14795
14796 ac_libobjs=
14797 ac_ltlibobjs=
14798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14799 # 1. Remove the extension, and $U if already installed.
14800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14803 # will be set to the directory where LIBOBJS objects are built.
14804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14806 done
14807 LIBOBJS=$ac_libobjs
14808
14809 LTLIBOBJS=$ac_ltlibobjs
14810
14811
14812
14813 : ${CONFIG_STATUS=./config.status}
14814 ac_write_fail=0
14815 ac_clean_files_save=$ac_clean_files
14816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14819 as_write_fail=0
14820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14821 #! $SHELL
14822 # Generated by $as_me.
14823 # Run this file to recreate the current configuration.
14824 # Compiler output produced by configure, useful for debugging
14825 # configure, is in config.log if it exists.
14826
14827 debug=false
14828 ac_cs_recheck=false
14829 ac_cs_silent=false
14830
14831 SHELL=\${CONFIG_SHELL-$SHELL}
14832 export SHELL
14833 _ASEOF
14834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14835 ## -------------------- ##
14836 ## M4sh Initialization. ##
14837 ## -------------------- ##
14838
14839 # Be more Bourne compatible
14840 DUALCASE=1; export DUALCASE # for MKS sh
14841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14842 emulate sh
14843 NULLCMD=:
14844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14845 # is contrary to our usage. Disable this feature.
14846 alias -g '${1+"$@"}'='"$@"'
14847 setopt NO_GLOB_SUBST
14848 else
14849 case `(set -o) 2>/dev/null` in #(
14850 *posix*) :
14851 set -o posix ;; #(
14852 *) :
14853 ;;
14854 esac
14855 fi
14856
14857
14858 as_nl='
14859 '
14860 export as_nl
14861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14865 # Prefer a ksh shell builtin over an external printf program on Solaris,
14866 # but without wasting forks for bash or zsh.
14867 if test -z "$BASH_VERSION$ZSH_VERSION" \
14868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='print -r --'
14870 as_echo_n='print -rn --'
14871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14872 as_echo='printf %s\n'
14873 as_echo_n='printf %s'
14874 else
14875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14877 as_echo_n='/usr/ucb/echo -n'
14878 else
14879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14880 as_echo_n_body='eval
14881 arg=$1;
14882 case $arg in #(
14883 *"$as_nl"*)
14884 expr "X$arg" : "X\\(.*\\)$as_nl";
14885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14886 esac;
14887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14888 '
14889 export as_echo_n_body
14890 as_echo_n='sh -c $as_echo_n_body as_echo'
14891 fi
14892 export as_echo_body
14893 as_echo='sh -c $as_echo_body as_echo'
14894 fi
14895
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14898 PATH_SEPARATOR=:
14899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14901 PATH_SEPARATOR=';'
14902 }
14903 fi
14904
14905
14906 # IFS
14907 # We need space, tab and new line, in precisely that order. Quoting is
14908 # there to prevent editors from complaining about space-tab.
14909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14910 # splitting by setting IFS to empty value.)
14911 IFS=" "" $as_nl"
14912
14913 # Find who we are. Look in the path if we contain no directory separator.
14914 case $0 in #((
14915 *[\\/]* ) as_myself=$0 ;;
14916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14918 do
14919 IFS=$as_save_IFS
14920 test -z "$as_dir" && as_dir=.
14921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14922 done
14923 IFS=$as_save_IFS
14924
14925 ;;
14926 esac
14927 # We did not find ourselves, most probably we were run as `sh COMMAND'
14928 # in which case we are not to be found in the path.
14929 if test "x$as_myself" = x; then
14930 as_myself=$0
14931 fi
14932 if test ! -f "$as_myself"; then
14933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14934 exit 1
14935 fi
14936
14937 # Unset variables that we do not need and which cause bugs (e.g. in
14938 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14939 # suppresses any "Segmentation fault" message there. '((' could
14940 # trigger a bug in pdksh 5.2.14.
14941 for as_var in BASH_ENV ENV MAIL MAILPATH
14942 do eval test x\${$as_var+set} = xset \
14943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14944 done
14945 PS1='$ '
14946 PS2='> '
14947 PS4='+ '
14948
14949 # NLS nuisances.
14950 LC_ALL=C
14951 export LC_ALL
14952 LANGUAGE=C
14953 export LANGUAGE
14954
14955 # CDPATH.
14956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14957
14958
14959 # as_fn_error ERROR [LINENO LOG_FD]
14960 # ---------------------------------
14961 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14962 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14963 # script with status $?, using 1 if that was 0.
14964 as_fn_error ()
14965 {
14966 as_status=$?; test $as_status -eq 0 && as_status=1
14967 if test "$3"; then
14968 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14970 fi
14971 $as_echo "$as_me: error: $1" >&2
14972 as_fn_exit $as_status
14973 } # as_fn_error
14974
14975
14976 # as_fn_set_status STATUS
14977 # -----------------------
14978 # Set $? to STATUS, without forking.
14979 as_fn_set_status ()
14980 {
14981 return $1
14982 } # as_fn_set_status
14983
14984 # as_fn_exit STATUS
14985 # -----------------
14986 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14987 as_fn_exit ()
14988 {
14989 set +e
14990 as_fn_set_status $1
14991 exit $1
14992 } # as_fn_exit
14993
14994 # as_fn_unset VAR
14995 # ---------------
14996 # Portably unset VAR.
14997 as_fn_unset ()
14998 {
14999 { eval $1=; unset $1;}
15000 }
15001 as_unset=as_fn_unset
15002 # as_fn_append VAR VALUE
15003 # ----------------------
15004 # Append the text in VALUE to the end of the definition contained in VAR. Take
15005 # advantage of any shell optimizations that allow amortized linear growth over
15006 # repeated appends, instead of the typical quadratic growth present in naive
15007 # implementations.
15008 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15009 eval 'as_fn_append ()
15010 {
15011 eval $1+=\$2
15012 }'
15013 else
15014 as_fn_append ()
15015 {
15016 eval $1=\$$1\$2
15017 }
15018 fi # as_fn_append
15019
15020 # as_fn_arith ARG...
15021 # ------------------
15022 # Perform arithmetic evaluation on the ARGs, and store the result in the
15023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15024 # must be portable across $(()) and expr.
15025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15026 eval 'as_fn_arith ()
15027 {
15028 as_val=$(( $* ))
15029 }'
15030 else
15031 as_fn_arith ()
15032 {
15033 as_val=`expr "$@" || test $? -eq 1`
15034 }
15035 fi # as_fn_arith
15036
15037
15038 if expr a : '\(a\)' >/dev/null 2>&1 &&
15039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15040 as_expr=expr
15041 else
15042 as_expr=false
15043 fi
15044
15045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15046 as_basename=basename
15047 else
15048 as_basename=false
15049 fi
15050
15051 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15052 as_dirname=dirname
15053 else
15054 as_dirname=false
15055 fi
15056
15057 as_me=`$as_basename -- "$0" ||
15058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15059 X"$0" : 'X\(//\)$' \| \
15060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15061 $as_echo X/"$0" |
15062 sed '/^.*\/\([^/][^/]*\)\/*$/{
15063 s//\1/
15064 q
15065 }
15066 /^X\/\(\/\/\)$/{
15067 s//\1/
15068 q
15069 }
15070 /^X\/\(\/\).*/{
15071 s//\1/
15072 q
15073 }
15074 s/.*/./; q'`
15075
15076 # Avoid depending upon Character Ranges.
15077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15080 as_cr_digits='0123456789'
15081 as_cr_alnum=$as_cr_Letters$as_cr_digits
15082
15083 ECHO_C= ECHO_N= ECHO_T=
15084 case `echo -n x` in #(((((
15085 -n*)
15086 case `echo 'xy\c'` in
15087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15088 xy) ECHO_C='\c';;
15089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15090 ECHO_T=' ';;
15091 esac;;
15092 *)
15093 ECHO_N='-n';;
15094 esac
15095
15096 rm -f conf$$ conf$$.exe conf$$.file
15097 if test -d conf$$.dir; then
15098 rm -f conf$$.dir/conf$$.file
15099 else
15100 rm -f conf$$.dir
15101 mkdir conf$$.dir 2>/dev/null
15102 fi
15103 if (echo >conf$$.file) 2>/dev/null; then
15104 if ln -s conf$$.file conf$$ 2>/dev/null; then
15105 as_ln_s='ln -s'
15106 # ... but there are two gotchas:
15107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15109 # In both cases, we have to default to `cp -p'.
15110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15111 as_ln_s='cp -p'
15112 elif ln conf$$.file conf$$ 2>/dev/null; then
15113 as_ln_s=ln
15114 else
15115 as_ln_s='cp -p'
15116 fi
15117 else
15118 as_ln_s='cp -p'
15119 fi
15120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15121 rmdir conf$$.dir 2>/dev/null
15122
15123
15124 # as_fn_mkdir_p
15125 # -------------
15126 # Create "$as_dir" as a directory, including parents if necessary.
15127 as_fn_mkdir_p ()
15128 {
15129
15130 case $as_dir in #(
15131 -*) as_dir=./$as_dir;;
15132 esac
15133 test -d "$as_dir" || eval $as_mkdir_p || {
15134 as_dirs=
15135 while :; do
15136 case $as_dir in #(
15137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15138 *) as_qdir=$as_dir;;
15139 esac
15140 as_dirs="'$as_qdir' $as_dirs"
15141 as_dir=`$as_dirname -- "$as_dir" ||
15142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15143 X"$as_dir" : 'X\(//\)[^/]' \| \
15144 X"$as_dir" : 'X\(//\)$' \| \
15145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15146 $as_echo X"$as_dir" |
15147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15148 s//\1/
15149 q
15150 }
15151 /^X\(\/\/\)[^/].*/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
15164 test -d "$as_dir" && break
15165 done
15166 test -z "$as_dirs" || eval "mkdir $as_dirs"
15167 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15168
15169
15170 } # as_fn_mkdir_p
15171 if mkdir -p . 2>/dev/null; then
15172 as_mkdir_p='mkdir -p "$as_dir"'
15173 else
15174 test -d ./-p && rmdir ./-p
15175 as_mkdir_p=false
15176 fi
15177
15178 if test -x / >/dev/null 2>&1; then
15179 as_test_x='test -x'
15180 else
15181 if ls -dL / >/dev/null 2>&1; then
15182 as_ls_L_option=L
15183 else
15184 as_ls_L_option=
15185 fi
15186 as_test_x='
15187 eval sh -c '\''
15188 if test -d "$1"; then
15189 test -d "$1/.";
15190 else
15191 case $1 in #(
15192 -*)set "./$1";;
15193 esac;
15194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15195 ???[sx]*):;;*)false;;esac;fi
15196 '\'' sh
15197 '
15198 fi
15199 as_executable_p=$as_test_x
15200
15201 # Sed expression to map a string onto a valid CPP name.
15202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15203
15204 # Sed expression to map a string onto a valid variable name.
15205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15206
15207
15208 exec 6>&1
15209 ## ----------------------------------- ##
15210 ## Main body of $CONFIG_STATUS script. ##
15211 ## ----------------------------------- ##
15212 _ASEOF
15213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15214
15215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 # Save the log message, to keep $0 and so on meaningful, and to
15217 # report actual input values of CONFIG_FILES etc. instead of their
15218 # values after options handling.
15219 ac_log="
15220 This file was extended by $as_me, which was
15221 generated by GNU Autoconf 2.64. Invocation command line was
15222
15223 CONFIG_FILES = $CONFIG_FILES
15224 CONFIG_HEADERS = $CONFIG_HEADERS
15225 CONFIG_LINKS = $CONFIG_LINKS
15226 CONFIG_COMMANDS = $CONFIG_COMMANDS
15227 $ $0 $@
15228
15229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15230 "
15231
15232 _ACEOF
15233
15234 case $ac_config_files in *"
15235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15236 esac
15237
15238
15239
15240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15241 # Files that config.status was made for.
15242 config_files="$ac_config_files"
15243
15244 _ACEOF
15245
15246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15247 ac_cs_usage="\
15248 \`$as_me' instantiates files and other configuration actions
15249 from templates according to the current configuration. Unless the files
15250 and actions are specified as TAGs, all are instantiated by default.
15251
15252 Usage: $0 [OPTION]... [TAG]...
15253
15254 -h, --help print this help, then exit
15255 -V, --version print version number and configuration settings, then exit
15256 -q, --quiet, --silent
15257 do not print progress messages
15258 -d, --debug don't remove temporary files
15259 --recheck update $as_me by reconfiguring in the same conditions
15260 --file=FILE[:TEMPLATE]
15261 instantiate the configuration file FILE
15262
15263 Configuration files:
15264 $config_files
15265
15266 Report bugs to the package provider."
15267
15268 _ACEOF
15269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15270 ac_cs_version="\\
15271 config.status
15272 configured by $0, generated by GNU Autoconf 2.64,
15273 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15274
15275 Copyright (C) 2009 Free Software Foundation, Inc.
15276 This config.status script is free software; the Free Software Foundation
15277 gives unlimited permission to copy, distribute and modify it."
15278
15279 ac_pwd='$ac_pwd'
15280 srcdir='$srcdir'
15281 INSTALL='$INSTALL'
15282 AWK='$AWK'
15283 test -n "\$AWK" || AWK=awk
15284 _ACEOF
15285
15286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15287 # The default lists apply if the user does not specify any file.
15288 ac_need_defaults=:
15289 while test $# != 0
15290 do
15291 case $1 in
15292 --*=*)
15293 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15294 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15295 ac_shift=:
15296 ;;
15297 *)
15298 ac_option=$1
15299 ac_optarg=$2
15300 ac_shift=shift
15301 ;;
15302 esac
15303
15304 case $ac_option in
15305 # Handling of the options.
15306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15307 ac_cs_recheck=: ;;
15308 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15309 $as_echo "$ac_cs_version"; exit ;;
15310 --debug | --debu | --deb | --de | --d | -d )
15311 debug=: ;;
15312 --file | --fil | --fi | --f )
15313 $ac_shift
15314 case $ac_optarg in
15315 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15316 esac
15317 as_fn_append CONFIG_FILES " '$ac_optarg'"
15318 ac_need_defaults=false;;
15319 --he | --h | --help | --hel | -h )
15320 $as_echo "$ac_cs_usage"; exit ;;
15321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15323 ac_cs_silent=: ;;
15324
15325 # This is an error.
15326 -*) as_fn_error "unrecognized option: \`$1'
15327 Try \`$0 --help' for more information." ;;
15328
15329 *) as_fn_append ac_config_targets " $1"
15330 ac_need_defaults=false ;;
15331
15332 esac
15333 shift
15334 done
15335
15336 ac_configure_extra_args=
15337
15338 if $ac_cs_silent; then
15339 exec 6>/dev/null
15340 ac_configure_extra_args="$ac_configure_extra_args --silent"
15341 fi
15342
15343 _ACEOF
15344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15345 if \$ac_cs_recheck; then
15346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15347 shift
15348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15349 CONFIG_SHELL='$SHELL'
15350 export CONFIG_SHELL
15351 exec "\$@"
15352 fi
15353
15354 _ACEOF
15355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15356 exec 5>>config.log
15357 {
15358 echo
15359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15360 ## Running $as_me. ##
15361 _ASBOX
15362 $as_echo "$ac_log"
15363 } >&5
15364
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 #
15368 # INIT-COMMANDS
15369 #
15370 extrasub_build="$extrasub_build"
15371 extrasub_host="$extrasub_host"
15372 extrasub_target="$extrasub_target"
15373
15374 _ACEOF
15375
15376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15377
15378 # Handling of arguments.
15379 for ac_config_target in $ac_config_targets
15380 do
15381 case $ac_config_target in
15382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15383
15384 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15385 esac
15386 done
15387
15388
15389 # If the user did not use the arguments to specify the items to instantiate,
15390 # then the envvar interface is used. Set only those that are not.
15391 # We use the long form for the default assignment because of an extremely
15392 # bizarre bug on SunOS 4.1.3.
15393 if $ac_need_defaults; then
15394 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15395 fi
15396
15397 # Have a temporary directory for convenience. Make it in the build tree
15398 # simply because there is no reason against having it here, and in addition,
15399 # creating and moving files from /tmp can sometimes cause problems.
15400 # Hook for its removal unless debugging.
15401 # Note that there is a small window in which the directory will not be cleaned:
15402 # after its creation but before its name has been assigned to `$tmp'.
15403 $debug ||
15404 {
15405 tmp=
15406 trap 'exit_status=$?
15407 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15408 ' 0
15409 trap 'as_fn_exit 1' 1 2 13 15
15410 }
15411 # Create a (secure) tmp directory for tmp files.
15412
15413 {
15414 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15415 test -n "$tmp" && test -d "$tmp"
15416 } ||
15417 {
15418 tmp=./conf$$-$RANDOM
15419 (umask 077 && mkdir "$tmp")
15420 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15421
15422 # Set up the scripts for CONFIG_FILES section.
15423 # No need to generate them if there are no CONFIG_FILES.
15424 # This happens for instance with `./config.status config.h'.
15425 if test -n "$CONFIG_FILES"; then
15426
15427 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15428 ac_cs_awk_getline=:
15429 ac_cs_awk_pipe_init=
15430 ac_cs_awk_read_file='
15431 while ((getline aline < (F[key])) > 0)
15432 print(aline)
15433 close(F[key])'
15434 ac_cs_awk_pipe_fini=
15435 else
15436 ac_cs_awk_getline=false
15437 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15438 ac_cs_awk_read_file='
15439 print "|#_!!_#|"
15440 print "cat " F[key] " &&"
15441 '$ac_cs_awk_pipe_init
15442 # The final `:' finishes the AND list.
15443 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15444 fi
15445 ac_cr=`echo X | tr X '\015'`
15446 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15447 # But we know of no other shell where ac_cr would be empty at this
15448 # point, so we can use a bashism as a fallback.
15449 if test "x$ac_cr" = x; then
15450 eval ac_cr=\$\'\\r\'
15451 fi
15452 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15453 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15454 ac_cs_awk_cr='\r'
15455 else
15456 ac_cs_awk_cr=$ac_cr
15457 fi
15458
15459 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15460 _ACEOF
15461
15462 # Create commands to substitute file output variables.
15463 {
15464 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15465 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15466 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15467 echo "_ACAWK" &&
15468 echo "_ACEOF"
15469 } >conf$$files.sh &&
15470 . ./conf$$files.sh ||
15471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15472 rm -f conf$$files.sh
15473
15474 {
15475 echo "cat >conf$$subs.awk <<_ACEOF" &&
15476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15477 echo "_ACEOF"
15478 } >conf$$subs.sh ||
15479 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15480 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15481 ac_delim='%!_!# '
15482 for ac_last_try in false false false false false :; do
15483 . ./conf$$subs.sh ||
15484 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15485
15486 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15487 if test $ac_delim_n = $ac_delim_num; then
15488 break
15489 elif $ac_last_try; then
15490 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15491 else
15492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15493 fi
15494 done
15495 rm -f conf$$subs.sh
15496
15497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15499 _ACEOF
15500 sed -n '
15501 h
15502 s/^/S["/; s/!.*/"]=/
15503 p
15504 g
15505 s/^[^!]*!//
15506 :repl
15507 t repl
15508 s/'"$ac_delim"'$//
15509 t delim
15510 :nl
15511 h
15512 s/\(.\{148\}\).*/\1/
15513 t more1
15514 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15515 p
15516 n
15517 b repl
15518 :more1
15519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15520 p
15521 g
15522 s/.\{148\}//
15523 t nl
15524 :delim
15525 h
15526 s/\(.\{148\}\).*/\1/
15527 t more2
15528 s/["\\]/\\&/g; s/^/"/; s/$/"/
15529 p
15530 b
15531 :more2
15532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15533 p
15534 g
15535 s/.\{148\}//
15536 t delim
15537 ' <conf$$subs.awk | sed '
15538 /^[^""]/{
15539 N
15540 s/\n//
15541 }
15542 ' >>$CONFIG_STATUS || ac_write_fail=1
15543 rm -f conf$$subs.awk
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 _ACAWK
15546 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15547 for (key in S) S_is_set[key] = 1
15548 FS = "\a"
15549 \$ac_cs_awk_pipe_init
15550 }
15551 {
15552 line = $ 0
15553 nfields = split(line, field, "@")
15554 substed = 0
15555 len = length(field[1])
15556 for (i = 2; i < nfields; i++) {
15557 key = field[i]
15558 keylen = length(key)
15559 if (S_is_set[key]) {
15560 value = S[key]
15561 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15562 len += length(value) + length(field[++i])
15563 substed = 1
15564 } else
15565 len += 1 + keylen
15566 }
15567 if (nfields == 3 && !substed) {
15568 key = field[2]
15569 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15570 \$ac_cs_awk_read_file
15571 next
15572 }
15573 }
15574 print line
15575 }
15576 \$ac_cs_awk_pipe_fini
15577 _ACAWK
15578 _ACEOF
15579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15582 else
15583 cat
15584 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15585 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15586 _ACEOF
15587
15588 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15589 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15590 # trailing colons and then remove the whole line if VPATH becomes empty
15591 # (actually we leave an empty line to preserve line numbers).
15592 if test "x$srcdir" = x.; then
15593 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15594 s/:*\$(srcdir):*/:/
15595 s/:*\${srcdir}:*/:/
15596 s/:*@srcdir@:*/:/
15597 s/^\([^=]*=[ ]*\):*/\1/
15598 s/:*$//
15599 s/^[^=]*=[ ]*$//
15600 }'
15601 fi
15602
15603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15604 fi # test -n "$CONFIG_FILES"
15605
15606
15607 eval set X " :F $CONFIG_FILES "
15608 shift
15609 for ac_tag
15610 do
15611 case $ac_tag in
15612 :[FHLC]) ac_mode=$ac_tag; continue;;
15613 esac
15614 case $ac_mode$ac_tag in
15615 :[FHL]*:*);;
15616 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15617 :[FH]-) ac_tag=-:-;;
15618 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15619 esac
15620 ac_save_IFS=$IFS
15621 IFS=:
15622 set x $ac_tag
15623 IFS=$ac_save_IFS
15624 shift
15625 ac_file=$1
15626 shift
15627
15628 case $ac_mode in
15629 :L) ac_source=$1;;
15630 :[FH])
15631 ac_file_inputs=
15632 for ac_f
15633 do
15634 case $ac_f in
15635 -) ac_f="$tmp/stdin";;
15636 *) # Look for the file first in the build tree, then in the source tree
15637 # (if the path is not absolute). The absolute path cannot be DOS-style,
15638 # because $ac_f cannot contain `:'.
15639 test -f "$ac_f" ||
15640 case $ac_f in
15641 [\\/$]*) false;;
15642 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15643 esac ||
15644 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15645 esac
15646 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15647 as_fn_append ac_file_inputs " '$ac_f'"
15648 done
15649
15650 # Let's still pretend it is `configure' which instantiates (i.e., don't
15651 # use $as_me), people would be surprised to read:
15652 # /* config.h. Generated by config.status. */
15653 configure_input='Generated from '`
15654 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15655 `' by configure.'
15656 if test x"$ac_file" != x-; then
15657 configure_input="$ac_file. $configure_input"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15659 $as_echo "$as_me: creating $ac_file" >&6;}
15660 fi
15661 # Neutralize special characters interpreted by sed in replacement strings.
15662 case $configure_input in #(
15663 *\&* | *\|* | *\\* )
15664 ac_sed_conf_input=`$as_echo "$configure_input" |
15665 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15666 *) ac_sed_conf_input=$configure_input;;
15667 esac
15668
15669 case $ac_tag in
15670 *:-:* | *:-) cat >"$tmp/stdin" \
15671 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15672 esac
15673 ;;
15674 esac
15675
15676 ac_dir=`$as_dirname -- "$ac_file" ||
15677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15678 X"$ac_file" : 'X\(//\)[^/]' \| \
15679 X"$ac_file" : 'X\(//\)$' \| \
15680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15681 $as_echo X"$ac_file" |
15682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15683 s//\1/
15684 q
15685 }
15686 /^X\(\/\/\)[^/].*/{
15687 s//\1/
15688 q
15689 }
15690 /^X\(\/\/\)$/{
15691 s//\1/
15692 q
15693 }
15694 /^X\(\/\).*/{
15695 s//\1/
15696 q
15697 }
15698 s/.*/./; q'`
15699 as_dir="$ac_dir"; as_fn_mkdir_p
15700 ac_builddir=.
15701
15702 case "$ac_dir" in
15703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15704 *)
15705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15706 # A ".." for each directory in $ac_dir_suffix.
15707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15708 case $ac_top_builddir_sub in
15709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15711 esac ;;
15712 esac
15713 ac_abs_top_builddir=$ac_pwd
15714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15715 # for backward compatibility:
15716 ac_top_builddir=$ac_top_build_prefix
15717
15718 case $srcdir in
15719 .) # We are building in place.
15720 ac_srcdir=.
15721 ac_top_srcdir=$ac_top_builddir_sub
15722 ac_abs_top_srcdir=$ac_pwd ;;
15723 [\\/]* | ?:[\\/]* ) # Absolute name.
15724 ac_srcdir=$srcdir$ac_dir_suffix;
15725 ac_top_srcdir=$srcdir
15726 ac_abs_top_srcdir=$srcdir ;;
15727 *) # Relative name.
15728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15729 ac_top_srcdir=$ac_top_build_prefix$srcdir
15730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15731 esac
15732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15733
15734
15735 case $ac_mode in
15736 :F)
15737 #
15738 # CONFIG_FILE
15739 #
15740
15741 case $INSTALL in
15742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15743 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15744 esac
15745 _ACEOF
15746
15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 # If the template does not know about datarootdir, expand it.
15749 # FIXME: This hack should be removed a few years after 2.60.
15750 ac_datarootdir_hack=; ac_datarootdir_seen=
15751 ac_sed_dataroot='
15752 /datarootdir/ {
15753 p
15754 q
15755 }
15756 /@datadir@/p
15757 /@docdir@/p
15758 /@infodir@/p
15759 /@localedir@/p
15760 /@mandir@/p'
15761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15762 *datarootdir*) ac_datarootdir_seen=yes;;
15763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15766 _ACEOF
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 ac_datarootdir_hack='
15769 s&@datadir@&$datadir&g
15770 s&@docdir@&$docdir&g
15771 s&@infodir@&$infodir&g
15772 s&@localedir@&$localedir&g
15773 s&@mandir@&$mandir&g
15774 s&\\\${datarootdir}&$datarootdir&g' ;;
15775 esac
15776 _ACEOF
15777
15778 # Neutralize VPATH when `$srcdir' = `.'.
15779 # Shell code in configure.ac might set extrasub.
15780 # FIXME: do we really want to maintain this feature?
15781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782 ac_sed_extra="$ac_vpsub
15783 $extrasub
15784 _ACEOF
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786 :t
15787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15788 s|@configure_input@|$ac_sed_conf_input|;t t
15789 s&@top_builddir@&$ac_top_builddir_sub&;t t
15790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15791 s&@srcdir@&$ac_srcdir&;t t
15792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15793 s&@top_srcdir@&$ac_top_srcdir&;t t
15794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15795 s&@builddir@&$ac_builddir&;t t
15796 s&@abs_builddir@&$ac_abs_builddir&;t t
15797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15798 s&@INSTALL@&$ac_INSTALL&;t t
15799 $ac_datarootdir_hack
15800 "
15801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15802 if $ac_cs_awk_getline; then
15803 $AWK -f "$tmp/subs.awk"
15804 else
15805 $AWK -f "$tmp/subs.awk" | $SHELL
15806 fi >$tmp/out \
15807 || as_fn_error "could not create $ac_file" "$LINENO" 5
15808
15809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15813 which seems to be undefined. Please make sure it is defined." >&5
15814 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15815 which seems to be undefined. Please make sure it is defined." >&2;}
15816
15817 rm -f "$tmp/stdin"
15818 case $ac_file in
15819 -) cat "$tmp/out" && rm -f "$tmp/out";;
15820 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15821 esac \
15822 || as_fn_error "could not create $ac_file" "$LINENO" 5
15823 ;;
15824
15825
15826
15827 esac
15828
15829
15830 case $ac_file$ac_mode in
15831 "Makefile":F) sed "$extrasub_build" Makefile |
15832 sed "$extrasub_host" |
15833 sed "$extrasub_target" > mf$$
15834 mv -f mf$$ Makefile ;;
15835
15836 esac
15837 done # for ac_tag
15838
15839
15840 as_fn_exit 0
15841 _ACEOF
15842 ac_clean_files=$ac_clean_files_save
15843
15844 test $ac_write_fail = 0 ||
15845 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15846
15847
15848 # configure is writing to config.log, and then calls config.status.
15849 # config.status does its own redirection, appending to config.log.
15850 # Unfortunately, on DOS this fails, as config.log is still kept open
15851 # by configure, so config.status won't be able to write to it; its
15852 # output is simply discarded. So we exec the FD to /dev/null,
15853 # effectively closing config.log, so it can be properly (re)opened and
15854 # appended to by config.status. When coming back to configure, we
15855 # need to make the FD available again.
15856 if test "$no_create" != yes; then
15857 ac_cs_success=:
15858 ac_config_status_args=
15859 test "$silent" = yes &&
15860 ac_config_status_args="$ac_config_status_args --quiet"
15861 exec 5>/dev/null
15862 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15863 exec 5>>config.log
15864 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15865 # would make configure fail if this is the last instruction.
15866 $ac_cs_success || as_fn_exit $?
15867 fi
15868 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15870 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15871 fi
15872